• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Struts

 
Naresh Rajan
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
and sorry to the moderator. could not find the Struts forum, so had to post it here.

Coming to my problem,

My application is working when i work in my workspace. When i deploy it on the common region, it is malfunctioning.

The exact problem is that I have a link that hits an action class and displays it in the next page using <bean:write>. I do this because there is no action in the next page as it is the last page. There is no duplication of name in my action-mappings too. The control goes till the reset method of the form class, but it does not go to the action class after that. Please explain me what the problem is. And am in a hurry. I have to release it by tommorow.


SOrry for demanding, but am in a great hurry

raghu
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its here mate, http://www.coderanch.com/forums/f-58/Struts
 
Frank Carver
Sheriff
Posts: 6920
 
Samuel Cox
Ranch Hand
Posts: 96
Scala Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not understanding your problem. Are you getting an exception? If so, what is it? If no exception, are you just not getting form values for the bean:write tags?

In the action that is going to redirect to your last jsp page, you should be able to place an object (bean or form I suppose) in the request scope.



Then in your last page, do:


This should work assuming you declare your taglibs correctly and have included the appropriate libraries with your app.
[ November 24, 2005: Message edited by: Samuel Cox ]
 
Srinivas Rao
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume that there is problem in the validate() method of the form bean. If the validate method will not return an empty ActionErrors collection, the request will not go to Action class and return to the JSP for which 'input' attribute set for the action.

To quickly identify this, modify the 'validate' attribute of the action in config, to 'false'. so your validate method will not be called. If still it is not going to Action class, some thing else is error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic