File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Hidden variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hidden variable" Watch "Hidden variable" New topic
Author

Hidden variable

michell o'brien
Ranch Hand

Joined: Jun 09, 2009
Posts: 37
Hi

I am using struts. I want to pass a hidden variable to my action class.



But when I run my menu.jsp i get this error saying category_name canno tbe found in any scope.

org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "category_name" in any scope
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)


Can anybody say me what mistake I am doing
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Does the "menlist" bean have a "category_name" property?
michell o'brien
Ranch Hand

Joined: Jun 09, 2009
Posts: 37
Hello Mr.Newton Nice to hear from you back.

Yes, menlist does have category. Let me be more clear by pasting my code

Menform.java




And my Mencategoryaction.java should get that hidden parameter.


michell o'brien
Ranch Hand

Joined: Jun 09, 2009
Posts: 37
Yeah guys can anyone tell me where I am going wrong.
michell o'brien
Ranch Hand

Joined: Jun 09, 2009
Posts: 37
AtLast got it.
I had interchanged the paramId and paramName.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hidden variable
 
Similar Threads
Iterator problem
Using bean:write with html:link
problem in displaying the list
problem with displaying menu
problem with Getter Method