File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

In JSF there is no form action

 
Vimal Bharathi Andiappan
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to JSF, before that i am working in JSP and Struts.In Jsp page Form tag having action method but in JSF there <h:form> there is no action attribute instead of action what method i wants to use in JSF and forward my page into Servlet class.
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Javaranch has a separate forum for JSF
[ August 05, 2008: Message edited by: Muhammad Saifuddin ]
 
R Ben Parsons
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vimal,

Instead of a form action, attach an action to your submit mechanism (usually a button or a link) and put the method in your pagecode.

e.g.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17627
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The architecture of Struts is basically a flow-of-control model, where you chain forms and actions.

The architecture of JSF is more of an MVC model, where the same form is worked with until one of the action methods interacts with the framework to display a different form.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic