File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes unable to get next form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "unable to get next form " Watch "unable to get next form " New topic
Author

unable to get next form

madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi,
in my application i m using Struts2..i had designed a form..in it i m using..by clicking 'Next' button it should open other page in the same form..i need that in another page..but im not getting.Here is the code can any one provide me the solution.

any help...its urgent
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

This is really an HTML/JavaScript question, so I'll move it there.

However, unless you're default to the "simple" Struts 2 theme, this won't even render valid HTML. You'd be much, much better off posting a Short, Self Contained, Correct, Example that demonstrates the problem and moving on from there. Right now it looks like *neither* div will be displayed, though.
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi David,
i need to hide the form fields..that means i want to display some fields in the form..if i click Next button then remaining fields should appear..but im not getting it..can you tell me how to do..and where the code goes wrong
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
i had removed scripts..eventhough it is not getting hide..is there any method to do
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Step 1: Post an SSCCE representative of the HTML being rendered. NOT ALL OF IT. Just enough to show the problem.
Step 2: Post your current JavaScript.
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
rendered html

javascript is
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi,
i had changed my code as follows..eventhough im not getting.i used <s:submit> tag and used javascript but not getting

any help
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
i had checked the code with normal jsp coding...it is working what i need..but when im using in struts2.im not getting..any help..its urgent
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: unable to get next form
 
Similar Threads
problem in alignment of the content
unable to do validation for select in struts2
problem in printing the values
how to delete multiple browse
Showing Hiding <s:div> tag in Struts2