Re: Struts 1.1 migration

2003-07-24 Thread Vinit Sharma
Hello
I'm using the DTD version as provided by Struts site for Struts 1.1. It is as follows:
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-24 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:
>
>   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]



RE:

2003-07-24 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: 


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:

2003-07-24 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

struts-user@jakarta.apache.org

2003-07-24 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




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]



Struts 1.1 migration

2003-07-24 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:
 
   
  
   

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

Re: Struts in Action

2003-07-24 Thread Sergey Smirnov
"Chirag Mehta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Also, does anyone suggest a good IDE to work on. Currently i have
> Eclipse with plugins galore. Is that the best option?
>
Try Exadel Struts Studio - http://www.strutsStudio.com
It also orients to people who learns Struts.

Actually, there is a lot of GUI tools already exist (and will be created in
the nearest future) - from simple xml editors to advanced IDEs created
specially for Struts Framework. Which of them is the best option for you
depends of your needs




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



Partial form validation...

2003-07-24 Thread Keith Pemberton
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
-- 
Keith Pemberton <[EMAIL PROTECTED]>


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



question...

2003-07-24 Thread Keith Pemberton
I was wondering if when a link created by the  tag is clicked
if a form bean will be created and populated assuming that the link is
to an actionmapping?  I have a form in which has two buttons that do
different actions.  I would like to use a DispatchAction class instead
of a LookupDispatch action inorder to perform these actions.  Some of
the actions, though, need info from the ActionForm.  Thanks in advance!

Keith
-- 
Keith Pemberton <[EMAIL PROTECTED]>


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



Re: Writing values from javabeans to html tags.

2003-07-24 Thread Keith Pemberton
Why not just specify the name attribute in the html:textarea tag with
the attribute equal to the name of the bean, in your case requestDTO. 
That's what I do and it works well for me.

On Thu, 2003-07-24 at 20:45, Kelvin wu wrote:
> try to use html-el tag
> 
>   value="${sessionScope.requestDTO.comments}"/>
> 
> - Original Message - 
> From: "Matt E" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, July 25, 2003 5:23 AM
> Subject: Writing values from javabeans to html tags.
> 
> 
> > Hello All!
> > 
> > I'm trying to give an inital value to one of the
> > fields in a form in an application of mine.
> > 
> > I had tried this:
> > 
> >  > value="<%=requestDTO.getComments()%>"
> > 
> > Since I had read that you couldn't use bean:write tag
> > in the value attribute of the html tags.  However this
> > gives me an error in tomcat:
> > 
> > org.apache.jasper.JasperException: Unable to compile
> > /int0/opt/tomcat/b331/work/DEFAULT/tir/pla/ReviewRequest_3.java:899:
> > Undefined variable or class name: requestDTO
> >
> > _jspx_th_html_textarea_0.setValue(requestDTO.getComments());
> > 
> > The bean in question (requestDTO) is session scoped. 
> > I can use  to write out the value, so I
> > know it's there.
> > 
> > What do I need to do so that
> > <%=requestDTO.getComments()%> works also?
> > 
> > __
> > 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]
-- 
Keith Pemberton <[EMAIL PROTECTED]>


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



RE: Nested Bean Problem

2003-07-24 Thread Nagaraj_K
Why not add a method in the roleUserBean which returns the size of the
ArrayList menuComponent Bean? Using the index of the iterator you will get
the roleUserBean component using which u can get the size of the
menuComponent ArrayList.

Nagaraj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 10:39 AM
To: Struts Users Mailing List
Subject: Re: Nested Bean Problem



Actually the ArrayList menuComponentBean is having all the menuNames which
I am showing in the top header row of a html table. I want to set the
colspan of all the other rows equal to the number of menu items in this
row.



Thanks,
Prashant.




 

"Nagendra

Kumar O V S" To:
<[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]cc:

go.com>  Subject: Re: Nested Bean
Problem  
 

07/25/03

10:22 AM

Please

respond to

"Struts Users

Mailing List"

 

 




 

 hi,

 why do u want to get the size of the collection...?

 u can use indexId attribute which gives the index of the iterator

 

 -- nagi

 

 ---Original Message---

 

 From: Struts Users Mailing List

 Date: Friday, July 25, 2003 09:57:28 AM

 To: [EMAIL PROTECTED]

 Subject: Nested Bean Problem

 

 Hi,

 I have a problem handling nested beans..

 For example...

 I have a userBean as given below

 private int userID;

 private String lastName;

 private String firstName;

 private ArrayList roleUser;

 Where the last field Arraylist is the arraylist of the objects of the bean

 called roleUserBean.

 

 Again the roleUserBean has the following properties.

 private int roleid;

 private String desc;

 private String name;

 private ArrayList menuComponent;

 The last property menuComponent is the arrayList of objects of the bean

 called menuComponentBean.

 

 Now the menuComponentBean contains

 private int menuID;

 private String menuName;

 private String description;

 

 

 I have put the userBean in the session scope. Now I want to know how many

 objects are there in the menuComponentBean (size of the ArrayList

 menuComponentBean). I am not able to get that. Please help.

 

 Thanks in advance.

 Prashant M Desai.

 

 

 

 -

 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]

 

 

 .

 

 

 

 

 

 

 

 




  IncrediMail - Email has finally evolved - Click Here




-
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: Nested Bean Problem

2003-07-24 Thread prashant . mdesai

Actually the ArrayList menuComponentBean is having all the menuNames which
I am showing in the top header row of a html table. I want to set the
colspan of all the other rows equal to the number of menu items in this
row.



Thanks,
Prashant.




   

"Nagendra  

Kumar O V S" To: <[EMAIL PROTECTED]>   
   
<[EMAIL PROTECTED]cc:  
 
go.com>  Subject: Re: Nested Bean Problem  

   

07/25/03   

10:22 AM   

Please 

respond to 

"Struts Users  

Mailing List"  

   

   




   

 hi,   

 why do u want to get the size of the collection...?   

 u can use indexId attribute which gives the index of the iterator 

   

 -- nagi   

   

 ---Original Message---

   

 From: Struts Users Mailing List   

 Date: Friday, July 25, 2003 09:57:28 AM   

 To: [EMAIL PROTECTED]
 Subject: Nested Bean Problem  

   

 Hi,   

 I have a problem handling nested beans..  

 For example...

 I have a userBean as given below  

 private int userID;   

 private String lastName;  

 private String firstName; 

 private ArrayList roleUser;   

 Where the last field Arraylist is the arraylist of the objects of the bean

 called roleUserBean.  

   

 Again the roleUserBean has the following properties.  

 private int roleid;   

 private String desc;  

 private String name;  

 private ArrayList menuComponent;  

 The last property menuComponent is the arrayList of objects of the bean   

 called menuComponentBean. 


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

2003-07-24 Thread Andrew Hill
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]
>
> 
> If received in error, please destroy and notify sender
> 
>

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]



Re: Nested Bean Problem

2003-07-24 Thread Nagendra Kumar O V S








  hi,
  why do u want to get the size of the collection...?
  u can use indexId attribute which gives the index of the 
  iterator
   
  -- nagi
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Friday, July 25, 
  2003 09:57:28 AM
  To: [EMAIL PROTECTED]
  Subject: Nested Bean 
  Problem
   Hi,I have a problem handling nested beans..For 
  example...I have a userBean as given belowprivate int 
  userID;private String lastName;private String 
  firstName;private ArrayList roleUser;Where the last field 
  Arraylist is the arraylist of the objects of the beancalled 
  roleUserBean.Again the roleUserBean has the following 
  properties.private int roleid;private String desc;private 
  String name;private ArrayList menuComponent;The last property 
  menuComponent is the arrayList of objects of the beancalled 
  menuComponentBean.Now the menuComponentBean containsprivate 
  int menuID;private String menuName;private String 
  description;I have put the userBean in the session scope. Now 
  I want to know how manyobjects are there in the menuComponentBean 
  (size of the ArrayListmenuComponentBean). I am not able to get that. 
  Please help.Thanks in advance.Prashant M 
  Desai.-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].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



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

2003-07-24 Thread Craig R. McClanahan


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]
>
> 
> If received in error, please destroy and notify sender
> 
>

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]



RE: Testing Struts-Config

2003-07-24 Thread Craig R. McClanahan


On Thu, 24 Jul 2003, James Holmes wrote:

> Date: Thu, 24 Jul 2003 23:18:40 -0400
> From: James Holmes <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Testing Struts-Config
>
> If you use Struts Console it will tell you of any problems your config
> file has with respect to validating against the Struts Config DTD.
>
> http://www.jamesholmes.com/struts/
>
> However, Struts Console will not tell you things like the fact that you
> have 2 form beans with the same name.  I have this type of functionality
> on my todo list though.
>

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.

> -James

Craig

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



...off-topic...

2003-07-24 Thread Rajat Nayer
Hi,

I know what i am asking is really off-topic but I had
to ask ... sorry..

Actually my application needs a small piece wherein it
needs to consume messages passed to it from MQSeries
5.3. I intend to use MDB. Also, i am using WLS 6.1
SP4. 

Can somebody guide on how to achieve this.
Any pointers , experiences would be of great help.

regds






__
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]



Nested Bean Problem

2003-07-24 Thread prashant . mdesai
Hi,
I have a problem handling nested beans..
For example...
I have a userBean as given below
private int userID;
private String lastName;
private String firstName;
private ArrayList roleUser;
Where the last field Arraylist is the arraylist of the objects of the bean
called roleUserBean.

Again the roleUserBean has the following properties.
private int roleid;
private String desc;
private String name;
private ArrayList menuComponent;
The last property menuComponent is the arrayList of objects of the bean
called menuComponentBean.

Now the menuComponentBean contains
private int menuID;
private String menuName;
private String description;


I have put the userBean in the session scope. Now I want to know how many
objects are there in the menuComponentBean (size of the ArrayList
menuComponentBean). I am not able to get that. Please help.

Thanks in advance.
Prashant M Desai.



-
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: Can Validor ignore datatype validation if value is null?

