This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Problem setting TD tag innerHTML
Retrieve data from other server using JavaScript
Struts2 variable inside javascript
How to display only single radio button checked by using onload method?
help with validation/ 2 functions on submit.