• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with submiting the page in Strurs 1

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have designed an action class which redirects the user according to the link clicked e.g. /action/employee.do?cmd=create redirects to insert employee page and /action/employee.do?cmd=edit redirects to Edit Employee page. the following lines shows the struts-config.xml entries
I cannot submit both the pages of Create employee as well as Edit Employee i have checked it by the following code in execute methods of CreateProfile as well as EditProfile

I can't get the line printed
and it shows the Insert and Edit Page back even after clicking the submit button
Please Help Me
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


you are checking on createProfile action while first time when you clicking on create it forwarding to createprofile.jsp page by the Employee action not bye the CreateProfile class.

and please post the code of action classes.
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your config file, the path is /actions/employee and you are writing that you are saying that the request goes to /action/employee.do (there is no s in action here). Also are you returning create or edit mapping from the employee action. If yes, then that will take you directly to JSP page not to actions (as you've configured in your config file)...
 
vivek mahajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Friends I got the solution. Now its working fine
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic