Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts and Validator  RSS feed

Oscar Diaz
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on Struts 1.1, I have a logon page running smoothly with Validator even with the client side validation, this part is OK since initially I don't have to retrieve any info from the database.
But I have an issue with an editing section:
A client click on an Enterview ID for editing purposes.
I execute an Action that retrieve all the enterview's data from a database and then I redirect the action to my editing page and I get the following.
at org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag( at org.apache.jsp.enterv_ins_edit_jsp._jspx_meth_html_javascript_0( org.apache.jsp.enterv_ins_edit_jsp._jspService( org.apache.jasper.runtime.HttpJspBase.service(
at javax.servlet.http.HttpServlet.service(

When the final servlet is rendered, this is the problematic-line 665 described above:
int _jspx_eval_html_javascript_0 = _jspx_th_html_javascript_0.doStartTag();
this is the code associated to enterv_edit.jsp, that has the problem:
<html:javascript formName="dynEntReviewForm"/>
these are the actions in my struts-admin.xml
<!--this action retrieve the data from my DB-->
<action path="/adm_edit_enterviews"
scope="request" validate="false">
<forward name="ent" path="/enterv_edit.jsp" redirect="false"/> </action>
<!--this action update the data to my DB-->
<action path="/adm_upd_enterviews"
<forward name="ent" path="/" redirect="false"/> </action>
This is the Dynamic form
<form-bean name="dynEntReviewForm"
<form-property name="type_id" type="java.lang.Integer"/>
<form-property name="desc_txt" type="java.lang.String"/>
If I eliminate the javascript tag in my jsp page, then I get the display page but the validator doesn't work.
I have tried for 2 days but I am already dumb with this issue,
any help will be appreciated
Jessica Sant
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We've got a whole forum dedicated to Struts! -- So I'm moving this over there.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!