aspose file tools*
The moose likes Struts and the fly likes Problem in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem in Struts" Watch "Problem in Struts" New topic
Author

Problem in Struts

Naresh Rajan
Ranch Hand

Joined: Sep 08, 2005
Posts: 45
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


Am not a pro and thats why am here!!!
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Its here mate, http://www.coderanch.com/forums/f-58/Struts
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
So I have moved it.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Samuel Cox
Ranch Hand

Joined: Nov 16, 2004
Posts: 96

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

Joined: Aug 05, 2004
Posts: 14
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Struts