2003-07-24 Thread David Graham
--- Brian Chaplin <[EMAIL PROTECTED]> wrote:
> I have a field I want to validate as a datatype ONLY if it is not null. 
> If
> null, I want to bypass validation.
> Can I do this?
> 
> 
> 

Yes, that should work.  The validations were decoupled from the required
check before 1.1.

David

> 
> 
> 
> 
> 
> -
> 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: [FRIDAY] Funny legal signatures [WAS: RE: Struts in Action]

2003-07-24 Thread Shane Mingins
lol

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Friday, 25 July 2003 3:29 p.m.
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: [FRIDAY] Funny legal signatures [WAS: RE: Struts in Action]


If received in error, please destroy and notify sender


Wouldnt it be more logical if I notified you first and then destroyed you?
That way you would have a chance to say goodbye to everyone first.

I have to say thats a pretty strict rule! Id have thought accidentally
sending email to the wrong place might deserve a reprimand or such like -
but destruction? ouch!

;->

-Original Message-
From: Chirag Mehta [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 July 2003 01:24
To: Struts Users Mailing List
Subject: Struts in Action


I have just started developing a Struts Webapp and was wondering if
there was an actual Struts app in production online that I could have a
look at?

Also, does anyone suggest a good IDE to work on. Currently i have
Eclipse with plugins galore. Is that the best option?

Thanks

Chirag

--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.




-
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] Funny legal signatures [WAS: RE: Struts in Action]

2003-07-24 Thread Andrew Hill

If received in error, please destroy and notify sender


Wouldnt it be more logical if I notified you first and then destroyed you?
That way you would have a chance to say goodbye to everyone first.

I have to say thats a pretty strict rule! Id have thought accidentally
sending email to the wrong place might deserve a reprimand or such like -
but destruction? ouch!

;->

-Original Message-
From: Chirag Mehta [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 July 2003 01:24
To: Struts Users Mailing List
Subject: Struts in Action


I have just started developing a Struts Webapp and was wondering if
there was an actual Struts app in production online that I could have a
look at?

Also, does anyone suggest a good IDE to work on. Currently i have
Eclipse with plugins galore. Is that the best option?

Thanks

Chirag

--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.




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



Re: Problem with struts-el

2003-07-24 Thread R Balaji
Hi Chuck,

Well, the property parameter of the html-el:text stands for the "name of 
the attribute" in the form  bean ,that should be updated while 
submitting the form. And the value attribute stands for the value to be 
displayed in the text field while loading the form. As per my 
understanding from your mail, i think you  need to set the value 
attribute. But

Canning, Chuck wrote:

Hi,

I found a message that says I might be missing a getter/setter field. Here
is an excerpt from the page
   ">
 
   
 
   :  
   
 

I can not understand the use of *value() *method. Do you have getter 
setter methods and a property with the result of the *value()  *method  
??? .
i believe that it should be some thing like,



I think this would help you .

Regards,
Balaji
 



RE: Testing Struts-Config

2003-07-24 Thread James Holmes
If you use Struts Console it will tell you of any problems your config
file has with respect to validating against the Struts Config DTD.

http://www.jamesholmes.com/struts/

However, Struts Console will not tell you things like the fact that you
have 2 form beans with the same name.  I have this type of functionality
on my todo list though.

-James

-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 8: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: Testing Struts-Config

2003-07-24 Thread Rob Leland
Edgar Dollin wrote:

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.
This may help you, though I haven't used it:
http://sourceforge.net/projects/strutstestcase/
Thanks in advance.

Edgar

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


 



--
Rob Leland


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


Re: Writing values from javabeans to html tags.

2003-07-24 Thread Kelvin wu
try to use html-el tag



- Original Message - 
From: "Matt E" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 5:23 AM
Subject: Writing values from javabeans to html tags.


> Hello All!
> 
> I'm trying to give an inital value to one of the
> fields in a form in an application of mine.
> 
> I had tried this:
> 
>  value="<%=requestDTO.getComments()%>"
> 
> Since I had read that you couldn't use bean:write tag
> in the value attribute of the html tags.  However this
> gives me an error in tomcat:
> 
> org.apache.jasper.JasperException: Unable to compile
> /int0/opt/tomcat/b331/work/DEFAULT/tir/pla/ReviewRequest_3.java:899:
> Undefined variable or class name: requestDTO
>
> _jspx_th_html_textarea_0.setValue(requestDTO.getComments());
> 
> The bean in question (requestDTO) is session scoped. 
> I can use  to write out the value, so I
> know it's there.
> 
> What do I need to do so that
> <%=requestDTO.getComments()%> works also?
> 
> __
> 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]



Testing Struts-Config

2003-07-24 Thread Edgar Dollin
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]



Re: [newbie] Problem with Action Mapping

2003-07-24 Thread Kelvin wu
Try to add


in 

- Original Message - 
From: "struts user" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 9:32 PM
Subject: Re: [newbie] Problem with Action Mapping


>
> I tried both the ways in the login.jsp
>
> 1 
>
>  AND
>
> 2. 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
> > > 
> > > 
> > > action
> > > *.do
> > > 
> > >
> > > In login.jsp
> > > -
> > >  > > name="LoginForm"
> > > type="com.xxx.yyy.LoginForm" >
> > >
> >
> >Change the JSP above to be  . 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
> > > 
> > >
> > > 
> > > 
> > > 
> > >
> > > GLOBAL FORWARDING
> > > --
> > >
> > > 
> > > 
> > > 
> > >
> > > ACTION MAPINGS
> > > 
> > >
> > > 
> > >  > > input="/login.jsp" name="LoginForm">
> > > 
> > > 
> > > 
> > >
Try to add


> > >
> > > 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: Radio active? :-) or a working example of nested radio buttons

2003-07-24 Thread ScottC
Adam,
The final code came down to this:


 

   
  
   

   
  
 
 
  

   

 


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
>
> 
>
> type="foo.bar.operation.OperationValueBean" scope="page"/>
>
> 
>
> 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 
> > 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]



Strus/Java counterpart of JavaScript Array?

2003-07-24 Thread Rick Col
Hi, guys:

I can use JavaScript array of arrays su as the
following to fill a box.

students = new Array(
new Array(
new Array("Saku",1),
new Array("Martin",2),
new Array("Jeff", 3)
),
new Array(
new Array("Mario", 1),
new Array("Jaromir", 2),
new Array("Robert", 3),
new Array("Alexei", 4)
),
new Array(
new Array("Alexei", 1),
new Array("Daniel", 2),
new Array("Maria", 3),
new Array("Patrick", 4),
new Array("Radek", 5)
)
);


The above Array is used as a JavaScript function
parameter. 
When I use a collection or an ArrayList ofArrayLists
to replace 
the above JavaScript Array, it fails to show up in the
box. I 
am wondering if there is such array structure in
Struts/Java I 
can use to replace javascript array, because I need to
fill the 
box using dynamic data. thanks.

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]



Issue

2003-07-24 Thread Eugene McCullagh
I have a 2 bean classes, Bean1 and Bean2. Bean1 holds an ArrayList of Bean2
objects. The Bean2 class has a string property called status. Finally I have
an ActionForm, actionForm1, which holds an instance of Bean1.

I want to dynamically create a set of radio buttons which will allow a user
to change status (either "accept" or "reject") of each Bean2 instance within
the ArrayList. The code I am using is as follows:

/*Class Definitions. Assume each class has appropriate setter and getter
methods*/

public class ActionForm1 {
Bean1 bean1Instance;
}

public class Bean1 {
ArrayList bean2List;
}

public class Bean2 {
String status = "accept";
}

/*JSP Code*/


  
  


I have tested this and the tag picks up the status (i.e. "accept") from
Bean3.status in each iteration, checking the radio button for accept each
time. However it does not appear to set it if I click the "reject" radio
button on the screen. I would be extremeny grateful if anyone could shed
some light on this as I am at a loss

TIA


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



RE: Problem with struts-el

2003-07-24 Thread Canning, Chuck
Hi,

I found a message that says I might be missing a getter/setter field. Here
is an excerpt from the page

">
  

  
:  

  


where CustomDeployForm is a mapped backed form based on the form in the FAQ
that has this example as the access code: 

 

is the way that I am using the form wrong ? I would really
appreciate it if someone could provide me with some insight. Thanks.

Chuck


-Original Message-
From: Canning, Chuck [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 6:38 PM
To: 'Struts Users Mailing List'
Subject: Problem with struts-el


Hey,

I am using the html-el tags, but I am getting this error. Does anyone know
what might be causing this?

Thanks,

Chuck


javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:839)
at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:176)
at
org.apache.strutsel.taglib.html.ELTextTag.doStartTag(ELTextTag.java:580)
at
org.apache.jsp.createDeployCustom$jsp._jspService(createDeployCustom$jsp.jav
a:163)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:294)
at
org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
58)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:451)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:401)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:507)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
at org.mortbay.http.HttpServer.service(HttpServer.java:863)
at org.jboss.jetty.Jetty.service(Jetty.java:460)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

-
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]



Problem with struts-el

2003-07-24 Thread Canning, Chuck
Hey,

I am using the html-el tags, but I am getting this error. Does anyone know
what might be causing this?

Thanks,

Chuck


javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:839)
at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:176)
at
org.apache.strutsel.taglib.html.ELTextTag.doStartTag(ELTextTag.java:580)
at
org.apache.jsp.createDeployCustom$jsp._jspService(createDeployCustom$jsp.jav
a:163)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:294)
at
org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:129)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
58)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:451)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:401)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:294)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:507)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
at org.mortbay.http.HttpServer.service(HttpServer.java:863)
at org.jboss.jetty.Jetty.service(Jetty.java:460)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)

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



[FRIDAY] Re: OT Posts on this List

2003-07-24 Thread Adam Hardy
It is now, but it wasn't then.

Yes, I know what you mean. Sometimes it makes me feel warm and fuzzy. 
But that might just be the pills.

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.
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: July 24, 2003 3:37 PM
To: Struts Users Mailing List
Subject: Re: OT Posts on this List almost [FRIDAY]

Watch out, you might get blackballed

Yansheng Lin wrote:

Hahahaha,

Oh shoot, I almost fell off my chair:).

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: July 24, 2003 1:53 PM
To: Struts Users Mailing List
Subject: Re: OT Posts on this List

