--------------Boundary-00=_RG2F6RO0000000000000 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable ooops, i am sorry it is session scope.. i overlooked=0D =0D yes,virupaksha.. i am indian working in Hyderabad=0D =0D -- nagi=0D =0D -------Original Message-------=0D =0D From: Struts Users Mailing List=0D Date: Tuesday, July 22, 2003 12:36:11 PM=0D To: Struts Users Mailing List=0D Subject: RE: error..!(Thnks Swaroop George)=0D =0D Hi=0D I agree with nagendra..=0D try out=0D =0D instead of =0D scope=3Drequest...=0D Thanks=0D Prashanth=0D =0D =0D virupaksha hosamath wrote:=0D Dear Nagendra,=0D =0D Still same error no change...!=0D Still I am not getting where will be the problem..?=0D =0D Hey Nagendra..? r u indian..? where ur working..?=0D =0D I m indian working in Malysia..=0D =0D thanks 4 mail,=0D =0D Regds,=0D virupaksha=0D =0D Nagendra Kumar O V S wrote:=0D FLAVOR00-NONE-0000-0000-000000000000;hey,=0D u have saved ur dataObject to the request with the name "list" .=0D so ur jsp should look something like this=0D =0D =0D =0D =0D =0D =0D =0D =0D =0D =0D =0D Show =0D =0D =0D =0D =0D =0D check it out!!=0D =0D -- nagi=0D -------Original Message-------=0D =0D From: Struts Users Mailing List=0D Date: Tuesday, July 22, 2003 11:37:18 AM=0D To: sgeorge@sapient.com=0D Cc: struts-user@jakarta.apache.org=0D Subject: RE: error..!(Thnks Swaroop George)=0D =0D =0D Dear Swaroop,=0D =0D Thanks for ur response..!=0D =0D I just want to retrive data from the database using bean Dept.java,=0D I m not using any formbean here.just instantiating Dept bean in ListDepartmentAction.java and displaying using tag in jsp called DeptList= ing jsp. Action mapping has done in struts-config.xml.=0D but still, i m getting same error. can u help me out..?=0D =0D Model : Dept.java(to just retrive data from the database.)=0D Controller : ListDepartmentsAction.java(Instantiate class Dept )=0D View : DeptListing.jsp(iterate over bean and display)=0D =0D for ur ref. i m sending code again pls. find..=0D =0D im getting same error....=0D =0D Thank you once again..=0D please reply me....=0D =0D Regards,=0D virupaksha=0D =0D --------------------------------------------struts-config----------------= ---- ------------------------------=0D =0D =0D =0D =0D =0D =0D =0D =0D =0D =0D -------------------------------------------------------------------------= ---- -----------------------------------=0D =0D ---------------------------------------------DeptListing jsp---------------------------------------------=0D =0D =0D =0D =0D =0D =0D =0D =0D =0D =0D Show =0D =0D =0D =0D =0D -------------------------------------------------------------------------= ---- ---------------------------------=0D -------------------------------------------------ListDepartmentsAction java----------------------=0D package app;=0D import javax.servlet.http.HttpServletRequest;=0D import javax.servlet.http.HttpServletRequest;=0D import org.apache.struts.action.Action;=0D import org.apache.struts.action.ActionForward;=0D import org.apache.struts.action.ActionMapping;=0D public class ListDepartmentsAction extends Action{=0D =0D public ActionForward perform(ActionMapping mapping,ActionForm form HttpServletRequest request,HttpServletResponse response) throws Exception= {=0D Dept dept =3D new Dept();=0D request.getSession().setAttribute("list",dept.getDepartments);=0D return mapping.findForward("listing");=0D }=0D }=0D -------------------------------------------------------------------------= ---- ---------------------------------=0D ------------------------------------------------------error--------------= ---- ---------------------------=0D =0D exception =0D javax.servlet.ServletException: Cannot find bean departments in scope nul= l at org.apache.jasper.runtime.PageContextImpl handlePageException(PageContextImpl.java:457) at org.apache.jsp DeptListing$jsp._jspService(DeptListing$jsp.java:187) at org.apache.jaspe= r runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet JspServlet$JspServletWrapper.service(JspServlet.java:202) at org.apache jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apac= he jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.h= ttp HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) = at org.apache.catalina.core.ApplicationFilterChain doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core StandardWrapperValve.invoke(StandardWrapperValve.java:243) at=0D org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline java:566) at org.apache.catalina.core.StandardPipeline invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBa= se invoke(ContainerBase.java:943) at org.apache.catalina.core StandardContextValve.invoke(StandardContextValve.java:201) at org.apache catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at o= rg apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:24= 6) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline java:564) at org.apache.catalina.core.StandardPipeline invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBa= se invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContex= t invoke(StandardContext.java:2344) at org.apache.catalina.core StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catali= na core.StandardPipeline.invokeNext(StandardPipeline.java:566) at=0D org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVal= ve java:170) at org.apache.catalina.core.StandardPipeline invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apa= che catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at o= rg apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) a= t org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at = org apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve java:163) at org.apache.catalina.core.StandardPipeline invokeNext(StandardPipeline.java:566) at org.apache.catalina.core StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina core.ContainerBase.invoke(ContainerBase.java:943) at=0D org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor java:1011) at org.apache.catalina.connector.http.HttpProcessor run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread java:536)----------------------------------------------------------------= ---- ---------------------------------------=0D =0D =0D =0D =0D ---------------------------------=0D Do you Yahoo!?=0D Yahoo! SiteBuilder - Free, easy-to-use web site design software=0D ____________________________________________________=0D IncrediMail - Email has finally evolved - Click Here =0D =0D =0D ---------------------------------=0D Do you Yahoo!?=0D Yahoo! SiteBuilder - Free, easy-to-use web site design software=0D =0D =0D ---------------------------------=0D Do you Yahoo!?=0D Yahoo! SiteBuilder - Free, easy-to-use web site design software --------------Boundary-00=_RG2F6RO0000000000000 Content-Type: Text/HTML; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
ooops, i am sorry it is session scope.. i overlooked
 
yes,virupaksha.. i am indian working in Hyderabad
 
-- nagi
 
-------Original Message-------<= /I>
 
From: Struts Users Mailing= =20 List
Date: Tuesda= y, July 22,=20 2003 12:36:11 PM
To: Struts Users Mailing= =20 List
Subject: RE:= =20 error..!(Thnks Swaroop George)
 
Hi
I agree with nagendra..
try=20 out
<logic:iterate id=3D"dept" name=3D"list"=20 scope=3D"session">
instead of=20
scope=3Drequest...
Thanks
Prashanth


virupaksha= hosamath=20 <virupakshah@yahoo.com<= /A>>=20 wrote:
Dear Nagendra,

Still same error no change...!
S= till I=20 am not getting where will be the problem..?

Hey Nagendra..? = r u=20 indian..? where ur working..?

I m indian working in=20 Malysia..

thanks 4=20 mail,

Regds,
virupaksha

Nagendra Kumar O V S=20 wrote:
FLAVOR00-NONE-0000-0000-000000000000;hey,
u have saved= ur=20 dataObject to the request with the name "list" .
so ur jsp shoul= d look=20 something like this











= Show=20





check it out!!

-- nagi
-------Ori= ginal=20 Message-------

From: Struts Users Mailing List
Date: Tues= day,=20 July 22, 2003 11:37:18 AM
To: sgeorge@sapient.com

Cc: = struts-user@jakarta.= apache.org
Subject:=20 RE: error..!(Thnks Swaroop George)


Dear Swaroop,

= Thanks=20 for ur response..!

I just want to retrive data from the data= base=20 using bean Dept.java,
I m not using any formbean here.just=20 instantiating Dept bean in ListDepartmentAction.java and displaying= using=20 tag in jsp called DeptListing.jsp. Action mapping has done in=20 struts-config.xml.
but still, i m getting same error. can u help= me=20 out..?

