Hola,

I must be a dope (I hope, at least, otherwise I'm screwed! :)

The validation is, in fact, working (log statements in action class),
but on a validation error I don't see the input page. When there are no
validation issues the Action properly forwards to the "success" forward.

To get to the initial form page I go to /real1tmp.jsp. The /real1tmp.jsp
file uses really simple tiles stuff, if that's possibly part of the
issue I can throw those out here too.

I don't know if it matters, but the tile definition used by
/real1tmp.jsp uses content under the WEB-INF directory to avoid whatever
security/hierarchy viewing/etc. issues are caused by having all the JSPs
in the main document root. The body of /real1tmp.jsp is also under the
WEB-INF directory.

Anyway, the form is being properly validated. When I had debugging
turned on it stated that it was, in fact, returning to /real1tmp.jsp,
but all I saw was <html><body></body></html>, which is also what I see
if I go to /real1.do on a server restart (I was just curious).

I'm using the latest Resin Enterprise build but couldn't find anything
there about anything even remotely approaching this issue.

Here are what I hope are the relevant config fragments...

<!-- real1form from struts-config.xml -->
<form-bean
name="real1form"type="org.apache.struts.validator.DynaValidatorActionForm">
  <form-property name="email"    type="java.lang.String"/>
  <form-property name="fname"    type="java.lang.String"/>
  <form-property name="lname"    type="java.lang.String"/>
  <form-property name="addr1"    type="java.lang.String"/>
  <form-property name="addr2"    type="java.lang.String"/>
  <form-property name="city"     type="java.lang.String"/>
  <form-property name="state"    type="java.lang.String"/>
  <form-property name="province" type="java.lang.String"/>
  <form-property name="country"  type="java.lang.String"/>
</form-bean>

<!-- action mapping from struts-config.xml -->
<action path="/real1"
        type="com.solaraccess.action.Real1Action"
        name="real1form"
       input="/real1tmp.jsp"
       scope="request"
    validate="true">
  <forward name="success" path="/index.jsp" redirect="true"/>
</action>

<!-- validation rules from validation.xml -->
<!-- name is from action mapping, so can reuse dynavalform -->
<form name="/real1">
  <field property="email" depends="required,email">
    <arg0 key="real1form.email.prompt"/>
  </field>
  <field property="fname" depends="required">
    <arg0 key="real1form.fname.prompt"/>
  </field>
  <field property="lname" depends="required">
    <arg0 key="real1form.lname.prompt"/>
  </field>
</form>

Any other info necessary can be provided (barring the obvious credit
card number ploys :) Somebody please help so I can have lunch. I'm very
hungry.

Thanks much,
Dave Newton



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to