aspose file tools*
The moose likes Struts and the fly likes html:javasript strange problem. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:javasript strange problem." Watch "html:javasript strange problem." New topic
Author

html:javasript strange problem.

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
Dear sir,

I have a jsp page with html:javascript. However, it cannot generate the javascript code to do validation. Here is the code :

in jsp :

<html:form method="post" action="/custord/createCO1" focus="custNum"
onsubmit="return validatePrepareCOForm(this);">
...
<html:javascript formName="prepareCOForm" dynamicJavascript="true" staticJavascript="false"/>


The form bean name is described in struts-co-config.xml. Becasue we have different modules. struts-co-config.xml is for one of the module. That's why the form bean name is defined in this xml file. I suspect this form bean name is not defined in the default struts-config.xml. That's why it cannot generate the validation javascript to do validation.

Do anyone have any idea how to fix it?


Thanks
Benson
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html:javasript strange problem.
 
Similar Threads
Server-side Struts Validation
DynaValidatorActionForm usage?
Struts 1.1 validation help on Requiredif
Validation
Client-side javascript validation not working with Struts