Model : Dept.java(to just retrive data from the=20 database.)
Controller : ListDepartmentsAction.java(Instantiate c= lass=20 Dept )
View : DeptListing.jsp(iterate over bean and display)
=
for=20 ur ref. i m sending code again pls. find..

im getting same=20 error....

Thank you once again..
please reply=20 me....

Regards,
virupaksha

-----------------------= ---------------------struts-config---------------------------------------= ------------










-----------------= -------------------------------------------------------------------------= -----------------------

------------------------------------------= ---DeptListing.jsp---------------------------------------------









Show=20




-----------------------------------------------= ----------------------------------------------------------------
-----= --------------------------------------------ListDepartmentsAction.java---= -------------------
package=20 app;
import javax.servlet.http.HttpServletRequest;
import=20 javax.servlet.http.HttpServletRequest;
import=20 org.apache.struts.action.Action;
import=20 org.apache.struts.action.ActionForward;
import=20 org.apache.struts.action.ActionMapping;
public class=20 ListDepartmentsAction extends Action{

public ActionForward=20 perform(ActionMapping mapping,ActionForm form,HttpServletRequest=20 request,HttpServletResponse response) throws Exception{
Dept dep= t =3D new=20 Dept();
request.getSession().setAttribute("list",dept.getDepartm= ents);
return=20 mapping.findForward("listing");
}
}
----------------------= -------------------------------------------------------------------------= ----------------
-----------------------------------------------------= -error----------------------------------------------

exception=20
javax.servlet.ServletException: Cannot find bean departments in= scope=20 null at=20 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageC= ontextImpl.java:457)=20 at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:= 187) at=20 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)= at=20 javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at=20 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspS= ervlet.java:202)=20 at=20 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java= :382)=20 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474= ) at=20 javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at=20 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Ap= plicationFilterChain.java:247)=20 at=20 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicatio= nFilterChain.java:193)=20 at=20 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrappe= rValve.java:243)=20 at
org.apache.catalina.core.StandardPipeline.invokeNext(Standard= Pipeline.java:566)=20 at=20 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.j= ava:472)=20 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :943)=20 at=20 org.apache.catalina.core.StandardContextValve.invoke(StandardContex= tValve.java:201)=20 at=20 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeli= ne.java:566)=20 at=20 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesVal= ve.java:246)=20 at=20 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeli= ne.java:564)=20 at=20 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.j= ava:472)=20 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :943)=20 at=20 org.apache.catalina.core.StandardContext.invoke(StandardContext.jav= a:2344)=20 at=20 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve= =2Ejava:164)=20 at=20 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeli= ne.java:566)=20 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorD= ispatcherValve.java:170)=20 at=20 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeli= ne.java:564)=20 at=20 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve= =2Ejava:170)=20 at=20 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeli= ne.java:564)=20 at=20 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.jav= a:462)=20 at=20 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeli= ne.java:564)=20 at=20 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.j= ava:472)=20 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :943)=20 at=20 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineV= alve.java:163)=20 at=20 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeli= ne.java:566)=20 at=20 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.j= ava:472)=20 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java= :943)=20 at
org.apache.catalina.connector.http.HttpProcessor.process(Http= Processor.java:1011)=20 at=20 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.= java:1106)=20 at=20 java.lang.Thread.run(Thread.java:536)------------------------------= -------------------------------------------------------------------------= -----




---------------------------------
Do=20 you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site desi= gn=20 software
____________________________________________________IncrediMail=20 - Email has finally evolved - Click Here=20


---------------------------------
Do you Yahoo!?
= Yahoo!=20 SiteBuilder - Free, easy-to-use web site design=20 software


---------------------------------
Do you=20 Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design=20 software
=09 =09 =09 =09 =09 =09 =09
____________________________________________________
  IncrediMai= l -=20 Email has finally evolved -
Click=20 Here
--------------Boundary-00=_RG2F6RO0000000000000--