--- Mark Galbreath <[EMAIL PROTECTED]> wrote:


Ppls...

Please find another forum to ask basic Java questions as it pollutes the
bandwidth of an already overpopulated user list.  I am the only one
allowed
to ask OT questions here.


Mark is also the only person allowed to answer OT questions so please send
him your questions directly.
David



Mark



-
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]



-
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-24 Thread Mounagurusamy, Jayakumar (HAL)
sure :)

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 4: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...



...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]



RE: OT Posts on this List almost [FRIDAY]

2003-07-24 Thread Shane Mingins
lol


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED] 
Sent: Friday, 25 July 2003 11:15 a.m.
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...



...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]



Re: OT Posts on this List almost [FRIDAY]

2003-07-24 Thread Erik Price


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...



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





Erik

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


Re: Retrieving Values from session

2003-07-24 Thread Meka Struts
My bad,

I had to use a 

Regards,

Meka Toka
- Original Message -
From: "Meka Struts" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 7:06 PM
Subject: Retrieving Values from session


Hi,

I am going through an example.

When it had to forward a bunch of objects it filled the objects in a
ArrayList and added the arraylist object to session. Later, the arraylist
object was iterated using the logic template directories iterate command.

I want to send a single object instance, and for that i have also attached
the object instance to the session.

How can i access the object in the jsp page which needs to display the data
from the object present in the session ?

Thank You

Meka Toka


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



Retrieving Values from session

2003-07-24 Thread Meka Struts
Hi,

I am going through an example. 

When it had to forward a bunch of objects it filled the objects in a ArrayList and 
added the arraylist object to session. Later, the arraylist object was iterated using 
the logic template directories iterate command.

I want to send a single object instance, and for that i have also attached the object 
instance to the session. 

How can i access the object in the jsp page which needs to display the data from the 
object present in the session ?

Thank You

Meka Toka


Re: Validator range server-side check assumes Integer?

2003-07-24 Thread Brian Chaplin
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:
>
> 
>
> 
>
> 
>
> 
>
> 
>
> min
>
> 5
>
> 
>
> 
>
> max
>
> 100
>
> 
>
>
>
> 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]



Can Validor ignore datatype validation if value is null?

2003-07-24 Thread Brian Chaplin
I have a field I want to validate as a datatype ONLY if it is not null.  If
null, I want to bypass validation.
Can I do this?








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



RE: OT Posts on this List almost [FRIDAY]

2003-07-24 Thread Yansheng Lin
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.


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: July 24, 2003 3:37 PM
To: Struts Users Mailing List
Subject: Re: OT Posts on this List almost [FRIDAY]


Watch out, you might get blackballed

Yansheng Lin wrote:
> Hahahaha,
> 
> Oh shoot, I almost fell off my chair:).
> 
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED] 
> Sent: July 24, 2003 1:53 PM
> To: Struts Users Mailing List
> Subject: Re: OT Posts on this List
> 
> 
> --- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> 
>>Ppls...
>>
>>Please find another forum to ask basic Java questions as it pollutes the
>>bandwidth of an already overpopulated user list.  I am the only one
>>allowed
>>to ask OT questions here.
> 
> 
> Mark is also the only person allowed to answer OT questions so please send
> him your questions directly.
> 
> David
> 
> 
>>Mark
>>
>>
>>
>>-
>>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]
> 
> 


-
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-24 Thread Yansheng Lin

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:











min

5





max

100





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]



Validator range server-side check assumes Integer?

2003-07-24 Thread Brian Chaplin
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:











min

5





max

100





yields an error message of

fee amount must be an integer







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



Re: doFilter not executing

2003-07-24 Thread Alen Ribic
Seems like it has a more relaxed (or maybe intelligent ;)) parsing
mechanism.
Experienced the same thing when using the newer Tomcat web containers.

However, alternatively try the same on JBoss 3.0 and it throws a stack of
parsing related exceptions.

--Alen



- Original Message -
From: "Kimberly Lane" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 10:16 PM
Subject: Re: doFilter not executing


> You are right. I did read it from this link:
>
> http://edocs.bea.com/wls/docs70/webapp/filters.html#172613
>
>
> However, I put it after servlet declration on purpose and it worked. I am
running Tomcat 5
>
> I do not know why.
>
>
>
> Alen Ribic <[EMAIL PROTECTED]> wrote:
> Correct me if I'm wrong, AFAIK filter specific descriptor tags need to be
> located before servlet declarations.
>
> --Alen
>
>
> - Original Message -
> From: "Alex Shneyderman"
> To: "'Struts Users Mailing List'"
> Sent: Thursday, July 24, 2003 9:50 PM
> Subject: RE: doFilter not executing
>
>
> > You did not map your filter.
> >
> > Use filter-mapping element to tell the container what requests need to
> > be intercepted by your filter
> >
> > > -Original Message-
> > > From: Kimberly Lane [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, July 24, 2003 3:49 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: doFilter not executing
> > >
> > > Hi, I did not mean to cross post. I sent out the following question a
> > few
> > > minutes ago, but my mail server was having a problem so I am not sure
> > if
> > > it was through or not! I am sending it using a different account.
> > >
> > >
> > >
> > > I implemented Filter interface and set it up in my Tomcat container.
> > The
> > > funning thing is that only the init() and destroy() methods get
> > executed
> > > when I start and shut the server, the doFilter HOWEVER does not get
> > > executed when I make a request from the web page.
> > > Am I missing something obvious?
> > > Here is my code:
> > > public class MyFilter implements Filter {
> > > public void init(FilterConfig filterConfig) throws ServletException
> > {
> > > /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
> > >
> > System.out.println("
> > **
> > > **
> > > *");
> > > System.out.println("My fuilter init");
> > > }
> > > public void doFilter(ServletRequest request, ServletResponse
> > response,
> > > FilterChain chain) throws IOException, ServletException {
> > > /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
> > >
> > System.out.println("
> > **
> > > **
> > > *");
> > > System.out.println("My filter do fuilter");
> > > chain.doFilter(request,
> > > response);
> > > }
> > > public void destroy() {
> > > /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
> > >
> > System.out.println("
> > **
> > > **
> > > *");
> > > System.out.println("My filter destroy");
> > > }
> > > }
> > > Here is web.xml:
> > >
> > > > zhou
> > > (UBH) -->
> > > > > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> > >
> > >
> > >
> > > Struts Example Application
> > >
> > >
> > >
> > > action
> > > ubh.web.servlet.UBHActionServlet
> > >
> > >
> config
>
> > >
> /WEB-INF/struts-config.xml
>
> > >
> > >
> > >
> mapping
>
> > >
> ubh.web.action.UBHActionMapping
>
> > >
> > > 1
> > >
> > >
> > >
> > > action
> > > *.do
> > >
> > >
> > > MyFilter
> > > filter.MyFilter
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > index.jsp
> > >
> > >
> > >
> > > /WEB-INF/app.tld
> > > /WEB-INF/app.tld
> > >
> > >
> > >
> > > /WEB-INF/struts-bean.tld
> > > /WEB-INF/struts-bean.tld
> > >
> > >
> > > /WEB-INF/struts-html.tld
> > > /WEB-INF/struts-html.tld
> > >
> > >
> > > /WEB-INF/struts-logic.tld
> > > /WEB-INF/struts-logic.tld
> > >
> > >
> > >
> > >
> > >
> > >
> > > -
> > > 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]
> >
> >
>
>
>
> -
> 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: OT Posts on this List almost [FRIDAY]

2003-07-24 Thread Mark Galbreath
You only get black-balled if:

a) you ride horses without a soft saddle;

b) you see a really great-looking chick sit down beside you and you
mistakenly release all your fountain pen ink into your lap;

c) you have testicular gangrene;

d) Craig tosses you from the List and you land on a fence rail;

e) you dress up as an 8-ball for Halloween and everyone wants to nail you;

f) you confuse the pirate for your privates;

e) you confuse graffiti on the lamp post with graffiti on The Post;

f) your name is "Uday" or "Qusay."


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 5:37 PM
To: Struts Users Mailing List
Subject: Re: OT Posts on this List almost [FRIDAY]


Watch out, you might get blackballed

Yansheng Lin wrote:
> Hahahaha,
> 
> Oh shoot, I almost fell off my chair:).
> 
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: July 24, 2003 1:53 PM
> To: Struts Users Mailing List
> Subject: Re: OT Posts on this List
> 
> 
> --- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> 
>>Ppls...
>>
>>Please find another forum to ask basic Java questions as it pollutes 
>>the bandwidth of an already overpopulated user list.  I am the only 
>>one allowed to ask OT questions here.
> 
> 
> Mark is also the only person allowed to answer OT questions so please 
> send him your questions directly.
> 
> David
> 
> 
>>Mark
>>
>>
>>
>>-
>>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]
> 
> 


-
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]



Use html:link and LookupDispatchAction together

2003-07-24 Thread David Jiao
Hello,

I have used the LookupDispatchAction with some buttons and it works
quite well. Now I want to submit the form by clicking on a link instead
of a button. I've tried something like this in my jsp file but it
returns me the error


  





type Status report

message Request[/result] does not contain handler parameter named method

description The request sent by the client was syntactically incorrect
(Request[/result] does not contain handler parameter named method).

I also tried to use javascript in the onclick attribute of html:link but 
it returns the same error.

So my question is, is it possible to use LookupDispatchAction to dispatsh 
actions from links at all?
If not, what would be proper way to implement similar functionality?
Should I discard whole LookupDispatchAction and use something else instead
of that, or just handle links differently?

Thank you very much!

David







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



Re: OT Posts on this List almost [FRIDAY]

2003-07-24 Thread Adam Hardy
Watch out, you might get blackballed

Yansheng Lin wrote:
Hahahaha,

Oh shoot, I almost fell off my chair:).

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: July 24, 2003 1:53 PM
To: Struts Users Mailing List
Subject: Re: OT Posts on this List

--- Mark Galbreath <[EMAIL PROTECTED]> wrote:

Ppls...

Please find another forum to ask basic Java questions as it pollutes the
bandwidth of an already overpopulated user list.  I am the only one
allowed
to ask OT questions here.


Mark is also the only person allowed to answer OT questions so please send
him your questions directly.
David


Mark



-
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]



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


RE: [OT] isUserInRole problem

2003-07-24 Thread Bailey, Shane C.


Below is my config.
Also, I am getting Hello, 
to show up in my JSPs which means the call to the SecurityFilter
authenticate()is working in my JSPs why wouldn't the isUserInRole() ??

web.xml

SecurityFilter
/*



security-filter.xml


Authorized-only
*.do
*.jsp


*



I have already taken this over to the SecurityFilter forum.  I'm not
convinced yet if it is Security Filter or something so if you know from the
new info about my config then let me know.

What I am tring to do is list no roles in the config files and just on the
fly use Struts ... and Struts
Action roles (attribute) while SecurityFilter does the call to get the
user's roles on the fly to do all my security.  Bare minimum in text files!
I am close.  Like I said actions work but JSPs don't.

Thanks.

-Original Message-
From: Alex Shneyderman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 3:21 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] isUserInRole problem

It is not clear form your email if your JSPs under SecurityFilter's
mapping?

So if you have mapping like this

SecurityFilter
/do/*


and access your jsp like this:
/index.jsp

It is correct behavior then.


Alex.

> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 3:01 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] isUserInRole problem
> 
> 
> 
> The strangest thing is happening.  To set it up: I am using JRun4 and
> SecurityFilter
> 
> If any type of code (e.g.  ,
 role="Admin"> etc.) tries to do a call which eventually goes
> 
> to the SecurityFilter method isUserInRole(principle,role) from within
a
> JSP
> then I it always returns false and my logging statements in
> 
> my SecurityFilter method aren't called (i.e. it doesn't go in there I
> guess).
> 
> 
> 
> But if I do a request.isUserInRole("Admin") from within an Action then
it
> returns the correct result.
> 
> 
> 
> Has anyone seen this before?



-
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]



Writing values from javabeans to html tags.

2003-07-24 Thread Matt E
Hello All!

I'm trying to give an inital value to one of the
fields in a form in an application of mine.

I had tried this:

 to write out the value, so I
know it's there.

What do I need to do so that
<%=requestDTO.getComments()%> works also?

__
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: OT Posts on this List

2003-07-24 Thread Yansheng Lin
Hahahaha,

Oh shoot, I almost fell off my chair:).

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: July 24, 2003 1:53 PM
To: Struts Users Mailing List
Subject: Re: OT Posts on this List


--- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> Ppls...
> 
> Please find another forum to ask basic Java questions as it pollutes the
> bandwidth of an already overpopulated user list.  I am the only one
> allowed
> to ask OT questions here.

Mark is also the only person allowed to answer OT questions so please send
him your questions directly.

David

> 
> Mark
> 
> 
> 
> -
> 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]



Re: OT: JSR-168 is available for review

2003-07-24 Thread Craig R. McClanahan


On Thu, 24 Jul 2003, Laurent PETIT wrote:

> Date: Thu, 24 Jul 2003 09:17:13 +0100
> From: Laurent PETIT <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  Laurent PETIT <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: OT: JSR-168 is available for review
>
> Hello,
>
> I'm quite new in the Java / J2EE sphere, and so I don't really know the
> typical behaviors I'm supposed to have in some circumstances ? ;-)
>
> Is it quite normal to blame the JCP specs, even without giving any reason
> for that ?
> Or is there such a historical life of bad specs from the JCP, that no more
> spec from it deserves to be taken away without a glance ?
>

What you see here is pretty typical behavior for Vic lately (which is one
of the reasons his mail goes straight into my "noisy" folder), but it's
not typical of people on STRUTS-USER.

>
> Please if you have 2 minutes, explain to me !
>

Craig

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



RE: ServletException Response has already been committed'

2003-07-24 Thread Ranko Bijelonic
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  element instead of  element in
your action mapping configuration.
So your  should have a 
instead of a  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  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 ,
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
 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


  


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 
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
.
This throws Servlet Exception.

I also tried  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 commands, e-mail: [EMAIL PROTECTED]


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



RE: ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
The  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 ,
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
 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


  


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 
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
.
This throws Servlet Exception.

I also tried  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 commands, e-mail: [EMAIL PROTECTED]


RE: Problem: logic:notEqual does not work with null values

2003-07-24 Thread Alex Shneyderman
I think, you should use notEmpty to check for null

> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 4:37 PM
> To: [EMAIL PROTECTED]
> Subject: Problem: logic:notEqual does not work with null values
> 
> 
> Hi!
> 
> I need to check if the certain String field in the bean is not null,
then
> I display certain elements in my JSP (running it on Websphere 4.0):
> 
> So, I do this check:
>   
> do something
>   
> 
> That does not work. The server gives me error, something like: "Null
> attribute value"
> 
> or when I check for empty strings, I tried this:
> 
>value="<%=""%>">
> do something
>   
> 
> Get server error: "Attribute  has no value"
> 
> Then I tried this:
> 
>   
> do something
>   
> 
> 
> Does not work either. How can I make it work? How can I do this check
> correctly? Are there any workarounds?
> 
> Thanks.
> 
> 
> 
> 
> 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: Question About Passing Values from Action Class

2003-07-24 Thread Meka Struts
Hey chuck,

thank you for reply, thats exactly what i was looking for.

However, in my earlier Q i was asking mike, what if i wanted to populate
data from ArrayList (which i recieved from data access object) into a view
class ( a java bean)  so that it can be later used by a view jsp on the
front end.

Hope i made it clear

Regards,

Meka Toka
- Original Message -
From: "Canning, Chuck" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 4:34 PM
Subject: RE: Question About Passing Values from Action Class


> Hey Meka,
>
> I am not sure if I understand what you are saying, so let me surmise: You
> are trying to access an arraylist in a JSP page that has been set by your
> action class. If this is what you are trying to do, it you place the array
> list in the request scope or session scope as an attribute and then
> reference it from the JSP by the attribute name.
>
> in your action, use
>
> request.setAttribute("myList", yourListInstance);
>
> or session.setAttribute("myList", yourListInstance);
>
> Then in your JSP, you could access it by request.myList, session.myList or
> from a struts tag using the name "myList". Hope this information helps you
> find your solution. (My example is not exact).
>
> Chuck
>
> -Original Message-
> From: Meka Struts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 3:24 PM
> To: Struts Users Mailing List
> Subject: Re: Question About Passing Values from Action Class
>
>
> Hi Mike,
>
> Got your point. Thank You
>
> In that case, how would the view classes be helpful. Because some people
> will write View classes (plain java files with get/set - java beans )
>
> Can i set the view class also in the session so that the View JSP can
access
> it and show the data ?
>
> This situation will be arising when i have a data layer which returns me a
> Bussiness Object. So i fill the data from bussiness object to view class
and
> then pass on to view jsp.
>
> Please correct me if any part of above statement doesnt make sense.
>
> Thank You
>
> Meka Toka
>
> PS: I have read and read 2 books, i am just clearing my doubts.
>
>
> - Original Message -
> From: "Mike Jasnowski" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Thursday, July 24, 2003 4:10 PM
> Subject: RE: Question About Passing Values from Action Class
>
>
> > Generally you would stuff this ArrayList in a formbean accessible via a
> > public getter, or you could I suppose put it in the session yourself as
a
> > scoped attribute. Then in the JSP you access it by that attribute name.
> >
> > -Original Message-
> > From: Meka Struts [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 24, 2003 3:58 PM
> > To: [EMAIL PROTECTED]
> > Subject: Question About Passing Values from Action Class
> >
> >
> > Hi,
> >
> > I have an Action Class which has 2 methods
> >
> > * an execute method that forwards using ActionMapping
> > * a protected method getXXX(), which return an ArrayList of objects to
> > execute method.
> >
> > My question is, how would i pass the ArrayList to the view page (jsp) so
> > that it can extract data from ArrayList and display it.
> >
> > I am actually going though an example and it seems to have missed that
> part.
> > I cant get to understand how will the ArrayList object be passed ?
> >
> > Thank You
> >
> > Meka Toka
> >
> >
> > -
> > 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]



Problem: logic:notEqual does not work with null values

2003-07-24 Thread leonard_reinstein

Hi!

I need to check if the certain String field in the bean is not null, then
I display certain elements in my JSP (running it on Websphere 4.0):

So, I do this check:
  
do something
  

That does not work. The server gives me error, something like: "Null
attribute value"

or when I check for empty strings, I tried this:

  ">
do something
  

Get server error: "Attribute  has no value"

Then I tried this:

  
do something
  


Does not work either. How can I make it work? How can I do this check
correctly? Are there any workarounds?

Thanks.




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: ServletException Response has already been committed'

2003-07-24 Thread Ranko Bijelonic
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 ,
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
 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


  


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 
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
.
This throws Servlet Exception.

I also tried  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 commands, e-mail: [EMAIL PROTECTED]



RE: Question About Passing Values from Action Class

2003-07-24 Thread Canning, Chuck
Hey Meka,

I am not sure if I understand what you are saying, so let me surmise: You
are trying to access an arraylist in a JSP page that has been set by your
action class. If this is what you are trying to do, it you place the array
list in the request scope or session scope as an attribute and then
reference it from the JSP by the attribute name.

in your action, use

request.setAttribute("myList", yourListInstance);

or session.setAttribute("myList", yourListInstance);

Then in your JSP, you could access it by request.myList, session.myList or
from a struts tag using the name "myList". Hope this information helps you
find your solution. (My example is not exact).

Chuck

-Original Message-
From: Meka Struts [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:24 PM
To: Struts Users Mailing List
Subject: Re: Question About Passing Values from Action Class


Hi Mike,

Got your point. Thank You

In that case, how would the view classes be helpful. Because some people
will write View classes (plain java files with get/set - java beans )

Can i set the view class also in the session so that the View JSP can access
it and show the data ?

This situation will be arising when i have a data layer which returns me a
Bussiness Object. So i fill the data from bussiness object to view class and
then pass on to view jsp.

Please correct me if any part of above statement doesnt make sense.

Thank You

Meka Toka

PS: I have read and read 2 books, i am just clearing my doubts.


- Original Message -
From: "Mike Jasnowski" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 4:10 PM
Subject: RE: Question About Passing Values from Action Class


> Generally you would stuff this ArrayList in a formbean accessible via a
> public getter, or you could I suppose put it in the session yourself as a
> scoped attribute. Then in the JSP you access it by that attribute name.
>
> -Original Message-
> From: Meka Struts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 3:58 PM
> To: [EMAIL PROTECTED]
> Subject: Question About Passing Values from Action Class
>
>
> Hi,
>
> I have an Action Class which has 2 methods
>
> * an execute method that forwards using ActionMapping
> * a protected method getXXX(), which return an ArrayList of objects to
> execute method.
>
> My question is, how would i pass the ArrayList to the view page (jsp) so
> that it can extract data from ArrayList and display it.
>
> I am actually going though an example and it seems to have missed that
part.
> I cant get to understand how will the ArrayList object be passed ?
>
> Thank You
>
> Meka Toka
>
>
> -
> 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: Question About Passing Values from Action Class

2003-07-24 Thread Mike Jasnowski
If you use the Struts method of using a FormBean, placing the bean into the
session is handled for you.  You obviously still have to populate the
formbean with your data.  You can also utilize DynaActionForms (declarative)
or code your own formBean that extends ActionForm.

When you are forwarded to your JSP, the various struts/JSTL tags will look
for the formBean named in the STruts ActionClass config (name) attribute,
which maps to a "" definition.  You can then operate on it via the
tag itself or expose it (depending on the tag you use) via a scripting
variable and use other tags on the page to process it.

Generally most of the struts tags have a "name" attribute where you identify
the bean attribute name, this can also of course be the "id" you may have
exposed from another tag.

-Original Message-
From: Meka Struts [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 4:24 PM
To: Struts Users Mailing List
Subject: Re: Question About Passing Values from Action Class


Hi Mike,

Got your point. Thank You

In that case, how would the view classes be helpful. Because some people
will write View classes (plain java files with get/set - java beans )

Can i set the view class also in the session so that the View JSP can access
it and show the data ?

This situation will be arising when i have a data layer which returns me a
Bussiness Object. So i fill the data from bussiness object to view class and
then pass on to view jsp.

Please correct me if any part of above statement doesnt make sense.

Thank You

Meka Toka

PS: I have read and read 2 books, i am just clearing my doubts.


- Original Message -
From: "Mike Jasnowski" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 4:10 PM
Subject: RE: Question About Passing Values from Action Class


> Generally you would stuff this ArrayList in a formbean accessible via a
> public getter, or you could I suppose put it in the session yourself as a
> scoped attribute. Then in the JSP you access it by that attribute name.
>
> -Original Message-
> From: Meka Struts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 3:58 PM
> To: [EMAIL PROTECTED]
> Subject: Question About Passing Values from Action Class
>
>
> Hi,
>
> I have an Action Class which has 2 methods
>
> * an execute method that forwards using ActionMapping
> * a protected method getXXX(), which return an ArrayList of objects to
> execute method.
>
> My question is, how would i pass the ArrayList to the view page (jsp) so
> that it can extract data from ArrayList and display it.
>
> I am actually going though an example and it seems to have missed that
part.
> I cant get to understand how will the ArrayList object be passed ?
>
> Thank You
>
> Meka Toka
>
>
> -
> 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: Question About Passing Values from Action Class

2003-07-24 Thread Meka Struts
Hi Mike,

Got your point. Thank You

In that case, how would the view classes be helpful. Because some people
will write View classes (plain java files with get/set - java beans )

Can i set the view class also in the session so that the View JSP can access
it and show the data ?

This situation will be arising when i have a data layer which returns me a
Bussiness Object. So i fill the data from bussiness object to view class and
then pass on to view jsp.

Please correct me if any part of above statement doesnt make sense.

Thank You

Meka Toka

PS: I have read and read 2 books, i am just clearing my doubts.


- Original Message -
From: "Mike Jasnowski" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 4:10 PM
Subject: RE: Question About Passing Values from Action Class


> Generally you would stuff this ArrayList in a formbean accessible via a
> public getter, or you could I suppose put it in the session yourself as a
> scoped attribute. Then in the JSP you access it by that attribute name.
>
> -Original Message-
> From: Meka Struts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 3:58 PM
> To: [EMAIL PROTECTED]
> Subject: Question About Passing Values from Action Class
>
>
> Hi,
>
> I have an Action Class which has 2 methods
>
> * an execute method that forwards using ActionMapping
> * a protected method getXXX(), which return an ArrayList of objects to
> execute method.
>
> My question is, how would i pass the ArrayList to the view page (jsp) so
> that it can extract data from ArrayList and display it.
>
> I am actually going though an example and it seems to have missed that
part.
> I cant get to understand how will the ArrayList object be passed ?
>
> Thank You
>
> Meka Toka
>
>
> -
> 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: ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
It didn't work. It gives me the same error.

>>> [EMAIL PROTECTED] 07/24/03 03:48PM >>>
Try this



-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2: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


  


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 
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
.
This throws Servlet Exception.

I also tried  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 commands, e-mail: [EMAIL PROTECTED]


Re: doFilter not executing

2003-07-24 Thread Kimberly Lane
You are right. I did read it from this link:
 
http://edocs.bea.com/wls/docs70/webapp/filters.html#172613
 
 
However, I put it after servlet declration on purpose and it worked. I am running 
Tomcat 5
 
I do not know why.
 
 

Alen Ribic <[EMAIL PROTECTED]> wrote:
Correct me if I'm wrong, AFAIK filter specific descriptor tags need to be
located before servlet declarations.

--Alen


- Original Message -
From: "Alex Shneyderman" 
To: "'Struts Users Mailing List'" 
Sent: Thursday, July 24, 2003 9:50 PM
Subject: RE: doFilter not executing


> You did not map your filter.
>
> Use filter-mapping element to tell the container what requests need to
> be intercepted by your filter
>
> > -Original Message-
> > From: Kimberly Lane [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 24, 2003 3:49 PM
> > To: [EMAIL PROTECTED]
> > Subject: doFilter not executing
> >
> > Hi, I did not mean to cross post. I sent out the following question a
> few
> > minutes ago, but my mail server was having a problem so I am not sure
> if
> > it was through or not! I am sending it using a different account.
> >
> >
> >
> > I implemented Filter interface and set it up in my Tomcat container.
> The
> > funning thing is that only the init() and destroy() methods get
> executed
> > when I start and shut the server, the doFilter HOWEVER does not get
> > executed when I make a request from the web page.
> > Am I missing something obvious?
> > Here is my code:
> > public class MyFilter implements Filter {
> > public void init(FilterConfig filterConfig) throws ServletException
> {
> > /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
> >
> System.out.println("
> **
> > **
> > *");
> > System.out.println("My fuilter init");
> > }
> > public void doFilter(ServletRequest request, ServletResponse
> response,
> > FilterChain chain) throws IOException, ServletException {
> > /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
> >
> System.out.println("
> **
> > **
> > *");
> > System.out.println("My filter do fuilter");
> > chain.doFilter(request,
> > response);
> > }
> > public void destroy() {
> > /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
> >
> System.out.println("
> **
> > **
> > *");
> > System.out.println("My filter destroy");
> > }
> > }
> > Here is web.xml:
> > 
> > > zhou
> > (UBH) -->
> > > > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> > 
> >
> >
> > Struts Example Application
> >
> > 
> > 
> > action
> > ubh.web.servlet.UBHActionServlet
> > 
> > 
config

> > 
/WEB-INF/struts-config.xml

> > 
> > 
> > 
mapping

> > 
ubh.web.action.UBHActionMapping

> > 
> > 1
> > 
> > 
> > 
> > action
> > *.do
> > 
> > 
> > MyFilter
> > filter.MyFilter
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > index.jsp
> > 
> > 
> > 
> > /WEB-INF/app.tld
> > /WEB-INF/app.tld
> > 
> > 
> > 
> > /WEB-INF/struts-bean.tld
> > /WEB-INF/struts-bean.tld
> > 
> > 
> > /WEB-INF/struts-html.tld
> > /WEB-INF/struts-html.tld
> > 
> > 
> > /WEB-INF/struts-logic.tld
> > /WEB-INF/struts-logic.tld
> > 
> > 
> >
> >
> >
> >
> > -
> > 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]
>
>



-
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: Question About Passing Values from Action Class

2003-07-24 Thread Mike Jasnowski
Generally you would stuff this ArrayList in a formbean accessible via a
public getter, or you could I suppose put it in the session yourself as a
scoped attribute. Then in the JSP you access it by that attribute name.

-Original Message-
From: Meka Struts [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:58 PM
To: [EMAIL PROTECTED]
Subject: Question About Passing Values from Action Class


Hi,

I have an Action Class which has 2 methods

* an execute method that forwards using ActionMapping
* a protected method getXXX(), which return an ArrayList of objects to
execute method.

My question is, how would i pass the ArrayList to the view page (jsp) so
that it can extract data from ArrayList and display it.

I am actually going though an example and it seems to have missed that part.
I cant get to understand how will the ArrayList object be passed ?

Thank You

Meka Toka


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



Re: Defining request parameters in action-fowards (or an alternative)

2003-07-24 Thread Wes Rood
I'm interested in other solutions to this as well.

My current solution to the same problem is to store key information in 
the session and use that in conjunction with information from the url.  
So, using your example, you would store the merchant id in the session 
as soon as the user begins working on a particular merchant.  Then, 
after adding a new item, the action would forward to a "display 
merchant" action, which would retrieve the merchant id from the session 
*if* it was not passed with the url.

If the user opens more then one browser window and begins working with 2 
different merchants, it gets tricky because they will potentially share 
the session, but I think you can take care of that with hidden form 
fields.  (ie. if the merchant id hidden in the item form differs from 
the merchantid in the session, warn user to stop working in multiple 
windows)

Hope this helps.

Gino LV. Ledesma wrote:

Hi,

I've tried browsing and searching the mail archives on how
to implement this but have not turned up anything useful.
I've written a Struts-based webapp (coupled with EJB) and
am applying some finishing touches to it. I have a number
of forums that, upon submission, will lead to another page.
This other page, however, is a result of a dynamic lookup
which the action servlet populates, and a requirement for
this page to be generated is a certain request identifier.
To clarify this, say I have two simple objects called
Merchant and Items, of which Merchant can sell one or more
items. If I display the merchant's page, I get to see a
list of items sold by this particular merchant. Now the
merchant's page has a link that says "Create new Item",
which contains a form that, when submitted, will go to the
merchant's page now showing an updated list with the new
item. However, for the merchant page to be displayed (which
is handled by the action servlet), it would need to know
the merchant's id.
Is there a way to do more flexible (conditional/parametric)
customization of the action forwards? Or what is the
proper, if any, way of implementing this? I have several
pages with similar dependencies (due to the OO/relational
design), and it can get very tiring to have to navigate
deeper into a hierarchy just to repeat an action.
In trying to follow MVC, I try to route all requests
through controller servlets, so the webapp has very little
direct links to JSP pages. These controller servlets,
however, need certain information in generating certain
pages (in the case above, a merchant's id to display
information about that merchant).
Help on the matter is greatly appreciated. These are minor
things which I'd like to cover prior to releasing our web
app. Thanks. :)
Gino Ledesma
// Programmer's Excuse #4: You can't use that version on
your system.
=

__
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]


Re: More validation woes

2003-07-24 Thread Gregory F. March

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

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

My mistake!  I misread your code snippet.  Sorry!

/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]



Question About Passing Values from Action Class

2003-07-24 Thread Meka Struts
Hi,

I have an Action Class which has 2 methods

* an execute method that forwards using ActionMapping
* a protected method getXXX(), which return an ArrayList of objects to execute method.

My question is, how would i pass the ArrayList to the view page (jsp) so that it can 
extract data from ArrayList and display it.

I am actually going though an example and it seems to have missed that part. I cant 
get to understand how will the ArrayList object be passed ?

Thank You

Meka Toka


Re: doFilter not executing

2003-07-24 Thread Alen Ribic
Correct me if I'm wrong, AFAIK filter specific descriptor tags need to be
located before servlet declarations.

--Alen


- Original Message -
From: "Alex Shneyderman" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 9:50 PM
Subject: RE: doFilter not executing


> You did not map your filter.
>
> Use filter-mapping element to tell the container what requests need to
> be intercepted by your filter
>
> > -Original Message-
> > From: Kimberly Lane [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, July 24, 2003 3:49 PM
> > To: [EMAIL PROTECTED]
> > Subject: doFilter not executing
> >
> > Hi, I did not mean to cross post. I sent out the following question a
> few
> > minutes ago, but my mail server was having a problem so I am not sure
> if
> > it was through or not! I am sending it using a different account.
> >
> >
> >
> > I implemented Filter interface and set it up in my Tomcat container.
> The
> > funning thing is that only the init() and destroy() methods get
> executed
> > when I start and shut the server, the doFilter HOWEVER does not get
> > executed when I make a request from the web page.
> > Am I missing something obvious?
> > Here is my code:
> > public class MyFilter implements Filter {
> >   public void init(FilterConfig filterConfig) throws ServletException
> {
> > /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
> >
> System.out.println("
> **
> > **
> > *");
> > System.out.println("My fuilter init");
> >   }
> >   public void doFilter(ServletRequest request, ServletResponse
> response,
> > FilterChain chain) throws IOException, ServletException {
> > /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
> >
> System.out.println("
> **
> > **
> > *");
> > System.out.println("My filter do fuilter");
> > chain.doFilter(request,
> > response);
> >   }
> >   public void destroy() {
> > /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
> >
> System.out.println("
> **
> > **
> > *");
> > System.out.println("My filter destroy");
> >   }
> > }
> > Here is web.xml:
> > 
> > 
> >  Application
> > 2.2//EN"
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> > 
> >
> >
> > Struts Example Application
> >
> > 
> > 
> > action
> > ubh.web.servlet.UBHActionServlet
> > 
> > config
> > /WEB-INF/struts-config.xml
> > 
> > 
> > mapping
> > ubh.web.action.UBHActionMapping
> > 
> > 1
> > 
> > 
> > 
> > action
> > *.do
> > 
> > 
> > MyFilter
> > filter.MyFilter
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > index.jsp
> > 
> > 
> > 
> > /WEB-INF/app.tld
> > /WEB-INF/app.tld
> > 
> > 
> > 
> > /WEB-INF/struts-bean.tld
> > /WEB-INF/struts-bean.tld
> > 
> > 
> > /WEB-INF/struts-html.tld
> > /WEB-INF/struts-html.tld
> > 
> > 
> > /WEB-INF/struts-logic.tld
> > /WEB-INF/struts-logic.tld
> > 
> > 
> >
> >
> >
> >
> > -
> > 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]
>
>



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



RE: doFilter not executing

2003-07-24 Thread Kimberly Lane
Thanks Alex. That worked.
 

Alex Shneyderman <[EMAIL PROTECTED]> wrote:
You did not map your filter.

Use filter-mapping element to tell the container what requests need to
be intercepted by your filter

> -Original Message-
> From: Kimberly Lane [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 3:49 PM
> To: [EMAIL PROTECTED]
> Subject: doFilter not executing
> 
> Hi, I did not mean to cross post. I sent out the following question a
few
> minutes ago, but my mail server was having a problem so I am not sure
if
> it was through or not! I am sending it using a different account.
> 
> 
> 
> I implemented Filter interface and set it up in my Tomcat container.
The
> funning thing is that only the init() and destroy() methods get
executed
> when I start and shut the server, the doFilter HOWEVER does not get
> executed when I make a request from the web page.
> Am I missing something obvious?
> Here is my code:
> public class MyFilter implements Filter {
> public void init(FilterConfig filterConfig) throws ServletException
{
> /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
>
System.out.println("
**
> **
> *");
> System.out.println("My fuilter init");
> }
> public void doFilter(ServletRequest request, ServletResponse
response,
> FilterChain chain) throws IOException, ServletException {
> /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
>
System.out.println("
**
> **
> *");
> System.out.println("My filter do fuilter");
> chain.doFilter(request,
> response);
> }
> public void destroy() {
> /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
>
System.out.println("
**
> **
> *");
> System.out.println("My filter destroy");
> }
> }
> Here is web.xml:
> 
> zhou
> (UBH) -->
> > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> 
> Struts Example Application
> 
> 
> 
> action
> ubh.web.servlet.UBHActionServlet
> 
> 
config

> 
/WEB-INF/struts-config.xml

> 
> 
> 
mapping

> 
ubh.web.action.UBHActionMapping

> 
> 1
> 
> 
> 
> action
> *.do
> 
> 
> MyFilter
> filter.MyFilter
> 
> 
> 
> 
> 
> 
> 
> index.jsp
> 
> 
> 
> /WEB-INF/app.tld
> /WEB-INF/app.tld
> 
> 
> 
> /WEB-INF/struts-bean.tld
> /WEB-INF/struts-bean.tld
> 
> 
> /WEB-INF/struts-html.tld
> /WEB-INF/struts-html.tld
> 
> 
> /WEB-INF/struts-logic.tld
> /WEB-INF/struts-logic.tld
> 
> 
> 
> 
> 
> 
> -
> 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: More validation woes

2003-07-24 Thread Yansheng Lin
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]



Re: OT Posts on this List

2003-07-24 Thread David Graham
--- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> Ppls...
> 
> Please find another forum to ask basic Java questions as it pollutes the
> bandwidth of an already overpopulated user list.  I am the only one
> allowed
> to ask OT questions here.

Mark is also the only person allowed to answer OT questions so please send
him your questions directly.

David

> 
> Mark
> 
> 
> 
> -
> 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: doFilter not executing

2003-07-24 Thread Alex Shneyderman
You did not map your filter.

Use filter-mapping element to tell the container what requests need to
be intercepted by your filter

> -Original Message-
> From: Kimberly Lane [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 3:49 PM
> To: [EMAIL PROTECTED]
> Subject: doFilter not executing
> 
> Hi, I did not mean to cross post. I sent out the following question a
few
> minutes ago, but my mail server was having a problem so I am not sure
if
> it was through or not! I am sending it using a different account.
> 
> 
> 
> I implemented Filter interface and set it up in my Tomcat container.
The
> funning thing is that only the init() and destroy() methods get
executed
> when I start and shut the server, the doFilter HOWEVER does not get
> executed when I make a request from the web page.
> Am I missing something obvious?
> Here is my code:
> public class MyFilter implements Filter {
>   public void init(FilterConfig filterConfig) throws ServletException
{
> /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
>
System.out.println("
**
> **
> *");
> System.out.println("My fuilter init");
>   }
>   public void doFilter(ServletRequest request, ServletResponse
response,
> FilterChain chain) throws IOException, ServletException {
> /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
>
System.out.println("
**
> **
> *");
> System.out.println("My filter do fuilter");
> chain.doFilter(request,
> response);
>   }
>   public void destroy() {
> /[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
>
System.out.println("
**
> **
> *");
> System.out.println("My filter destroy");
>   }
> }
> Here is web.xml:
> 
> 
>  2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> 
> 
> Struts Example Application
> 
> 
> 
> action
> ubh.web.servlet.UBHActionServlet
> 
> config
> /WEB-INF/struts-config.xml
> 
> 
> mapping
> ubh.web.action.UBHActionMapping
> 
> 1
> 
> 
> 
> action
> *.do
> 
> 
> MyFilter
> filter.MyFilter
> 
> 
> 
> 
> 
> 
> 
> index.jsp
> 
> 
> 
> /WEB-INF/app.tld
> /WEB-INF/app.tld
> 
> 
> 
> /WEB-INF/struts-bean.tld
> /WEB-INF/struts-bean.tld
> 
> 
> /WEB-INF/struts-html.tld
> /WEB-INF/struts-html.tld
> 
> 
> /WEB-INF/struts-logic.tld
> /WEB-INF/struts-logic.tld
> 
> 
> 
> 
> 
> 
> -
> 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]



doFilter not executing

2003-07-24 Thread Kimberly Lane
Hi, I did not mean to cross post. I sent out the following question a few minutes ago, 
but my mail server was having a problem so I am not sure if it was through or not! I 
am sending it using a different account.
 
 

I implemented Filter interface and set it up in my Tomcat container. The
funning thing is that only the init() and destroy() methods get executed
when I start and shut the server, the doFilter HOWEVER does not get
executed when I make a request from the web page.
Am I missing something obvious?
Here is my code:
public class MyFilter implements Filter {
  public void init(FilterConfig filterConfig) throws ServletException {
/[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
System.out.println("
*");
System.out.println("My fuilter init");
  }
  public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
/[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
System.out.println("
*");
System.out.println("My filter do fuilter");
chain.doFilter(request,   
response);
  }
  public void destroy() {
/[EMAIL PROTECTED] Implement this javax.servlet.Filter method*/
System.out.println("
*");
System.out.println("My filter destroy");
  }
}
Here is web.xml:


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



