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 Struts Help urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Help urgent" Watch "Struts Help urgent" New topic
Author

Struts Help urgent

Manish Khindri
Greenhorn

Joined: Oct 28, 2003
Posts: 3
Hi Everbody,
I am new to struts. and the problem i am facing is that I have got one search screen from which when i click the link.I am submitting the form and setting the mode to update and setting the relevent criteria through hidden fields. Now my problem is that before loading the form i have to process some logic to fetch the information relevent to that criteria. Now i m checking the mode in my Action class and if it is 'update' mode then i am forwarding it to the action of my second Jsp's Action.
But i am getting the following exception
java.lang.IllegalArgumentException: No bean specified

i have stated the form-bean tag for both the Jsp.
Thanx in advance

Regards,
Manish
Rick Hightower
Author
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
When are you getting this error?
Can you send a copy of your action mappings from your struts config file?
Are you getting this when the second form tries to load?
The html:form tag looks at the action mapping associate with it in tries to load the action form associated with the action mapping.
Thus the action mapping that the html: form submits to pass to have a correctly set up name action form.
Send action mappings in the form bean declarations of your struts config well, and I will take look


Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Help urgent
 
Similar Threads
Will the setters be called
Jsp-page populated after succesful insert
get the ActionForm property value into a java variable from JSP
(with out using form bean can i enter action class)
Action Form