File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Struts Help urgent

Manish Khindri

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

Rick Hightower
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:
subject: Struts Help urgent
It's not a secret anymore!