Struts Example Application
 


action
ubh.web.servlet.UBHActionServlet

config
/WEB-INF/struts-config.xml


mapping
ubh.web.action.UBHActionMapping

1



action
*.do


MyFilter
filter.MyFilter







index.jsp



/WEB-INF/app.tld
/WEB-INF/app.tld



/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld


/WEB-INF/struts-html.tld
/WEB-INF/struts-html.tld


/WEB-INF/struts-logic.tld
/WEB-INF/struts-logic.tld


 



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

RE: ServletException Response has already been committed'

2003-07-24 Thread Canning, Chuck
Try this



-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2: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


  


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 
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
.
This throws Servlet Exception.

I also tried  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 commands, e-mail: [EMAIL PROTECTED]



Re: More validation woes

2003-07-24 Thread Gregory F. March

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]



RE: ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
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


  


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 
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
.
This throws Servlet Exception.

I also tried  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]


RE: ServletException Response has already been committed'

2003-07-24 Thread Ranko Bijelonic
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 
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
.
This throws Servlet Exception.

I also tried  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]



RE: More validation woes

2003-07-24 Thread Yansheng Lin
I forgot how you implemented your return statement, but

  return  new ActionForward(mapping.getInput());

should work.



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



On Jul 23, 2003, Yansheng Lin <[EMAIL PROTECTED]> wrote:

 |It's a common error. Somehow you are not forwarding back to the jsp page that
 |generated the error.
 |
 |Put a System.out statement in front of mapping.getInputForward().  I bet it's
 |different from mapping.getInput();

