Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the two forms in a single jsp .how can i differentiated inside a jsp file?

 
karthik ekantha
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 667
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please explain clearly. Take some time, to constructively explain your problems/doubts..
 
Saurabh Pillai
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic