This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hidden variable

 
michell o'brien
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the "menlist" bean have a "category_name" property?
 
michell o'brien
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah guys can anyone tell me where I am going wrong.
 
michell o'brien
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AtLast got it.
I had interchanged the paramId and paramName.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic