This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Strange submit on a JSP page 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 » Frameworks » Struts
Bookmark "Strange submit on a JSP page" Watch "Strange submit on a JSP page" New topic

Strange submit on a JSP page

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 311
I have images with onclick that call a function toggle node with an integer value that identifies the particular image. The function sets the value in a hidden box and submits the form. The problem is that when I click on an image the toggle function is not being called (an alert in the function is not displayed). However, the form is submitted and the struts form object receives the value of the hidden box which is the default value. I tried to include the HTML text replacing the angle brackets with the suggested strings but still got an error on the post.

Your help will be greatly appreciated,
Alejandro Barrero
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Strange submit on a JSP page