This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32481
    
214

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


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63195
    
  69

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: html:form question
 
It's not a secret anymore!