It's not a secret anymore!*
The moose likes JSF and the fly likes JSF, strange form action generated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF, strange form action generated" Watch "JSF, strange form action generated" New topic
Author

JSF, strange form action generated

Jochen Szostek
Ranch Hand

Joined: Mar 23, 2008
Posts: 42

Hello all,

I'm having a problem with the JSF form action.

My spring controller is mapped to /users/form.html GET and POST requests:



But JSF generates an action to "/www.appletree.be/WEB-INF/views/en_GB/users/form.html":



So my controller doesn't pick up the action of the form.

If I use firebug to change the action (in firefox) to /users/form.html the action does get picked up as it should by my controller.

I'm using Spring Web Flow btw to my flow handling but I guess this hasn't got anything to do with my issue.

All tips more than welcome since I'm a bit lost here!

Thanks in advance and have a nice day!
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
I would suspect Spring rather than JSF. It is Spring who specified the form action and passed it to the JSF. Try a Spring forum.
 
 
subject: JSF, strange form action generated
 
Similar Threads
Within the infrastruture - How to and Where - to intercept HTTP request and to send HTTP response?
@Controller annotation query
controller with Spring annotation ?
spring MVC 3 binding help
Spring MVC: Getting resource not available for one Request Mapping while its working for the others.