aspose file tools*
The moose likes Struts and the fly likes html:form pointing to some outside url ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:form pointing to some outside url ? " Watch "html:form pointing to some outside url ? " New topic
Author

html:form pointing to some outside url ?

Michael Monroe
Greenhorn

Joined: Feb 27, 2007
Posts: 1
Is it possible to use <html-form -tag to send the form to some outside URL?

For example:


At the moment the only workaround I have figured out is to use normal <form>-tags like this:



Anyway I would prefer to use struts-tags + formbean for this. Any ideas?

Thanks,
- Mike
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
No, there isn't a way to use an <html:form> tag to refer to an outside URI. Think about it: If the action attribute doesn't refer to an action path, how is Struts going to associate a form bean with it? Even if it could, a form bean can't be passed to an outside link anyway.

The only solution I'm aware of is to do what you're already doing: Use the standard HTML tags.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:form pointing to some outside url ?
 
Similar Threads
not getting bean values in action class?
Problem in Creating Dynamic Link from Display Table
passing formBeans to tiles...
textbox values in the action..
can somebody take a look at my struts--config file?