• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:javasript strange problem.

 
Benson Fung
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic