Validation - how to get form field names with validation errors

2006-02-01 Thread Karthik Manimaran
Hi,

I am using the following to display all the validation errors in a form.


 
 
 


How can I get the form field names that correspond to each of the errors
reported or atleast a list of all form fields that have an error.

Thanks and regards,
Karthik.


Struts Layout query

2006-02-01 Thread Karthik Manimaran
Hi,

I want to display the labels of the form fields with error in red. I want to
avoid the conditional statement to insert the attribute-value pair of
'class="Error"' in the td tag.


First Name:





Can this scenario be simplified using Struts Layout? Is yes, any
pointers/examples?

Extending the above scenario, is there a way to automatically display *
(asterisk) in front of fields with errors.

Thanks and regards,
Karthik.


Re: Validator-rules.xml

2006-01-30 Thread Karthik Manimaran
Got it from Struts 1.1 distribution.

On 1/30/06, Karthik Manimaran <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Where can I get validator-rules.xml corresponding to struts 
> 1.0.2corresponding to
> *http <http://jakarta.apache.org/commons/dtds/validator_1_0_1.dtd>*://*
> jakarta*.*apache *.*org*/*commons*/*dtds*/*validator_1_0_1*.*dtd*
> **
> *Thanks and regards,*
> *Karthik.*
>


Validator-rules.xml

2006-01-30 Thread Karthik Manimaran
Hi,

Where can I get validator-rules.xml corresponding to struts
1.0.2corresponding to
*http*://*jakarta*.*apache*.*org*/*commons*/*dtds*/*validator_1_0_1*.*dtd
*
**
*Thanks and regards,*
*Karthik.*


Re: Validation Issue

2006-01-30 Thread Karthik Manimaran
 I used the latest version of validator jar (commons-validator-1.2.0.jar). I
had to update struts.jar also and the TLDs from an earlier version to the
latest version for validator to work fine. Now I am  getting the following
exception.

[1/30/06 16:51:29:689 EST] 759dc768 InsertTag E
org.apache.struts.taglib.tiles.InsertTag TRAS0014I: The following exception
was logged javax.servlet.ServletException
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(
JspServlet.java:416)

I find the following difference between the old struts-tiles tld and the new
one.


Compare: (<)C:\NGENWS\PrivacyWeb\WebContent\WEB-INF\struts-tiles.tld (7841
bytes)
   with: (>)C:\Documents and
Settings\nbdau6i\Desktop\DotComEar\PrivacyWeb\WEB-INF\struts-tiles.tld (7849
bytes)

11,14c11,14
< 1.2
< 1.1
< tiles
< http://struts.apache.org/tags-tiles
---
> 1.0
> 1.1
> tiles
> http://jakarta.apache.org/struts/tags-tiles

Stack Trace:

[1/30/06 16:51:29:638 EST] 759dc768 InsertTag E
org.apache.struts.taglib.tiles.InsertTag ServletException in
'/jsp/privacy/reporting.jsp': null

[1/30/06 16:51:29:689 EST] 759dc768 InsertTag E
org.apache.struts.taglib.tiles.InsertTag TRAS0014I: The following exception
was logged javax.servlet.ServletException

at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(
JspServlet.java:416)

at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(
JspServlet.java:669)

at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java
:767)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(
StrictServletInstance.java:110)

at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(
StrictLifecycleServlet.java:174)

at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(
StrictLifecycleServlet.java:333)

at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(
StrictLifecycleServlet.java:116)

at com.ibm.ws.webcontainer.servlet.ServletInstance.service(
ServletInstance.java:283)

at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(
ValidServletReferenceState.java:42)

at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(
ServletInstanceReference.java:40)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:978)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(
WebAppRequestDispatcher.java:564)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(
WebAppRequestDispatcher.java:253)

at org.apache.jasper.runtime.JspRuntimeLibrary.include(
JspRuntimeLibrary.java:991)

at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java
:470)

at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)

at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)

at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)

at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(
InsertTag.java:892)

at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)

at org.apache.jsp._HeaderBodyFooter._jspService(_HeaderBodyFooter.java:236)

at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java
:89)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(
JspServlet.java:344)

at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(
JspServlet.java:669)

at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java
:767)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(
StrictServletInstance.java:110)

at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(
StrictLifecycleServlet.java:174)

at com.ibm.ws.webcontainer.servlet.ServicingServletState.service(
StrictLifecycleServlet.java:333)

at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(
StrictLifecycleServlet.java:116)

at com.ibm.ws.webcontainer.servlet.ServletInstance.service(
ServletInstance.java:283)

at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(
ValidServletReferenceState.java:42)

at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(
ServletInstanceReference.java:40)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:978)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(
WebAppRequestDispatcher.java:564)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(
WebAppRequestDispatcher.java:253)

at org.apache.jasper.runtime.JspRuntimeLibrary.include(
JspRuntimeLibrary.java:991)

at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java
:470)

at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)

at org.apache.struts.

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
Yes. Tried the same and it works now.

I got a different problem now though.

The following action results in validation being called recursively
resulting in server crash.
  
   
   
  

If I remove the input attribute a server exception is thrown. How can I make
a page submit to itself on validation errors?


On 1/29/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> I am not saying this is your problem, but I've had  times where jar files
> get seemingly corrupted for no reason. I haven't  figured out why but at
> least twice a year a JAR file just dies on me.  Try reinstalling Struts and
> copy the default validation files out and  start from there.
>
> Paul
>
>
>
> -
> Do you Yahoo!?
> With a free 1 GB, there's more in store with Yahoo! Mail.
>


Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
I get the following error:

[1/29/06 17:35:13:701 EST] 4e5645a ValidatorPlug I
org.apache.struts.validator.ValidatorPlugIn Loading validation rules file
from '/WEB-INF/validator-rules.xml'

[1/29/06 17:35:13:721 EST] 4e5645a ServletInstan E SRVE0100E: Did not
realize init() exception thrown by servlet action:
javax.servlet.ServletException:
org/apache/commons/validator/ValidatorResourcesInitializer

[1/29/06 17:35:13:801 EST] 4e5645a WebGroup E SRVE0020E: [Servlet
Error]-[action]: Failed to load servlet: java.lang.NoClassDefFoundError:
org/apache/commons/validator/ValidatorResourcesInitializer
The jar file of the latest release of commons-validator doesnt contain the
class ValidatorResourcesInitializer. What am i missing here?

Stack trace is given below:

[1/29/06 17:35:13:701 EST] 4e5645a ValidatorPlug I
org.apache.struts.validator.ValidatorPlugIn Loading validation rules file
from '/WEB-INF/validator-rules.xml'

[1/29/06 17:35:13:721 EST] 4e5645a ServletInstan E SRVE0100E: Did not
realize init() exception thrown by servlet action:
javax.servlet.ServletException:
org/apache/commons/validator/ValidatorResourcesInitializer

at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(
StrictServletInstance.java:99)

at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(
StrictLifecycleServlet.java:147)

at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(
StrictLifecycleServlet.java:270)

at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(
StrictLifecycleServlet.java:113)

at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java
:189)

at javax.servlet.GenericServlet.init(GenericServlet.java:258)

at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(
WebAppServletManager.java:870)

at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(
WebAppServletManager.java:224)

at com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(
WebAppServletManager.java:455)

at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java
:652)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(
WebAppRequestDispatcherInfo.java:187)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.(
WebAppRequestDispatcherInfo.java:68)

at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java
:1462)

at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java
:1421)

at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(
WebAppInvoker.java:268)

at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(
CachedInvocation.java:71)

at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(
ServletRequestProcessor.java:182)

at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(
OSEListener.java:334)

at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(
HttpConnection.java:56)

at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java
:618)

at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

 Begin backtrace for Nested Throwables

java.lang.NoClassDefFoundError:
org/apache/commons/validator/ValidatorResourcesInitializer

at org.apache.struts.validator.ValidatorPlugIn.initResources(
ValidatorPlugIn.java:222)

at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java
:161)

at org.apache.struts.action.ActionServlet.initModulePlugIns(
ActionServlet.java:1158)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)

at javax.servlet.GenericServlet.init(GenericServlet.java:258)

at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(
StrictServletInstance.java:82)

at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(
StrictLifecycleServlet.java:147)

at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(
StrictLifecycleServlet.java:270)

at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(
StrictLifecycleServlet.java:113)

at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java
:189)

at javax.servlet.GenericServlet.init(GenericServlet.java:258)

at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(
WebAppServletManager.java:870)

at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(
WebAppServletManager.java:224)

at com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(
WebAppServletManager.java:455)

at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java
:652)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(
WebAppRequestDispatcherInfo.java:187)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.(
WebAppRequestDispatcherInfo.java:68)

at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java
:1462)

at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java
:1421)

at com.ibm.ws.

Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
Hi,

I tried this. Using debug info I can see that the validate method is being
called. But no errors are being returned.

Thanks and regards,
Karthik.


On 1/29/06, Angelo zerr <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Name of form into validation.xml is the path of your Action
> and not the name of your Action :
>
> 
> 
>
> 
> 
>
>
> Declare in your AplicationResources
> (see example into validator-rules.xml)
>
> errors.required={0} is required.
> privacyPrefForm.strFirstName=First name
>
> Regards
> Angelo
>
>
> 2006/1/29, Karthik Manimaran <[EMAIL PROTECTED]>:
> >
> > This is the form definition
> >   
> >   
> >
> > The JSP file is as follows:
> > <%@ page language="java" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> >
> >  > method="post">
> >
> > 
> > Errors Not Present
> > 
> >
> > 
> > > styleId="strFirstName"/>
> > 
> >
> >
> > On 1/29/06, Richard Yee <[EMAIL PROTECTED]> wrote:
> > >
> > > What is the form definition for privacyPrefForm? Where is the tag for
> > > your strFirstName field in your form?
> > >
> > > Are you using a debugger at all?
> > >
> > > -Richard
> > >
> > >
> > > Karthik Manimaran wrote:
> > > > Hi,
> > > >
> > > > I am using the validator framework for form validation. Validation
> > > doesnt
> > > > seem to happen and no error messages are displayed. However the form
> > is
> > > > getting pre-populated with the user input. Can anyone tell me what I
> > am
> > > > missing here?
> > > >
> > > > struts-config.xml
> > > > -
> > > >> > > name="privacyPrefForm" scope="request" validate="true">
> > > >
> > > >
> > > >   
> > > > ...
> > > >  
> > > >   
> > > >  
> > > >
> > > > validation.xml
> > > > -
> > > > 
> > > >
> > > >  > > >   "-//Apache Software Foundation//DTD Commons Validator
> Rules
> > > > Configuration 1.1.3//EN"
> > > >   "
> http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd
> > ">
> > > >
> > > > 
> > > > 
> > > > 
> > > >  > > > depends="required">
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > JSP file:
> > > > ---
> > > >
> > > > <%@ page language="java" %>
> > > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> > > >
> > > >  > > > method="post">
> > > > 
> > > > 
> > > >
> > > > 
> > > >
> > > > I am using the validator-rules.xml that comes with struts
> > distribution.
> > > >
> > > > Thanks and regards,
> > > > Karthik
> > > >
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
>


Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
This is the form definition
  
  

The JSP file is as follows:
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>




Errors Not Present



   



On 1/29/06, Richard Yee <[EMAIL PROTECTED]> wrote:
>
> What is the form definition for privacyPrefForm? Where is the tag for
> your strFirstName field in your form?
>
> Are you using a debugger at all?
>
> -Richard
>
>
> Karthik Manimaran wrote:
> > Hi,
> >
> > I am using the validator framework for form validation. Validation
> doesnt
> > seem to happen and no error messages are displayed. However the form is
> > getting pre-populated with the user input. Can anyone tell me what I am
> > missing here?
> >
> > struts-config.xml
> > -
> >> name="privacyPrefForm" scope="request" validate="true">
> >
> >
> >   
> > ...
> >  
> >   
> >  
> >
> > validation.xml
> > -
> > 
> >
> >  >   "-//Apache Software Foundation//DTD Commons Validator Rules
> > Configuration 1.1.3//EN"
> >   "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd";>
> >
> > 
> > 
> > 
> >  > depends="required">
> > 
> > 
> > 
> > 
> > 
> >
> > JSP file:
> > ---
> >
> > <%@ page language="java" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> >
> >  > method="post">
> > 
> > 
> >
> > 
> >
> > I am using the validator-rules.xml that comes with struts distribution.
> >
> > Thanks and regards,
> > Karthik
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Validation Issue

2006-01-29 Thread Karthik Manimaran
I tried subclassing both ValidatorForm and ValidatorActionForm and it still
doesnt work. Checked the properties too. I even tried using a custom error
message using resource="false"

This is always evaluating to true even if I submit the form with errors.

Errors Not Present



On 1/29/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> Make sure you're using the right validator class. The ValidatorForm keys
> off the formname,
> ValidatorActionForm keys off the action name. This has happened to me
> before. Also make sure your
> properties are named the same.
>
> Paul
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Validation Issue

2006-01-29 Thread Karthik Manimaran
Hi,

I am using the validator framework for form validation. Validation doesnt
seem to happen and no error messages are displayed. However the form is
getting pre-populated with the user input. Can anyone tell me what I am
missing here?

struts-config.xml
-
  
   
   
  
...
 
  
 

validation.xml
-


http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd";>











JSP file:
---

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>







I am using the validator-rules.xml that comes with struts distribution.

Thanks and regards,
Karthik


Re: Form pre-fill issue

2006-01-28 Thread Karthik Manimaran
Works perfect. Thanks a lot.

regards,
Karthik.


On 1/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
> You might try taking the type, name, and method attributes out of the
> html:form tag.  In particular, the name and type attributes are meant to
> specify the request ( or maybe session ) scoped object with which this form
> should work.  If you mean to work with the action form that is defined in
> your struts config file, then there's no purpose to these attributes; the
> html:form tag gets this information from the info it can lookup based upon
> its action attribute.  If you take these out, you eliminate a fair bit of
> troubleshooting at the least.  And you haven't cut out any functionality
>
>
>
>
> --- On Sat 01/28, Karthik Manimaran < [EMAIL PROTECTED] > wrote:
> From: Karthik Manimaran [mailto: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Date: Sat, 28 Jan 2006 02:01:39 -0500
> Subject: Form pre-fill issue
>
> Hi,Form data is not getting pre-filled on submission. Can anyone tell me
> thereason?JSP - included from def.jsp-<%@ page language="java" %><%@
> taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><%@ taglib
> uri="/WEB-INF/struts-bean.tld" prefix="bean" %> action="/Control.do?body=privacysecur_set_privacy_pref"method="post"name="privacyPrefForm"
> type="PrivacyPreferencesBean"> property="strFirstName"/>submit
> PrivacyPreferencesBean.java*public**class*
>  PrivacyPreferencesBean *extends* ActionForm {***private* String
> strFirstName;***public String getStrFirstName() {return
> strFirstName;}**public void setStrFirstName(String string) {strFirstName =
> string;}**}**Entries in Struts-config.xml*   name="privacyPrefForm" type="
> com.bofa.ecomm.snf.web.privacy.PrivacyPreferencesBean"> path="/Control"
> type="com.bofa.ecomm.snf.web.global.Control"name="privacyPrefForm"
> scope="request" validate="true">path="/jsp/global/def.jsp"/>  Thanks and regards,Karthik.**
>
> ___
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Form pre-fill issue

2006-01-28 Thread Karthik Manimaran
 The bean property however is getting printed when jsp tags are used as
shown below. But html:text tag doesnt populate the value.

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>





"/>

submit




On 1/28/06, Karthik Manimaran <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Even after giving the fully qualified class name it doesn't work.
>
> Thanks and regards,
> Karthik.
>
>
>  On 1/28/06, Debendra Barik <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> > its appearing that you are using the type attribute inside the
> >  tag, its ok but you have to give fully qualified class name of
> > the ActionForm which you are using in the form-bean section of your
> > struts-config.xml.
> > that is type="com.bofa.ecomm.snf.web.privacy.PrivacyPreferencesBean"
> > Note: type attribute is optional so you can omit it if you want.
> > Try it, i think your problem will be solved. see i have changed your
> > code.
> > -
> > <%@ page language="java" %>
> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> >  > method="post"
> > name="privacyPrefForm" type="
> > com.bofa.ecomm.snf.web.privacy.PrivacyPreferencesBean">
> > 
> > 
> > submit
> > 
> > 
> >
> > PrivacyPreferencesBean.java
> > 
> > *
> >
> > public* *class* PrivacyPreferencesBean *extends* ActionForm {*
> > **private* String strFirstName;*
> > **public String getStrFirstName() {
> > return strFirstName;
> > }
> > **public void setStrFirstName(String string) {
> > strFirstName = string;
> > }
> > **}*
> >
> > *Entries in Struts-config.xml*
> >
> > 
> > 
> >
> >  > name="privacyPrefForm" scope="request" validate="true">
> >   
> > 
> >
> > Let me know you if find your solution or not.
> > Thanks,
> > Debendra.
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
>


Re: Form pre-fill issue

2006-01-28 Thread Karthik Manimaran
Hi,

Even after giving the fully qualified class name it doesn't work.

Thanks and regards,
Karthik.


On 1/28/06, Debendra Barik <[EMAIL PROTECTED]> wrote:
>
> Hello,
> its appearing that you are using the type attribute inside the 
> tag, its ok but you have to give fully qualified class name of the
> ActionForm which you are using in the form-bean section of your
> struts-config.xml.
> that is type="com.bofa.ecomm.snf.web.privacy.PrivacyPreferencesBean"
> Note: type attribute is optional so you can omit it if you want.
> Try it, i think your problem will be solved. see i have changed your code.
> -
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
>  method="post"
> name="privacyPrefForm" type="
> com.bofa.ecomm.snf.web.privacy.PrivacyPreferencesBean">
> 
> 
> submit
> 
> 
>
> PrivacyPreferencesBean.java
> 
> *
>
> public* *class* PrivacyPreferencesBean *extends* ActionForm {*
> **private* String strFirstName;*
> **public String getStrFirstName() {
> return strFirstName;
> }
> **public void setStrFirstName(String string) {
> strFirstName = string;
> }
> **}*
>
> *Entries in Struts-config.xml*
>
> 
> 
>
>  name="privacyPrefForm" scope="request" validate="true">
>   
> 
>
> Let me know you if find your solution or not.
> Thanks,
> Debendra.
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


Form pre-fill issue

2006-01-27 Thread Karthik Manimaran
Hi,

Form data is not getting pre-filled on submission. Can anyone tell me the
reason?

JSP - included from def.jsp
-
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>



submit



PrivacyPreferencesBean.java

*

public* *class* PrivacyPreferencesBean *extends* ActionForm {*
**private* String strFirstName;*
**public String getStrFirstName() {
return strFirstName;
}
**public void setStrFirstName(String string) {
strFirstName = string;
}
**}*

*Entries in Struts-config.xml*

  
  

  
   
  

Thanks and regards,

Karthik.

**

**

**