aspose file tools
The moose likes JSF and the fly likes In JSF there is no form action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "In JSF there is no form action" Watch "In JSF there is no form action" New topic

In JSF there is no form action

Vimal Bharathi Andiappan

Joined: Jun 12, 2008
Posts: 7
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

Joined: Dec 06, 2005
Posts: 1321

Javaranch has a separate forum for JSF
[ August 05, 2008: Message edited by: Muhammad Saifuddin ]

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
R Ben Parsons

Joined: Aug 05, 2008
Posts: 9
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.


R. Ben Parsons<br />SCJA
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16537

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: In JSF there is no form action