wood burning stoves 2.0*
The moose likes JSP and the fly likes the two  forms in a single jsp .how can i differentiated inside a jsp file? 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 » Java » JSP
Bookmark "the two  forms in a single jsp .how can i differentiated inside a jsp file?" Watch "the two  forms in a single jsp .how can i differentiated inside a jsp file?" New topic
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: 538

Can you please explain clearly. Take some time, to constructively explain your problems/doubts..
Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 509
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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30764
    
156

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
 
Don't get me started about those stupid light bulbs.
 
subject: the two forms in a single jsp .how can i differentiated inside a jsp file?