| Author |
the two forms in a single jsp .how can i differentiated inside a jsp file?
|
karthik ekantha
Ranch Hand
Joined: Feb 08, 2012
Posts: 78
|
|
there is one jsp file inside a two form .
1)how can i differentiated inside a jsp file ???
2)how can differentiate in index.html
suggest give ideas
this is index.html
|
 |
Prasad Krishnegowda
Ranch Hand
Joined: Apr 25, 2010
Posts: 503
|
|
|
Can you please explain clearly. Take some time, to constructively explain your problems/doubts..
|
Regards, Prasad
SCJP 5 (93%)
|
 |
Saurabh Pillai
Ranch Hand
Joined: Sep 12, 2008
Posts: 449
|
|
Why do you want two forms in one JSP?
-> User comes to index.jsp
-> Based on need, she clicks on either 'New Connection' or 'Recharge' or 'Disconnect'.
-> Depends on clicked link, you take user to different/independent JSP page. Use Servlet/Controller to display particular JSP.
Good Luck!
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26173
|
|
Those are two entirely different web pages. They can go in different JSPs. And of course they have a different path for submission.
The time to put two forms in one JSPs is when they both get displayed. That's when you use a form id/name and point to a different path for submission.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: the two forms in a single jsp .how can i differentiated inside a jsp file?
|
|
|