• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Problem in Struts

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its here mate, https://coderanch.com/forums/f-58/Struts
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I have moved it.
 
Ranch Hand
Posts: 96
Scala VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
He does not suffer fools gladly. But this tiny ad does:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic