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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with submiting the page in Strurs 1" Watch "Problem with submiting the page in Strurs 1" New topic
Author

Problem with submiting the page in Strurs 1

vivek mahajan
Greenhorn

Joined: Jun 18, 2009
Posts: 22
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
Ranveer K Kumar
Ranch Hand

Joined: Sep 13, 2009
Posts: 64


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.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9305
    
  17

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)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
vivek mahajan
Greenhorn

Joined: Jun 18, 2009
Posts: 22
Thanks Friends I got the solution. Now its working fine
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with submiting the page in Strurs 1