File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:form pointing to some outside url ?

 
Michael Monroe
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic