struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From virupaksha hosamath <virupaks...@yahoo.com>
Subject RE: error..!(Thnks Swaroop George)
Date Tue, 22 Jul 2003 08:04:32 GMT
Dear Prashanth,
 
I tried out for scope ="session" ,still the error is same..
..
 
thanks 4 ur response..
 
thanks..
 
rgds,
virupaksha

"Prashanth.S" <suman291857@yahoo.com> wrote:
Hi
I agree with nagendra..
try out

instead of 
scope=request...
Thanks
Prashanth


virupaksha hosamath wrote:
Dear Nagendra,

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

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

I m indian working in Malysia..

thanks 4 mail,

Regds,
virupaksha

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











Show 





check it out!!

-- nagi
-------Original Message-------

From: Struts Users Mailing List
Date: Tuesday, July 22, 2003 11:37:18 AM
To: sgeorge@sapient.com
Cc: struts-user@jakarta.apache.org
Subject: RE: error..!(Thnks Swaroop George)


Dear Swaroop,

Thanks for ur response..!

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

Model : Dept.java(to just retrive data from the database.)
Controller : ListDepartmentsAction.java(Instantiate class Dept )
View : DeptListing.jsp(iterate over bean and display)

for ur ref. i m sending code again pls. find..

im getting same error....

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

Regards,
virupaksha

--------------------------------------------struts-config---------------------------------------------------










-----------------------------------------------------------------------------------------------------------------

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










Show 




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

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

exception 
javax.servlet.ServletException: Cannot find bean departments in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
at org.apache.jsp.DeptListing$jsp._jspService(DeptListing$jsp.java:187) at org.apache.jasper.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.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.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
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 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
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.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.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.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at 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
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)------------------------------------------------------------------------------------------------------------




---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
____________________________________________________
IncrediMail - Email has finally evolved - Click Here 


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


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


---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message