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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: html:javasript strange problem.