Well, actually, I had mapping.getInput, but I got an "imcompatible type"
compile error.  return want's ActionForward while mapping.getInput()
returns String.

The O'Reilly book shows this done with mapping.getInput() too...

According to the javadoc, it looks like getInputForward is the
appropriate call.

Any ideas?

Thanks!

/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: [OT] isUserInRole problem

2003-07-24 Thread Alex Shneyderman
It is not clear form your email if your JSPs under SecurityFilter's
mapping?

So if you have mapping like this

SecurityFilter
/do/*


and access your jsp like this:
/index.jsp

It is correct behavior then.


Alex.

> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 3:01 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] isUserInRole problem
> 
> 
> 
> The strangest thing is happening.  To set it up: I am using JRun4 and
> SecurityFilter
> 
> If any type of code (e.g.  ,
 role="Admin"> etc.) tries to do a call which eventually goes
> 
> to the SecurityFilter method isUserInRole(principle,role) from within
a
> JSP
> then I it always returns false and my logging statements in
> 
> my SecurityFilter method aren't called (i.e. it doesn't go in there I
> guess).
> 
> 
> 
> But if I do a request.isUserInRole("Admin") from within an Action then
it
> returns the correct result.
> 
> 
> 
> Has anyone seen this before?



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



RE: More validation woes

2003-07-24 Thread Yansheng Lin

Because Struts implements   in terms of current PageContext.  It
doesn't make sense to display the errors generated by one form on another form.
Well, I guess that's kind of what you want:).

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


On Jul 23, 2003, Yansheng Lin <[EMAIL PROTECTED]> wrote:

 |It's a common error. Somehow you are not forwarding back to the jsp page that
 |generated the error.
 |
 |Put a System.out statement in front of mapping.getInputForward().  I bet it's
 |different from mapping.getInput();

And just so I understand what is happening, why would forwarding to a
page that is not the one that generated the error, but to another page
that handles the error be an issue?

Thanks,

/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]



OT Posts on this List

2003-07-24 Thread Mark Galbreath
Ppls...

Please find another forum to ask basic Java questions as it pollutes the
bandwidth of an already overpopulated user list.  I am the only one allowed
to ask OT questions here.

Mark



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



[OT] isUserInRole problem

2003-07-24 Thread Bailey, Shane C.
 

The strangest thing is happening.  To set it up: I am using JRun4 and
SecurityFilter 

If any type of code (e.g.  ,  etc.) tries to do a call which eventually goes

to the SecurityFilter method isUserInRole(principle,role) from within a JSP
then I it always returns false and my logging statements in

my SecurityFilter method aren't called (i.e. it doesn't go in there I
guess).

 

But if I do a request.isUserInRole("Admin") from within an Action then it
returns the correct result.

 

Has anyone seen this before?



RE: Mask Help

2003-07-24 Thread Yansheng Lin
[quote]
Eventually I will probably break the date down into several drop downs but
for now...
[/quote]

Why don't you do it now?  Or at least separate the date and the time.  It's much
easier that validate the two. 



-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: July 24, 2003 7:55 AM
To: [EMAIL PROTECTED]
Subject: Mask Help


 

I'm terrible at reg exp (and alike) can someone help me figure what the
(validator) mask would look like for the following:

-MM-DD hh:mm:ss

 

This is a single text field which needs a date in the above format.
Eventually I will probably break the date down into several drop downs but
for now...

 

TIA



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



RE: Simple Tiles question

2003-07-24 Thread Erez Efrati
Thank you all for the fast reply. 
I am trying to use all the struts tags instead of plain HTML tags, but
still I am forced to use the plain HTML  tag due to the fact that
I make use of the 'dir' attribute. for example  and till
now I haven't seen support for that attribute on the  Struts
tag, or am I wrong? I wish...

Erez


-Original Message-
From: Hue Holleran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 8:59 PM
To: Struts Users Mailing List
Subject: RE: Simple Tiles question

Erez,

Tiles are included in the HTML page like any other 'fragment' - the
resultant HTML needs to be properly formed. If the outermost tile or
page
already has  etc. then the included tiles should not have this -
so
yes - you need to remove this.

For simplicity my tiles are normally self-contained tables, i.e.
... but sometimes are just
self-contained
rows but can be anything - providing the HTML page that is finally
generated
from all the tiles is valid.

Hue.

> -Original Message-
> From: Erez Efrati [mailto:[EMAIL PROTECTED]
> Sent: 24 July 2003 20:51
> To: 'Struts Users Mailing List'
> Subject: Simple Tiles question
>
>
> A simple question I guess,
>
> Is it legal to have the tags like   and others in a tile.
> Meaning, when converting a page to a tile, do I have to remove those
>   etc. tags?
>
> Erez
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003


-
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: Simple Tiles question

2003-07-24 Thread Mike Jasnowski
Yeah, that's strange, but then some browsers are pretty good at ignoring bad
HTML

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:56 PM
To: 'Struts Users Mailing List'
Subject: RE: Simple Tiles question


It's strange since until now I haven't removed those tags and it just
went fine...strange no?


-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 8:52 PM
To: Struts Users Mailing List
Subject: RE: Simple Tiles question

It depends on how the tile is used. If the tile is a standalone page no,
but
if it's intended to be a fragment of a page, then you'd want to remove
those
to remove the possbility of having a malformed page.

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:51 PM
To: 'Struts Users Mailing List'
Subject: Simple Tiles question


A simple question I guess,

Is it legal to have the tags like   and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those
  etc. tags?

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]



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



RE: Simple Tiles question

2003-07-24 Thread Hue Holleran
Erez,

Tiles are included in the HTML page like any other 'fragment' - the
resultant HTML needs to be properly formed. If the outermost tile or page
already has  etc. then the included tiles should not have this - so
yes - you need to remove this.

For simplicity my tiles are normally self-contained tables, i.e.
... but sometimes are just self-contained
rows but can be anything - providing the HTML page that is finally generated
from all the tiles is valid.

Hue.

> -Original Message-
> From: Erez Efrati [mailto:[EMAIL PROTECTED]
> Sent: 24 July 2003 20:51
> To: 'Struts Users Mailing List'
> Subject: Simple Tiles question
>
>
> A simple question I guess,
>
> Is it legal to have the tags like   and others in a tile.
> Meaning, when converting a page to a tile, do I have to remove those
>   etc. tags?
>
> Erez
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003


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



RE: Multiple Struts-Config files

2003-07-24 Thread Kris Schneider
Here's what a  element can contain:



? -> 0 or 1
* -> 0 or more

So, yes, you can have a config with just , , and
 elements.

Quoting Jerry Jalenak <[EMAIL PROTECTED]>:

> That's what I suspected, but wanted to get some independant confirmation
> :-)
> 
> Should the last config file contain the ,
> ,
> and  stuff?  The doc seems to imply that if you re-define a
> parameter, the last one 'quietly wins'.  To me this means that I should
> only
> have these tags in the last config file.  Is it possible to have a config
> file with ONLY these tags?
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]
> 
> 
> -Original Message-
> From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 1:30 PM
> To: Struts Users Mailing List
> Subject: RE: Multiple Struts-Config files
> 
> 
> They should each be standalone/valid configs.
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 2:29 PM
> To: '[EMAIL PROTECTED]'
> Subject: Multiple Struts-Config files
> 
> 
> When using multiple struts-config files in web.xml, should each file be
> complete?  i.e. should each begin and end with appropriate 
> /
>  tags? Or should the first one in the list contain the
> , and the last one contain the  tag?
> 
> Jerry Jalenak
> Team Lead, Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> 
> [EMAIL PROTECTED]

-- 
Kris Schneider 
D.O.Tech   

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



Re: ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
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
.
This throws Servlet Exception.

I also tried  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]


RE: Simple Tiles question

2003-07-24 Thread aies22
It is legal, but:
1. You have to make sure that the outcome of putting all the tiles together
creates  one complete HTML page. Which means that if you have a header tile,
content tile and a footer tile, you should open the header with  and
close the footer with  and so on.
2. It is sometimes better to use the JSP tags  rather than plain
html.

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 9:51 PM
To: 'Struts Users Mailing List'
Subject: Simple Tiles question


A simple question I guess,

Is it legal to have the tags like   and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those 
  etc. tags?

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: Simple Tiles question

2003-07-24 Thread Erez Efrati
It's strange since until now I haven't removed those tags and it just
went fine...strange no?


-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 8:52 PM
To: Struts Users Mailing List
Subject: RE: Simple Tiles question

It depends on how the tile is used. If the tile is a standalone page no,
but
if it's intended to be a fragment of a page, then you'd want to remove
those
to remove the possbility of having a malformed page.

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:51 PM
To: 'Struts Users Mailing List'
Subject: Simple Tiles question


A simple question I guess,

Is it legal to have the tags like   and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those
  etc. tags?

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]



RE: Simple Tiles question

2003-07-24 Thread Mike Jasnowski
It depends on how the tile is used. If the tile is a standalone page no, but
if it's intended to be a fragment of a page, then you'd want to remove those
to remove the possbility of having a malformed page.

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:51 PM
To: 'Struts Users Mailing List'
Subject: Simple Tiles question


A simple question I guess,

Is it legal to have the tags like   and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those
  etc. tags?

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]



Simple Tiles question

2003-07-24 Thread Erez Efrati
A simple question I guess,

Is it legal to have the tags like   and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those 
  etc. tags?

Erez



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



Re: Pre-Setting DynaValidatorForm attributes

2003-07-24 Thread "José Fortunato H. Tomás"
Alex Shneyderman wrote:

I am not sure if I understand you correctly, but I will try.

What you basically need is to create a form bean without actually
invoking the action that claims that it uses it. Did I understand you
correctly?
I use "/planning/circuitEditForm" as a mid tier view action to set some Request 
Attributes with ArrayList. Those ArrayList have data from the DB tier to help 
build some combo.
If I didn't have any combo dynamic data to build the form I could simple 
substitute "/planning/circuitEditForm.do" for "/planning/circuitEditForm.jsp".

But my problem is that beownd the data for those combos I need to set in 
advantage de value for the bean, so with  in the JSP I get the value existing in the database, to do 
some editing of existing data.

That's why I'm trying to do the code that I gived here.


Anway to create your form bean manually you would do something like
this:
ModuleConfig mc = RequestUtils.getRequestModuleConfig (request);
ActionMapping am = (ActionMapping) mc.findActionConfig (actionName);
return RequestUtils.createActionForm (request, am, mc, getServlet ());
I'm trying to do this, I'll be back.

where action name is the action name that uses the form you create, in
your case /planning/circuit/edit
HTH,
Alex.




-Original Message-
From: José Fortunato H. Tomás [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:14 PM
To: Struts Users Mailing List
Subject: Re: Pre-Setting DynaValidatorForm attributes
I was reading my post and reallise that I omitted an importante
information.
The action where I want to set DynaValidatorForm properties is the one
to

forward into the JSP that builds the all form, and not the action
associated
with the bean.
Just for more complete information:
The actio that contains the initial form bean:

path="site.planning.circuit.edit.result"/>

path="site.planning.circuit.edit.form"/>



The action where I want to set some properties:

type="com.bla.bla.web.formaction.CircuitEditFormJSPAction"

parameter="/planning/circuitEditForm.jsp"/>

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.j
av
a:596)

   at
org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:241)
   at

com.esegur.sims.util.struts.form.BasicDynaValidatorForm.getInteger(Basic
Dy
naValidatorForm.java:32)

   at


org.apache.jsp.circuitEditForm_jsp._jspService(circuitEditForm_jsp.java:
14
5)

   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.ja
va
: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]




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

--
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: ServletException Response has already been committed'

2003-07-24 Thread Adam Levine
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
.
This throws Servlet Exception.

I also tried  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]


Re: Anyone, Please! A table with column of dropdowns

2003-07-24 Thread atta-ur rehman
so far i've found these two link related:
http://www.husted.com/struts/tips/006.html
http://jakarta.apache.org/struts/faqs/indexedprops.html

and i'm still lost!

i'm kind of confused on this. i would see this as a very frequent occuring
'problem' in data-driven web apps and by the response of my mails on this
forum (for last 4 days now), it seems that either its not a problem or
there's an obvious, startight-forward way that everyone knows but noone's
willing to share!!!

anyhow, thanks once more for your time.

ATTA

- Original Message - 
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 11:33 AM
Subject: RE: Anyone, Please! A table with column of dropdowns


> > yes, that's a good question. i guess the same way struts passes all the
> > correct selections to the Form object on submission ;)
>
> By magic. ;)  But in this case, who knows what order the request
parameters
> came in, who knows what order they are stored in the String[], so it's
> fairly impossible to correctly pre-select the values.
>
> (Actually most browsers seem to submit request parameters in the same
order
> they appear on the form, but I wouldn't want to rely on that.)
>
> > while we are on the subject, could you please refer me some further
> readings
> > on Indexed Properties and how it could help me in this case?
>
> I've never used them, (and I'm not totally sure they'll solve this
problem,)
> so Google to the rescue...
>
> http://www.google.com/search?q=struts+indexed+properties
>
> -- 
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University, PA, IRM
>



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



ServletException Response has already been committed'

2003-07-24 Thread Sashi Ravipati
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 
. 
This throws Servlet Exception.

I also tried  but the same result.

How can this be achieved.

Thanks


RE: Multiple Struts-Config files

2003-07-24 Thread Jerry Jalenak
That's what I suspected, but wanted to get some independant confirmation :-)

Should the last config file contain the , ,
and  stuff?  The doc seems to imply that if you re-define a
parameter, the last one 'quietly wins'.  To me this means that I should only
have these tags in the last config file.  Is it possible to have a config
file with ONLY these tags?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 1:30 PM
To: Struts Users Mailing List
Subject: RE: Multiple Struts-Config files


They should each be standalone/valid configs.

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:29 PM
To: '[EMAIL PROTECTED]'
Subject: Multiple Struts-Config files


When using multiple struts-config files in web.xml, should each file be
complete?  i.e. should each begin and end with appropriate  /
 tags? Or should the first one in the list contain the
, and the last one contain the  tag?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[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]



argggh! DynaAF in session scope with multibox woes!

2003-07-24 Thread Mike Whittaker

This is about the classic Inability to uncheck checkboxes with DAF.

I know I must overide reset() but I can't get anything to both keep session
state AND allow all boxes unchecked.

I tried the code below, obviously this isn't allowing session persistence
because the request param is being checked, but other approaches with
DAF.get(props[i].getName()) won't work either becuase the population occurs
after the reset method.

Please help me someone!

public void reset(ActionMapping mapping,HttpServletRequest request) {

//initialize(mapping);

String name = mapping.getName();
if (name == null) {
return;
}
FormBeanConfig config =
mapping.getModuleConfig().findFormBeanConfig(name);
if (config == null) {
return;
}
FormPropertyConfig[] props = config.findFormPropertyConfigs();
for (int i = 0; i < props.length; i++) {
if (props[i] instanceof CondResetFormPropertyConfig &&
(((CondResetFormPropertyConfig)props[i]).getReset())) {

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

}

}
}


TIA
--
Mike W


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



RE: Anyone, Please! A table with column of dropdowns

2003-07-24 Thread Wendy Smoak
> yes, that's a good question. i guess the same way struts passes all the
> correct selections to the Form object on submission ;)

By magic. ;)  But in this case, who knows what order the request parameters
came in, who knows what order they are stored in the String[], so it's
fairly impossible to correctly pre-select the values.

(Actually most browsers seem to submit request parameters in the same order
they appear on the form, but I wouldn't want to rely on that.)

> while we are on the subject, could you please refer me some further
readings
> on Indexed Properties and how it could help me in this case?

I've never used them, (and I'm not totally sure they'll solve this problem,)
so Google to the rescue...

http://www.google.com/search?q=struts+indexed+properties

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 


RE: Multiple Struts-Config files

2003-07-24 Thread Mike Jasnowski
They should each be standalone/valid configs.

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:29 PM
To: '[EMAIL PROTECTED]'
Subject: Multiple Struts-Config files


When using multiple struts-config files in web.xml, should each file be
complete?  i.e. should each begin and end with appropriate  /
 tags? Or should the first one in the list contain the
, and the last one contain the  tag?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[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: WebLogic 8.1 NoClassDefFoundError

2003-07-24 Thread struts
We have 8.1b running on Windows exhibiting this behavior.  We have 8.1 running
on Solaris exhibiting this behavior.  Copying the commons-collection.jar into
the classpath fixed the Solaris.  This does not appear to work in 8.1b on Windows.

Carl

Quoting Dudley Irish <[EMAIL PROTECTED]>:

> I am getting a NoClassDefFoundError evertime I deploy my war in WebLogic
> 8.1. 
> It is failing on the destruction of the action servlet and can not find
> the
> FastHashMap$KeySet class.  The commons-collection jar is in my lib
> directory.  
> 
> Has anyone else had this problem, and if so how did they fix it?
> 
> Carl
> 
> I too am getting this error, but only on the beta version of WebLogic
> 8.1.  The release version is not getting the error.  This may be
> because the beta is on Linux (RedHat Advanced Server) and the release
> version is on Solaris, but I can't imagine why.
> 
> I can tell you that adding commons-collections.jar to the class path
> fixes the problem.  I can also tell you that it is application
> specific.  I have two applications that are very similar, but one
> triggers the problem and the other doesn't.  That suggests to me that
> the problem is in the specific versions of the libraries but I have
> not been able to figure out the details.  From the stack dump it seems
> clear that it has something to do with the data sources which is where
> these two versions of the application differ.
> 
> Any clues would be appreciated.
> 
> Dudley Irish
> 
> -
> 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   3   >