aspose file tools*
The moose likes Struts and the fly likes html:form question 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 » Frameworks » Struts
Bookmark "html:form question" Watch "html:form question" New topic
Author

html:form question

Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Andy,
Does that mean you want to have the action go to a URL outside your Struts application?


[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
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Andy Hahn
Ranch Hand

Joined: Aug 31, 2004
Posts: 225
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:form question
 
Similar Threads
html:option tag and Hashtable..is it possible
Struts-Faces Integration library: Does it work?
html:form pointing to some outside url ?
Prevent Duplicate Logins
MULTIPART/FORM-DATA