Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:form question

 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If I use the html:form tag in my JSP:



the HTML that gets rendered looks like this:



But what if I want the rendered html to look like this:



Is it possible to do this with the html:form tag?

Thanks!
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andy,
Does that mean you want to have the action go to a URL outside your Struts application?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65339
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I may be wrong, but it looks like the tag is automatically prefixing the context path on your behalf. Why would you not want it to do that? Without it, the URL will not work to reference any but the root application.
 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the tag is automatically prefixing the context path on my behalf. The reason I want to do this is because of how the apache web server is configured and routes requests.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic