Struts 1.1 migration

2003-07-25 Thread Vinit Sharma
Hello 
I'm migrating from Struts 1.0 to Struts 1.1. My old struts-config.xml file does not 
work properly here. I've defined a form bean as follows:
 
   form-bean  name=user
  type=com.temp.user 
 set-property property=name value=test / 
   /form-bean

I got following error while I start my Weblogic server:
 
javax.servlet.UnavailableException: Parsing error processing resource path
at 
org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
at 
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
at 
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
at 
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
at java.lang.Thread.run(Thread.java:479)
 
 
Line no. 1035 in ActionServlet.java is:
throw new UnavailableException(internal.getMessage(configParse, paths));
and line no. 1014 in ActionServlet.java is inside a catch block of SAXException. I 
thought it is due to XML parsing error. May be because my weblogic server is using 
older version of JAXP, but Weblogic 6.1 use the version 1.1
If I remove the line for set-property, it works fine.
Can any body help me in that??
Thanks and regards.
Vinit


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

logic:iterate

2003-07-25 Thread Prashant Samant
Hello group,
I have a problem in using logic:iterate.
I have a following class

public class DataWrapper implements Serializable {
private int iID;
private String strDescription;

public int getID() {
return iID;
} // DataWrapper : getID

public void setiID(int iID) {
this.iID = iID;
} // DataWrapper : setiID

public String getDescription() {
return strDescription;
} // DataWrapper : getDescription

public void setDescription(String strDescription) {
this.strDescription = strDescription;
} // DataWrapper : setDescription
} // DataWrapper


In my ActionForm i am creating 5 objects of the above class and settting the values 
for iID
and strDescription.
After this i am putting this objects in a vector and this vector i am putting inside 
request 
object(saying request.setAttribute(vect,vector) ).

The ActionForm than calls a jsp page in which i want to populate a drop-down box
with the values of iId variable of the above bean.
I am trying to do something like this

logic:iterate id=myObj name=vect  type=DataWrapper
html:option value=1bean:write name=myObj property=iId//html:option
/logic:iterate
if i execute the above code than i get the following error
 No getter method for property iId of bean myObj
 
 Pls Help .
 Prashant S

MphasiS India 
IInd Floor, Leela Business Park,
Opp. 'The Leela'
Andheri Kurla Road,
Andheri (E), Mumbai. 
INDIA. 

www.mphasis.com http://www.mphasis.com
Architecting Value
SEI Level 5 ISO 9001 

Information transmitted by this e-mail is proprietary to MphasiS and/ or its Customers 
and is intended for use only by the individual or entity to which it is addressed, and 
may contain information that is privileged, confidential or exempt from disclosure 
under applicable law. If you are not the intended recipient or it appears that this 
mail has been forwarded to you without proper authority, you are notified that any use 
or dissemination of this information in any manner is strictly prohibited. In such 
cases, please notify us immediately at [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
and delete this mail from your records.



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



Re: logic:iterate

2003-07-25 Thread Vinit Sharma
Watch out your method
public int getID()
It should be public int getiID() instead. This should work.
Regards

Prashant Samant [EMAIL PROTECTED] wrote:
Hello group,
I have a problem in using logic:iterate.
I have a following class

public class DataWrapper implements Serializable {
private int iID;
private String strDescription;

public int getID() {
return iID;
} // DataWrapper : getID

public void setiID(int iID) {
this.iID = iID;
} // DataWrapper : setiID

public String getDescription() {
return strDescription;
} // DataWrapper : getDescription

public void setDescription(String strDescription) {
this.strDescription = strDescription;
} // DataWrapper : setDescription
} // DataWrapper


In my ActionForm i am creating 5 objects of the above class and settting the values 
for iID
and strDescription.
After this i am putting this objects in a vector and this vector i am putting inside 
request 
object(saying request.setAttribute(vect,vector) ).

The ActionForm than calls a jsp page in which i want to populate a drop-down box
with the values of iId variable of the above bean.
I am trying to do something like this




if i execute the above code than i get the following error
No getter method for property iId of bean myObj

Pls Help .
Prashant S

MphasiS India 
IInd Floor, Leela Business Park,
Opp. 'The Leela'
Andheri Kurla Road,
Andheri (E), Mumbai. 
INDIA. 

www.mphasis.com 
Architecting Value
SEI Level 5 ISO 9001 

Information transmitted by this e-mail is proprietary to MphasiS and/ or its Customers 
and is intended for use only by the individual or entity to which it is addressed, and 
may contain information that is privileged, confidential or exempt from disclosure 
under applicable law. If you are not the intended recipient or it appears that this 
mail has been forwarded to you without proper authority, you are notified that any use 
or dissemination of this information in any manner is strictly prohibited. In such 
cases, please notify us immediately at [EMAIL PROTECTED] and delete this mail from 
your records.



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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: logic:iterate

2003-07-25 Thread Prashant Samant
Thanx for the response.
I tried both public int getiID() as well as public int getIID() .
But still the error persist.
Any clue?.
Prashant S.

-Original Message-
From: Vinit Sharma [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:02 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate


Watch out your method
public int getID()
It should be public int getiID() instead. This should work.
Regards

Prashant Samant [EMAIL PROTECTED] wrote:
Hello group,
I have a problem in using logic:iterate.
I have a following class

public class DataWrapper implements Serializable {
private int iID;
private String strDescription;

public int getID() {
return iID;
} // DataWrapper : getID

public void setiID(int iID) {
this.iID = iID;
} // DataWrapper : setiID

public String getDescription() {
return strDescription;
} // DataWrapper : getDescription

public void setDescription(String strDescription) {
this.strDescription = strDescription;
} // DataWrapper : setDescription
} // DataWrapper


In my ActionForm i am creating 5 objects of the above class and settting the values 
for iID
and strDescription.
After this i am putting this objects in a vector and this vector i am putting inside 
request 
object(saying request.setAttribute(vect,vector) ).

The ActionForm than calls a jsp page in which i want to populate a drop-down box
with the values of iId variable of the above bean.
I am trying to do something like this




if i execute the above code than i get the following error
No getter method for property iId of bean myObj

Pls Help .
Prashant S

MphasiS India 
IInd Floor, Leela Business Park,
Opp. 'The Leela'
Andheri Kurla Road,
Andheri (E), Mumbai. 
INDIA. 

www.mphasis.com 
Architecting Value
SEI Level 5 ISO 9001 

Information transmitted by this e-mail is proprietary to MphasiS and/ or its Customers 
and is intended for use only by the individual or entity to which it is addressed, and 
may contain information that is privileged, confidential or exempt from disclosure 
under applicable law. If you are not the intended recipient or it appears that this 
mail has been forwarded to you without proper authority, you are notified that any use 
or dissemination of this information in any manner is strictly prohibited. In such 
cases, please notify us immediately at [EMAIL PROTECTED] and delete this mail from 
your records.



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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

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



Re: Struts 1.1 migration

2003-07-25 Thread Siva
Dea rVinit,

Please use the propert dtd version corresponds to 1.1 (you can specify the dtd 
available in SUN site.) I feel the peoblem is because of improper dtd reference..

Siva

Vinit Sharma wrote:

 Hello
 I'm migrating from Struts 1.0 to Struts 1.1. My old struts-config.xml file does not 
 work properly here. I've defined a form bean as follows:

form-bean  name=user
   type=com.temp.user 
  set-property property=name value=test /
/form-bean

 I got following error while I start my Weblogic server:

 javax.servlet.UnavailableException: Parsing error processing resource path
 at 
 org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
 at 
 org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
 at 
 org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at 
 weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
 at 
 weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
 at 
 weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
 at 
 weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
 at 
 weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
 at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
 at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
 at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
 at java.lang.Thread.run(Thread.java:479)


 Line no. 1035 in ActionServlet.java is:
 throw new UnavailableException(internal.getMessage(configParse, paths));
 and line no. 1014 in ActionServlet.java is inside a catch block of SAXException. I 
 thought it is due to XML parsing error. May be because my weblogic server is using 
 older version of JAXP, but Weblogic 6.1 use the version 1.1
 If I remove the line for set-property, it works fine.
 Can any body help me in that??
 Thanks and regards.
 Vinit

 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



Re: Struts 1.1 migration

2003-07-25 Thread Vinit Sharma
Hello
I'm using the DTD version as provided by Struts site for Struts 1.1. It is as follows:
!DOCTYPE struts-config PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration 1.1//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
Is there anything wrong with that??
Vinit

Siva [EMAIL PROTECTED] wrote:
Dea rVinit,

Please use the propert dtd version corresponds to 1.1 (you can specify the dtd 
available in SUN site.) I feel the peoblem is because of improper dtd reference..

Siva

Vinit Sharma wrote:

 Hello
 I'm migrating from Struts 1.0 to Struts 1.1. My old struts-config.xml file does not 
 work properly here. I've defined a form bean as follows:

  type=com.temp.user 
 
 

 I got following error while I start my Weblogic server:

 javax.servlet.UnavailableException: Parsing error processing resource path
 at 
 org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
 at 
 org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
 at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
 at 
 weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
 at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
 at 
 weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
 at 
 weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
 at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
 at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
 at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
 at java.lang.Thread.run(Thread.java:479)


 Line no. 1035 in ActionServlet.java is:
 throw new UnavailableException(internal.getMessage(configParse, paths));
 and line no. 1014 in ActionServlet.java is inside a catch block of SAXException. I 
 thought it is due to XML parsing error. May be because my weblogic server is using 
 older version of JAXP, but Weblogic 6.1 use the version 1.1
 If I remove the line for set-property, it works fine.
 Can any body help me in that??
 Thanks and regards.
 Vinit

 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: Struts 1.1 migration

2003-07-25 Thread Siva
Dear Vinit,

I feel the set-property should be used with DynaActionForm. and the set property will 
be meaningless with your own action form. please make sure why you are using this 
set-property here.

Siva

Vinit Sharma wrote:

 Hello
 I'm using the DTD version as provided by Struts site for Struts 1.1. It is as 
 follows:
 !DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.1//EN
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
 Is there anything wrong with that??
 Vinit

 Siva [EMAIL PROTECTED] wrote:
 Dea rVinit,

 Please use the propert dtd version corresponds to 1.1 (you can specify the dtd 
 available in SUN site.) I feel the peoblem is because of improper dtd reference..

 Siva

 Vinit Sharma wrote:

  Hello
  I'm migrating from Struts 1.0 to Struts 1.1. My old struts-config.xml file does 
  not work properly here. I've defined a form bean as follows:
 
   type=com.temp.user 
 
 
 
  I got following error while I start my Weblogic server:
 
  javax.servlet.UnavailableException: Parsing error processing resource path
  at 
  org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
  at 
  org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
  at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
  weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
  at 
  weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
  at 
  weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
  at 
  weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
  at 
  weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
  at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
  at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
  at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
  at java.lang.Thread.run(Thread.java:479)
 
 
  Line no. 1035 in ActionServlet.java is:
  throw new UnavailableException(internal.getMessage(configParse, paths));
  and line no. 1014 in ActionServlet.java is inside a catch block of SAXException. I 
  thought it is due to XML parsing error. May be because my weblogic server is using 
  older version of JAXP, but Weblogic 6.1 use the version 1.1
  If I remove the line for set-property, it works fine.
  Can any body help me in that??
  Thanks and regards.
  Vinit
 
  -
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site design software

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

 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



[OT] Line numbers while parsing XML

2003-07-25 Thread Suresh Addagalla

Hi,

I am using struts-upload to upload an XML file and Xerces API to parse
the same.

I need to compile the XML file in the sense that I need to report any
errors back to the user along with the line numbers, like compilation
errors. These are not XML parsing errors, but application level errors;
for example, a code attribute of an element may be such that it is not
unique when a DB insertion is attempted.

Is this possible to implement with DOM? Or do I need to switch to SAX
and use the Locator handler to get the line number information?

Thanks,
Suresh


**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***

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



Re: Struts 1.1 migration

2003-07-25 Thread Vinit Sharma
Hello Siva
We can use set-property as a nested element to form-bean. This was working fine 
with Struts 1.0.2. The problem arised while I'm migrating to Struts 1.1
What I dont know is that whether we can use such a nested element with Struts 1.1 ?? 
You have any such info.
Vinit

Siva [EMAIL PROTECTED] wrote:
Dear Vinit,

I feel the set-property should be used with DynaActionForm. and the set property will 
be meaningless with your own action form. please make sure why you are using this 
set-property here.

Siva

Vinit Sharma wrote:

 Hello
 I'm using the DTD version as provided by Struts site for Struts 1.1. It is as 
 follows:
  -//Apache Software Foundation//DTD Struts Configuration 1.1//EN
 http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;
 Is there anything wrong with that??
 Vinit

 Siva wrote:
 Dea rVinit,

 Please use the propert dtd version corresponds to 1.1 (you can specify the dtd 
 available in SUN site.) I feel the peoblem is because of improper dtd reference..

 Siva

 Vinit Sharma wrote:

  Hello
  I'm migrating from Struts 1.0 to Struts 1.1. My old struts-config.xml file does 
  not work properly here. I've defined a form bean as follows:
 
   type=com.temp.user 
 
 
 
  I got following error while I start my Weblogic server:
 
  javax.servlet.UnavailableException: Parsing error processing resource path
  at 
  org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
  at 
  org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
  at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
  at javax.servlet.GenericServlet.init(GenericServlet.java:258)
  at 
  weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:713)
  at 
  weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:656)
  at 
  weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:601)
  at 
  weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:2272)
  at 
  weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:2216)
  at weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
  at weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
  at weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
  at java.lang.Thread.run(Thread.java:479)
 
 
  Line no. 1035 in ActionServlet.java is:
  throw new UnavailableException(internal.getMessage(configParse, paths));
  and line no. 1014 in ActionServlet.java is inside a catch block of SAXException. I 
  thought it is due to XML parsing error. May be because my weblogic server is using 
  older version of JAXP, but Weblogic 6.1 use the version 1.1
  If I remove the line for set-property, it works fine.
  Can any body help me in that??
  Thanks and regards.
  Vinit
 
  -
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site design software

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

 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: logic:iterate

2003-07-25 Thread DE BACKER Sam
It's all about case (upper/lower)

property=iId -- calls getIId()
property=iID -- calls getIID()
...

The underlying BeanUtils will capitalize first letter of property and prepend 
get/set...


-Original Message-
From: Prashant Samant [mailto:[EMAIL PROTECTED]
Sent: vrijdag 25 juli 2003 8:35
To: Struts Users Mailing List
Subject: RE: logic:iterate


Thanx for the response.
I tried both public int getiID() as well as public int getIID() .
But still the error persist.
Any clue?.
Prashant S.

-Original Message-
From: Vinit Sharma [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:02 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate


Watch out your method
public int getID()
It should be public int getiID() instead. This should work.
Regards

Prashant Samant [EMAIL PROTECTED] wrote:
Hello group,
I have a problem in using logic:iterate.
I have a following class

public class DataWrapper implements Serializable {
private int iID;
private String strDescription;

public int getID() {
return iID;
} // DataWrapper : getID

public void setiID(int iID) {
this.iID = iID;
} // DataWrapper : setiID

public String getDescription() {
return strDescription;
} // DataWrapper : getDescription

public void setDescription(String strDescription) {
this.strDescription = strDescription;
} // DataWrapper : setDescription
} // DataWrapper


In my ActionForm i am creating 5 objects of the above class and settting the values 
for iID
and strDescription.
After this i am putting this objects in a vector and this vector i am putting inside 
request 
object(saying request.setAttribute(vect,vector) ).

The ActionForm than calls a jsp page in which i want to populate a drop-down box
with the values of iId variable of the above bean.
I am trying to do something like this




if i execute the above code than i get the following error
No getter method for property iId of bean myObj

Pls Help .
Prashant S

MphasiS India 
IInd Floor, Leela Business Park,
Opp. 'The Leela'
Andheri Kurla Road,
Andheri (E), Mumbai. 
INDIA. 

www.mphasis.com 
Architecting Value
SEI Level 5 ISO 9001 

Information transmitted by this e-mail is proprietary to MphasiS and/ or its Customers 
and is intended for use only by the individual or entity to which it is addressed, and 
may contain information that is privileged, confidential or exempt from disclosure 
under applicable law. If you are not the intended recipient or it appears that this 
mail has been forwarded to you without proper authority, you are notified that any use 
or dissemination of this information in any manner is strictly prohibited. In such 
cases, please notify us immediately at [EMAIL PROTECTED] and delete this mail from 
your records.



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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

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




STRICTLY PERSONAL AND CONFIDENTIAL
This message may contain confidential and proprietary material for the sole use of the 
intended recipient. Any review or distribution by others is strictly prohibited. If 
you are not the intended recipient please contact the sender and delete all copies.

Ce Message est uniquement destiné aux récipiendaires indiqués et peut contenir des 
informations confidentielles. Si vous n'êtes pas le récipiendaire, vous ne devez pas 
révéler le contenu de ce message ou en prendre copie. Si vous avez reçu ce message par 
erreur, veuillez en informer l'expéditeur, ou La Poste immédiatement, avant de le 
supprimer.

Dit bericht is enkel bestemd voor de aangeduide ontvangers en kan vertrouwelijke 
informatie bevatten. Als u niet de ontvanger bent, dan mag u de inhoud van dit bericht 
niet bekendmaken noch kopiëren. Als u dit bericht per vergissing heeft ontvangen, 
gelieve er de afzender of De Post onmiddellijk van op de hoogte te brengen en het 
bericht vervolgens te verwijderen.



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



validate = false does not work

2003-07-25 Thread Michael Olszynski
Hi,

Validate=false in my struts-config.xml does not work. The validate Method is called 
alway. Can anybody help me? See:

 actionpath=/proposalAdd
  type=epool.controller.proposal.AddAction
  name=requestForm
  scope=request
  validate=false
  input=/proposaladdedit.jsp
 forward name=success  path=/proposalEdit.action/
   /action

Is there any error?

I´m using an older version of struts..

RE: validate = false does not work

2003-07-25 Thread Nagaraj_K
I dont see any error in what is mentioned out here. Only doubt for me is
that if u have changed the XML file in the middle and have not restarted the
webserver...
try restarting web server once...

-Original Message-
From: Michael Olszynski [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:57 PM
To: 'Struts Users Mailing List'
Subject: validate = false does not work


Hi,

Validate=false in my struts-config.xml does not work. The validate Method is
called alway. Can anybody help me? See:

 actionpath=/proposalAdd
  type=epool.controller.proposal.AddAction
  name=requestForm
  scope=request
  validate=false
  input=/proposaladdedit.jsp
 forward name=success  path=/proposalEdit.action/
   /action

Is there any error?

I´m using an older version of struts..
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**


Indexed Property!

2003-07-25 Thread manglu
Hi,

I am unable to get a good handle of Indexed Property(ies)

This is what i want to achieve.

The users need to specify their interests when they register and their 
options are provided via checkboxes - say Sports, Politics and Computers

I presume the attribute in the form object should be a collection object 
say an ArrayList

How would the jsp look like for the Check Boxes?

Appreciate some code samples. I presume that all the selected objects 
(lets' say the User Selects Sports Computers) would be sent in the 
Action Form when the user hits submit

Eagerly awaiting for some Code Samples

TIA
Manglu




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


AW: [newbie] Problem with Action Mapping

2003-07-25 Thread sem . Gottofrey

You have to add '.do' to the action property of your form tag, like this:

 html:form action=/Login.do 

HTH
Robert

 -Ursprüngliche Nachricht-
 Von: struts user [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 24. Juli 2003 15:33
 An: [EMAIL PROTECTED]
 Betreff: Re: [newbie] Problem with Action Mapping
 
 
 
 I tried both the ways in the login.jsp
 
 1 html:form action=/Login 
 
  AND
 
 2. html:form action=/Login
name=LoginForm
type=com.xxx.yyy.LoginForm 
 
 Both the ways i got same response.
 
 Any ideas about the placement of the LoginForm and 
 LoginAction classes, as 
 to where they have to be placed.
 
 I placed them in the WEB-INF/classes/com/xxx/yyy/action where the 
 package for both LoginForm and LoginAction classes is 
 com.xxx.yyy.action
 
 Regards,
 
 Meka Toka
 
 
 
 
 From: Susan Bradeen [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: [newbie] Problem with Action Mapping
 Date: Thu, 24 Jul 2003 08:55:12 -0400
 
 On 07/24/2003 08:22:44 AM struts user wrote:
 
   Hi,
   I am new to Struts, i am facing the following a problem 
 with the action
   mappings.
  
   Here are my code snippets related to mapping the action
  
   In web.xml
   
   servlet-mapping
   servlet-nameaction/servlet-name
   url-pattern*.do/url-pattern
   /servlet-mapping
  
   In login.jsp
   -
   html:form action=/Login
   name=LoginForm
   type=com.xxx.yyy.LoginForm 
  
 
 Change the JSP above to be html:form action=/Login  . 
 Not sure if that
 will help, but the form name and type attributes are 
 automatically picked
 up from your struts-config file.
 
 Susan
 
 
  
   In struts-config.xml
   -
  
   FORM-BEANS
   
  
   form-beans
   form-bean name=LoginForm type=com.xxx.yyy.LoginForm/
   /form-beans
  
   GLOBAL FORWARDING
   --
  
   global-forwards
   forward name=Login path=/login.jsp/
   /global-forwards
  
   ACTION MAPINGS
   
  
   action-mappings
   action path=/Login type=com.xxx.yyy.LoginAction 
 scope=request
   input=/login.jsp name=LoginForm
   forward name=Success path=/welcome.jsp/
   forward name=Failure path=/login.jsp/
   /action
  
  
   With the above code, when the login.jsp is submitted the 
 values have to
 be
   filled in LoginForm which is an ActionForm for the ActionClass
 LoginAction .
  
   The associated action path is supposed to be /Login but 
 when the jsp is
   submitted i get an error page saying
  
   The requested resource (/MyApp/Login.do) is not available.
  
   Can somebody point me where am i wrong ?
  
   I am using Tomcat 4.1.24, Struts 1.1
  
   TIA
  
   Meka Toka
  
   PS: And Yes, I have defined the ActionServlet in the web.xml
  
   _
   Tired of spam? Get advanced junk mail protection with MSN 8.
   http://join.msn.com/?page=features/junkmail
  
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
 http://join.msn.com/?page=features/virus
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Partial form validation...

2003-07-25 Thread manglu
Keith,

I am not too sure what Partial Form Validation is

I am playing with multi-page Validation at the moment so i can share 
some of the stuff that i understand so far.

(i) Turn off the validation in the Struts-Config and invoke the 
Validation via the validate method in action Object (Not sure if this is 
a must. I just followed the Validation Sample)

(ii) My validation.xml(s)  are simple and i don't do inter-field 
validation in the xml file i choose to do them in the Validate method 
itself. I feel it is easier to do it here.(a bit better to read than in 
the Validation.xml with the requiredif etc)

HTH
Manglu






Keith Pemberton wrote:
I have read that when you do a multipage form that you have to do
partial form validation.  Otherwise, the page just gets thrown back as
not being valid.  Can someone please give me a sample of how this works
in the ActionForm bean?  Thanks!
Keith


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


DynaAF in session scope checkboxes

2003-07-25 Thread Mike Whittaker
Has anyone had this combination to work?
I either lose session persistence or (classically) can't clear all
checkboxes.
I've tried overiding reset() in numerous ways.

Help!

TIA
--
Mike W


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



Re: validate = false does not work

2003-07-25 Thread Michael Olszynski
No, I have restarted everything. I´ve got an older version of struts. Was
there a problem once? I can´t switch to a newer version, because of the
spec.
- Original Message - 
From: Nagaraj_K [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 10:48 AM
Subject: RE: validate = false does not work


I dont see any error in what is mentioned out here. Only doubt for me is
that if u have changed the XML file in the middle and have not restarted the
webserver...
try restarting web server once...

-Original Message-
From: Michael Olszynski [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 1:57 PM
To: 'Struts Users Mailing List'
Subject: validate = false does not work


Hi,

Validate=false in my struts-config.xml does not work. The validate Method is
called alway. Can anybody help me? See:

 actionpath=/proposalAdd
  type=epool.controller.proposal.AddAction
  name=requestForm
  scope=request
  validate=false
  input=/proposaladdedit.jsp
 forward name=success  path=/proposalEdit.action/
   /action

Is there any error?

I´m using an older version of struts..
**
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**



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



Re[2]: validate = false does not work

2003-07-25 Thread Dirk Markert
Hello Michael,

there is/was no problem with validation. Perhaps another action
mapping is calling your validate action?

***

MO No, I have restarted everything. I´ve got an older version of struts. Was
MO there a problem once? I can´t switch to a newer version, because of the
MO spec.
MO - Original Message - 
MO From: Nagaraj_K [EMAIL PROTECTED]
MO To: Struts Users Mailing List [EMAIL PROTECTED]
MO Sent: Friday, July 25, 2003 10:48 AM
MO Subject: RE: validate = false does not work


MO I dont see any error in what is mentioned out here. Only doubt for me is
MO that if u have changed the XML file in the middle and have not restarted the
MO webserver...
MO try restarting web server once...

MO -Original Message-
MO From: Michael Olszynski [mailto:[EMAIL PROTECTED]
MO Sent: Friday, July 25, 2003 1:57 PM
MO To: 'Struts Users Mailing List'
MO Subject: validate = false does not work


MO Hi,

MO Validate=false in my struts-config.xml does not work. The validate Method is
MO called alway. Can anybody help me? See:

MO  actionpath=/proposalAdd
MO   type=epool.controller.proposal.AddAction
MO   name=requestForm
MO   scope=request
MO   validate=false
MO   input=/proposaladdedit.jsp
MO  forward name=success  path=/proposalEdit.action/
MO/action

MO Is there any error?

MO I´m using an older version of struts..
MO **
MO This email (including any attachments) is intended for the sole use of the
MO intended recipient/s and may contain material that is CONFIDENTIAL AND
MO PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
MO distribution or forwarding of any or all of the contents in this message is
MO STRICTLY PROHIBITED. If you are not the intended recipient, please contact
MO the sender by email and delete all copies; your cooperation in this regard
MO is appreciated.
MO **



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



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+ 


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



Re[3]: validate = false does not work

2003-07-25 Thread Dirk Markert
Hello Michael,

  may be your /proposalEdit.action??

***

DM Hello Michael,

DM there is/was no problem with validation. Perhaps another action
DM mapping is calling your validate action?

DM ***

MO No, I have restarted everything. I´ve got an older version of struts. Was
MO there a problem once? I can´t switch to a newer version, because of the
MO spec.
MO - Original Message - 
MO From: Nagaraj_K [EMAIL PROTECTED]
MO To: Struts Users Mailing List [EMAIL PROTECTED]
MO Sent: Friday, July 25, 2003 10:48 AM
MO Subject: RE: validate = false does not work


MO I dont see any error in what is mentioned out here. Only doubt for me is
MO that if u have changed the XML file in the middle and have not restarted the
MO webserver...
MO try restarting web server once...

MO -Original Message-
MO From: Michael Olszynski [mailto:[EMAIL PROTECTED]
MO Sent: Friday, July 25, 2003 1:57 PM
MO To: 'Struts Users Mailing List'
MO Subject: validate = false does not work


MO Hi,

MO Validate=false in my struts-config.xml does not work. The validate Method is
MO called alway. Can anybody help me? See:

MO  actionpath=/proposalAdd
MO   type=epool.controller.proposal.AddAction
MO   name=requestForm
MO   scope=request
MO   validate=false
MO   input=/proposaladdedit.jsp
MO  forward name=success  path=/proposalEdit.action/
MO/action

MO Is there any error?

MO I´m using an older version of struts..
MO **
MO This email (including any attachments) is intended for the sole use of the
MO intended recipient/s and may contain material that is CONFIDENTIAL AND
MO PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
MO distribution or forwarding of any or all of the contents in this message is
MO STRICTLY PROHIBITED. If you are not the intended recipient, please contact
MO the sender by email and delete all copies; your cooperation in this regard
MO is appreciated.
MO **



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



DM Regards,
DM Dirk

DM +--- Quality leads ---+
DM | Dirk Markert [EMAIL PROTECTED] |
DM | Dr. Markert Softwaretechnik AG  |
DM | Joseph-von-Fraunhofer-Str. 20   |
DM | 44227 Dortmund  |
DM +-- to success! -+ 


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



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+ 


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



RE: Testing Struts-Config

2003-07-25 Thread Edgar Dollin
 
 An additional useful test would be whether all the referenced 
 classes actually exist in your webapp (form beans, actions, 
 ...).  Of course, that probably ought to be a configurable 
 startup feature for Struts itself.
 

This would be perfect...if you need any help let me know.


  -James
 
 Craig
 


Edgar

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



Re: Radio active? :-) or a working example of nested radio buttons

2003-07-25 Thread Adam Hardy
And that html:radio is able to reference the current iteration of the 
nested:iterate loop, and give the radio html the correctly nested name? 
If so it's seems to be encroaching on the nested taglibs behaviour.

It's good.

Adam

ScottC wrote:
Adam,
The final code came down to this:
nested:iterate property=rows 
 tr align=left
   td
  nested:write property=rowTitle /
   /td
   nested:iterate id=crewMember property=crews
  td
 html:radio  idName=crewMember property=lookup value=lookup
/
 nested:write property=memberName /
  /td
   /nested:iterate

 /tr
/nested:iterate
The real key to making it work lies in the idName parameter which
nested:radio does not support. The above will make more sense if I describe
my beans. I have a schedule bean that has an ArrayList of rows. The rows are
a class called ScheduleRow. Each ScheduleRow has a title (which is the
current date in my case) and an array of crewMembers. My challenge with the
radio button was this, the lookup property is a string inside my MemberBean
(the MemberBean holds the crewmember name and other information) that is a
key field for my database lookup. What is displayed in the jsp is only a
crewmember name next to a radio button.  I just couldn't believe it would
take so much effort to get the normal value field populated in the tag
(using the bean define, etc.) and I hate to admit it, but I RTFM for
html:radio and near the top of the doc there is a reference to how idName
when populated totally changes the tags behavior.
In summary, if you are tying to create a matrix of radio buttons and are
pulling your hair out, try the above approach and see if it works for you.
Here's what the jsp outputs from above:
07/24/2003 *Furner, Bob  *Doe, John  *Smith, James
07/31/2003 *Jones, Bill *Carey, Harry  *Barber, Joe
Collections are cool and nested tags make the jsp very simple, but it's
taken me some time to get it working right. Hope this helps anyone else out
there. And to Adam, thanks for taking the time to respond to my plea for
help.
Scott

Adam Hardy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
you need someething like this

nested:iterate property=ops id=opIterate indexId=iterateId

bean:define name=opIterate id=currentOp
  type=foo.bar.operation.OperationValueBean scope=page/
nested:radio property=guyName value=%=myBean.guyName(); % /

where the bean define allows the radio button to access the current bean
of the iterate loop, and then you can call the name function.
hth
Adam
ScottC wrote:

I'm having trouble figuring out the nested:radio tag and getting the
values

set. I have bean that nests a list of three other beans (a Schedule bean
that holds three date beans). Each date has three guys (each with a
radio

button next to them), so I have an array that is 3x3. How do I get the
value out of the bean to put in the value part of the radio tag? For
example (where [] is the radio button):
7/21/2003 []Jack []Bob   []Phil
7/22/2003 []Jim   []Larry []Harry
7/23/2003 []Paul  []Ken  []John
The nested:radio tag syntax nested:radio property=guyName value=?
/

and I don't understand how to pull the guys name out of the bean and get
it

in the value parameter. When the form is submitted, I then have to know
which guy was selected. A working code snippet of something you've done
like

this would be great.

Thanks!
Scott


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





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



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


RE: Re[3]: validate = false does not work

2003-07-25 Thread Nagaraj_K
The action that you are mentioning comes into picture only when the forward
is success... and if the validate attribute is true for that action then,
validate method for that particualr formBean will be called.
But I think Michel is mentioning about the validate method being called in
the action that he has mentioned

-Original Message-
From: Dirk Markert [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 2:46 PM
To: Struts Users Mailing List
Subject: Re[3]: validate = false does not work


Hello Michael,

  may be your /proposalEdit.action??

***

DM Hello Michael,

DM there is/was no problem with validation. Perhaps another action
DM mapping is calling your validate action?

DM ***

MO No, I have restarted everything. I´ve got an older version of struts.
Was
MO there a problem once? I can´t switch to a newer version, because of the
MO spec.
MO - Original Message - 
MO From: Nagaraj_K [EMAIL PROTECTED]
MO To: Struts Users Mailing List [EMAIL PROTECTED]
MO Sent: Friday, July 25, 2003 10:48 AM
MO Subject: RE: validate = false does not work


MO I dont see any error in what is mentioned out here. Only doubt for me
is
MO that if u have changed the XML file in the middle and have not
restarted the
MO webserver...
MO try restarting web server once...

MO -Original Message-
MO From: Michael Olszynski [mailto:[EMAIL PROTECTED]
MO Sent: Friday, July 25, 2003 1:57 PM
MO To: 'Struts Users Mailing List'
MO Subject: validate = false does not work


MO Hi,

MO Validate=false in my struts-config.xml does not work. The validate
Method is
MO called alway. Can anybody help me? See:

MO  actionpath=/proposalAdd
MO   type=epool.controller.proposal.AddAction
MO   name=requestForm
MO   scope=request
MO   validate=false
MO   input=/proposaladdedit.jsp
MO  forward name=success  path=/proposalEdit.action/
MO/action

MO Is there any error?

MO I´m using an older version of struts..
MO
**
MO This email (including any attachments) is intended for the sole use of
the
MO intended recipient/s and may contain material that is CONFIDENTIAL AND
MO PRIVATE COMPANY INFORMATION. Any review or reliance by others or
copying or
MO distribution or forwarding of any or all of the contents in this
message is
MO STRICTLY PROHIBITED. If you are not the intended recipient, please
contact
MO the sender by email and delete all copies; your cooperation in this
regard
MO is appreciated.
MO
**



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



DM Regards,
DM Dirk

DM +--- Quality leads ---+
DM | Dirk Markert [EMAIL PROTECTED] |
DM | Dr. Markert Softwaretechnik AG  |
DM | Joseph-von-Fraunhofer-Str. 20   |
DM | 44227 Dortmund  |
DM +-- to success! -+ 


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



Regards,
Dirk

+--- Quality leads ---+
| Dirk Markert [EMAIL PROTECTED] |
| Dr. Markert Softwaretechnik AG  |
| Joseph-von-Fraunhofer-Str. 20   |
| 44227 Dortmund  |
+-- to success! -+ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**


Re: Re[3]: validate = false does not work

2003-07-25 Thread Michael Olszynski
no there is no validate call in the whole project. i searched for references
und declarations.

what does
init-param
  param-namevalidate/param-name
  param-valuetrue/param-value
/init-param

in the web.xml mean? perhaps is there anything wrong?
- Original Message - 
From: Dirk Markert [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 11:15 AM
Subject: Re[3]: validate = false does not work


 Hello Michael,

   may be your /proposalEdit.action??

 ***

 DM Hello Michael,

 DM there is/was no problem with validation. Perhaps another action
 DM mapping is calling your validate action?

 DM ***

 MO No, I have restarted everything. I´ve got an older version of struts.
Was
 MO there a problem once? I can´t switch to a newer version, because of
the
 MO spec.
 MO - Original Message - 
 MO From: Nagaraj_K [EMAIL PROTECTED]
 MO To: Struts Users Mailing List [EMAIL PROTECTED]
 MO Sent: Friday, July 25, 2003 10:48 AM
 MO Subject: RE: validate = false does not work


 MO I dont see any error in what is mentioned out here. Only doubt for me
is
 MO that if u have changed the XML file in the middle and have not
restarted the
 MO webserver...
 MO try restarting web server once...

 MO -Original Message-
 MO From: Michael Olszynski [mailto:[EMAIL PROTECTED]
 MO Sent: Friday, July 25, 2003 1:57 PM
 MO To: 'Struts Users Mailing List'
 MO Subject: validate = false does not work


 MO Hi,

 MO Validate=false in my struts-config.xml does not work. The validate
Method is
 MO called alway. Can anybody help me? See:

 MO  actionpath=/proposalAdd
 MO   type=epool.controller.proposal.AddAction
 MO   name=requestForm
 MO   scope=request
 MO   validate=false
 MO   input=/proposaladdedit.jsp
 MO  forward name=success  path=/proposalEdit.action/
 MO/action

 MO Is there any error?

 MO I´m using an older version of struts..
 MO
**
 MO This email (including any attachments) is intended for the sole use
of the
 MO intended recipient/s and may contain material that is CONFIDENTIAL
AND
 MO PRIVATE COMPANY INFORMATION. Any review or reliance by others or
copying or
 MO distribution or forwarding of any or all of the contents in this
message is
 MO STRICTLY PROHIBITED. If you are not the intended recipient, please
contact
 MO the sender by email and delete all copies; your cooperation in this
regard
 MO is appreciated.
 MO
**



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



 DM Regards,
 DM Dirk

 DM +--- Quality leads ---+
 DM | Dirk Markert [EMAIL PROTECTED] |
 DM | Dr. Markert Softwaretechnik AG  |
 DM | Joseph-von-Fraunhofer-Str. 20   |
 DM | 44227 Dortmund  |
 DM +-- to success! -+


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



 Regards,
 Dirk

 +--- Quality leads ---+
 | Dirk Markert [EMAIL PROTECTED] |
 | Dr. Markert Softwaretechnik AG  |
 | Joseph-von-Fraunhofer-Str. 20   |
 | 44227 Dortmund  |
 +-- to success! -+


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





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



Re: [FRIDAY] Funny legal signatures [WAS: RE: Struts in Action]

2003-07-25 Thread Adam Hardy
No, it's real. You see it all the time on ezines and quasi-spam 
newsletters. I never realised how ridiculous it was before - bit like 
Amazon, where it says Welcome Adam Hardy! If you are not Adam Hardy, 
please click here!

Andrew Hill wrote:
Hehe. Tongue in cheek surely? :-)

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 July 2003 12:33
To: Struts Users Mailing List; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [FRIDAY] Funny legal signatures [WAS: RE: Struts in Action]


On Fri, 25 Jul 2003, Andrew Hill wrote:


Date: Fri, 25 Jul 2003 11:29:15 +0800
From: Andrew Hill [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: [FRIDAY] Funny legal signatures [WAS: RE: Struts in Action]
snip
If received in error, please destroy and notify sender
/snip
My favorite email message sentence along this line is actually slightly
different:
If you did not receive this email message, and you wish to receive future
messages, please reply so that I can add you to the distribution list.
Craig

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



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


newbie question: how to get context path?

2003-07-25 Thread Daniel Joshua
Sorry for the newbie question... my brain not responding...

Using mapping.findForward(xxx).getPath(), I am able to to get the the
context-relative path.

But how do I get the full path, eg. http://localhost:8080/myApp/xxx.do ?


Regards,
Daniel


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



Fwd: model - controller interface

2003-07-25 Thread Jens v . P .
Hello,

there were many answers here about J2EE patterns and things like OJB.
A nice demonstration of these things can be found in Chuck Cavaness 
book Programming Jakarta Struts - there's an example using these 
pattern with OJB and Struts (chapter 6: Struts Model Components).

Jens

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


RE: newbie question: how to get context path?

2003-07-25 Thread Mike Whittaker
-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]
Sent: 25 July 2003 10:48
To: 'Struts Users Mailing List'
Subject: newbie question: how to get context path?


Sorry for the newbie question... my brain not responding...

Using mapping.findForward(xxx).getPath(), I am able to to get the the
context-relative path.

But how do I get the full path, eg. http://localhost:8080/myApp/xxx.do ?


HttpServletRequest.getRequestURL()

--
Mike W


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



Re: Re[5]: validate = false does not work

2003-07-25 Thread Michael Olszynski
Hi Dirk,

thanks for your help. I don´t think that the validate get´s called
elsewhere. See... config. always forward success is called. it crashes
from end of proposalAdd to proposalEdit.

   actionpath=/requestSave
  type=epool.controller.request.SaveAction
  name=requestForm
  scope=request
  validate=false
  input=/requestaddedit.jsp
forward name=success path=/proposalAdd.action/
   /action
 actionpath=/proposalAdd
  type=epool.controller.proposal.AddAction
  name=requestForm
  scope=request
  validate=false
  input=/proposaladdedit.jsp
 forward name=success  path=/proposalEdit.action/
   /action

  actionpath=/proposalEdit
  type=epool.controller.proposal.EditAction
  name=proposalForm
  scope=request
  validate=false
  input=/proposaladdedit.jsp
forward name=success  path=/proposaladdedit.jsp/
   /action

see the stack trace says, that struts calls the validate method

...
 at epool.view.AbstractActionForm.validate(AbstractActionForm.java:214)
 at
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:19
55)
..
   - Original Message - 
From: Dirk Markert [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 11:35 AM
Subject: Re[5]: validate = false does not work


 Hello Michael,



 ***

 MO no there is no validate call in the whole project. i searched for
references
 MO und declarations.

 By default, validate is performed for every action mapping. If another
action mapping
 is using your requestForm the validate method will be called. Check
 your action mappings.

 MO what does
 MO init-param
 MO   param-namevalidate/param-name
 MO   param-valuetrue/param-value
 MO /init-param

 That's for validating your config files.

 MO in the web.xml mean? perhaps is there anything wrong?
 MO - Original Message - 
 MO From: Dirk Markert [EMAIL PROTECTED]
 MO To: Struts Users Mailing List [EMAIL PROTECTED]
 MO Sent: Friday, July 25, 2003 11:15 AM
 MO Subject: Re[3]: validate = false does not work


  Hello Michael,
 
may be your /proposalEdit.action??
 
  ***
 
  DM Hello Michael,
 
  DM there is/was no problem with validation. Perhaps another action
  DM mapping is calling your validate action?
 
  DM ***
 
  MO No, I have restarted everything. I´ve got an older version of
struts.
 MO Was
  MO there a problem once? I can´t switch to a newer version, because
of
 MO the
  MO spec.
  MO - Original Message - 
  MO From: Nagaraj_K [EMAIL PROTECTED]
  MO To: Struts Users Mailing List [EMAIL PROTECTED]
  MO Sent: Friday, July 25, 2003 10:48 AM
  MO Subject: RE: validate = false does not work
 
 
  MO I dont see any error in what is mentioned out here. Only doubt for
me
 MO is
  MO that if u have changed the XML file in the middle and have not
 MO restarted the
  MO webserver...
  MO try restarting web server once...
 
  MO -Original Message-
  MO From: Michael Olszynski [mailto:[EMAIL PROTECTED]
  MO Sent: Friday, July 25, 2003 1:57 PM
  MO To: 'Struts Users Mailing List'
  MO Subject: validate = false does not work
 
 
  MO Hi,
 
  MO Validate=false in my struts-config.xml does not work. The validate
 MO Method is
  MO called alway. Can anybody help me? See:
 
  MO  actionpath=/proposalAdd
  MO   type=epool.controller.proposal.AddAction
  MO   name=requestForm
  MO   scope=request
  MO   validate=false
  MO   input=/proposaladdedit.jsp
  MO  forward name=success  path=/proposalEdit.action/
  MO/action
 
  MO Is there any error?
 
  MO I´m using an older version of struts..
  MO
 MO
**
  MO This email (including any attachments) is intended for the sole
use
 MO of the
  MO intended recipient/s and may contain material that is CONFIDENTIAL
 MO AND
  MO PRIVATE COMPANY INFORMATION. Any review or reliance by others or
 MO copying or
  MO distribution or forwarding of any or all of the contents in this
 MO message is
  MO STRICTLY PROHIBITED. If you are not the intended recipient, please
 MO contact
  MO the sender by email and delete all copies; your cooperation in
this
 MO regard
  MO is appreciated.
  MO
 MO
**
 
 
 
 
MO -
  MO To unsubscribe, e-mail: [EMAIL PROTECTED]
  MO For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 

RE: newbie question: how to get context path?

2003-07-25 Thread Daniel Joshua
Oooops... thanks!

Regards,
Daniel


-Original Message-
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 July, 2003 5:54 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: newbie question: how to get context path?


-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]
Sent: 25 July 2003 10:48
To: 'Struts Users Mailing List'
Subject: newbie question: how to get context path?


Sorry for the newbie question... my brain not responding...

Using mapping.findForward(xxx).getPath(), I am able to to get the the
context-relative path.

But how do I get the full path, eg. http://localhost:8080/myApp/xxx.do ?


HttpServletRequest.getRequestURL()

--
Mike W


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

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



Struts euivalent tag for JSP expression tag

2003-07-25 Thread guruprasad jakka
hi struts users,

Presently i am doing a small project  of converting a web
application module written in JSP's to struts framework.
These JSP's have tons of business logic in their pages.
The data is taken from a backend server using the jsp expression
tag.

eg.
input type=password name=%= AuthGuiGlobalConstants.PASSWORD
% class=textinput


Is there a way i can replace this
 %=AuthGuiGlobalConstants.PASSWORD % 
by equivalent struts tag.


AuthGuiGlobalConstants is a Java class where the constants are
defined. 


Thanks in Advance.

J G Guru Prasad
V sem, Information Technology,
Bachelor of Engineering,
National Institute of Technology Karnataka, Surathkal.
( formerly KREC )



Get your own 800 number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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



Re: Fwd: model - controller interface

2003-07-25 Thread Adam Hardy
Hi,
after checking out those patterns and examples on the sun website, I 
decided beans were the best way to transfer data across the 
model-controller interface.  I just have to convert my DVform beans into 
my own value beans using BeanUtils and it's done. I was just worried it 
would impact performance. This stuff is for my own website and it's not 
necessarily the case that I can afford the fast hardware!

Cheers
Adam
Jens v.P. wrote:
Hello,

there were many answers here about J2EE patterns and things like OJB.
A nice demonstration of these things can be found in Chuck Cavaness 
book Programming Jakarta Struts - there's an example using these 
pattern with OJB and Struts (chapter 6: Struts Model Components).

Jens

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



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


Re[7]: validate = false does not work

2003-07-25 Thread Dirk Markert
Hello Michael,

what is the action you are starting with, proposalAdd or requestSave?

Which version of Struts are you using? The sources of ActionServlet
(version 1.02) only have 1795 lines. Your stack trace says line 1955
in ActionServlet.

***

MO Hi Dirk,

MO thanks for your help. I don´t think that the validate get´s called
MO elsewhere. See... config. always forward success is called. it crashes
MO from end of proposalAdd to proposalEdit.

MOactionpath=/requestSave
MO   type=epool.controller.request.SaveAction
MO   name=requestForm
MO   scope=request
MO   validate=false
MO   input=/requestaddedit.jsp
MO forward name=success path=/proposalAdd.action/
MO/action
MO  actionpath=/proposalAdd
MO   type=epool.controller.proposal.AddAction
MO   name=requestForm
MO   scope=request
MO   validate=false
MO   input=/proposaladdedit.jsp
MO  forward name=success  path=/proposalEdit.action/
MO/action

MO   actionpath=/proposalEdit
MO   type=epool.controller.proposal.EditAction
MO   name=proposalForm
MO   scope=request
MO   validate=false
MO   input=/proposaladdedit.jsp
MO forward name=success  path=/proposaladdedit.jsp/
MO/action

MO see the stack trace says, that struts calls the validate method

MO ...
MO  at epool.view.AbstractActionForm.validate(AbstractActionForm.java:214)
MO  at
MO org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:19
MO 55)
MO ..
MO- Original Message - 
MO From: Dirk Markert [EMAIL PROTECTED]
MO To: Struts Users Mailing List [EMAIL PROTECTED]
MO Sent: Friday, July 25, 2003 11:35 AM
MO Subject: Re[5]: validate = false does not work


 Hello Michael,



 ***

 MO no there is no validate call in the whole project. i searched for
MO references
 MO und declarations.

 By default, validate is performed for every action mapping. If another
MO action mapping
 is using your requestForm the validate method will be called. Check
 your action mappings.

 MO what does
 MO init-param
 MO   param-namevalidate/param-name
 MO   param-valuetrue/param-value
 MO /init-param

 That's for validating your config files.

 MO in the web.xml mean? perhaps is there anything wrong?
 MO - Original Message - 
 MO From: Dirk Markert [EMAIL PROTECTED]
 MO To: Struts Users Mailing List [EMAIL PROTECTED]
 MO Sent: Friday, July 25, 2003 11:15 AM
 MO Subject: Re[3]: validate = false does not work


  Hello Michael,
 
may be your /proposalEdit.action??
 
  ***
 
  DM Hello Michael,
 
  DM there is/was no problem with validation. Perhaps another action
  DM mapping is calling your validate action?
 
  DM ***
 
  MO No, I have restarted everything. I´ve got an older version of
MO struts.
 MO Was
  MO there a problem once? I can´t switch to a newer version, because
MO of
 MO the
  MO spec.
  MO - Original Message - 
  MO From: Nagaraj_K [EMAIL PROTECTED]
  MO To: Struts Users Mailing List [EMAIL PROTECTED]
  MO Sent: Friday, July 25, 2003 10:48 AM
  MO Subject: RE: validate = false does not work
 
 
  MO I dont see any error in what is mentioned out here. Only doubt for
MO me
 MO is
  MO that if u have changed the XML file in the middle and have not
 MO restarted the
  MO webserver...
  MO try restarting web server once...
 
  MO -Original Message-
  MO From: Michael Olszynski [mailto:[EMAIL PROTECTED]
  MO Sent: Friday, July 25, 2003 1:57 PM
  MO To: 'Struts Users Mailing List'
  MO Subject: validate = false does not work
 
 
  MO Hi,
 
  MO Validate=false in my struts-config.xml does not work. The validate
 MO Method is
  MO called alway. Can anybody help me? See:
 
  MO  actionpath=/proposalAdd
  MO   type=epool.controller.proposal.AddAction
  MO   name=requestForm
  MO   scope=request
  MO   validate=false
  MO   input=/proposaladdedit.jsp
  MO  forward name=success  path=/proposalEdit.action/
  MO/action
 
  MO Is there any error?
 
  MO I´m using an older version of struts..
  MO
 MO
MO **
  MO This email (including any attachments) is intended for the sole
MO use
 MO of the
  MO intended recipient/s and may contain material that is CONFIDENTIAL
 MO AND
  MO PRIVATE COMPANY INFORMATION. Any review or reliance by others or
 MO copying or
  MO distribution or forwarding of any or all of the contents in this
 MO message is
  MO STRICTLY 

Re: Re[7]: validate = false does not work

2003-07-25 Thread Michael Olszynski
Hi Dirk,

I´m using version 1.0.

I´m starting with requestSave. I don´t get it, why Struts is calling the
validate method of my proposalForm.

Thanks Michael
- Original Message - 
From: Dirk Markert [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:19 PM
Subject: Re[7]: validate = false does not work


 Hello Michael,

 what is the action you are starting with, proposalAdd or requestSave?

 Which version of Struts are you using? The sources of ActionServlet
 (version 1.02) only have 1795 lines. Your stack trace says line 1955
 in ActionServlet.

 ***

 MO Hi Dirk,

 MO thanks for your help. I don´t think that the validate get´s called
 MO elsewhere. See... config. always forward success is called. it
crashes
 MO from end of proposalAdd to proposalEdit.

 MOactionpath=/requestSave
 MO   type=epool.controller.request.SaveAction
 MO   name=requestForm
 MO   scope=request
 MO   validate=false
 MO   input=/requestaddedit.jsp
 MO forward name=success path=/proposalAdd.action/
 MO/action
 MO  actionpath=/proposalAdd
 MO   type=epool.controller.proposal.AddAction
 MO   name=requestForm
 MO   scope=request
 MO   validate=false
 MO   input=/proposaladdedit.jsp
 MO  forward name=success  path=/proposalEdit.action/
 MO/action

 MO   actionpath=/proposalEdit
 MO   type=epool.controller.proposal.EditAction
 MO   name=proposalForm
 MO   scope=request
 MO   validate=false
 MO   input=/proposaladdedit.jsp
 MO forward name=success  path=/proposaladdedit.jsp/
 MO/action

 MO see the stack trace says, that struts calls the validate method

 MO ...
 MO  at
epool.view.AbstractActionForm.validate(AbstractActionForm.java:214)
 MO  at
 MO
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:19
 MO 55)
 MO ..
 MO- Original Message - 
 MO From: Dirk Markert [EMAIL PROTECTED]
 MO To: Struts Users Mailing List [EMAIL PROTECTED]
 MO Sent: Friday, July 25, 2003 11:35 AM
 MO Subject: Re[5]: validate = false does not work


  Hello Michael,
 
 
 
  ***
 
  MO no there is no validate call in the whole project. i searched for
 MO references
  MO und declarations.
 
  By default, validate is performed for every action mapping. If another
 MO action mapping
  is using your requestForm the validate method will be called. Check
  your action mappings.
 
  MO what does
  MO init-param
  MO   param-namevalidate/param-name
  MO   param-valuetrue/param-value
  MO /init-param
 
  That's for validating your config files.
 
  MO in the web.xml mean? perhaps is there anything wrong?
  MO - Original Message - 
  MO From: Dirk Markert [EMAIL PROTECTED]
  MO To: Struts Users Mailing List [EMAIL PROTECTED]
  MO Sent: Friday, July 25, 2003 11:15 AM
  MO Subject: Re[3]: validate = false does not work
 
 
   Hello Michael,
  
 may be your /proposalEdit.action??
  
   ***
  
   DM Hello Michael,
  
   DM there is/was no problem with validation. Perhaps another action
   DM mapping is calling your validate action?
  
   DM ***
  
   MO No, I have restarted everything. I´ve got an older version of
 MO struts.
  MO Was
   MO there a problem once? I can´t switch to a newer version,
because
 MO of
  MO the
   MO spec.
   MO - Original Message - 
   MO From: Nagaraj_K [EMAIL PROTECTED]
   MO To: Struts Users Mailing List
[EMAIL PROTECTED]
   MO Sent: Friday, July 25, 2003 10:48 AM
   MO Subject: RE: validate = false does not work
  
  
   MO I dont see any error in what is mentioned out here. Only doubt
for
 MO me
  MO is
   MO that if u have changed the XML file in the middle and have not
  MO restarted the
   MO webserver...
   MO try restarting web server once...
  
   MO -Original Message-
   MO From: Michael Olszynski [mailto:[EMAIL PROTECTED]
   MO Sent: Friday, July 25, 2003 1:57 PM
   MO To: 'Struts Users Mailing List'
   MO Subject: validate = false does not work
  
  
   MO Hi,
  
   MO Validate=false in my struts-config.xml does not work. The
validate
  MO Method is
   MO called alway. Can anybody help me? See:
  
   MO  actionpath=/proposalAdd
   MO   type=epool.controller.proposal.AddAction
   MO   name=requestForm
   MO   scope=request
   MO   validate=false
   MO   input=/proposaladdedit.jsp
   MO  forward name=success  path=/proposalEdit.action/
   MO/action
  
   MO Is there 

Nested bean : No getter method

2003-07-25 Thread Jean Bernard DUGIED
Hi

I am trying to reuse a class generated by some tool.
Class look like this :
/***
 * Module:  T_ADreglev2.java
 ***/

package org.oie.model;

import java.util.*;

public class T_ADREGLEV2
{
   /** District */
   public int ADR2CODE;
   /** FK text code du state */
   public int R2ADR1CODE;
   // other properties...

   public int getADR2CODE()
   {
  return ADR2CODE;
   }
   public void setADR2CODE(int newADR2CODE)
   {
  ADR2CODE = newADR2CODE;
   }
   // other methods...

  public int getR2ADR1CODE() {
return R2ADR1CODE;
  }
  public void setR2ADR1CODE(int R2ADR1CODE) {
this.R2ADR1CODE = R2ADR1CODE;
  }
}

I put this class in a Reglev2 business class as a nested bean. When
accessing the R2ADR1CODE field from a a jsp with :
  html:text property=bean.R2ADR1CODE size=50/

... I get :
org.apache.jasper.JasperException: No getter method for property
bean.R2ADR1CODE of bean org.apache.struts.taglib.html.BEAN

The fact that the property name's initial is in uppercase. Maybe it is the
problem. But similar code works perfectly well with the ADR2CODE property,
which is similar. So I am confused...

Do you have idea of what is going on : why does it work here and not there ?
tIA



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



sslext

2003-07-25 Thread Nagendra Kumar O V S








  hi,
  i am using struts1.1 with sslext .
  
  everything seems to be working fine , but one problem i observe is 
  that, when the url is redirected , all the request parameters show up in 
  the query string. how can i avoid it
  
  TAI
  --nagi
  
  Nagendra Kumar O V S
  Member Technical Staff
  Ikigo India Private Ltd.
  470-B, Road No. 36,
  Jubilee Hills,
  Hyderabad 500033
  Contact(O): 23544671
  Cell: 98482-41789





	
	
	
	
	
	
	




 IncrediMail - 
Email has finally evolved - Click 
Here



RE[Enlightenment]: DynaAF in session scope checkboxes

2003-07-25 Thread Mike Whittaker

Has anyone had this combination to work?
I either lose session persistence or (classically) can't clear all
checkboxes.
I've tried overiding reset() in numerous ways.


I think I have found a solution.
I hope this will be of interest.  Any comments appreciated.

We are told to overide reset() in DynaAF to give desired behaviour ie
clearing all checkboxes as browser sends no request parameters for empty
boxes.

However, since reset is called before form population for that action, we
cannot find from Struts methods how many boxes were checked, except if we
use request parameters.

So we can look for null for the request parameter we are interested in.

However this reset method is called for every reference to the form not just
on submit.  And since the request parameter does not persist, our session
scoped form will not persist!

Solution:
Do nothing in the resest - but shift the exact same logic to an Action that
is called just on Submit.

/*
FormPropertyConfig can be subclassed to provide custom reset by property set
in struts-config:
form-property name=Gradestype=java.lang.String[]
className=com.company.CondResetFormPropertyConfig
set-property property=reset value=true /
/form-property ]
*/

import java.util.*;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.apache.struts.config.*;
import org.apache.struts.util.*;

public class PreferencesAction extends Action {

public ActionForward execute(ActionMapping mapping, ActionForm aForm,
HttpServletRequest request, HttpServletResponse res) throws Exception {

DynaActionForm form = (DynaActionForm)aForm;

String name = mapping.getName(); // name of form bean
if (name == null) {
   return null; // probably throw exception, should always be bean for
this action
}
FormBeanConfig config =
   mapping.getModuleConfig().findFormBeanConfig(name); // FBC for this
form bean
if (config == null) {
   return null; // probably throw exception
}
FormPropertyConfig[] props = config.findFormPropertyConfigs();
for (int i = 0; i  props.length; i++) {
// reset only if CondResetFPC  getReset() returns true
if (props[i] instanceof CondResetFormPropertyConfig 
(((CondResetFormPropertyConfig)props[i]).getReset())) {

if(props[i].getName().equals(Grades)) { // trace

System.out.println(Action.perform());
System.out.println(PropertyLength
\t+((String[])form.get(Grades)).length);
System.out.println(PropertyType 
\t+props[i].getType());
System.out.println(PropertyName 
\t+props[i].getName());
System.out.println(RequestParameter
\t+request.getParameter(props[i].getName()));
}

if(request.getParameter(props[i].getName()) == null) {
form.set(props[i].getName(), 
props[i].initial());
}

}

}

return mapping.getInputForward();
}

}




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



Re: sslext

2003-07-25 Thread Aleksandar Matijaca
Do you have a session established before you do this?  Try doing your 
request.getSession(true); before executing the sslext pages...

a.m.

Nagendra Kumar O V S wrote:

 
hi,
i am using struts1.1 with sslext .
 
everything seems to be working fine , but one problem i observe is 
that, when the url is redirected , all the request parameters show up 
in the query string. how can i avoid it
 
TAI
--nagi
 
*Nagendra Kumar O V S*
Member Technical Staff
/Ikigo India Private Ltd./
/470-B, Road No. 36,/
/Jubilee Hills,/
/Hyderabad 500033/
Contact(O): 23544671
Cell: 98482-41789




http://www.incredimail.com/redir.asp?ad_id=309lang=9  /IncrediMail/ 
- *Email has finally evolved* - *_Click Here_* 
http://www.incredimail.com/redir.asp?ad_id=309lang=9 




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


Re: sslext

2003-07-25 Thread Nagendra Kumar O V S








  hi,
  session is well established while login and i am using SSL for the 
  creditcard page
  
  i forgot to mention, it appends along with 
  jsessionid(obviously)..
  i feel i am missing something here in the configuration
  
  when i submit from the creditcard page, it comes back to the http 
  protocol with jsessionid and all the creditcard details appended to the 
  querystring.
  and i am using sslext:form on the creditcard jsp page
  
  any guess??
  
  TIA
  -- nagi
  
  ---Original Message---
  
  
  From: Struts Users Mailing 
  List
  Date: Friday, July 25, 
  2003 04:59:07 PM
  To: Struts Users Mailing 
  List
  Subject: Re: 
  sslext
  Do you have a session established before you do this? Try 
  doing your request.getSession(true); before executing the sslext 
  pages...a.m.Nagendra Kumar O V S wrote: 
   hi, i am using struts1.1 with sslext .  
  everything seems to be working fine , but one problem i observe is 
   that, when the url is redirected , all the request parameters 
  show up  in the query string. how can i avoid it  
  TAI --nagi  *Nagendra Kumar O V S* Member 
  Technical Staff /Ikigo India Private Ltd./ /470-B, Road 
  No. 36,/ /Jubilee Hills,/ /Hyderabad 500033/ 
  Contact(O): 23544671 Cell: 98482-41789  
   
   http://www.incredimail.com/redir.asp?ad_id=309lang=9 
  /IncrediMail/  - *Email has finally evolved* - *_Click Here_* 
   http://www.incredimail.com/redir.asp?ad_id=309lang=9 
  -To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




 IncrediMail - 
Email has finally evolved - Click 
Here



RE: How to add action errors from action class's execute method

2003-07-25 Thread Anurag Garg
Hi,

U can create the ActionError object and add them in the ActionErrors class
in the action class.
Now to forward the request to some resource add the actionerrors object
method in the sendError().

Use saveErrors(request,errors) in the action class.

where errors is an object of type ActionClass.

Anurag Garg.


-Original Message-
From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 11:36 PM
To: [EMAIL PROTECTED]
Subject: How to add action errors from action class's execute method


Hello all,

How would you add action errors from an action class's execute method?

I would like to be able to add errors and forward to another resource
without the need to do it in the validate method of the form bean.

Thanks,

Joshua



This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If
you are not the intended recipient, please notify the sender
immediately by return email and delete this communication and destroy all
copies.


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


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



Re: sslext

2003-07-25 Thread Aleksandar Matijaca
My page is not SSL, but my form does a https submit, and then it 
forwards on to itself - after submitting, the page IS https - and then 
I get only jsessionid in the line.
I have a

sslext:pageScheme secure=false  /

In my page right above the

sslext:form 

This drove me nuts...

Regards, a.m.

Nagendra Kumar O V S wrote:

hi,
session is well established while login and i am using SSL for the 
creditcard page
 
i forgot to mention, it appends along with jsessionid(obviously)..
i feel i am missing something here in the configuration
 
when i submit from the creditcard page, it comes back to the http 
protocol with jsessionid and all the creditcard details appended to 
the querystring.
and i am using sslext:form on the creditcard jsp page
 
any guess??
 
TIA
-- nagi
 
/---Original Message---/
 
/*From:*/ Struts Users Mailing List 
mailto:[EMAIL PROTECTED]
/*Date:*/ Friday, July 25, 2003 04:59:07 PM
/*To:*/ Struts Users Mailing List mailto:[EMAIL PROTECTED]
/*Subject:*/ Re: sslext
 
Do you have a session established before you do this? Try doing your
request.getSession(true); before executing the sslext pages...

a.m.

Nagendra Kumar O V S wrote:


 hi,
 i am using struts1.1 with sslext .

 everything seems to be working fine , but one problem i observe is
 that, when the url is redirected , all the request parameters show up
 in the query string. how can i avoid it

 TAI
 --nagi

 *Nagendra Kumar O V S*
 Member Technical Staff
 /Ikigo India Private Ltd./
 /470-B, Road No. 36,/
 /Jubilee Hills,/
 /Hyderabad 500033/
 Contact(O): 23544671
 Cell: 98482-41789




 
 http://www.incredimail.com/redir.asp?ad_id=309lang=9 
http://www.incredimail.com/redir.asp?ad_id=309lang=9 /IncrediMail/
 - *Email has finally evolved* - *_Click Here_*
 http://www.incredimail.com/redir.asp?ad_id=309lang=9 
http://www.incredimail.com/redir.asp?ad_id=309lang=9





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

.




http://www.incredimail.com/redir.asp?ad_id=309lang=9  /IncrediMail/ 
- *Email has finally evolved* - *_Click Here_* 
http://www.incredimail.com/redir.asp?ad_id=309lang=9 




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


Re: sslext

2003-07-25 Thread Nagendra Kumar O V S








  hi
  thnx for the input.
  i did try with the pageScheme tag.. it did't make any diff
  then next trial was to direct to https from creditcard page rather 
  than http.. i observe that the paramerters are't anymore on the 
  querystring.(strange) so to say, can't i submit a https form and then 
  forward to http page??
  
  - nagi
  
  ---Original Message---
  
  
  From: Struts Users Mailing 
  List
  Date: Friday, July 25, 
  2003 05:31:11 PM
  To: Struts Users Mailing 
  List
  Subject: Re: 
  sslext
  My page is not SSL, but my form does a https submit, and 
  then it forwards on to "itself" - after submitting, the page IS https 
  - and then I get only jsessionid in the line.I have 
  asslext:pageScheme secure="false" /In my page 
  right above thesslext:form This drove me 
  nuts...Regards, a.m.Nagendra Kumar O V S 
  wrote: hi, session is well established while login and 
  i am using SSL for the  creditcard page  i forgot 
  to mention, it appends along with jsessionid(obviously).. i feel i 
  am missing something here in the configuration  when i 
  submit from the creditcard page, it comes back to the http  
  protocol with jsessionid and all the creditcard details appended to 
   the querystring. and i am using sslext:form on the 
  creditcard jsp page  any guess??  
  TIA -- nagi  /---Original 
  Message---/  /*From:*/ Struts Users Mailing List 
   mailto:[EMAIL PROTECTED] 
  /*Date:*/ Friday, July 25, 2003 04:59:07 PM /*To:*/ Struts Users 
  Mailing List mailto:[EMAIL PROTECTED] 
  /*Subject:*/ Re: sslext  Do you have a session established 
  before you do this? Try doing your request.getSession(true); 
  before executing the sslext pages... 
  a.m. Nagendra Kumar O V S wrote: 
hi,  i am using struts1.1 with sslext 
  .   everything seems to be working fine , but one 
  problem i observe is  that, when the url is redirected , all 
  the request parameters show up  in the query string. how can i 
  avoid it   TAI  --nagi 
*Nagendra Kumar O V S*  Member Technical 
  Staff  /Ikigo India Private Ltd./  /470-B, Road 
  No. 36,/  /Jubilee Hills,/  /Hyderabad 
  500033/  Contact(O): 23544671  Cell: 
  98482-41789 
     
  http://www.incredimail.com/redir.asp?ad_id=309lang=9 
   http://www.incredimail.com/redir.asp?ad_id=309lang=9 
  /IncrediMail/  - *Email has finally evolved* - *_Click 
  Here_*  http://www.incredimail.com/redir.asp?ad_id=309lang=9 
   http://www.incredimail.com/redir.asp?ad_id=309lang=9 
  - 
  To unsubscribe, e-mail: [EMAIL PROTECTED] 
   mailto:[EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED] 
   mailto:[EMAIL PROTECTED] 
  .   
   http://www.incredimail.com/redir.asp?ad_id=309lang=9 
  /IncrediMail/  - *Email has finally evolved* - *_Click Here_* 
   http://www.incredimail.com/redir.asp?ad_id=309lang=9 
  -To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




 IncrediMail - 
Email has finally evolved - Click 
Here



Re[9]: validate = false does not work

2003-07-25 Thread Dirk Markert
Hello Michael,

even in version 1.0 there is no line 1955 in ActionServlet!? Has
anyone changed the sources?

Can you send your complete stack trace? It might help.

***

MO Hi Dirk,

MO I´m using version 1.0.

MO I´m starting with requestSave. I don´t get it, why Struts is calling the
MO validate method of my proposalForm.

MO Thanks Michael
MO - Original Message - 
MO From: Dirk Markert [EMAIL PROTECTED]
MO To: Struts Users Mailing List [EMAIL PROTECTED]
MO Sent: Friday, July 25, 2003 12:19 PM
MO Subject: Re[7]: validate = false does not work


 Hello Michael,

 what is the action you are starting with, proposalAdd or requestSave?

 Which version of Struts are you using? The sources of ActionServlet
 (version 1.02) only have 1795 lines. Your stack trace says line 1955
 in ActionServlet.

 ***

 MO Hi Dirk,

 MO thanks for your help. I don´t think that the validate get´s called
 MO elsewhere. See... config. always forward success is called. it
MO crashes
 MO from end of proposalAdd to proposalEdit.

 MOactionpath=/requestSave
 MO   type=epool.controller.request.SaveAction
 MO   name=requestForm
 MO   scope=request
 MO   validate=false
 MO   input=/requestaddedit.jsp
 MO forward name=success path=/proposalAdd.action/
 MO/action
 MO  actionpath=/proposalAdd
 MO   type=epool.controller.proposal.AddAction
 MO   name=requestForm
 MO   scope=request
 MO   validate=false
 MO   input=/proposaladdedit.jsp
 MO  forward name=success  path=/proposalEdit.action/
 MO/action

 MO   actionpath=/proposalEdit
 MO   type=epool.controller.proposal.EditAction
 MO   name=proposalForm
 MO   scope=request
 MO   validate=false
 MO   input=/proposaladdedit.jsp
 MO forward name=success  path=/proposaladdedit.jsp/
 MO/action

 MO see the stack trace says, that struts calls the validate method

 MO ...
 MO  at
MO epool.view.AbstractActionForm.validate(AbstractActionForm.java:214)
 MO  at
 MO
MO org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:19
 MO 55)
 MO ..
 MO- Original Message - 
 MO From: Dirk Markert [EMAIL PROTECTED]
 MO To: Struts Users Mailing List [EMAIL PROTECTED]
 MO Sent: Friday, July 25, 2003 11:35 AM
 MO Subject: Re[5]: validate = false does not work


  Hello Michael,
 
 
 
  ***
 
  MO no there is no validate call in the whole project. i searched for
 MO references
  MO und declarations.
 
  By default, validate is performed for every action mapping. If another
 MO action mapping
  is using your requestForm the validate method will be called. Check
  your action mappings.
 
  MO what does
  MO init-param
  MO   param-namevalidate/param-name
  MO   param-valuetrue/param-value
  MO /init-param
 
  That's for validating your config files.
 
  MO in the web.xml mean? perhaps is there anything wrong?
  MO - Original Message - 
  MO From: Dirk Markert [EMAIL PROTECTED]
  MO To: Struts Users Mailing List [EMAIL PROTECTED]
  MO Sent: Friday, July 25, 2003 11:15 AM
  MO Subject: Re[3]: validate = false does not work
 
 
   Hello Michael,
  
 may be your /proposalEdit.action??
  
   ***
  
   DM Hello Michael,
  
   DM there is/was no problem with validation. Perhaps another action
   DM mapping is calling your validate action?
  
   DM ***
  
   MO No, I have restarted everything. I´ve got an older version of
 MO struts.
  MO Was
   MO there a problem once? I can´t switch to a newer version,
MO because
 MO of
  MO the
   MO spec.
   MO - Original Message - 
   MO From: Nagaraj_K [EMAIL PROTECTED]
   MO To: Struts Users Mailing List
MO [EMAIL PROTECTED]
   MO Sent: Friday, July 25, 2003 10:48 AM
   MO Subject: RE: validate = false does not work
  
  
   MO I dont see any error in what is mentioned out here. Only doubt
MO for
 MO me
  MO is
   MO that if u have changed the XML file in the middle and have not
  MO restarted the
   MO webserver...
   MO try restarting web server once...
  
   MO -Original Message-
   MO From: Michael Olszynski [mailto:[EMAIL PROTECTED]
   MO Sent: Friday, July 25, 2003 1:57 PM
   MO To: 'Struts Users Mailing List'
   MO Subject: validate = false does not work
  
  
   MO Hi,
  
   MO Validate=false in my struts-config.xml does not work. The
MO validate
  MO Method is
   MO called alway. Can anybody help me? See:
  
   MO  actionpath=/proposalAdd
   MO   

RE: ServletException Response has already been committed'

2003-07-25 Thread Sashi Ravipati
   
This is for the first JSP
  action path=/updateprovider
type=gov.mi.mdch.pe.strutsactions.UpdateProviderAction 
  forward name=success
path=/WEB-INF/jsp/UpdProvDetailInfo.jsp/
/action

I want to include another JSP  in the above jsp using jsp:include
page=selectedproviderinfo.do flush=true

  action path=/selectedproviderinfo
type=gov.mi.mdch.pe.strutsactions.SeletedProviderInfoAction
  include path=/WEB-INF/jsp/SelectedProviderInfo.jsp/
/action


This throws Error Message: Error in servlet 

What am I doing wrong here ???


 [EMAIL PROTECTED] 07/24/03 04:57PM 
Ok I was looking for a way to tell the ActionServlet to include, rahter
than
forward to the view.
It seems you do it with include element instead of forward element
in
your action mapping configuration.
So your action path=selectedproviderinfo.do... should have a
include
instead of a forward to that view.
Hope this does it.

ranko

-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 4:47 PM
To: [EMAIL PROTECTED]
Subject: RE: ServletException Response has already been committed'


The jsp:include is not a direct JSP and it needs to retrieve data from
the database and set the values in the Formbean .

I am not sure how this can be achieved, Tiles talks abt it ,but is not
clear to me.



 [EMAIL PROTECTED] 07/24/03 04:34PM 
When the ActionServlet forwards to your view that is usually the only
forward that happens and everything is fine.
When you include another Struts Action in your view with jsp:include,
another forward happens.

If you are not doing anything in the Action but returning an
ActionForward
to the jsp page, maybe you can just go directly to the page in your
jsp:include tag.  I don't know how kosher that is in the Struts
environment though.

Is there a way to tell ActionServlet to use include() instead of
forward()?

ranko

-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:42 PM
To: [EMAIL PROTECTED]
Subject: RE: ServletException Response has already been committed'


Going thru the struts archives it is clear that once forward() is done
then the exception is raised. But can some one help as how this can be
achieved using Struts.

I am new to struts so this may be a naive questions, but how can I show
a JSP page without using forward ?

This is what I ma trying to do

action path=/updateprovider ...
  forward name=success path=/WEB-INF/jsp/UpdProvDetailInfo.jsp/
/action

The UpdProvDetailInfo.jsp has the includes, so without forward how can I
even show the page.

Or Am i missing something..

Thanks

 [EMAIL PROTECTED] 07/24/03 03:29PM 
I'm not sure how ActionServlet processes ActionForwards, but if it uses
the
forward() method of the RequestDispatcher then the response cannot be
commited already.  In addition, forward() will commit so you cannot try
to
commit again.  This means that if you have more than one jsp:include
mapped to a Struts Action, then you will try to commit the respnose
twice.
Or after the the Action is done, the rest of the jsp page will try to
write
more stuff to the client and cause the exception.  If the ActionServlet
is
not using RequestDispatcher.forward() then I don't know.  More
experienced
Struts guys will probably be able to clear this up.

ranko

-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:57 PM
To: [EMAIL PROTECTED]
Subject: Re: ServletException Response has already been committed'


I checked it , it works fine when I just use the
selectedproviderinfo.do .
I get this error when I try to Include this another jsp page.

Thanks


 [EMAIL PROTECTED] 07/24/03 02:47PM 
is there a chance that accessing selectedproviderinfo.do  by itself
would
also cause the same servletexception ?


From: Sashi Ravipati [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: ServletException Response has already been committed'
Date: Thu, 24 Jul 2003 14:39:34 -0400

I have a jsp page which I need to include in all my other JSP pages. I
created an action for JSP to be included and used
jsp:include page=selectedproviderinfo.do /.
This throws Servlet Exception.

I also tried tiles:insert page=page=selectedproviderinfo.do  / but
the
same result.

How can this be achieved.

Thanks

_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


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


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


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

How can I get a value and a name that is different on a html:options collection?

2003-07-25 Thread Bard A. Evjen
I have a Form class:

public Collection getMyMonthList() {
 myMonthList = new Vector();
 Calendar cal = Calendar.getInstance();
 cal.setTime(new Date(01012003));
 for (int i = 1; i  13; i++) {
   String label = monthListFormat.format(zeroTime(cal.getTime(), 
Calendar.MONTH, i));
   LabelValueBean labelBean = new LabelValueBean(i, label);
   myMonthList.add(labelBean);
 }
 return myMonthList;
}

and a jsp-file with:

html:select size=1 property=reportDateMonth
 html:options property=myMonthList labelProperty=myMonthList/
/html:select
But this returns

LabelValueBean[i,February]
LabelValueBean[i,March]
LabelValueBean[i,April]
LabelValueBean[i,May]
LabelValueBean[i,June]
LabelValueBean[i,July]
LabelValueBean[i,August]
LabelValueBean[i,September]
LabelValueBean[i,October]
LabelValueBean[i,November]
LabelValueBean[i,Desember]
LabelValueBean[i,January]
I want to display the name (eg. january) and the value in the option tag 
(eg. 1).

What have I done wrong?

Cheers,
Bard A.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Pre-Setting DynaValidatorForm attributes (solution/conclusion)

2003-07-25 Thread José Fortunato H. Tomás
Hi!

Just for close this post I want to say this:
- I had a bug for something stupid I made and I didn't realise what was referred 
by the exception.
The code that I presented here is the correct one. Since we are in a Action or 
JSP nested to an Action Form, a bean exists in the correct scope with the 
respective attribute name.

Thanks anyway.

José Fortunato H. Tomás wrote:

Hi!

I have the follow situation:
 - I get an Circuit Data Object from a manager
   Then I want to edit the Circuit in HTML form, using an 
DynaValidatorForm I don't know to how to do correct set for the 
propertyes priorly!

How should I set the properties priorly?

I'm tring to do the usual set(key, object), but I get an 
NullPointerException on getter:

java.lang.NullPointerException
at 
org.apache.struts.action.DynaActionForm.getDynaProperty(DynaActionForm.java:596) 

at 
org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:241)
at 
com.esegur.sims.util.struts.form.BasicDynaValidatorForm.getInteger(BasicDynaValidatorForm.java:32) 

at 
org.apache.jsp.circuitEditForm_jsp._jspService(circuitEditForm_jsp.java:145) 

at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) 

...

BasicDynaValidatorForm is just an helper for getString, getInteger and 
so on.

The code I'm using for setting is:
---
if (actionForm instanceof BasicDynaValidatorForm ) {
BasicDynaValidatorForm circuitEditForm = 
(BasicDynaValidatorForm)actionForm;

circuitEditForm.initialize(actionMapping);

CircuitDO cDO = 
Planning.getCircuitSessionAttr(httpServletRequest);
circuitEditForm.set( circuitId, cDO.getCircuitId() );
/*...*/
circuitEditForm.set( designation, cDO.getDesignation() );
}
---

Thanks
--
José Tomás
 LINK Consulting SA - http://www.link.pt
 Av. Duque de Avila 23 5º Dto. - 1000-138 Lisboa
 Telf: (+351) 213 100 095  Fax: (+351) 213 100 079


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


RE: How can I get a value and a name that is different on a html:options collection?

2003-07-25 Thread Robert Taylor
 LabelValueBean labelBean = new LabelValueBean(i, label);
Change to
 LabelValueBean labelBean = new LabelValueBean(String.valueOf(i),
label);

robert

 -Original Message-
 From: Bard A. Evjen [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 8:49 AM
 To: [EMAIL PROTECTED]
 Subject: How can I get a value and a name that is different on a
 html:options collection?


 I have a Form class:

 public Collection getMyMonthList() {
   myMonthList = new Vector();
   Calendar cal = Calendar.getInstance();
   cal.setTime(new Date(01012003));
   for (int i = 1; i  13; i++) {
 String label = monthListFormat.format(zeroTime(cal.getTime(),
 Calendar.MONTH, i));
 LabelValueBean labelBean = new LabelValueBean(i, label);
 myMonthList.add(labelBean);
   }
   return myMonthList;
 }

 and a jsp-file with:

 html:select size=1 property=reportDateMonth
   html:options property=myMonthList labelProperty=myMonthList/
 /html:select

 But this returns

 LabelValueBean[i,February]
 LabelValueBean[i,March]
 LabelValueBean[i,April]
 LabelValueBean[i,May]
 LabelValueBean[i,June]
 LabelValueBean[i,July]
 LabelValueBean[i,August]
 LabelValueBean[i,September]
 LabelValueBean[i,October]
 LabelValueBean[i,November]
 LabelValueBean[i,Desember]
 LabelValueBean[i,January]

 I want to display the name (eg. january) and the value in the option tag
 (eg. 1).

 What have I done wrong?

 Cheers,
 Bard A.


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



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



RE: How can I get a value and a name that is different on a html:options collection?

2003-07-25 Thread Nagaraj_K
I think you need to used nested iterate to get the desired result.Since you
are storing objects in the Collection,each value that is returned by
labelProperty is just object.toString();


-Original Message-
From: Bard A. Evjen [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 6:19 PM
To: [EMAIL PROTECTED]
Subject: How can I get a value and a name that is different on a
html:options collection?


I have a Form class:

public Collection getMyMonthList() {
  myMonthList = new Vector();
  Calendar cal = Calendar.getInstance();
  cal.setTime(new Date(01012003));
  for (int i = 1; i  13; i++) {
String label = monthListFormat.format(zeroTime(cal.getTime(), 
Calendar.MONTH, i));
LabelValueBean labelBean = new LabelValueBean(i, label);
myMonthList.add(labelBean);
  }
  return myMonthList;
}

and a jsp-file with:

html:select size=1 property=reportDateMonth
  html:options property=myMonthList labelProperty=myMonthList/
/html:select

But this returns

LabelValueBean[i,February]
LabelValueBean[i,March]
LabelValueBean[i,April]
LabelValueBean[i,May]
LabelValueBean[i,June]
LabelValueBean[i,July]
LabelValueBean[i,August]
LabelValueBean[i,September]
LabelValueBean[i,October]
LabelValueBean[i,November]
LabelValueBean[i,Desember]
LabelValueBean[i,January]

I want to display the name (eg. january) and the value in the option tag 
(eg. 1).

What have I done wrong?

Cheers,
Bard A.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**


html:base/ in Tiles pages question

2003-07-25 Thread Erez Efrati
I am using Tiles, now, where am I supposed to put the html:base / tag.
I would assume inside the mainLayout.jsp, but wouldn't it cause any
problems in other tile pages located in different directories?

Thanks,
Erez



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



Re: sslext

2003-07-25 Thread Aleksander . Matijara
I think it should work - another thing to try would be to use maybe 
sslext:rewrite for the actual action inside of a plain html form.
I have not tried this approach yet, but i will tonight...  The behaviour 
you are showing (no parameters in the https page) is exactly what I was
getting also.  Do you have cookies enabled and URL rewriting?

Regards, a.m.





Nagendra Kumar O V S [EMAIL PROTECTED]
25/07/2003 08:27 AM
Please respond to Struts Users Mailing List

 
To: [EMAIL PROTECTED]
cc: 
Subject:Re: sslext


hi
thnx for the input.
i did try with the pageScheme tag.. it did't make any diff
then next trial was to direct to https from creditcard page rather than 
http.. i observe that the paramerters are't anymore on the 
querystring.(strange) so to say, can't i submit a https form and then 
forward to http page??
 
- nagi
 
---Original Message---
 
From: Struts Users Mailing List
Date: Friday, July 25, 2003 05:31:11 PM
To: Struts Users Mailing List
Subject: Re: sslext
 
My page is not SSL, but my form does a https submit, and then it 
forwards on to itself - after submitting, the page IS https - and then 
I get only jsessionid in the line.
I have a

sslext:pageScheme secure=false /

In my page right above the

sslext:form 

This drove me nuts...

Regards, a.m.


Nagendra Kumar O V S wrote:

 hi,
 session is well established while login and i am using SSL for the 
 creditcard page
 
 i forgot to mention, it appends along with jsessionid(obviously)..
 i feel i am missing something here in the configuration
 
 when i submit from the creditcard page, it comes back to the http 
 protocol with jsessionid and all the creditcard details appended to 
 the querystring.
 and i am using sslext:form on the creditcard jsp page
 
 any guess??
 
 TIA
 -- nagi
 
 /---Original Message---/
 
 /*From:*/ Struts Users Mailing List 
 mailto:[EMAIL PROTECTED]
 /*Date:*/ Friday, July 25, 2003 04:59:07 PM
 /*To:*/ Struts Users Mailing List mailto:[EMAIL PROTECTED]
 /*Subject:*/ Re: sslext
 
 Do you have a session established before you do this? Try doing your
 request.getSession(true); before executing the sslext pages...

 a.m.


 Nagendra Kumar O V S wrote:

 
  hi,
  i am using struts1.1 with sslext .
 
  everything seems to be working fine , but one problem i observe is
  that, when the url is redirected , all the request parameters show up
  in the query string. how can i avoid it
 
  TAI
  --nagi
 
  *Nagendra Kumar O V S*
  Member Technical Staff
  /Ikigo India Private Ltd./
  /470-B, Road No. 36,/
  /Jubilee Hills,/
  /Hyderabad 500033/
  Contact(O): 23544671
  Cell: 98482-41789
 
 
 
 
  
  http://www.incredimail.com/redir.asp?ad_id=309lang=9 
 http://www.incredimail.com/redir.asp?ad_id=309lang=9 /IncrediMail/
  - *Email has finally evolved* - *_Click Here_*
  http://www.incredimail.com/redir.asp?ad_id=309lang=9 
 http://www.incredimail.com/redir.asp?ad_id=309lang=9





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


 .

 
 

 
 http://www.incredimail.com/redir.asp?ad_id=309lang=9 /IncrediMail/ 
 - *Email has finally evolved* - *_Click Here_* 
 http://www.incredimail.com/redir.asp?ad_id=309lang=9 





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


.






  IncrediMail - Email has finally evolved - Click Here 



Re: Re[9]: validate = false does not work

2003-07-25 Thread Michael Olszynski
I had a look in the sources, indeed sb. changed them. I talked with my
collegues, we changed to struts version 1.1, now everything works fine.

Thanks a lot for your help. I really appreciate this!

- Original Message - 
From: Dirk Markert [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 2:40 PM
Subject: Re[9]: validate = false does not work


 Hello Michael,

 even in version 1.0 there is no line 1955 in ActionServlet!? Has
 anyone changed the sources?

 Can you send your complete stack trace? It might help.

 ***

 MO Hi Dirk,

 MO I´m using version 1.0.

 MO I´m starting with requestSave. I don´t get it, why Struts is calling
the
 MO validate method of my proposalForm.

 MO Thanks Michael
 MO - Original Message - 
 MO From: Dirk Markert [EMAIL PROTECTED]
 MO To: Struts Users Mailing List [EMAIL PROTECTED]
 MO Sent: Friday, July 25, 2003 12:19 PM
 MO Subject: Re[7]: validate = false does not work


  Hello Michael,
 
  what is the action you are starting with, proposalAdd or requestSave?
 
  Which version of Struts are you using? The sources of ActionServlet
  (version 1.02) only have 1795 lines. Your stack trace says line 1955
  in ActionServlet.
 
  ***
 
  MO Hi Dirk,
 
  MO thanks for your help. I don´t think that the validate get´s called
  MO elsewhere. See... config. always forward success is called. it
 MO crashes
  MO from end of proposalAdd to proposalEdit.
 
  MOactionpath=/requestSave
  MO   type=epool.controller.request.SaveAction
  MO   name=requestForm
  MO   scope=request
  MO   validate=false
  MO   input=/requestaddedit.jsp
  MO forward name=success path=/proposalAdd.action/
  MO/action
  MO  actionpath=/proposalAdd
  MO   type=epool.controller.proposal.AddAction
  MO   name=requestForm
  MO   scope=request
  MO   validate=false
  MO   input=/proposaladdedit.jsp
  MO  forward name=success  path=/proposalEdit.action/
  MO/action
 
  MO   actionpath=/proposalEdit
  MO   type=epool.controller.proposal.EditAction
  MO   name=proposalForm
  MO   scope=request
  MO   validate=false
  MO   input=/proposaladdedit.jsp
  MO forward name=success  path=/proposaladdedit.jsp/
  MO/action
 
  MO see the stack trace says, that struts calls the validate method
 
  MO ...
  MO  at
 MO epool.view.AbstractActionForm.validate(AbstractActionForm.java:214)
  MO  at
  MO
 MO
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:19
  MO 55)
  MO ..
  MO- Original Message - 
  MO From: Dirk Markert [EMAIL PROTECTED]
  MO To: Struts Users Mailing List [EMAIL PROTECTED]
  MO Sent: Friday, July 25, 2003 11:35 AM
  MO Subject: Re[5]: validate = false does not work
 
 
   Hello Michael,
  
  
  
   ***
  
   MO no there is no validate call in the whole project. i searched
for
  MO references
   MO und declarations.
  
   By default, validate is performed for every action mapping. If
another
  MO action mapping
   is using your requestForm the validate method will be called.
Check
   your action mappings.
  
   MO what does
   MO init-param
   MO   param-namevalidate/param-name
   MO   param-valuetrue/param-value
   MO /init-param
  
   That's for validating your config files.
  
   MO in the web.xml mean? perhaps is there anything wrong?
   MO - Original Message - 
   MO From: Dirk Markert [EMAIL PROTECTED]
   MO To: Struts Users Mailing List [EMAIL PROTECTED]
   MO Sent: Friday, July 25, 2003 11:15 AM
   MO Subject: Re[3]: validate = false does not work
  
  
Hello Michael,
   
  may be your /proposalEdit.action??
   
***
   
DM Hello Michael,
   
DM there is/was no problem with validation. Perhaps another
action
DM mapping is calling your validate action?
   
DM
***
   
MO No, I have restarted everything. I´ve got an older version
of
  MO struts.
   MO Was
MO there a problem once? I can´t switch to a newer version,
 MO because
  MO of
   MO the
MO spec.
MO - Original Message - 
MO From: Nagaraj_K [EMAIL PROTECTED]
MO To: Struts Users Mailing List
 MO [EMAIL PROTECTED]
MO Sent: Friday, July 25, 2003 10:48 AM
MO Subject: RE: validate = false does not work
   
   
MO I dont see any error in what is mentioned out here. Only
doubt
 MO for
  MO me
   MO is
MO that if u have changed the XML file in the middle and have
not
   MO 

Re: More validation woes

2003-07-25 Thread Cyber.Zombie
In both cases, you're returning an ActionForward that has no idea of the 
environment in which it was created.  So, why not forward to another 
page (like error.jsp)?

Yansheng Lin wrote:

That's what 
	return (new ActionForward(mapping.getInput());
returns.  An ActionForward to the jsp that generated the error.

Ok, take a look at the following code.  You see the difference?  findForward can
forward you to any page, but not mapping.getInput().

public ActionForward execute() {
 ...
if (!errors.isEmpty())
{
saveErrors(request, errors);
//return (mapping.findForward(error));
   return new ActionForward(mapping.getInput());
}
}

-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED] 
Sent: July 24, 2003 1:43 PM
To: Struts Users Mailing List
Subject: Re: More validation woes



On Jul 24, 2003, Yansheng Lin [EMAIL PROTECTED]  wrote:

|I forgot how you implemented your return statement, but
|
|  return  new ActionForward(mapping.getInput());
|
|should work.
I don't think it works.  An Action.execute() returns an ActionForward.
ActionMapping.getInput() returns a string.  Type conflict.
Or, am I doing something really dumb?

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


RE: OT Posts on this List almost [FRIDAY]

2003-07-25 Thread Mark Galbreath
Oh man! That's harsh!  But very funny that you fell for that for second
time!  :-)

mARK

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 7:15 PM
To: Struts Users Mailing List
Subject: Re: OT Posts on this List almost [FRIDAY]




Yansheng Lin wrote:
 I thought it's already Firday in Munich, no?
 
 And I think Mark made a valid point.  Some of the questions can be 
 answered by simply doing a search on Java Developer's Forum.  But I 
 guess a lot of people are like me, feel good about this mailing list 
 and wanna ask questions here.

No offense to anyone, but...

http://marc.theaimsgroup.com/?l=struts-userm=105542560431736w=2

...we all need help once in a while.





Erik


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



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



[FRIDAY] It's an IRC day!

2003-07-25 Thread Mark Galbreath
#struts_users at irc.darkmyst.org 6667

mARK



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



Re: Accessing an ID property of a bean using EL

2003-07-25 Thread José Ventura
Then again, I was having the same problem under Websphere 4.0.4, using
precisely this sintax:

public String getId();
public void setId( String s );

I was using just an ordinary bean:write name=mybean property=id/
and it just wouln't find the property no matter how nicely I asked it :)
I had to change it to themeId to get it to work.

I had assumed then it had something to do with IBM's VM's
reflection mechanism... but that's just speculating :)

[]'s
- ventura

- Original Message -
From: Jim Collins [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 5:16 PM
Subject: Re: Accessing an ID property of a bean using EL


 Thanks Adam. I must have missed that variation of capitalisation.

 Regards

 Jim.
 - Original Message -
 From: Adam Levine [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 23, 2003 8:32 PM
 Subject: Re: Accessing an ID property of a bean using EL


  It has to deal with the way Java resolves bean fields where there are
  multiple uppercase in a row.  I believe if you used .ID in your jsp it
  should work.   I always get confused on how the rules work in resolving,
 so
  I attempt to use as few caps in a row as possible.. ie, ID - id -
  getId/setId - myClass.id
 
 
  From: Jim Collins [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Accessing an ID property of a bean using EL
  Date: Wed, 23 Jul 2003 20:23:17 +0100
 
  Hi,
 
  I have a bean with the following methods:
 
  public String getID();
  public void setID(String id);
 
  I am trying to access the id property in a page like this:
 
  html:link page=viewFile.do?id=${folderDets.iD}.../html:link
 
  Where folderDets is my bean. I have tried different combinations of ID
  capitalisation but none seem to work. If however I change the property
to
 :
 
  public String getDocID();
  public void setDocID(String id);
 
  And access it like this:
 
  html:link page=viewFile.do?id=${folderDets.docID}.../html:link
 
  It now works fine.
 
  Does anyone know why I can't have an ID property?
 
  Thanks
 
  Jim.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  _
  The new MSN 8: smart spam protection and 2 months FREE*
  http://join.msn.com/?page=features/junkmail
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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


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



RE: Validator range server-side check assumes Integer?

2003-07-25 Thread Yansheng Lin

Then use doubleRange:).


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin
Sent: July 24, 2003 4:56 PM
To: [EMAIL PROTECTED]
Subject: Re: Validator range server-side check assumes Integer?


I want to check that it's within range and also a double.
With or without the double it still tries to validate it as an integer.  I
suspect intRange will continue to do that.
Yansheng Lin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 Try to use 'intRange' instead of 'range'. 'range' is deprecated.

 Also if it's a int, why there is a 'double' in depends?




 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brian Chaplin
 Sent: July 24, 2003 2:02 PM
 To: [EMAIL PROTECTED]
 Subject: Validator range server-side check assumes Integer?


 I'm validating a BigDecimal (money) form field and when I put a range
 validation on, it assumes that the data type must be integer.
 The javascript is okay but the server-side validation checks for integer:

 field property=feeAmount depends=range,double

 arg0 key=MCSPFeeDescTOLabel.feeAmount /

 arg1 name=range key=${var:min} resource=false /

 arg2 name=range key=${var:max} resource=false /

 var

 var-namemin/var-name

 var-value5/var-value

 /var

 var

 var-namemax/var-name

 var-value100/var-value

 /var



 yields an error message of

 fee amount must be an integer







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




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


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



ActionForm as a view bean

2003-07-25 Thread george . baxter
Hello,

From a 'error handling' point of view, ensuring that the jsp (or whatever
your view is) does not make any back end calls is important.  You don't
want half your jsp to be rendered and sent down to the client only to run
into a back end network error... too late to direct to an error page.  For
example, suppose you have a drop down menu from data loaded from the
database.  If the jsp has already rendered and sent down the stream the
title and some other content, and then tries to query the back end system
to load the data from the drop-down, if it runs into trouble, it's too late
to try to direct to another page.

It's therefore important to preload all the data that the JSP will require
before the jsp starts to render.  Typically, this data is stored in some
sort of object for the jsp to refer to.

The obvious place for this in Struts is the ActionForm, with the data
loaded from the back end when reset() is called.

The problem with this is that reset() is called both before the jsp renders
(good, we can fill in the data) and when the form is submitted.  The
problem now is that I'm 'filling the form' with info from the back end when
I need to anymore.

Is there anyway for an ActionForm to detect that it's resetting for a
'about to display my page' vs. resetting for 'data's about to arrive from
my page'?

Thanks,

-g.

George Baxter

Convergys, Westbrook Centre Block 3, Milton Road
Cambridge, CB4 1YG
UK
Tel +44 (0) 1223 488 019.
Fax +44 (0) 1223 302 526.
e-mail [EMAIL PROTECTED]
www.convergys.com

--
NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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



Validation and Multi-Page Forms

2003-07-25 Thread Norr, Peter
I have one form bean in session scope, where the values get populated over
time through a series of pages, like a wizard.

My question is how do I validate on a page by page basis?  I am using the
Validator Framework.

Thanks,

Peter



--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



RE: Testing Struts-Config

2003-07-25 Thread Kamholz, Keith (corp-staff) USX
IBM's Websphere Studio Application Developer, version 5, has a good struts
UI.  It does quite a bit of validation, a lot of what is being mentioned
here.
My one complaint though is that I get a warning for every time I use a tiles
definition though.  It doesn't hurt anything, it's just so ugly...

- Keith


-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 9:57 PM
To: '[EMAIL PROTECTED]'
Subject: Testing Struts-Config


Does anyone know of a tool that just tests the struts-config for 'class
correctness'?

The situation I find myself in is I have a large project, which was heavily
refactored (unfortunately w/o adequate struts tests), and I need to debug
the struts-config.

Thanks in advance.

Edgar

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

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



Re: DispatchAction descendant and Struts Validator problems

2003-07-25 Thread Tony Pinter
Just FYI, I found a post in the newsgroup archives that solved my problems.
The author's name eludes me, but he's certainly sharp.

All one must do is set validate to false for the action mapping in the
struts-config.xml and then, in the methods in which one wishes to validate,
call something like:

  protected boolean isFormValid(HttpServletRequest request,
ActionMapping mapping,
ActionErrors errors,
ActionForm form) {
DynaValidatorForm dvForm = (DynaValidatorForm) form;

errors.add(dvForm.validate(mapping, request));
if (!errors.isEmpty()) {
  saveErrors(request, errors);
  return false;
} else return true;
  }
}

Simple fix from a very helpful newsgroup,
Tony




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



RE: Validation and Multi-Page Forms

2003-07-25 Thread Erez Efrati
Peter, 
You should take a look at the example bundled with Struts -
struts-validator it shows exactly how to validate by page basis.

For example (taken from my configuration):

!-- username --
field  property=username)
depends=required, mask
page=1
msg name=mask
key=logon.username.maskMsg/
arg0 key=logon.username/
var

var-namemask/var-name

var-value${username}/var-value
/var
/field

Hope it helps,
Erez


-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 4:08 PM
To: 'Struts Users Mailing List'
Subject: Validation and Multi-Page Forms

I have one form bean in session scope, where the values get populated
over
time through a series of pages, like a wizard.

My question is how do I validate on a page by page basis?  I am using
the
Validator Framework.

Thanks,

Peter




--
This message is intended only for the personal and confidential use of
the
designated recipient(s) named above.  If you are not the intended
recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be
regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed
to be
secure or error-free.  Therefore, we do not represent that this
information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



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



Re: Using an extension of ModuleConfigImpl

2003-07-25 Thread Rob Leland
Rob Leland wrote:

Karachiwala, Aslam wrote:

I do use extensions of ActionConfig  ForwardConfig.

What I've done is implement a layer of extensions of Struts classes, in
which I've added custom fields and methods that I need. I'd like to do the
same for ModuleConfig. Is that even possible without tinkering with the
Struts code?
I am assuming you want to use the same extension of the ModuleConfig for 
all modules ?
If so then I'll see about adding a servlet parameter to set the factory 
used.

No, but I am really glad you brought it up !
When I renamed all the application config stuff to ModuleConfig and 
made it
an interface last November it was in response to the stated desire to 
provide
hierarchical modules, or module inheritance. At first I hard coded the 
implementation,
then later on a factory was provided. Since there was no immediate 
need the functionality
you need was never implemented.

As Mike says it should be configurable from the
struts-config.xml file. I'll may get time to look at in the next week 
or so.If in the meantime you would
like to suggest a patch that would greatly appreciated, but not required.

-Rob




--aslam

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:41 AM
To: Struts Users Mailing List
Subject: RE: Using an extension of ModuleConfigImpl
You can write minor extensions to some config elements like action and
forward. This extension class is named via the className attribute of
those elements.
-Original Message-
From: Karachiwala, Aslam 
Sent: Wednesday, July 23, 2003 10:39 AM
To: Struts-users (E-mail)
Subject: Using an extension of ModuleConfigImpl

Hi, all.

In Struts 1.1, is there a way to use one's own implementation/extension of
ModuleConfig and/or ModuleConfigFactory? I couldn't find any info on how
this could be done in any of the config *.xml files.
If this is not configurable then an option that was suggested to me was to
invoke ModuleConfigFactory.setFactoryClass() and set that to my own factory
class which will create my extension of ModuleConfigImpl. If I wanted to do
this then where/when should I set the factory class?
--aslam

 



--
Rob Leland


--
Rob Leland


how to do this?? [Tag inside a tag]

2003-07-25 Thread Sashi Ravipati
jsp:param name=Name value=bean:write name=showvalue property=providerName / 
/

I get the following errors

Error(32): Attribute: showvalue is not a valid attribute name
Error(32): Attribute: property is not a valid attribute name
Error(33): Not expecting text inside this tag

Can I give the tag inside a tag?

Thanks


Re: how to do this?? [Tag inside a tag]

2003-07-25 Thread Michael Ruppin
You can't do that.  See here for more:

http://marc.theaimsgroup.com/?l=struts-userm=105771765327337w=2

HTH

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:
 jsp:param name=Name value=bean:write
 name=showvalue property=providerName / /
 
 I get the following errors
 
 Error(32): Attribute: showvalue is not a valid
 attribute name
 Error(32): Attribute: property is not a valid
 attribute name
 Error(33): Not expecting text inside this tag
 
 Can I give the tag inside a tag?
 
 Thanks
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: how to do this?? [Tag inside a tag]

2003-07-25 Thread Sashi Ravipati
so how can I set the value in the jsp:param tag which is available in
bean:write.

Please bear with me as I am learning..

Thanks

 [EMAIL PROTECTED] 07/25/03 10:43AM 
You can't do that.  See here for more:

http://marc.theaimsgroup.com/?l=struts-userm=105771765327337w=2

HTH

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:
 jsp:param name=Name value=bean:write
 name=showvalue property=providerName / /
 
 I get the following errors
 
 Error(32): Attribute: showvalue is not a valid
 attribute name
 Error(32): Attribute: property is not a valid
 attribute name
 Error(33): Not expecting text inside this tag
 
 Can I give the tag inside a tag?
 
 Thanks
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


logic to rememeber where the request came and where to submit

2003-07-25 Thread Ashish Kulkarni
Hi,
I am building a web application using struts1.1, and
this is my requirement,
There is a jsp where in user will enter data in text
field, and then press enter, this will submit to a
Action class, this action class must decide wether a
relogin page has to be displayed or not, and if yes
then display a relogin page, the user will enter the
password, if the password is correct, perform the task
of entering data in database, if the password is wrong
or user presses cancel, then take him back to the jsp
from where the user came, and populate all the data
which was entered in jsp,
If there is no need for relogin screen, enter the data
to  database.
the puzzle here is how do i write that common Action
class which will handle to display the login page, and
other Action class which will validate the password,
and forward the request to other class 
So i need to remmember where the request came from and
where it has to go??
need help on this

Ashish

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Validation and Multi-Page Forms

2003-07-25 Thread Gregory F. March

On Jul 25, 2003, Erez Efrati [EMAIL PROTECTED]  wrote:

 |You should take a look at the example bundled with Struts -
 |struts-validator it shows exactly how to validate by page basis.

Right, but I thought that it will validate all fields that are =
current page?  As opposed to fields that are == current page.

Is that true?

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

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



newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
Hi,

I did not put my question in a nice method previously.


I am trying to retrieve data from database and pass
data into a JavaScript function as an Array and
display it on my JSP page. 

If I have to write a Scriptlet inside JavaScript code
to get data from db, what kind of Java data form
(ArrayList, Vector, Enemeration, List, Collection?) I
can use to directly pass it into javascript function?
If the above cannot work, How can I transform a Java
array (a array of strings) into a JavaScript Array?
Thank you in advance.

regards,

rick

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: how to do this?? [Tag inside a tag]

2003-07-25 Thread Michael Ruppin
The third example in Kris' post, would do.  For your
JSP, that would translate to:

jsp:param name=Name value=%=foo /

Where does foo come from, you ask?  I believe this
whould be one of a few possible answers:

%
String foo = showvalue.getProviderName();
%

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:
 so how can I set the value in the jsp:param tag
 which is available in
 bean:write.
 
 Please bear with me as I am learning..
 
 Thanks
 
  [EMAIL PROTECTED] 07/25/03 10:43AM 
 You can't do that.  See here for more:
 

http://marc.theaimsgroup.com/?l=struts-userm=105771765327337w=2
 
 HTH
 
 m
 
 --- Sashi Ravipati [EMAIL PROTECTED] wrote:
  jsp:param name=Name value=bean:write
  name=showvalue property=providerName / /
  
  I get the following errors
  
  Error(32): Attribute: showvalue is not a valid
  attribute name
  Error(32): Attribute: property is not a valid
  attribute name
  Error(33): Not expecting text inside this tag
  
  Can I give the tag inside a tag?
  
  Thanks
  
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
 http://sitebuilder.yahoo.com
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: how to do this?? [Tag inside a tag]

2003-07-25 Thread Hookom, Jacob
Switch to an EL implementation, either Struts-EL or JSTL, which would allow
you to leverage bean properties as attributes of their tags

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 9:59 AM
To: Struts Users Mailing List
Subject: Re: how to do this?? [Tag inside a tag]

The third example in Kris' post, would do.  For your
JSP, that would translate to:

jsp:param name=Name value=%=foo /

Where does foo come from, you ask?  I believe this
whould be one of a few possible answers:

%
String foo = showvalue.getProviderName();
%

m

--- Sashi Ravipati [EMAIL PROTECTED] wrote:
 so how can I set the value in the jsp:param tag
 which is available in
 bean:write.

 Please bear with me as I am learning..

 Thanks

  [EMAIL PROTECTED] 07/25/03 10:43AM 
 You can't do that.  See here for more:


http://marc.theaimsgroup.com/?l=struts-userm=105771765327337w=2

 HTH

 m

 --- Sashi Ravipati [EMAIL PROTECTED] wrote:
  jsp:param name=Name value=bean:write
  name=showvalue property=providerName / /
 
  I get the following errors
 
  Error(32): Attribute: showvalue is not a valid
  attribute name
  Error(32): Attribute: property is not a valid
  attribute name
  Error(33): Not expecting text inside this tag
 
  Can I give the tag inside a tag?
 
  Thanks
 


 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site
 design software
 http://sitebuilder.yahoo.com


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



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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



Validating an integer and a double problem

2003-07-25 Thread Thiago Tonelli Bartolomei
Hi,
   I'm trying to use the validator on two fields of my form. One field 
is an integer and the other is a double. They are both required. The 
problem is that only the integer and required validations are working. 
The double validation is not called from the generated 
dynamicJavascript. The question is: Why the generated javascript does 
not call something like :

   return validateRequired(form)  validateInteger(form)  validateDouble(form); 

I thank you all in advance :)

	Thiago Bartolomei

Details:


validation.xml :

form-validation
   global
   /global
   formset
  form name=myForm
 field property=doubleField depends=required,double
 arg0 key=label.doubleField /
 /field
 field property=integerField depends=required,integer
 arg0 key=label.integerField /
 /field
  /form
   /formset
/form-validation
-
on the jsp file :
-
o
%-- initialize the validation javascripts --%
html:javascript formName=myForm /
and

html:form action=myAction.do onsubmit=validateMyForm(this)


on the generated html file :

script type=text/javascript language=Javascript1.1 

!-- Begin 

var bCancel = false; 

   function validateMyForm(form) {   
   if (bCancel) 
 return true; 
   else 
  return validateRequired(form)  validateInteger(form); 
  } 

   function required () { 
this.aa = new Array(doubleField, My Required Description, new Function (varName,  return this[varName];));
this.ab = new Array(integerField, My Required Description, new Function (varName,  return this[varName];));
   } 

   function IntegerValidations () { 
this.aa = new Array(integerField, My Integer Description, new Function (varName,  return this[varName];));
   } 

--
--
Thiago Tonelli Bartolomei
Icaro Technologies - www.icaro.com.br
Phone: +55-19-3237-7878 x.249


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


Re: ActionForm as a view bean

2003-07-25 Thread george . baxter
Hello again,

Actually, as it turns out, the ActionForm is NOT a good idea for a view
bean.  The ActionForm is not created until the html.FormTag.doStartTag()
runs, and again, if the initialization from the back end fails, it's too
late to do anything about it.

What do you all do?  The problem is that the preceding Action doesn't
REALLY know which jsp is about to be run.  It only sends back 'SUCCESS' or
something, which is mapped to a jsp... but it doesn't know which one (which
is generally a good thing, but in this case...).  So the Action can't
prepare the view bean for the next view.

Where can the view bean be created/prepared?  Extension on the
RequestProcessor?

-g.

George Baxter

Convergys, Westbrook Centre Block 3, Milton Road
Cambridge, CB4 1YG
UK
Tel +44 (0) 1223 488 019.
Fax +44 (0) 1223 302 526.
e-mail [EMAIL PROTECTED]
www.convergys.com

--
NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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



RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread James Childers
You'll need to do a couple of things:

1) (Assuming you're using Struts, of course.) Create your Java 
array/collection/whatever in the Action that gets hit before your JSP page:
List myList = new ArrayList();
// populate the list, la la la
request.addAttribute(listForJavascript, myList);
return mapping.findForward(success);  // Takes you to, say, bongabonga.jsp

2) In bongabonga.jsp:
head
script type=text/javascript
var jsArray = new Array();  // Do you have to init this? I 
don't remember.
logic:iterate id=jsList name=listForJavaScript indexId=idx
jsArray[%=idx%] = %=jsList.getYourValue()%;
/logic:iterate
/script

3) Debug. This is all from memory. I'm sure there are some glaring errors here, but 
this is the general flow.

-= J

 -Original Message-
 From: Rick Col [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 9:56 AM
 To: [EMAIL PROTECTED]
 Subject: newbie question: Java array to JavaScript Array
 
 
 Hi,
 
 I did not put my question in a nice method previously.
 
 
 I am trying to retrieve data from database and pass
 data into a JavaScript function as an Array and
 display it on my JSP page. 
 
 If I have to write a Scriptlet inside JavaScript code
 to get data from db, what kind of Java data form
 (ArrayList, Vector, Enemeration, List, Collection?) I
 can use to directly pass it into javascript function?
 If the above cannot work, How can I transform a Java
 array (a array of strings) into a JavaScript Array?
 Thank you in advance.
 
 regards,
 
 rick
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
James:

Thanks for your nice presentation. I will try it out
right away. 

regards,

rick 


--- James Childers [EMAIL PROTECTED] wrote:
 You'll need to do a couple of things:
 
 1) (Assuming you're using Struts, of course.) Create
 your Java array/collection/whatever in the Action
 that gets hit before your JSP page:
   List myList = new ArrayList();
   // populate the list, la la la
   request.addAttribute(listForJavascript, myList);
   return mapping.findForward(success);  // Takes
 you to, say, bongabonga.jsp
 
 2) In bongabonga.jsp:
   head
   script type=text/javascript
   var jsArray = new Array();  // Do you have to init
 this? I don't remember.
   logic:iterate id=jsList
 name=listForJavaScript indexId=idx
   jsArray[%=idx%] = %=jsList.getYourValue()%;
   /logic:iterate
   /script
   
 3) Debug. This is all from memory. I'm sure there
 are some glaring errors here, but this is the
 general flow.
 
 -= J
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



ActionForm in session scope

2003-07-25 Thread Sashi Ravipati
I am trying to have my Form in session and I have set the scope=session in my action 
mapping.

If I try to access this form in other JSP page it is returing Null.

Am I missing something??

action path=/updateprovider 
type=gov.mi.mdch.pe.strutsactions.UpdateProviderAction 
name=selectedProviderInfoForm scope=session
  forward name=success path=/WEB-INF/jsp/UpdProvDetailInfo.jsp/
/action


The form data is available in UpdProvDetailInfo.jsp, but not in any other JSP.

Thanks


[ANN] brief example using iBATIS from Struts

2003-07-25 Thread Rick Reumann
There are often newbie requests asking how to deal with a database layer
from Struts. Since there are so many ways this can be done,
'simple' examples of how this can be done seem hard to come by. Since I
currently use iBATIS as my persistence mechanism of choice, I created a
simple Struts application demonstrating just one way a developer could
use database persistence:  

http://www.reumann.net/do/struts/ibatisLesson1

I didn't really have the time to write up a full lesson like the others
on the site, but I did provide some comments on a few of the components
that deal directly with iBATIS http://www.ibatis.com/.(The iBATIS
documentation is excellent and should be read first along side the
application). I've looked at the way others have plugged into the
database layer and happen to think the approach I demonstrate is simple
yet also very flexible. 

For a more powerful implementation the user should check out the
awesome JPetStore application at
http://www.ibatis.com/jpetstore/jpetstore.html.

Also, Vic has an interesting approach using iBATIS demonstrated in
the basicPortal application that you can check out
here: http://www.basicportal.com/

-- 
Rick

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



How does Tiles effect filters and URL mapping?

2003-07-25 Thread Bailey, Shane C.


I am wondering if I have a filter set up and I map *.jsp for it to do
something will using Tiles cause the mapping not to do that something with
my JSP pages?  I mean, once my JSPs are all combined into a page is that
page no longer a JSP (as far as the filter is concerned)?



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



Re: How does Tiles effect filters and URL mapping?

2003-07-25 Thread Craig R. McClanahan


On Fri, 25 Jul 2003, Bailey, Shane C. wrote:

 Date: Fri, 25 Jul 2003 11:42:58 -0400
 From: Bailey, Shane C. [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: How does Tiles effect filters and URL mapping?



 I am wondering if I have a filter set up and I map *.jsp for it to do
 something will using Tiles cause the mapping not to do that something with
 my JSP pages?  I mean, once my JSPs are all combined into a page is that
 page no longer a JSP (as far as the filter is concerned)?


Filters are based on the incoming request URL, and have no idea what
technologies you actually use to compose the response.  However, filters
are *not* applied when a RequestDispatcher.forward() is done (although
you'll have this option in Servlet 2.4), so in a Struts based app you
would need to map your filter on the incoming Action's URL, not the page's
URL.

Craig

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



RE: Validation and Multi-Page Forms

2003-07-25 Thread Erez Efrati
Yes it's exactly how it is.

-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 4:55 PM
To: Struts Users Mailing List
Subject: Re: Validation and Multi-Page Forms


On Jul 25, 2003, Erez Efrati [EMAIL PROTECTED]  wrote:

 |You should take a look at the example bundled with Struts -
 |struts-validator it shows exactly how to validate by page basis.

Right, but I thought that it will validate all fields that are =
current page?  As opposed to fields that are == current page.

Is that true?

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-
AIM:GfmNet

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




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



RE: How does Tiles effect filters and URL mapping?

2003-07-25 Thread Bailey, Shane C.

OK.

So some things make sense and some things don't know about a problem I am
having.

I am trying to go from the main home page to the User Management (UM) home
page with a link. And the main home page is in my main module and my UM home
page is in my usermgmt module.

So I do this in my main module home page:
html:link forward=usermgmt.homeUser Management/html:link

In my main module struts config:
forward   name=usermgmt.home path=/usermgmt/home.do/

In my UM module struts config:
actionpath=/home
parameter=doc.home
type=org.apache.struts.actions.ForwardAction 
scope=request
/action

So my filter should be able to filter on /usermgmt/home.do but since that is
then guided by a ForwardAction to the page doc.home then doc.home JSPs will
not have been filtered, correct?


It sounds like I just need to not use the ForwardAction with /home mapping
and use a regular action instead and I will get the request variables set
by my filter?




-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 11:58 AM
To: Struts Users Mailing List
Subject: Re: How does Tiles effect filters and URL mapping?



On Fri, 25 Jul 2003, Bailey, Shane C. wrote:

 Date: Fri, 25 Jul 2003 11:42:58 -0400
 From: Bailey, Shane C. [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: How does Tiles effect filters and URL mapping?



 I am wondering if I have a filter set up and I map *.jsp for it to do
 something will using Tiles cause the mapping not to do that something with
 my JSP pages?  I mean, once my JSPs are all combined into a page is that
 page no longer a JSP (as far as the filter is concerned)?


Filters are based on the incoming request URL, and have no idea what
technologies you actually use to compose the response.  However, filters
are *not* applied when a RequestDispatcher.forward() is done (although
you'll have this option in Servlet 2.4), so in a Struts based app you
would need to map your filter on the incoming Action's URL, not the page's
URL.

Craig

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

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



How to create action error with two keys?

2003-07-25 Thread White, Joshua A (HTSC, CASD)
Say I have the following items in my message properties file.


label.name=Your Name
errors.required=li{0} is required./li


What is the simplest way for me to end up with Your Name is required.

The constructor takes a key and a value.  What if you have two keys?  

ActionError(java.lang.String key, java.lang.Object[] values)


Thanks,

Joshua


This communication, including attachments, is for the exclusive use of 
addressee and may contain proprietary, confidential or privileged 
information. If you are not the intended recipient, any use, copying, 
disclosure, dissemination or distribution is strictly prohibited. If 
you are not the intended recipient, please notify the sender 
immediately by return email and delete this communication and destroy all copies.


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



Help referencing collections for HTML taglib

2003-07-25 Thread C F
Hello,
I figure examples are worth a thousand words.  So I'll
try to keep this simple... can anyone show me (if
possible) how to accomplish the same thing as in the
examples but using just html-el:select and
html-el:options tags without c:set??  I'm
using Struts 1.1.


Example 1

c:set var=var1
value=${requestScope.bean1.bean2.collection1}/
html-el:select property=prop1
html-el:options collection=var1 property=valprop
labelProperty=labelprop /
/html-el:select

This works great... but it seems like I should be able
to do something along the lines of


html-el:select property=formprop
html-el:options
collection=${requestScope.bean1.bean2.collection1}
property=valprop labelProperty=labelprop /
/html-el:select

... which doesn't work because the interpreter
evaluates the collection1 into a string before being
processed by the Struts tag libs.  Bottom line is I
want to be able to get rid of that c:set/ tag if
possible.


Example 2 (using hash table)
-
c:set var=var2
value='${requestScope.myHashMap[key1]}'/
html-el:select property=formprop
html-el:options collection=var2 property=valprop
labelProperty=labelprop /
/html-el:select



Thanks!



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: ActionForm as a view bean

2003-07-25 Thread Giampiero De Ciantis
George,

I am not sure if I understand what you are trying to achieve. If you are
attempting to retrieve data from a datasource and display it, the way that I
think is most natural in struts is to create an action that does this and
then have the Action populate an ActionForm and then forward to a Jsp that
will display the data.

-Gp



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: July 25, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: Re: ActionForm as a view bean

Hello again,

Actually, as it turns out, the ActionForm is NOT a good idea for a view
bean.  The ActionForm is not created until the html.FormTag.doStartTag()
runs, and again, if the initialization from the back end fails, it's too
late to do anything about it.

What do you all do?  The problem is that the preceding Action doesn't
REALLY know which jsp is about to be run.  It only sends back 'SUCCESS' or
something, which is mapped to a jsp... but it doesn't know which one (which
is generally a good thing, but in this case...).  So the Action can't
prepare the view bean for the next view.

Where can the view bean be created/prepared?  Extension on the
RequestProcessor?

-g.

George Baxter

Convergys, Westbrook Centre Block 3, Milton Road
Cambridge, CB4 1YG
UK
Tel +44 (0) 1223 488 019.
Fax +44 (0) 1223 302 526.
e-mail [EMAIL PROTECTED]
www.convergys.com

--
NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.



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


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



Re: How to create action error with two keys?

2003-07-25 Thread Michael Ruppin
I look up the second key in the MessageResources. 
This can be a hassle, especially in JSPs.  If there's
a better alternative, I'm unaware.

m

--- White, Joshua A (HTSC, CASD)
[EMAIL PROTECTED] wrote:
 Say I have the following items in my message
 properties file.
 
 
 label.name=Your Name
 errors.required=li{0} is required./li
 
 
 What is the simplest way for me to end up with Your
 Name is required.
 
 The constructor takes a key and a value.  What if
 you have two keys?  
 
 ActionError(java.lang.String key, java.lang.Object[]
 values)
 
 
 Thanks,
 
 Joshua
 
 
 This communication, including attachments, is for
 the exclusive use of 
 addressee and may contain proprietary, confidential
 or privileged 
 information. If you are not the intended recipient,
 any use, copying, 
 disclosure, dissemination or distribution is
 strictly prohibited. If 
 you are not the intended recipient, please notify
 the sender 
 immediately by return email and delete this
 communication and destroy all copies.
 
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: newbie question: Java array to JavaScript Array

2003-07-25 Thread Rick Col
More questions about the following:

1) It says in logic tags reference:
id: The name of a page scope JSP bean that will
contain the current element of the collection on each
iteration, if it is not null.

So, it means myList ArrayList should conform
to JavaBean routines, is that right? For example:

If I have a List4Js class, it has to have
getters/seters
for getting/setting ArrayLists:

ArrayList myList = List4J.getResultList();

And the elements of an ArrayList should be a bean too.

2) If I want to get a collection of arraylists, I can
use the logic:iterate tag as following:

 logic:iterate id=jsList name=listForJavaScript
 indexId=idx
logic:iterate id=myBean name=jsList
 indexId=index
jsArray[%=idx%][%=index%] = 
 %=myBean.getYourValue()%;
/logic:iterate
/logic:iterate
 
Since JavaScript Array usually has the following form:
  myArray = new Array(sample, 1);

Do I need to conform to the above routine to create an

JavaScript Array element in order to correctly display
the results?

regards,

rick






--- James Childers [EMAIL PROTECTED] wrote:
 You'll need to do a couple of things:
 
 1) (Assuming you're using Struts, of course.) Create
 your Java array/collection/whatever in the Action
 that gets hit before your JSP page:
   List myList = new ArrayList();
   // populate the list, la la la
   request.addAttribute(listForJavascript, myList);
   return mapping.findForward(success);  // Takes
 you to, say, bongabonga.jsp
 
 2) In bongabonga.jsp:
   head
   script type=text/javascript
   var jsArray = new Array();  // Do you have to init
 this? I don't remember.
   logic:iterate id=jsList
 name=listForJavaScript indexId=idx
   jsArray[%=idx%] = %=jsList.getYourValue()%;
   /logic:iterate
   /script
   
 3) Debug. This is all from memory. I'm sure there
 are some glaring errors here, but this is the
 general flow.
 
 -= J
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: How does Tiles effect filters and URL mapping?

2003-07-25 Thread Craig R. McClanahan


On Fri, 25 Jul 2003, Bailey, Shane C. wrote:

 Date: Fri, 25 Jul 2003 12:19:54 -0400
 From: Bailey, Shane C. [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: How does Tiles effect filters and URL mapping?


 OK.

 So some things make sense and some things don't know about a problem I am
 having.

 I am trying to go from the main home page to the User Management (UM) home
 page with a link. And the main home page is in my main module and my UM home
 page is in my usermgmt module.

 So I do this in my main module home page:
 html:link forward=usermgmt.homeUser Management/html:link

 In my main module struts config:
 forward   name=usermgmt.home path=/usermgmt/home.do/

 In my UM module struts config:
 actionpath=/home
   parameter=doc.home
   type=org.apache.struts.actions.ForwardAction
   scope=request
 /action

 So my filter should be able to filter on /usermgmt/home.do but since that is
 then guided by a ForwardAction to the page doc.home then doc.home JSPs will
 not have been filtered, correct?


Presuming /usermgmt is the context path to your application, then you
would set your filter mapping to be /home.do, and the page to which this
action forwards will indeed be filtered.


 It sounds like I just need to not use the ForwardAction with /home mapping
 and use a regular action instead and I will get the request variables set
 by my filter?


Craig





 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 11:58 AM
 To: Struts Users Mailing List
 Subject: Re: How does Tiles effect filters and URL mapping?



 On Fri, 25 Jul 2003, Bailey, Shane C. wrote:

  Date: Fri, 25 Jul 2003 11:42:58 -0400
  From: Bailey, Shane C. [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Subject: How does Tiles effect filters and URL mapping?
 
 
 
  I am wondering if I have a filter set up and I map *.jsp for it to do
  something will using Tiles cause the mapping not to do that something with
  my JSP pages?  I mean, once my JSPs are all combined into a page is that
  page no longer a JSP (as far as the filter is concerned)?
 

 Filters are based on the incoming request URL, and have no idea what
 technologies you actually use to compose the response.  However, filters
 are *not* applied when a RequestDispatcher.forward() is done (although
 you'll have this option in Servlet 2.4), so in a Struts based app you
 would need to map your filter on the incoming Action's URL, not the page's
 URL.

 Craig

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

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



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



Re: JSR-198 : (A little history between IBM and Sun's fight)

2003-07-25 Thread Laura Werner
Andrew Hill wrote:
http://www.javalobby.com/threadMode_printfriendly.jsp?forum=61thread=7034
Interesting thread.  Amy and the IBM guy both have valid points.  I was 
peripherally involved in some of the Swing stuff when I worked at IBM at 
the time.  A few of us reviewed Swing for IBM at round the time they 
were integrating Netscape's IFC code and Gosling decided to rename it 
from JFC to KFC because he hated the JFC name and wanted an interim name 
that was just plain illegal.

My personal take on it at the time was that Swing was a good idea, but 
seriously overdesigned.  Not everything needs to be MVC.  But then, I 
was shell-shocked after surviving Taligent, which was overdesign taken 
to its unnatural conclusion.

Laura



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


Newbie Question: Dyanamic JavaScript Array - Form Bean]

2003-07-25 Thread skhealy
Hey everyone,

I'm new to Struts and was wondering if anyone has ever attempted to create a dynamic 
HTML table (using JavaScript) that gets and sets values contained in a form bean from 
a JavaScript array when rows in the table are being added or deleted and upon the form 
being submitted.

Thanks in advance



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



Struts and Japplets(what's applet good for?)

2003-07-25 Thread Yansheng Lin

I wonder if we could integrate Struts and Applet to do some server-client
communication where clients get more control over the UI.  Basically what we
could do now is limited by what html(form) allows us to do.  Often people want
to do more on the web than filling out form(like playing games).  

Has anyone gone beyond Struts and html:form?  Or this is too much?

BTW, anyone played Yahoo! chess?  That's a server-client program written in
Japplet. And it's pretty slick, but of course Yahoo! has a lot of machine
power:).


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



RE: Validation and Multi-Page Forms

2003-07-25 Thread Norr, Peter
Thanks, this helped.

One more problem, the errors are being created but html:errors
property=myfiled/ is not displaying them..

Any ideas?

Peter


-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 11:16 AM
To: 'Struts Users Mailing List'
Subject: RE: Validation and Multi-Page Forms


Peter, 
You should take a look at the example bundled with Struts -
struts-validator it shows exactly how to validate by page basis.

For example (taken from my configuration):

!-- username --
field  property=username)
depends=required, mask
page=1
msg name=mask
key=logon.username.maskMsg/
arg0 key=logon.username/
var

var-namemask/var-name

var-value${username}/var-value
/var
/field

Hope it helps,
Erez


-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 4:08 PM
To: 'Struts Users Mailing List'
Subject: Validation and Multi-Page Forms

I have one form bean in session scope, where the values get populated over
time through a series of pages, like a wizard.

My question is how do I validate on a page by page basis?  I am using the
Validator Framework.

Thanks,

Peter




--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



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


--
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



Using Actions with specific paths

2003-07-25 Thread David Erickson
Hi I have been having a very difficult time implementing this, basically
what I'd like to do is have Struts match some actions based on the path they
are executed from, but I am not sure how to setup the web.xml for that nor
the struts-config.xml.

Example I'd like:

/mywebapp/navigate.do runs a different action class than
/mywebapp/control/navigate.do

And I am confused at how to setup the struts config to match the /control
part, and how exactly I need to setup the web.xml to map everything to
struts thats *.do.  Right now in web.xml it looks like:
servlet-mapping

servlet-nameaction/servlet-name

url-pattern*.do/url-pattern

/servlet-mapping



But I'm thinking that if I also add /control/*.do that the struts config
would match navigate from either path to the same class??  I don't know if i
explained myself clearly.. but any help would be greatly appreciated.

Thanks,

David




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



Re: Using XMLForms in Struts

2003-07-25 Thread Travis Stevens
This is something that I could use too.  I can see an XMLActionForm 
class as well as an XMLDynaActionForm class.
Both of these would create org.w3c.doc.Document objects based on the 
input form.

I work with metadata, specifically FGDC metadata.  There is an XML 
representation of FGDC.  For example,
the value of a title of a metadata record goes into:
idinfociteinfocitationtitle

and a browse graphic goes into
idinfobrowsebrowsen
Our forms are created dynamically using the XML structure and it would 
be great to be able to do this:

FGDCIdinfo idinfoForm = (FGDCIdinfo) actionForm;
Document fgdcDocument = idinfoForm.getDocument();
FGDCRecord record = session.getAttribute(record_being_edited);
record.updateRecord(fgdcDocument);
Might be an interesting project to take on.

-Trav

Simon Kelly wrote:

It's input from html, using xml, and allows you to create a forms that are
more complex in nature than is normally handled by html forms.  I'm just
starting with it myself, so I'm not all up to speed on exactly how it works.
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 4:44 PM
Subject: Re: Using XMLForms in Struts
 

Hi Simon,
what is xml forms? Do you use it to produce xml output? Is it for input
as well?
Adam

Simon Kelly wrote:
   

Hi all,

has anyone tried to use the XMLForms in the struts setup yet?

I need to use it as part of the pre-requisites for the current project,
 

and am wondering if it is easy or complex to get it to run along side the
struts framework.
 

Any help appreciated as usual.

Cheers

Simon

I have often wondered how it is that every man loves himself more than
 

all
 

the rest of men, but yet sets less value on his own opinion of himself
 

than
 

on the opinion of others. -- Georg Christoph Lichtenberg

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.
Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]
 

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



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





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


[OT] WebObjects vs. Struts

2003-07-25 Thread Hunter Hillegas
Anyone here ever used Apple's WebObjects?

How does it compare to Struts/J2EE in your opinion?

Cheers,
Hunter


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



Memory consumption 1.1 b3 vs. 1.1 final

2003-07-25 Thread Maya Retzlaff
Hi, 

Me and my colleagues are developing a web application in an environment of
very strict memory limitations, for instance the session size per user is
limited to 15k. 
If we go over the limit the application fails. Its out of our control
unfortunately. 

We are subclassing the DynaActionForm for use in our own forms, when this
form is saved to the session, which we do in rare cases, it uses quite a lot
of memory. 

We were previously running on jakarta-struts-1.1-b3 from October release
which caused no problem. Below is a comparison of the memory consumption
with 1.1 Final on the _same_ form 

Running on the same version of tomcat:

1.1 b3  2344 k
1.1 Final 76624 k

When debugging (serializing and back) we found that the DynaAction uses
FormBeanConfig which in turns refer to ModuleConfigImp which keeps a
reference to the complete struts config file. This in our case, where we
don't use modules but have all the config info in one class, takes quite a
lot of memory. 

In comparing directories, and source from the two different releases nothing
obvious appears. 

The memory problem still appears on our wml interface site where we
ourselves implemented the front end bits of struts instead of struts-html,
we can rule out a fair chunk of the struts classes. 

Has anyone else come across the problem? Any suggestions on how we could
reduce the size. 

We'd be very grateful for help as the release date for the project we are
working is starting to get uncomfortably close. 

Best Regards
/Maya

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



RE: Validation and Multi-Page Forms

2003-07-25 Thread Erez Efrati
Peter, 

It's hard to tell from so little information, try to specify more. In
general it does work. Sorry I couldn't be of more help..

Erez

-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 7:27 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation and Multi-Page Forms

Thanks, this helped.

One more problem, the errors are being created but html:errors
property=myfiled/ is not displaying them..

Any ideas?

Peter


-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 11:16 AM
To: 'Struts Users Mailing List'
Subject: RE: Validation and Multi-Page Forms


Peter, 
You should take a look at the example bundled with Struts -
struts-validator it shows exactly how to validate by page basis.

For example (taken from my configuration):

!-- username --
field  property=username)
depends=required, mask
page=1
msg name=mask
key=logon.username.maskMsg/
arg0 key=logon.username/
var

var-namemask/var-name

var-value${username}/var-value
/var
/field

Hope it helps,
Erez


-Original Message-
From: Norr, Peter [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 4:08 PM
To: 'Struts Users Mailing List'
Subject: Validation and Multi-Page Forms

I have one form bean in session scope, where the values get populated
over
time through a series of pages, like a wizard.

My question is how do I validate on a page by page basis?  I am using
the
Validator Framework.

Thanks,

Peter




--
This message is intended only for the personal and confidential use of
the
designated recipient(s) named above.  If you are not the intended
recipient
of this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be
regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed
to be
secure or error-free.  Therefore, we do not represent that this
information
is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



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



--
This message is intended only for the personal and confidential use of
the
designated recipient(s) named above.  If you are not the intended
recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be
regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed
to be
secure or error-free.  Therefore, we do not represent that this
information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.


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



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



Working with Struts + Dreamweaver

2003-07-25 Thread Erez Efrati
I have a JBoss/Tomcat/Struts project in which till now I have written
all the pages manually with a simple editor. I have recently downloaded
Dreamweaver by Macromedia and started playing with it to see what it is
capable of doing. Being far from expert in HTML page design my questions
are:

1. Is it really necessary to work with such a product?
2. Is it possible to work with Struts and Dreamweaver together? What
does it take to do in order to achieve that?
3. Is there other products more integrated with the environment of
Struts ,JBoss ,Tomcat?

Any other help in the matter would be appreciated.

Thanks a lot,
Erez



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



RE: How does Tiles effect filters and URL mapping?

2003-07-25 Thread Bailey, Shane C.

Thanks for your help Craig. I am close to solving my problem but after
trying to use a simple example (a regular action, then mapping.findForward
to a tile with no redirect attribute specified so I assume redirect is false
by default) to test my filter / request and a strange thing is happening...

Even with the simple action test I either Struts or JRun4 is acting in an
unexpected way.  In my Action the value for request.getClass().getName() is
org.securityfilter.filter.SecurityRequestWrapper and in the JSP (tile)
page that is forwarded with the RequestDispatcher.forward the value of %=
request.getClass().getName() % is jrun.servlet.ForwardRequest.

I am guessing it is a JRun4 specific reason (and not Struts) why the same
request object isn't available in the JSP as is in the prior Action.  Your
thoughts?




-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 1:00 PM
To: Struts Users Mailing List
Subject: RE: How does Tiles effect filters and URL mapping?



On Fri, 25 Jul 2003, Bailey, Shane C. wrote:

 Date: Fri, 25 Jul 2003 12:19:54 -0400
 From: Bailey, Shane C. [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Subject: RE: How does Tiles effect filters and URL mapping?


 OK.

 So some things make sense and some things don't know about a problem I am
 having.

 I am trying to go from the main home page to the User Management (UM) home
 page with a link. And the main home page is in my main module and my UM
home
 page is in my usermgmt module.

 So I do this in my main module home page:
 html:link forward=usermgmt.homeUser Management/html:link

 In my main module struts config:
 forward   name=usermgmt.home path=/usermgmt/home.do/

 In my UM module struts config:
 actionpath=/home
   parameter=doc.home
   type=org.apache.struts.actions.ForwardAction
   scope=request
 /action

 So my filter should be able to filter on /usermgmt/home.do but since that
is
 then guided by a ForwardAction to the page doc.home then doc.home JSPs
will
 not have been filtered, correct?


Presuming /usermgmt is the context path to your application, then you
would set your filter mapping to be /home.do, and the page to which this
action forwards will indeed be filtered.


 It sounds like I just need to not use the ForwardAction with /home mapping
 and use a regular action instead and I will get the request variables
set
 by my filter?


Craig





 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 25, 2003 11:58 AM
 To: Struts Users Mailing List
 Subject: Re: How does Tiles effect filters and URL mapping?



 On Fri, 25 Jul 2003, Bailey, Shane C. wrote:

  Date: Fri, 25 Jul 2003 11:42:58 -0400
  From: Bailey, Shane C. [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Subject: How does Tiles effect filters and URL mapping?
 
 
 
  I am wondering if I have a filter set up and I map *.jsp for it to do
  something will using Tiles cause the mapping not to do that something
with
  my JSP pages?  I mean, once my JSPs are all combined into a page is that
  page no longer a JSP (as far as the filter is concerned)?
 

 Filters are based on the incoming request URL, and have no idea what
 technologies you actually use to compose the response.  However, filters
 are *not* applied when a RequestDispatcher.forward() is done (although
 you'll have this option in Servlet 2.4), so in a Struts based app you
 would need to map your filter on the incoming Action's URL, not the page's
 URL.

 Craig

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

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



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

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



RE: Working with Struts + Dreamweaver

2003-07-25 Thread Mike Jasnowski
1. Is it really necessary to work with such a product?

It's really up to you, whatever makes you most productive.  Have you looked
at using utilities like XDoclet to generate some of your code as well?

2. Is it possible to work with Struts and Dreamweaver together? What
does it take to do in order to achieve that?

I believe so, I don't use DW myself, but there was a post a few days/ about
1 week ago maybe where someone had developed an extension that enabled you
to construct your pages with Struts tags, and view them in DW as the HTMl
they represent. Or something like that.  Although the tags of course are
just one aspect of Struts, not even the most criticial in that you can use
any tag library with Struts.



-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 3:13 PM
To: 'Struts Users Mailing List'
Subject: Working with Struts + Dreamweaver


I have a JBoss/Tomcat/Struts project in which till now I have written
all the pages manually with a simple editor. I have recently downloaded
Dreamweaver by Macromedia and started playing with it to see what it is
capable of doing. Being far from expert in HTML page design my questions
are:

1. Is it really necessary to work with such a product?
2. Is it possible to work with Struts and Dreamweaver together? What
does it take to do in order to achieve that?
3. Is there other products more integrated with the environment of
Struts ,JBoss ,Tomcat?

Any other help in the matter would be appreciated.

Thanks a lot,
Erez



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



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



Re: Using Actions with specific paths

2003-07-25 Thread ian_d_stewart


How about:

servlet
 servlet-nameaction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
  param-nameconfig/param-name
  param-valueWEB-INF/struts-config.xml/param-value
 /init-param
/servlet
servlet
 servlet-namecontrolAction/servlet-name
 servlet-classorg.apache.struts.action.ActionServlet/servlet-class
 init-param
  param-nameconfig/param-name
  param-valueWEB-INF/control-config.xml/param-value
 /init-param
/servlet

servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
/servlet-mapping
servlet-mapping
 servlet-namecontrolAction/servlet-name
 url-patterncontrol/*.do/url-pattern
/servlet-mapping


Ian

Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure  Operations
[EMAIL PROTECTED]
(614) 213-6100




David Erickson [EMAIL PROTECTED] on 07/25/2003 01:43:26 PM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]

To:   Struts Mailing List [EMAIL PROTECTED]
cc:

Subject:  Using Actions with specific paths



Hi I have been having a very difficult time implementing this, basically
what I'd like to do is have Struts match some actions based on the path
they
are executed from, but I am not sure how to setup the web.xml for that nor
the struts-config.xml.

Example I'd like:

/mywebapp/navigate.do runs a different action class than
/mywebapp/control/navigate.do

And I am confused at how to setup the struts config to match the /control
part, and how exactly I need to setup the web.xml to map everything to
struts thats *.do.  Right now in web.xml it looks like:
servlet-mapping

servlet-nameaction/servlet-name

url-pattern*.do/url-pattern

/servlet-mapping



But I'm thinking that if I also add /control/*.do that the struts config
would match navigate from either path to the same class??  I don't know if
i
explained myself clearly.. but any help would be greatly appreciated.

Thanks,

David




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









This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


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



Re: Using Actions with specific paths

2003-07-25 Thread David Erickson
Ahhh now that I definitly like, thanks for the tip.
-David

- Original Message - 
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 25, 2003 12:32 PM
Subject: Re: Using Actions with specific paths




 How about:

 servlet
  servlet-nameaction/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
   param-nameconfig/param-name
   param-valueWEB-INF/struts-config.xml/param-value
  /init-param
 /servlet
 servlet
  servlet-namecontrolAction/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
   param-nameconfig/param-name
   param-valueWEB-INF/control-config.xml/param-value
  /init-param
 /servlet

 servlet-mapping
  servlet-nameaction/servlet-name
  url-pattern*.do/url-pattern
 /servlet-mapping
 servlet-mapping
  servlet-namecontrolAction/servlet-name
  url-patterncontrol/*.do/url-pattern
 /servlet-mapping


 Ian

 Ian D. Stewart
 Open Systems Engineer II
 Enterprise Midrange - Bank One Infrastructure  Operations
 [EMAIL PROTECTED]
 (614) 213-6100




 David Erickson [EMAIL PROTECTED] on 07/25/2003 01:43:26 PM

 Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

 To:   Struts Mailing List [EMAIL PROTECTED]
 cc:

 Subject:  Using Actions with specific paths



 Hi I have been having a very difficult time implementing this, basically
 what I'd like to do is have Struts match some actions based on the path
 they
 are executed from, but I am not sure how to setup the web.xml for that nor
 the struts-config.xml.

 Example I'd like:

 /mywebapp/navigate.do runs a different action class than
 /mywebapp/control/navigate.do

 And I am confused at how to setup the struts config to match the /control
 part, and how exactly I need to setup the web.xml to map everything to
 struts thats *.do.  Right now in web.xml it looks like:
 servlet-mapping

 servlet-nameaction/servlet-name

 url-pattern*.do/url-pattern

 /servlet-mapping



 But I'm thinking that if I also add /control/*.do that the struts config
 would match navigate from either path to the same class??  I don't know if
 i
 explained myself clearly.. but any help would be greatly appreciated.

 Thanks,

 David




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









 This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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




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



RE: Working with Struts + Dreamweaver

2003-07-25 Thread Erez Efrati
Thank for answer, 

So what do you usually use? And if the project also uses Tiles? Any help
here is blessed.. :) 

Erez

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 8:30 PM
To: Struts Users Mailing List
Subject: RE: Working with Struts + Dreamweaver

1. Is it really necessary to work with such a product?

It's really up to you, whatever makes you most productive.  Have you
looked
at using utilities like XDoclet to generate some of your code as well?

2. Is it possible to work with Struts and Dreamweaver together? What
does it take to do in order to achieve that?

I believe so, I don't use DW myself, but there was a post a few days/
about
1 week ago maybe where someone had developed an extension that enabled
you
to construct your pages with Struts tags, and view them in DW as the
HTMl
they represent. Or something like that.  Although the tags of course are
just one aspect of Struts, not even the most criticial in that you can
use
any tag library with Struts.



-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 3:13 PM
To: 'Struts Users Mailing List'
Subject: Working with Struts + Dreamweaver


I have a JBoss/Tomcat/Struts project in which till now I have written
all the pages manually with a simple editor. I have recently downloaded
Dreamweaver by Macromedia and started playing with it to see what it is
capable of doing. Being far from expert in HTML page design my questions
are:

1. Is it really necessary to work with such a product?
2. Is it possible to work with Struts and Dreamweaver together? What
does it take to do in order to achieve that?
3. Is there other products more integrated with the environment of
Struts ,JBoss ,Tomcat?

Any other help in the matter would be appreciated.

Thanks a lot,
Erez



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



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



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



  1   2   >