This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 507

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: 498
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: 29237
    
139

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: the two forms in a single jsp .how can i differentiated inside a jsp file?
 
Similar Threads
the two forms in a single jsp .how can i differentiated inside a jsp file?
Cannot fetch data from arraylist
Firefox doesnt find my File : Beer Selection Problem
senRedirect how to diferntiate in the different jsp file?
Not able to set attribute in JSP