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

Can i use java class in action attribute in form tag of jsp page?

 
ehsan ulhaq dar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i use java class in action attribute in form tag of jsp page? If yes then how i get the parameter from the jsp page? Like if we use jsp page in action attribute of form tag we use request.getParameter("controlName"), how can we get in java page??
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ehsan ulhaq dar:
Can i use java class in action attribute in form tag of jsp page? If yes then how i get the parameter from the jsp page?


why you want to do this? infact servlet is nothing but java class
 
ehsan ulhaq dar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i want to use java class instead of jsp page which i am using currently, actually i forget servlet option that is also fine. Thanks seetharaman venkatasamy
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The action attribute of an HTML form tag needs to be a URL.

On the server side, you can map servlets and JSPs to urls with the servlet-mapping entry in your web.xml file (deployment descriptor).
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ehsan ulhaq dar:
Actually i want to use java class instead of jsp page which i am using currently


is it runing?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic