wood burning stoves 2.0*
The moose likes JForum and the fly likes Form Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Form Action" Watch "Form Action" New topic
Author

Form Action

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi,
I defined a form in this way:



In the file urlPattern.properties I defined:


In the moduleMappings.properties I defined:


When I click on the button the submit is executed and I receive the message:

HTTP Status 404 -

description The requested resource () is not available.


What do I wrong?
If I set the button type as button (and not as submit) and I call a function on click, in this way:



In this way the corect Action is invoked (after I have set in urlPattern.properties: importaUtenti.inserisciUtenti.0 = ).
why?
Another problem is the upload of the file in the form (as I said in a previous topic).

Could someone help me?
Thanks, bye bye.
[originally posted on jforum.net by abdujaparov]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Not totally sure but I don't think you can mix the "URL" format with the parameter format. Try:

.../importaUtenti/inserisciUtenti/<group_id>/<fileUtenti.value>.page

Where group_id is just the number and fileUtenti is what ever that value is.

Also, the module and parameter files are cached in memory. You'll probably have to restart jforum anytime you make a change there.
[originally posted on jforum.net by monroe]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Form Action