RE: iteration to create dynamic form

2003-06-25 Thread El Harouchi, Jaafar [IT]
try with multibox instead of checkbox:
http://jakarta.apache.org/struts/struts-html.html#multibox
-jaafar


-Original Message-
From: Piers Dunleavy [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:32 AM
To: Struts Users Mailing List
Subject: iteration to create dynamic form


I have a  tag which is supposed to create a dynamic form, filled with a 
checkbox for every object in a collection. (The checkbox is an option to delete one of 
those records from the database.) The form itself is a Map-Backed Action form with two 
methods (public void setValue(String key, Object value) and public Object 
getValue(String key)). 




<%
(dataobjects.Record) l = (dataobjects.Record)pageContext.findAttribute("record");
String name= new String("value(" + r.getID()+")");
%>



  ..other stuff describing the record..



Is there a way in Struts to do this without calling the "record" object from the 
pageContext? Can't I get the  tag to recognize the 'record' bean 
directly without using that scriptlet and then creating a String to set the 
appropriate mapped value? 

Best,
Piers

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



RE: submitting back to opener page

2003-06-25 Thread El Harouchi, Jaafar [IT]
If you want to submit the form in the original page, you can try javascript
like:
window.opener.document.forms[0].submit();
If you need to first set some values from the child window:
window.opener.document.forms[0].elements["field name"].value =

HTH
-jaafar

ps: Matt will probably correct me to forms[0]["field name"] above.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 2:22 AM
To: Struts Users Mailing List
Subject: RE: submitting back to opener page


My app had a similar requirement so what I did was have the popup submit
directly to the action and then the action returned a forward to a page
(displayed in the popup) that had javascript to invoke a refresh method in
the opener window and then to close its own (popup) window.
  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: Thursday, 26 June 2003 14:13
  To: [EMAIL PROTECTED]
  Subject: submitting back to opener page


hi,
i have a jsp with a button which opens up a new pop-up window. when
i say submit on the pop-up window , i want to close the pop-up window and go
to the action class(do the needful) and now i want to refresh the opener
page(main jsp).
can i do this, if yes how??
any ideas...

--nagi

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


  
IncrediMail - Email has finally evolved - Click Here

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



iteration to create dynamic form

2003-06-25 Thread Piers Dunleavy
I have a  tag which is supposed to create a dynamic form, filled with a 
checkbox for every object in a collection. (The checkbox is an option to delete one of 
those records from the database.) The form itself is a Map-Backed Action form with two 
methods (public void setValue(String key, Object value) and public Object 
getValue(String key)). 




<%
(dataobjects.Record) l = (dataobjects.Record)pageContext.findAttribute("record");
String name= new String("value(" + r.getID()+")");
%>



  ..other stuff describing the record..



Is there a way in Struts to do this without calling the "record" object from the 
pageContext? Can't I get the  tag to recognize the 'record' bean 
directly without using that scriptlet and then creating a String to set the 
appropriate mapped value? 

Best,
Piers


RE: submitting back to opener page

2003-06-25 Thread Andrew Hill
My app had a similar requirement so what I did was have the popup submit
directly to the action and then the action returned a forward to a page
(displayed in the popup) that had javascript to invoke a refresh method in
the opener window and then to close its own (popup) window.
  -Original Message-
  From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]
  Sent: Thursday, 26 June 2003 14:13
  To: [EMAIL PROTECTED]
  Subject: submitting back to opener page


hi,
i have a jsp with a button which opens up a new pop-up window. when
i say submit on the pop-up window , i want to close the pop-up window and go
to the action class(do the needful) and now i want to refresh the opener
page(main jsp).
can i do this, if yes how??
any ideas...

--nagi

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


  
IncrediMail - Email has finally evolved - Click Here


submitting back to opener page

2003-06-25 Thread Nagendra Kumar O V S







hi,
  i have a jsp with a button which opens up a new pop-up window. when i 
  say submit on the pop-up window , i want to close the pop-up window 
  and go to the action class(do the needful) and now i want to refresh 
  the opener page(main jsp).
  can i do this, if yes how??
  any ideas...
   
  --nagi
   
  Nagendra Kumar O V S
  Member Technical Staff
  Ikigo India Private Ltd.
  470-B, Road No. 36,
  Jubilee Hills,
  Hyderabad 500033
  Contact(O): 23544671
  Cell: 98482-41789





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



RE: Using modules and actionforward to an action

2003-06-25 Thread Navjot Singh
say your context is /myapp & you have module /modA

and you have 2 files
/myapp/login.jsp
/myapp/modA/login.jsp

if in modules' struts config, you say contextRelative="true",
it will pick the first one. otherwsie, second one.

RTM
-navjot

|-Original Message-
|From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 11:38 AM
|To: Struts Users Mailing List
|Subject: RE: Using modules and actionforward to an action
|
|
|BTW
| what is contextRelative="true" all about .. ??
|
|-Original Message-
|From: Navjot Singh [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:54 AM
|To: Struts Users Mailing List
|Subject: RE: Using modules and actionforward to an action
|
|
|abhinav, the best solution is to keep "/logout" as global-forward in all of
|you module configs.
|then you can call mapping.findForward("/logout") from any
|modules's action.
|
|HTH
|Navjot Singh
|
||-Original Message-
||From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
||Sent: Thursday, June 26, 2003 10:29 AM
||To: Struts Users Mailing List
||Subject: RE: Using modules and actionforward to an action
||
||
||no ...
||
||-Original Message-
||From: Sergey Smirnov [mailto:[EMAIL PROTECTED]
||Sent: Thursday, June 26, 2003 10:27 AM
||To: Struts Users Mailing List
||Subject: Re: Using modules and actionforward to an action
||
||
||Do you use contextRelative="true" to switch between modules?
||
||- Original Message -
||From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
||To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
||Sent: Wednesday, June 25, 2003 9:29 PM
||Subject: Using modules and actionforward to an action
||
||
||
||
||For logging out I use this piece of code :
||
||RequestUtils.selectModule("", req,
||getServlet().getServletContext());
||return (new ActionForward("/AuthFail.jsp"));
||
||I don't want to hardcode "/AuthFail.jsp"
||instead of that i want to forward to an action "/logout" defined in the
||default servlet-config.xml
||I tried this
||return (new ActionForward("/logout"));
||and in the servlet-config.xml
||
||
||but no success.
||
||Suggestions ... 
||
||
||
||
||
||---
||-
||
||
||
||> -
||> 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: Using modules and actionforward to an action

2003-06-25 Thread Abhinav (Cognizant)
BTW 
 what is contextRelative="true" all about .. ??

-Original Message-
From: Navjot Singh [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:54 AM
To: Struts Users Mailing List
Subject: RE: Using modules and actionforward to an action


abhinav, the best solution is to keep "/logout" as global-forward in all of
you module configs.
then you can call mapping.findForward("/logout") from any  modules's action.

HTH
Navjot Singh

|-Original Message-
|From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:29 AM
|To: Struts Users Mailing List
|Subject: RE: Using modules and actionforward to an action
|
|
|no ...
|
|-Original Message-
|From: Sergey Smirnov [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:27 AM
|To: Struts Users Mailing List
|Subject: Re: Using modules and actionforward to an action
|
|
|Do you use contextRelative="true" to switch between modules?
|
|- Original Message -
|From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
|To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
|Sent: Wednesday, June 25, 2003 9:29 PM
|Subject: Using modules and actionforward to an action
|
|
|
|
|For logging out I use this piece of code :
|
|RequestUtils.selectModule("", req,
|getServlet().getServletContext());
|return (new ActionForward("/AuthFail.jsp"));
|
|I don't want to hardcode "/AuthFail.jsp"
|instead of that i want to forward to an action "/logout" defined in the
|default servlet-config.xml
|I tried this
|return (new ActionForward("/logout"));
|and in the servlet-config.xml
|
|
|but no success.
|
|Suggestions ... 
|
|
|
|
|
|---
|-
|
|
|
|> -
|> 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]


** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

No Virus detected in the attached file(s).
* End of message ***


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not 
the 
intended recipient, please contact the sender by reply e-mail and destroy all copies 
of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and 
may be unlawful.

  Visit us at http://www.cognizant.com

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

Re: struts-config and tiles configuration

2003-06-25 Thread Bob Byron
Well, I think I found the problem.  It appears my build script was 
compiling against
Struts 1.1 but copying over Struts 1.0.

Thanks for your help,
Bob Byron
Bob Byron wrote:

Hmmm, I am not sure as to what you are asking.

As a test, I am using the struts-config.xml file from the 
tiles-documentation.war
file.  It still comes up with this SAXParseException.  I don't get it.

Bob

Sergey Smirnov wrote:

Is plug-in a latest element of your strruts-config.xml?

- Original Message - From: "Bob Byron" <[EMAIL PROTECTED]>
To: "Struts Users" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:38 PM
Subject: struts-config and tiles configuration
 

I am getting a strange error, and I can't figure out why.
As I understand it, I can put a plug-in in the struts-config file,
  
however,
 

I am receiving the following error message when I do:
 23:00:04,841 ERROR [Digester] Parse Error at line 54 column -1:
 Element "struts-config" does not allow "plug-in" here.
 org.xml.sax.SAXParseException: Element "struts-config" does not
allow "plug-in" here.
Did I put "plug-in" in the wrong place?  Any suggestions?

Thank You,
Bob
-
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: Using modules and actionforward to an action

2003-06-25 Thread Navjot Singh
abhinav, the best solution is to keep "/logout" as global-forward in all of
you module configs.
then you can call mapping.findForward("/logout") from any  modules's action.

HTH
Navjot Singh

|-Original Message-
|From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:29 AM
|To: Struts Users Mailing List
|Subject: RE: Using modules and actionforward to an action
|
|
|no ...
|
|-Original Message-
|From: Sergey Smirnov [mailto:[EMAIL PROTECTED]
|Sent: Thursday, June 26, 2003 10:27 AM
|To: Struts Users Mailing List
|Subject: Re: Using modules and actionforward to an action
|
|
|Do you use contextRelative="true" to switch between modules?
|
|- Original Message -
|From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
|To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
|Sent: Wednesday, June 25, 2003 9:29 PM
|Subject: Using modules and actionforward to an action
|
|
|
|
|For logging out I use this piece of code :
|
|RequestUtils.selectModule("", req,
|getServlet().getServletContext());
|return (new ActionForward("/AuthFail.jsp"));
|
|I don't want to hardcode "/AuthFail.jsp"
|instead of that i want to forward to an action "/logout" defined in the
|default servlet-config.xml
|I tried this
|return (new ActionForward("/logout"));
|and in the servlet-config.xml
|
|
|but no success.
|
|Suggestions ... 
|
|
|
|
|
|---
|-
|
|
|
|> -
|> 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: Using modules and actionforward to an action

2003-06-25 Thread Abhinav (Cognizant)
no ... 

-Original Message-
From: Sergey Smirnov [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 10:27 AM
To: Struts Users Mailing List
Subject: Re: Using modules and actionforward to an action


Do you use contextRelative="true" to switch between modules?

- Original Message - 
From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:29 PM
Subject: Using modules and actionforward to an action




For logging out I use this piece of code :

RequestUtils.selectModule("", req,
getServlet().getServletContext());
return (new ActionForward("/AuthFail.jsp"));

I don't want to hardcode "/AuthFail.jsp"
instead of that i want to forward to an action "/logout" defined in the
default servlet-config.xml
I tried this
return (new ActionForward("/logout"));
and in the servlet-config.xml


but no success.

Suggestions ... 









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


** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

No Virus detected in the attached file(s).
* End of message ***


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not 
the 
intended recipient, please contact the sender by reply e-mail and destroy all copies 
of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and 
may be unlawful.

  Visit us at http://www.cognizant.com

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

Re: Using modules and actionforward to an action

2003-06-25 Thread Sergey Smirnov
Do you use contextRelative="true" to switch between modules?

- Original Message - 
From: "Abhinav (Cognizant)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:29 PM
Subject: Using modules and actionforward to an action




For logging out I use this piece of code :

RequestUtils.selectModule("", req,
getServlet().getServletContext());
return (new ActionForward("/AuthFail.jsp"));

I don't want to hardcode "/AuthFail.jsp"
instead of that i want to forward to an action "/logout" defined in the
default servlet-config.xml
I tried this
return (new ActionForward("/logout"));
and in the servlet-config.xml


but no success.

Suggestions ... 









> -
> 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: struts-config and tiles configuration

2003-06-25 Thread Bob Byron
Hmmm, I am not sure as to what you are asking.

As a test, I am using the struts-config.xml file from the 
tiles-documentation.war
file.  It still comes up with this SAXParseException.  I don't get it.

Bob

Sergey Smirnov wrote:

Is plug-in a latest element of your strruts-config.xml?

- Original Message - 
From: "Bob Byron" <[EMAIL PROTECTED]>
To: "Struts Users" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:38 PM
Subject: struts-config and tiles configuration

 

I am getting a strange error, and I can't figure out why.
As I understand it, I can put a plug-in in the struts-config file,
   

however,
 

I am receiving the following error message when I do:
 23:00:04,841 ERROR [Digester] Parse Error at line 54 column -1:
 Element "struts-config" does not allow "plug-in" here.
 org.xml.sax.SAXParseException: Element "struts-config" does not
allow "plug-in" here.
Did I put "plug-in" in the wrong place?  Any suggestions?

Thank You,
Bob
-
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 with struts bean tag when created on the fly

2003-06-25 Thread Ajay Patil
Dear Ashish,

For  tag to be replaced by the label in properties
file, the tag needs to be typed inside the JSP file. Only the
tags typed in JSP page are parsed by JSP processor. 

If the Java code is returning any tags, they will be treated as normal
character data and just outputted as it is by the JSP processor.

- Ajay


Ajay Patil
Vertex Software Pvt. Ltd.
[EMAIL PROTECTED]
http://www.vertex.co.in


- Original Message - 
>From  Ashish Kulkarni <[EMAIL PROTECTED]> 
Date  Wed, 25 Jun 2003 13:26:15 -0700 (PDT) 
To  [EMAIL PROTECTED] 
Subject  problem with struts bean tag when created on the fly  


Hi,
I am trying to the following, I have a java class
which builds a String for displaying in webpage,
I have some code in this class which builds String as
if it is struts bean tag, like my string when build
looks like this
''
and the java code to build this is
String title = new String("\'" + "+"\'");
and then i print this String at run time
but the problem is the bean tag does notand get
blanks, the value for report is not retrieved from
properties file.
why is this happening like this

Ashish






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



Re: struts-config and tiles configuration

2003-06-25 Thread Sergey Smirnov
Is plug-in a latest element of your strruts-config.xml?

- Original Message - 
From: "Bob Byron" <[EMAIL PROTECTED]>
To: "Struts Users" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:38 PM
Subject: struts-config and tiles configuration


> I am getting a strange error, and I can't figure out why.
> As I understand it, I can put a plug-in in the struts-config file,
however,
> I am receiving the following error message when I do:
>   23:00:04,841 ERROR [Digester] Parse Error at line 54 column -1:
>   Element "struts-config" does not allow "plug-in" here.
>   org.xml.sax.SAXParseException: Element "struts-config" does not
> allow "plug-in" here.
>
> Did I put "plug-in" in the wrong place?  Any suggestions?
>
> Thank You,
> Bob
>
>
> -
> 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: struts-config and tiles configuration

2003-06-25 Thread Bob Byron
Oh, and I am using Struts-1.1-rc2.

Bob Byron wrote:

I am getting a strange error, and I can't figure out why.
As I understand it, I can put a plug-in in the struts-config file, 
however,
I am receiving the following error message when I do:
 23:00:04,841 ERROR [Digester] Parse Error at line 54 column -1:
 Element "struts-config" does not allow "plug-in" here.
 org.xml.sax.SAXParseException: Element "struts-config" does not 
allow "plug-in" here.

Did I put "plug-in" in the wrong place?  Any suggestions?

Thank You,
Bob
-
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]


controller tempDir

2003-06-25 Thread Geoffrey Ellis
Having trouble getting this attribute to have an effect.
I'm using Sun's StudioOne Struts 1.1 rc2 and Tomcat 4.0
Right now the files I upload from my webapp are placed in
C:\forte_jdk\forte4j\bin

My configuration is as follows
Tomcat
home directory is set to C:\forte_jdk\forte4j\tomcat401
base directory is set to C:\cygwin\home\Administrator\tomcat401_base
server.xml



I would like to place the files in a directory "uploads" relative to the
docBase
how are they winding up in C:\forte_jdk\forte4j\bin its any of thoose above
nor is it relative to the home.


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



struts-config and tiles configuration

2003-06-25 Thread Bob Byron
I am getting a strange error, and I can't figure out why.
As I understand it, I can put a plug-in in the struts-config file, however,
I am receiving the following error message when I do:
 23:00:04,841 ERROR [Digester] Parse Error at line 54 column -1:
 Element "struts-config" does not allow "plug-in" here.
 org.xml.sax.SAXParseException: Element "struts-config" does not 
allow "plug-in" here.

Did I put "plug-in" in the wrong place?  Any suggestions?

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


Using modules and actionforward to an action

2003-06-25 Thread Abhinav (Cognizant)


For logging out I use this piece of code : 

RequestUtils.selectModule("", req,
getServlet().getServletContext());
return (new ActionForward("/AuthFail.jsp"));

I don't want to hardcode "/AuthFail.jsp"
instead of that i want to forward to an action "/logout" defined in the default 
servlet-config.xml
I tried this 
return (new ActionForward("/logout")); 
and in the servlet-config.xml 

   
but no success.

Suggestions ... 


** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

No Virus detected in the attached file(s).
* End of message ***


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not 
the 
intended recipient, please contact the sender by reply e-mail and destroy all copies 
of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and 
may be unlawful.

  Visit us at http://www.cognizant.com

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

Re: ActionForm

2003-06-25 Thread Ajay Patil
Dear AJ,

1. In your Form bean, 
   declare a collection to hold the list of questions.

2. In your JSP page, 
   use  tag and iterate over the questions, 
   printing one  tag in each loop.

3. In your Action class, 
   when the user adds a question, add the question to the 
   collection inside your form bean.

You can read Ted Husted's tips at www.husted.com where he has a
detailed example on how to print array of input controls in a form.

:-)
Ajay


>> I'm running into a problem with using ActioForm. I mean I know how 
>> to do the 
>> normal stuff like say a login form, but I'm running into serious 
>> issues when it comes to a dynamic forms. I writing a survey 
>> application and well the form is created dynamically as I dunno how 
>> many questions will exist in the survey. The problem comes into the 
>> picture when i'm trying to collect the form data. It seems the value 
>> object needs to have a specific number of methods. Any 
>> way to make this dynamic??



Ajay Patil
Vertex Software Pvt. Ltd.
[EMAIL PROTECTED]
http://www.vertex.co.in




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



Re: Problem in Iterating over a form bean property

2003-06-25 Thread Ajay Patil
Dear Partha,

The logic:iterate does not look into your form properties.
You need to specify the name of the JSP bean that contains
the collection.

So,

..


SHOULD BE


..


WHERE, your html:form tag looks something like


Hope this works for you,
Ajay

Hai
I have not received any replies.let me put my question like this.is it
possible to iterate over an ArrayList which is my form bean's property
Regards
Partha

> In formbean i am having an arraylist that contains a value object 
> having id and name.I am loading that in my jsp.The code goed like 
> this.



  






Ajay Patil
Vertex Software Pvt. Ltd.
[EMAIL PROTECTED]
http://www.vertex.co.in



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



display an image

2003-06-25 Thread Richard Raquepo

i want to write a web app to display an image from a mssql db (image
datatype).

my action should be

displayImage.do?imageid=1
where:
imageid is the id of a particular image from the db.

now my action class would retrieve this for example:
byte[] dataBytes; //an array of bytes
 if (rs.next()) //if there is a record
 {
  dataBytes = rs.getBytes("imagedata")
}
request.setAttribute("imagedate",imagedate);

my action would now forward to a jsp.

my question is how will i be able to display the image in my jsp?

can someone enlighten me on what should i do?

thanks.





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



Re: Validation and internet wierdness

2003-06-25 Thread David Graham
This was a bug in commons-validator that was fixed a while back.  It can't
find a local DTD so it looks on the web.

David

--- Benjamin Stewart <[EMAIL PROTECTED]> wrote:
> Greetings,
> I am sending this to struts, as this is the context in which I found the
> 
> "issue" I am having, but I suppose this may be a tomcat wide thing.
> Anways. I find that when I am using the struts-example application (The 
> Mailreader Demo), when the server that is running tomcat has a route to 
> the internet, and I attempt to submit a form without all the field being
> 
> added, the validation causes a javascript window to come up and tells me
> 
> that there are required fields. If I stop the tomcat server, remove the 
> route to internet and start the tomcat server, running the same 
> application causes the validation error to be shown as HTML on the form 
> after the page is submitted (ie. No javascript).
> 
> I also found that if my tomcat server is not running on a machine 
> connected to the internet then i get an exception generated (no route to
> 
> host) when I start the server. It appears to work fine, but I was 
> interested to know why this was the case.
> 
> I have done a search trying to work out why this is the case, but 
> couldnt find anything. Can somebody offer me a pointer or two.
> 
> Thanks for your help.
> 
> Regards
> Ben Stewart
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Selecting a row in nested:iterate?

2003-06-25 Thread Bjørn T Johansen
I display x rows from a table using nested:iterate and I need to select
one row from these rows (and know which was selected in my Action), how
can I do this?


Regards,

BTJ

-- 
---
Bjørn T Johansen (BSc,MNIF)
Executive Manager
[EMAIL PROTECTED]  Havleik Consulting
Phone : +47 67 54 15 17 Conradisvei 4
Fax : +47 67 54 13 91   N-1338 Sandvika
Cellular : +47 926 93 298   http://www.havleik.no
---
"The stickers on the side of the box said "Supported Platforms: Windows
98, Windows NT 4.0,
Windows 2000 or better", so clearly Linux was a supported platform."
---


Re: Error working with MessageFormat as per Ted's tips...

2003-06-25 Thread Mick Knutson
I don't understand your comment. Do I need to ad a type attribute for the 
type of class I have commin in like com.baselogic.RegistrationActionForm 




---
Thanks...
Mick Knutson
---




From: Sandeep Takhar <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Error working with MessageFormat as per Ted's tips...
Date: Wed, 25 Jun 2003 15:39:08 -0700 (PDT)
I think define has a type="java.lang.example.Class" on
it.
The scriptlet parameters are compiled into java and so
it won't know the type of it.
let me double check the type parameter on bean:define
...yep it is there.
sandeep
--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> Well,  tried that, but it didn't work.
> I have the code and the error below if you can help.
> I appreciate it.
>
>
> JSP:
> ==
>  name="registrationForm"/>
>
>
> 
>
>
>
> error:
> 
> [ServletException
> in:/WEB-INF/default/body/registration.view.jsp]
> Unable to
> compile class for JSPNote: sun.tools.javac.Main has
> been deprecated. An
> error occurred at line: 210 in the jsp file:
> /WEB-INF/default/body/registration.view.jsp
> Generated servlet error:
>
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52616\WEB-INF\default\body\registration$view$jsp.java:1420:
>
> Method getCreationDate() not found in class
> java.lang.Object.
> _jspx_th_bean_message_33.setArg0(
> registrationFormCopy.getCreationDate() );
> ^ 1 error, 1 warning '
> org.apache.jasper.JasperException: Unable to compile
>
> class for JSPNote: sun.tools.javac.Main has been
> deprecated. An error
> occurred at line: 210 in the jsp file:
> /WEB-INF/default/body/registration.view.jsp
> Generated servlet error:
>
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52616\WEB-INF\default\body\registration$view$jsp.java:1420:
>
> Method getCreationDate() not found in class
> java.lang.Object.
> _jspx_th_bean_message_33.setArg0(
> registrationFormCopy.getCreationDate() );
> ^ 1 error, 1 warning at
>
org.apache.jasper.compiler.Compiler.compile(Compiler.java:289)
> at
>
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
>
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
>
> 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(WebApplicationHandler.java:294)
>
> at
>
org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192)
> at
>
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121)
> at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
>
> at
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391)
>
> at
>
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
>
> at
>
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
> at
>
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
> at
>
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
>
> at
>
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
> at
>
org.apache.jsp.default$jsp._jspService(default$jsp.java:381)
> 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.java: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(WebApplicationHandler.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:1069)
>
> at
>
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
>
> at
>
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
>
> at
>
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
>
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
>
> at
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
>
> at
>
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:40)
>
> at

Re: Error working with MessageFormat as per Ted's tips...

2003-06-25 Thread Sandeep Takhar
I think define has a type="java.lang.example.Class" on
it.

The scriptlet parameters are compiled into java and so
it won't know the type of it.

let me double check the type parameter on bean:define
...yep it is there.

sandeep
--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> Well,  tried that, but it didn't work.
> I have the code and the error below if you can help.
> I appreciate it.
> 
> 
> JSP:
> ==
>  name="registrationForm"/>
> 
> 
> 
> 
> 
> 
> error:
> 
> [ServletException
> in:/WEB-INF/default/body/registration.view.jsp]
> Unable to 
> compile class for JSPNote: sun.tools.javac.Main has
> been deprecated. An 
> error occurred at line: 210 in the jsp file: 
> /WEB-INF/default/body/registration.view.jsp
> Generated servlet error: 
>
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52616\WEB-INF\default\body\registration$view$jsp.java:1420:
> 
> Method getCreationDate() not found in class
> java.lang.Object. 
> _jspx_th_bean_message_33.setArg0(
> registrationFormCopy.getCreationDate() ); 
> ^ 1 error, 1 warning '
> org.apache.jasper.JasperException: Unable to compile
> 
> class for JSPNote: sun.tools.javac.Main has been
> deprecated. An error 
> occurred at line: 210 in the jsp file: 
> /WEB-INF/default/body/registration.view.jsp
> Generated servlet error: 
>
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52616\WEB-INF\default\body\registration$view$jsp.java:1420:
> 
> Method getCreationDate() not found in class
> java.lang.Object. 
> _jspx_th_bean_message_33.setArg0(
> registrationFormCopy.getCreationDate() ); 
> ^ 1 error, 1 warning at 
>
org.apache.jasper.compiler.Compiler.compile(Compiler.java:289)
> at 
>
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
> at 
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
> 
> at 
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
> 
> 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(WebApplicationHandler.java:294)
> 
> at
>
org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192)
> at 
>
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121)
> at 
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
> 
> at 
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391)
> 
> at
>
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
> 
> at
>
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
> at 
>
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
> at 
>
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
> 
> at
>
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
> at 
>
org.apache.jsp.default$jsp._jspService(default$jsp.java:381)
> 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.java: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(WebApplicationHandler.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:1069)
> 
> at 
>
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
> 
> at 
>
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
> 
> at 
>
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
> 
> at 
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> 
> at
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
> 
> at 
>
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:40)
> 
> at
>
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
> 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$Chain.doFilter(WebApplicationHandler.ja

Re: I8ln question

2003-06-25 Thread Sandeep Takhar
I would stick with 1, unless you need to add on the
fly.

If you go with 2 you will need to figure out how to
cache the info on the ui side as well.  This is done
for you automatically with resource.properties.

In Ted's book he recommends number 1 as well.

sandeep
--- Brian McSweeney <[EMAIL PROTECTED]>
wrote:
> Hi folks,
>  
> In my application I have multiple category entries
> stored in a database
> table named "categories".
> For each entry, I have a name and a description
> field.
>  
> I want to internationalize the application with
> struts and have
> identified two possible approaches.
>  
> 1)   Set up a resource bundle which contains
> keys which are the same
> as the database entries 
> for name and description and use the  key. > tag to display
> the correct name.
>  
> For example, say I have two category entries:
>  
> Name: fish 
> Description: fishdesc
> 
> Name: dogs
> Description: dogsdesc
>  
> Now in my resource bundle I can put:
>  
> fish=fish
> fishdesc=this category is for fishes
>  
> dogs=dogs
> dogsdesc=this category is for dogs
>  
> And so, in my jsp I could hopefully use
> the  key= />
> to display the correct thing. Adding a
> new language should
> be simple here.
>  
> 2)   I could also do this completely in the
> database, by creating a
> language mapping table
> For example
>  
>  ---   
> ---
> |   Category  | |
> CategoryI8ln |
> 1__*   
> 
> | PK |  
>  | Name
> |
> --- 
>|
> Description   |
> 
>| Language
> |
>  
> -
>  
> I would really like anyone's experience
> with trying to
> internationalize data that is stored in 
> the database that won't change that
> often using struts. Do
> you think option 1 or 2 is better,
> or do you have a different solution? 
>  
> The advantages of solution 1 over
> solution 2 as I see them
> are:
>  
> Simple database structure
> No need to have the database set up for
> UTF-8
> 
> The disadvantages of solution 1 over
> solution 2 as I see
> them are:
>  
> Replication of the information in the
> database
> Can't add a new category on the fly
> 
> Any comments, suggestions would be much appreciated.
> Thanks,
> Brian
> 


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

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



RE: requiredif question

2003-06-25 Thread Mick Knutson
I extend org.apache.struts.validator.ValidatorActionForm and all my normal 
validation works except the requiredif.



---
Thanks...
Mick Knutson
---




From: Sandeep Takhar <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: RE: requiredif question
Date: Wed, 25 Jun 2003 15:21:50 -0700 (PDT)
Are you extending ValidatorForm?

sandeep
--- "Kamholz, Keith   (corp-staff) USX"
<[EMAIL PROTECTED]> wrote:
> Here's my struts-config and my validation.xml.  I've
> also attached them, if
> it's easier to look at that way.  I've only shown
> parts of my
> struts-config.xml, enough to show one example action
> that isn't validating
> right.
> ___
>
> Struts-Config snippets:
>
> 
> type="com.moog.us.app.ans.data.AnsmItem"/>
> type="com.moog.us.app.ans.data.AnsaItem"/>
> 
>
>  type="com.moog.us.app.ans.action.AddANSM"
>validate="true"
>name="ansm"
>scope="request"
>input="tiles.addFormat"/>
>
> 
processorClass="com.moog.us.struts.AppRequestProcessor"
> />
>
>  parameter="ApplicationResources"/>
>
>  className="com.moog.us.struts.AppStartupPlugin"/>
>  className="org.apache.struts.tiles.TilesPlugin" >
>  value="/WEB-INF/tiles-defs.xml" />
>  value="true" />
> property="definitions-parser-validate" value="true"
> />
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
> property="pathnames"
>
>
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
> 
>
> ___
>
> Validation.xml:
>
> 
>
>"-//Apache Software Foundation//DTD
> Commons Validator Rules
> Configuration 1.0//EN"
>
>
"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
>
> 
>
> 
> 
>
>
>
>depends="required">
>
>
>depends="required">
>
>
>
>
>
> 
>
>
>
>
> If I should send any other files, let me know.
> Any input would be great, thanks!
>
>
> - Keith
>
>
>
>
>
>
>
> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 1:32 PM
> To: [EMAIL PROTECTED]
> Subject: RE: requiredif question
>
>
> I did not see yours. Can you post your code again?
>
>
>
> ---
> Thanks...
> Mick Knutson
> ---
>
>
>
>
>
> >From: "Kamholz, Keith   (corp-staff) USX"
> <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: 'Struts Users Mailing List'
> <[EMAIL PROTECTED]>
> >Subject: RE: requiredif question
> >Date: Wed, 25 Jun 2003 13:26:48 -0400
> >
> >I'm having a similar problem.  All I'm trying to do
> is have a 'required'
> >condition for 2 fields of my form.  Mine submits
> just fine when I leave it
> >blank as well.  I posted my code here yesterday,
> but nobody was able to
> >help
> >me.  If you figure this out, I'd appreciate it if
> you let me know what the
> >problem is.  I'll do the same!
> >
> >- Keith
> >
> >
> >-Original Message-
> >From: Mick Knutson [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, June 25, 2003 1:26 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: requiredif question
> >
> >
> >Yes, no matter what I enter, nothing happends at
> all. It just accepts
> >whatever I enter, or leave blank, and submits just
> fine.
> >
> >
> >
> >---
> >Thanks...
> >Mick Knutson
> >---
> >
> >
> >
> >
> >
> > >From: Kevin Robair <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> > >To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> > >Subject: Re: requiredif question
> > >Date: Wed, 25 Jun 2003 10:20:35 -0700 (PDT)
> > >
> > >Just a hunch:
> > >
> > >For Struts 1.1RC1 , the varnames should be:
> > >
> > >field-test[x]
> > >field-join
> > >etc...
> > >
> > >In 1.1RC2, they are
> > >
> > >fieldTest[n]
> > >fieldJoin
> > >etc
> > >
> > >BTW, I am unsure what you mean by:
> > >
> > >   "does not seem to operate at all"
> > >
> > >Are there any errors or exceptions in the log? If
> the form validates no
> > >matter what you enter, and there are no errors in
> the log, then it is
> > >possibly a configuration problem. You could try a
> simpler validation, in
> > >place of this one just to make sure it is doing
> something. Then, remove
> > >the NOTNULL check, and see if the NOTEQUAL alone
> works.
> > >
> > >-Kevin
> > >
> > >--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> > > > I have the following code that does not seem
> to operate at all.
> > > >
> > > > I want phone1type to be a required field _if_
> the phone1 attribute is
> > > > _not_
> > > > ""
> > > >
> > > >  > > > depends="requiredif">
> > > > 
> > > > 
> > > >
> field[0]
> > > >
> phone1
> > > > 
> > > > 
> > > >
> fieldTest[0]
> > > >
> NOTNULL
> > > > 

Re: Error working with MessageFormat as per Ted's tips...

2003-06-25 Thread Mick Knutson
Well,  tried that, but it didn't work.
I have the code and the error below if you can help. I appreciate it.
JSP:
==





error:

[ServletException in:/WEB-INF/default/body/registration.view.jsp] Unable to 
compile class for JSPNote: sun.tools.javac.Main has been deprecated. An 
error occurred at line: 210 in the jsp file: 
/WEB-INF/default/body/registration.view.jsp Generated servlet error: 
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52616\WEB-INF\default\body\registration$view$jsp.java:1420: 
Method getCreationDate() not found in class java.lang.Object. 
_jspx_th_bean_message_33.setArg0( registrationFormCopy.getCreationDate() ); 
^ 1 error, 1 warning ' org.apache.jasper.JasperException: Unable to compile 
class for JSPNote: sun.tools.javac.Main has been deprecated. An error 
occurred at line: 210 in the jsp file: 
/WEB-INF/default/body/registration.view.jsp Generated servlet error: 
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52616\WEB-INF\default\body\registration$view$jsp.java:1420: 
Method getCreationDate() not found in class java.lang.Object. 
_jspx_th_bean_message_33.setArg0( registrationFormCopy.getCreationDate() ); 
^ 1 error, 1 warning at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:289) at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176) 
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) 
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(WebApplicationHandler.java:294) 
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at 
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121) at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820) 
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391) 
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) 
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at 
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) 
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at 
org.apache.jsp.default$jsp._jspService(default$jsp.java:381) 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.java: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(WebApplicationHandler.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:1069) 
at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) 
at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254) 
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309) 
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) 
at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:40) 
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) 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$Chain.doFilter(WebApplicationHandler.java:342) 
at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) 
at 
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:48) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) 
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) 
at org.mortbay.http.

RE: requiredif question

2003-06-25 Thread Sandeep Takhar
Are you extending ValidatorForm?

sandeep
--- "Kamholz, Keith   (corp-staff) USX"
<[EMAIL PROTECTED]> wrote:
> Here's my struts-config and my validation.xml.  I've
> also attached them, if
> it's easier to look at that way.  I've only shown
> parts of my
> struts-config.xml, enough to show one example action
> that isn't validating
> right.
> ___
> 
> Struts-Config snippets:
> 
> 
>type="com.moog.us.app.ans.data.AnsmItem"/>
>type="com.moog.us.app.ans.data.AnsaItem"/>
> 
> 
>  type="com.moog.us.app.ans.action.AddANSM"
>   validate="true"
>   name="ansm"
>   scope="request"
>   input="tiles.addFormat"/>
> 
> 
processorClass="com.moog.us.struts.AppRequestProcessor"
> />
> 
>  parameter="ApplicationResources"/>
> 
>  className="com.moog.us.struts.AppStartupPlugin"/>
>  className="org.apache.struts.tiles.TilesPlugin" >
> value="/WEB-INF/tiles-defs.xml" />
>  value="true" />
>property="definitions-parser-validate" value="true"
> />
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
>property="pathnames"
>
>
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
> 
> 
> ___
> 
> Validation.xml:
> 
> 
> 
>"-//Apache Software Foundation//DTD
> Commons Validator Rules
> Configuration 1.0//EN"
>  
>
"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
> 
> 
> 
> 
> 
> 
>   
>   
>  depends="required">
>   
>   
>  depends="required">
>   
>   
>   
>   
> 
> 
> 
> 
> 
> 
> If I should send any other files, let me know.
> Any input would be great, thanks!
> 
> 
> - Keith
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 1:32 PM
> To: [EMAIL PROTECTED]
> Subject: RE: requiredif question
> 
> 
> I did not see yours. Can you post your code again?
> 
> 
> 
> ---
> Thanks...
> Mick Knutson
> ---
> 
> 
> 
> 
> 
> >From: "Kamholz, Keith   (corp-staff) USX"
> <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: 'Struts Users Mailing List'
> <[EMAIL PROTECTED]>
> >Subject: RE: requiredif question
> >Date: Wed, 25 Jun 2003 13:26:48 -0400
> >
> >I'm having a similar problem.  All I'm trying to do
> is have a 'required'
> >condition for 2 fields of my form.  Mine submits
> just fine when I leave it
> >blank as well.  I posted my code here yesterday,
> but nobody was able to 
> >help
> >me.  If you figure this out, I'd appreciate it if
> you let me know what the
> >problem is.  I'll do the same!
> >
> >- Keith
> >
> >
> >-Original Message-
> >From: Mick Knutson [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, June 25, 2003 1:26 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: requiredif question
> >
> >
> >Yes, no matter what I enter, nothing happends at
> all. It just accepts
> >whatever I enter, or leave blank, and submits just
> fine.
> >
> >
> >
> >---
> >Thanks...
> >Mick Knutson
> >---
> >
> >
> >
> >
> >
> > >From: Kevin Robair <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> > >To: Struts Users Mailing List
> <[EMAIL PROTECTED]>
> > >Subject: Re: requiredif question
> > >Date: Wed, 25 Jun 2003 10:20:35 -0700 (PDT)
> > >
> > >Just a hunch:
> > >
> > >For Struts 1.1RC1 , the varnames should be:
> > >
> > >field-test[x]
> > >field-join
> > >etc...
> > >
> > >In 1.1RC2, they are
> > >
> > >fieldTest[n]
> > >fieldJoin
> > >etc
> > >
> > >BTW, I am unsure what you mean by:
> > >
> > >   "does not seem to operate at all"
> > >
> > >Are there any errors or exceptions in the log? If
> the form validates no
> > >matter what you enter, and there are no errors in
> the log, then it is
> > >possibly a configuration problem. You could try a
> simpler validation, in
> > >place of this one just to make sure it is doing
> something. Then, remove
> > >the NOTNULL check, and see if the NOTEQUAL alone
> works.
> > >
> > >-Kevin
> > >
> > >--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> > > > I have the following code that does not seem
> to operate at all.
> > > >
> > > > I want phone1type to be a required field _if_
> the phone1 attribute is
> > > > _not_
> > > > ""
> > > >
> > > >  > > > depends="requiredif">
> > > > 
> > > > 
> > > >
> field[0]
> > > >
> phone1
> > > > 
> > > > 
> > > >
> fieldTest[0]
> > > >
> NOTNULL
> > > > 
> > > > 
> > > >
> field[1]
> > > >
> phone1
> > > >   
> > > >   
> > >

Validation and internet wierdness

2003-06-25 Thread Benjamin Stewart
Greetings,
I am sending this to struts, as this is the context in which I found the 
"issue" I am having, but I suppose this may be a tomcat wide thing.
Anways. I find that when I am using the struts-example application (The 
Mailreader Demo), when the server that is running tomcat has a route to 
the internet, and I attempt to submit a form without all the field being 
added, the validation causes a javascript window to come up and tells me 
that there are required fields. If I stop the tomcat server, remove the 
route to internet and start the tomcat server, running the same 
application causes the validation error to be shown as HTML on the form 
after the page is submitted (ie. No javascript).

I also found that if my tomcat server is not running on a machine 
connected to the internet then i get an exception generated (no route to 
host) when I start the server. It appears to work fine, but I was 
interested to know why this was the case.

I have done a search trying to work out why this is the case, but 
couldnt find anything. Can somebody offer me a pointer or two.

Thanks for your help.

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


RE: ExceptionConfig bundle Attribute & Using Multiple Message Res ources.

2003-06-25 Thread Sandeep Takhar
That is what it is intended to be used for...

Not sure why it doesn't work.  If you use
multi-bundles then I assume you named them in the
struts-config (using the "key" attribute)

This bundle attribute is supposed to pick up the
message resource (key,value) from this "bundle"
attribute.  I know because I read it on the train in
this morning (just by chance)

so key in struts-config message-resource should match
the exception config's bundle.  Both in struts-config.

sandeep
--- "Butash, Bob" <[EMAIL PROTECTED]> wrote:
> I have figured out how to use different message
> resources, based on a
> response to a previous post.
> 
> I still have not found further information regarding
> the bundle attribute on
> ExceptionConfig.
> 
> ExceptionConfig has a bundle attribute:
> I have seen very little documentation as to what
> this is actually used for.
> If I provide an actual ResourceBundle name here it
> is not used when
> formatting the message to the view.  Does anyone
> know what this is intended
> to be used for?
> 
> Any help would be appreciated.
> 
> -Original Message-
> From: Butash, Bob [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 12:41 PM
> To: 'Struts Users Mailing List'
> Subject: ExceptionConfig bundle Attribute & Using
> Multiple Message
> Resourc es.
> 
> 
> We are trying to create an ExceptionHandler that has
> some built in logging
> capabilities and one of the items that we would like
> to log is the Formatted
> message that is associated with the Error key.  So
> we are trying to
> determine a way to get visibility to the message
> resources.  The
> ExceptionHandler's execute method does not get the
> Action class therefore
> there is no visibility to the ServletContext.  Does
> anyone have any ideas in
> this area?
> 
> Also while we were investigating this we stumbled on
> a couple of questions
> that we have not been able to resolve.
> 
> ExceptionConfig has a bundle attribute:
> I have seen very little documentation as to what
> this is actually used for.
> If I provide an actual ResourceBundle name here it
> is not used when
> formatting the message to the view.  Does anyone
> know what this is intended
> to be used for?
> 
> Taking advantage of multiple message resources:
> It is clearly documented how you establish multiple
> message-resources, but I
> have not been able to locate how you designate that
> you want to use a
> secondary message resource.  For example I want to
> create an ActionError
> with a message key that is obtained from a different
> message resource file,
> how is this done?
> 
> Any help would be great, thanks in advance.
> 
>
-
> 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!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Error working with MessageFormat as per Ted's tips...

2003-06-25 Thread Sandeep Takhar
registrationForm needs to be pageContext

so 



and then use the copy

not pretty and there may be a better way

sandeep
--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> I can't get this to work in my JSP:
> 
> 
> I keep getting this error:
> 
> [ServletException
> in:/WEB-INF/default/body/registration.view.jsp]
> Unable to 
> compile class for JSPNote: sun.tools.javac.Main has
> been deprecated. An 
> error occurred at line: 209 in the jsp file: 
> /WEB-INF/default/body/registration.view.jsp
> Generated servlet error: 
>
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52611\WEB-INF\default\body\registration$view$jsp.java:1397:
> 
> Undefined variable or class name: registrationForm 
> _jspx_th_bean_message_33.setArg0(
> (String)registrationForm.getCreationDate() 
> ); ^ 1 error, 1 warning '
> org.apache.jasper.JasperException: Unable to 
> compile class for JSPNote: sun.tools.javac.Main has
> been deprecated. An 
> error occurred at line: 209 in the jsp file: 
> /WEB-INF/default/body/registration.view.jsp
> Generated servlet error: 
>
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52611\WEB-INF\default\body\registration$view$jsp.java:1397:
> 
> Undefined variable or class name: registrationForm 
> _jspx_th_bean_message_33.setArg0(
> (String)registrationForm.getCreationDate() 
> ); ^ 1 error, 1 warning at 
>
org.apache.jasper.compiler.Compiler.compile(Compiler.java:289)
> at 
>
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
> at 
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
> 
> at 
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
> 
> 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(WebApplicationHandler.java:294)
> 
> at
>
org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192)
> at 
>
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121)
> at 
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
> 
> at 
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391)
> 
> at
>
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
> 
> at
>
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
> at 
>
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
> at 
>
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
> 
> at
>
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
> at 
>
org.apache.jsp.default$jsp._jspService(default$jsp.java:381)
> 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.java: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(WebApplicationHandler.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:1069)
> 
> at 
>
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
> 
> at 
>
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
> 
> at 
>
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
> 
> at 
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> 
> at
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
> 
> at 
>
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:40)
> 
> at
>
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
> 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$Chain.doFilter(WebApplicationHandler.java:342)
> 
> at 
>
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102)
> 
> at 
>
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334)
> 
> at 
>
com.baselogic

Error working with MessageFormat as per Ted's tips...

2003-06-25 Thread Mick Knutson
I can't get this to work in my JSP:


I keep getting this error:

[ServletException in:/WEB-INF/default/body/registration.view.jsp] Unable to 
compile class for JSPNote: sun.tools.javac.Main has been deprecated. An 
error occurred at line: 209 in the jsp file: 
/WEB-INF/default/body/registration.view.jsp Generated servlet error: 
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52611\WEB-INF\default\body\registration$view$jsp.java:1397: 
Undefined variable or class name: registrationForm 
_jspx_th_bean_message_33.setArg0( (String)registrationForm.getCreationDate() 
); ^ 1 error, 1 warning ' org.apache.jasper.JasperException: Unable to 
compile class for JSPNote: sun.tools.javac.Main has been deprecated. An 
error occurred at line: 209 in the jsp file: 
/WEB-INF/default/body/registration.view.jsp Generated servlet error: 
C:\DOCUME~1\Owner\LOCALS~1\Temp\Jetty_0_0_0_0_8080___52611\WEB-INF\default\body\registration$view$jsp.java:1397: 
Undefined variable or class name: registrationForm 
_jspx_th_bean_message_33.setArg0( (String)registrationForm.getCreationDate() 
); ^ 1 error, 1 warning at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:289) at 
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548) at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176) 
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188) 
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(WebApplicationHandler.java:294) 
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:192) at 
org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:121) at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820) 
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:391) 
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137) 
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177) at 
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756) at 
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881) 
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473) at 
org.apache.jsp.default$jsp._jspService(default$jsp.java:381) 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.java: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(WebApplicationHandler.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:1069) 
at 
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274) 
at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254) 
at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309) 
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480) 
at 
com.baselogic.yoursos.struts.ExtendedActionServlet.process(ExtendedActionServlet.java:40) 
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506) 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$Chain.doFilter(WebApplicationHandler.java:342) 
at 
com.baselogic.yoursos.security.SecurityContextFilter.doFilter(SecurityContextFilter.java:102) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) 
at 
com.baselogic.yoursos.user.UserPreferenceFilter.doFilter(UserPreferenceFilter.java:48) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:334) 
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:286) 
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) 
at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) at 
org.mortbay.jetty.servlet.WebApp

RE: How To Render Binary Output - spreadsheet - from Struts

2003-06-25 Thread El Harouchi, Jaafar [IT]
And I highly recommend first doing:
response.reset();
if you are using HTTPS.
-jaafar

-Original Message-
From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:47 PM
To: 'Struts Users Mailing List'
Subject: RE: How To Render Binary Output - spreadsheet - from Struts


Also, you will want to set some headers too:

response.setHeader("Content-Disposition","attachment;filename=\"" + fileName
+ "\"");

This will prompt the person to download the file (basically automates the
save as).  I just finished doing the same thing for a project and we wanted
to remove the confusion about what to save and what the file name was, etc.

-Jacob Hookom

-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:59 PM
To: Struts Users Mailing List
Subject: RE: How To Render Binary Output - spreadsheet - from Struts

Make a servlet call, then set the response content type as

response.setContentType("application/vnd.ms-excel");

and then write the contents of the excel spreedsheet the the reponse output
stream.  If you have a hyperlink on a jsp page that has an href like this:

  http://localhost/context/do-export-mapping

then by setting the content type above will cause excel to open
automatically.

Mike

-
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] Scrollable Result Set

2003-06-25 Thread Hookom, Jacob
Why do you just use RowSet, check out sun's website for more info... you can
cache it, etc. 

-Original Message-
From: Jack Zakarian [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 25, 2003 3:59 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Scrollable Result Set

Hi Keith,
I am running on oracle9i using DAO's and here is how I declare and use
the scrollable ResultSet with a preparedStatement. This allows me to
page - up or down - through the ResultSet without keeping every thing in
memory. There are more calls to the database this way but it was a trade
off that I accepted. Passing in an offset and a limit allows you to
position the cursor and return a limited set or records.

Jack

Ds is the dataSource

  conn = ds.getConnection();
  pstmt = conn.prepareStatement(SELECT_HDR_CONDITION_SQL+condition,
ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY  );
  //pstmt.setString(1, condition);
  rs = pstmt.executeQuery();
  if(offset > 0) rs.absolute(offset);
  int recCount = 0;
  while((recCount++ < limit) && rs.next()) {
ServiceInvoiceHdr sh = new ServiceInvoiceHdr();

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 2:45 PM
To: Struts (E-mail)
Subject: [OT] Scrollable Result Set

Hey,
I'm trying to use a PreparedStatement to get a ResultSet.  I know how to
get
a customized ResultSet if you're only using a Statement, but how can I
get a
scrollable ResultSet with my PreparedStatement?
Thanks!

 - Keith

-
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] Scrollable Result Set

2003-06-25 Thread Jack Zakarian
Hi Keith,
I am running on oracle9i using DAO's and here is how I declare and use
the scrollable ResultSet with a preparedStatement. This allows me to
page - up or down - through the ResultSet without keeping every thing in
memory. There are more calls to the database this way but it was a trade
off that I accepted. Passing in an offset and a limit allows you to
position the cursor and return a limited set or records.

Jack

Ds is the dataSource 

  conn = ds.getConnection();
  pstmt = conn.prepareStatement(SELECT_HDR_CONDITION_SQL+condition,
ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY  );
  //pstmt.setString(1, condition);
  rs = pstmt.executeQuery();
  if(offset > 0) rs.absolute(offset);
  int recCount = 0;
  while((recCount++ < limit) && rs.next()) {
ServiceInvoiceHdr sh = new ServiceInvoiceHdr();

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 2:45 PM
To: Struts (E-mail)
Subject: [OT] Scrollable Result Set

Hey,
I'm trying to use a PreparedStatement to get a ResultSet.  I know how to
get
a customized ResultSet if you're only using a Statement, but how can I
get a
scrollable ResultSet with my PreparedStatement?
Thanks!

 - Keith

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




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



RE: How To Render Binary Output - spreadsheet - from Struts

2003-06-25 Thread Hookom, Jacob
Also, you will want to set some headers too:

response.setHeader("Content-Disposition","attachment;filename=\"" + fileName
+ "\"");

This will prompt the person to download the file (basically automates the
save as).  I just finished doing the same thing for a project and we wanted
to remove the confusion about what to save and what the file name was, etc.

-Jacob Hookom

-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:59 PM
To: Struts Users Mailing List
Subject: RE: How To Render Binary Output - spreadsheet - from Struts

Make a servlet call, then set the response content type as

response.setContentType("application/vnd.ms-excel");

and then write the contents of the excel spreedsheet the the reponse output
stream.  If you have a hyperlink on a jsp page that has an href like this:

  http://localhost/context/do-export-mapping

then by setting the content type above will cause excel to open
automatically.

Mike

-
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: Problems removing (expiring Cookie) in Action

2003-06-25 Thread Jeremy Nix
You have my situation pinned, but for some reason I can't add the
modified cookie back to the response.  I'm searching the request for my
cookie and then modifing the age of that cookie to force it to expire.
Then I add the cookie back to the response and forward on to another
action.  But, the action I'm forwarding on to has redirect set to true,
so doesn't that qualify as a new request and send the new cookie?  I've
tried 0 and 1 for the maxAge, but the value is just not being set in the
response.  I can give more code if necessary.

_
Jeremy Nix
Senior Application Developer
Southwest Financial Ltd.
[EMAIL PROTECTED]
(513) 621-6699 ext 1158


-Original Message-
From: Kruse, Matt [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 4:13 PM
To: Struts Users Mailing List
Subject: RE: Problems removing (expiring Cookie) in Action


> Is there anything that I need ot be aware of in terms of 
> expiring/removing a Cookie within an Action?  I'm setting the maximum 
> age to 0 and then adding the cookie back to the response and somehow 
> that cookie shows up after I've forwarded my request to the next 
> action. I'm I missing a step?

The cookie will continue to exist in your request until the server sends
the response back without the cookie, and the browser makes another
request not including the cookie.

If you are forwarding from one Action to another without redirect, you
get the same request as the first action, and the cookies are still
there.

Unless I'mm understanding your situation incorrectly

Matt Kruse


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



ActionErrors - errors showing up in random order

2003-06-25 Thread Emma Gabriela Guevara
Hi.
I am having problems with the order of errors that are being displayed when I use: 

in my validate method, I add errors in a specified order, but that's not the same 
order I see when errors are displayed.
Can anyone help me?
Thanks.


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

problem with struts bean tag when created on the fly

2003-06-25 Thread Ashish Kulkarni
Hi,
I am trying to the following, I have a java class
which builds a String for displaying in webpage,
I have some code in this class which builds String as
if it is struts bean tag, like my string when build
looks like this
''
and the java code to build this is
String title = new String("\'" + "+"\'");
and then i print this String at run time
but the problem is the bean tag does notand get
blanks, the value for report is not retrieved from
properties file.
why is this happening like this

Ashish

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

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



RE: Problems removing (expiring Cookie) in Action

2003-06-25 Thread Kruse, Matt
> Is there anything that I need ot be aware of in terms of
> expiring/removing a Cookie within an Action?  I'm setting the maximum
> age to 0 and then adding the cookie back to the response and somehow
> that cookie shows up after I've forwarded my request to the 
> next action.
> I'm I missing a step?  

The cookie will continue to exist in your request until the server sends the
response back without the cookie, and the browser makes another request not
including the cookie.

If you are forwarding from one Action to another without redirect, you get
the same request as the first action, and the cookies are still there.

Unless I'mm understanding your situation incorrectly

Matt Kruse



RE: Problems removing (expiring Cookie) in Action

2003-06-25 Thread Peter Abbot
Setting it to 0 means that it will only be deleted once the browser
closes. I remember seeing a posting a while ago that suggested that if
you want to delete a cookie immediately then set the max age to 1.

Pete

-Original Message-
From: Jeremy Nix [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 26 June 2003 8:06 a.m.
To: [EMAIL PROTECTED]
Subject: Problems removing (expiring Cookie) in Action


Is there anything that I need ot be aware of in terms of
expiring/removing a Cookie within an Action?  I'm setting the maximum
age to 0 and then adding the cookie back to the response and somehow
that cookie shows up after I've forwarded my request to the next action.
I'm I missing a step?  

_
Jeremy Nix
Senior Application Developer
Southwest Financial Ltd.
[EMAIL PROTECTED]
(513) 621-6699 ext 1158


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



Problems removing (expiring Cookie) in Action

2003-06-25 Thread Jeremy Nix
Is there anything that I need ot be aware of in terms of
expiring/removing a Cookie within an Action?  I'm setting the maximum
age to 0 and then adding the cookie back to the response and somehow
that cookie shows up after I've forwarded my request to the next action.
I'm I missing a step?  

_
Jeremy Nix
Senior Application Developer
Southwest Financial Ltd.
[EMAIL PROTECTED]
(513) 621-6699 ext 1158



RE: can't redirect out of the context

2003-06-25 Thread Nielsen, Jim


Nick,
I ran into a need to do the same.

1. I believe you need Struts 1.1.
2. In my Action I have code that gets a destination url from a properties
file based on parameters.

// determine the destination based on the params in the LinkParams
// create a LinkMapper based on Div key

LinkMapper myLinkMapper =
LinkMapperManager.getLinkMapper(aLinkReq.getDiv());
String newDest = myLinkMapper.findRedirectUrl(aLinkReq);

ActionForward af;
if (newDest == null)
{
af = mapping.findForward("DefaultDest");
af.setRedirect(true);
newDest = af.getPath();
}
else
{
af = new ActionForward(newDest, true);
}
// do a redirect to the destination
return af;


My action in the struts-config.xml file looks like this.


http://www.yahoo.com";
contextRelative="true" redirect="true" />


Hope it helps.

Jim Nielsen
EDS
[EMAIL PROTECTED]
phone: (810) 234-4025 (8-394)
AOL IM: JimRNielsenEDS
jabber id: [EMAIL PROTECTED]

GLTC-B
4100 S. Saginaw., MC:  485-303-321
Flint, MI  48557


-Original Message-
From: Afshartous, Nick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 2:04 PM
To: '[EMAIL PROTECTED]'
Subject: can't redirect out of the context



Hi,

I'm trying to have an Action redirect to yahoo using the lines
below. However, the servlet context is getting prepended
and the error is

   The requested resource (/acme/www.yahoo.com) is not available.

Setting contextRelative did not make a difference.

Thanks for any suggestions.  
--
Nick




 ActionForward forward = new RedirectingActionForward("www.yahoo.com");

 forward.setContextRelative(false);

 return forward;

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



RE: Struts File Upload w/DynaForm

2003-06-25 Thread Bailey, Shane C.

I see that my problem is that I was using DiskFile instead of FormFile as a
member of my DynaBean.  I need to get the full (client side) path of the
file. I thought I could just use DiskFileS getFilePath() method.

I noticed the example at the following URL returns the whole path when using
IE and just the file name when using NS:
http://www.cs.tut.fi/~jkorpela/forms/file.html#present

So it must be possible, at least with IE, to get the client side full path
of an uploaded file.

Any suggestions?


-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 25, 2003 3:06 PM
To: [EMAIL PROTECTED]
Subject: Struts File Upload w/DynaForm

 

Trying to use file upload with struts for the first time I get an exception:

org.apache.commons.beanutils.ConversionException: Cannot assign value of
type
'org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFile' to
property 'fileContent' of type 'org.apache.struts.upload.DiskFile'
at
org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:423)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1769)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1684)

 

 

struts config:



 

JSP:



 

 

Any, suggestions?  Any examples online?  I have looked in the archive just
to get this far.

 


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



RE: ExceptionConfig bundle Attribute & Using Multiple Message Resources.

2003-06-25 Thread Butash, Bob
I have read the API as well as some books on the topic...but no where have
I seen where this attribute could be used.

I do not believe the JSP has visibility to the ExceptionConfig, nor would it
make sense to give them visibility since the JSP should not have knowledge
that an exception occurred, they should just work with the
ActionErrors/Messages.

The ExceptionConfig is passed into the ExceptionHandler, but since there is
no visibility to the ServletContext there is no way you could obtain the
message-resource based on the bundle name.

That is why I was asking what is the intended purpose of this attribute,
maybe I'm missing something.  I was hoping to use it in a subclass of
ExceptionHandler so I could log the message that was associated with the
Exception.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 3:18 PM
To: Struts Users Mailing List
Subject: Re: ExceptionConfig bundle Attribute & Using Multiple Message
Resources.


>From the struts-config_1_1.dtd

 From: Butash, Bob [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 12:41 PM
> To: 'Struts Users Mailing List'
> Subject: ExceptionConfig bundle Attribute & Using Multiple Message
> Resourc es.
>
>
> We are trying to create an ExceptionHandler that has some built in logging
> capabilities and one of the items that we would like to log is the
Formatted
> message that is associated with the Error key.  So we are trying to
> determine a way to get visibility to the message resources.  The
> ExceptionHandler's execute method does not get the Action class therefore
> there is no visibility to the ServletContext.  Does anyone have any ideas
in
> this area?
>
> Also while we were investigating this we stumbled on a couple of questions
> that we have not been able to resolve.
>
> ExceptionConfig has a bundle attribute:
> I have seen very little documentation as to what this is actually used
for.
> If I provide an actual ResourceBundle name here it is not used when
> formatting the message to the view.  Does anyone know what this is
intended
> to be used for?
>
> Taking advantage of multiple message resources:
> It is clearly documented how you establish multiple message-resources, but
I
> have not been able to locate how you designate that you want to use a
> secondary message resource.  For example I want to create an ActionError
> with a message key that is obtained from a different message resource
file,
> how is this done?
>
> Any help would be great, thanks in advance.
>
> -
> 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: Indexed properties and JavaScript

2003-06-25 Thread Fabiano de O. Lucchese
Perfect !
Thank you and Ted.

FLu-X

--- "Kruse, Matt" <[EMAIL PROTECTED]> wrote:
> > I hadn't tryied this, and it has worked on IE 6
> and
> > Opera 7.1, but not on Netscape 7 !
> 
> Try this instead:
> 
> document.forms['testForm']['att[0]'].value
> 
> That should work in any browser.
> 
> Matt Kruse
> 


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



Where do I find all the potential options for requiredif validation?

2003-06-25 Thread Mick Knutson
The FA only shows a few of the options. Is there a NULL, NOTEQUALS etc
Where can I find the list of options?
---
Thanks...
Mick Knutson
---
_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

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


RE: Indexed properties and JavaScript

2003-06-25 Thread Kruse, Matt
> I hadn't tryied this, and it has worked on IE 6 and
> Opera 7.1, but not on Netscape 7 !

Try this instead:

document.forms['testForm']['att[0]'].value

That should work in any browser.

Matt Kruse


RE: Indexed properties and JavaScript

2003-06-25 Thread Fabiano de O. Lucchese
Hi, Ted.

I hadn't tryied this, and it has worked on IE 6 and
Opera 7.1, but not on Netscape 7 !

Do you know if this syntax isn't 100 % compliant to
the JavaScript standard or if Netscape has
implementation problems ?

Thank you very much anyway.

FLu-X

--- "Jones, Ted" <[EMAIL PROTECTED]> wrote:
> Have you tried:
> 
>
onclick="alert(document.testForm.elements['att[0]'].value)"
> 
> ?
> 
> 
> -Original Message-
> From: Fabiano de O. Lucchese
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 1:53 PM
> To: [EMAIL PROTECTED]
> Subject: Indexed properties and JavaScript
> 
> 
> Hi All,
> 
> I've been trying to develop a Struts based web site
> and got stuck by the following problem: I have
> defined
> a form bean that contains indexed properties; thus,
> I'm supposed to use squared brackets "[x]" to refer
> to
> the individual elements of each of these "array-like
> properties" into my HTML/JSP page; on the other
> hand,
> I also had to embbed some javascript code in this
> page
> in order to enlighten the server-side processing.
> The
> problem is that I just can't use javascript code
> along
> with "array-like properties" because the brackets
> used
> by them seem to conflict with the javascript syntax.
> 
> The following sample code reproduces this problem:
> 
> 
> 
> test
> 
> 
> 
>  name="testForm">
>  name="att[0]">
>  onclick="alert(document.testForm.att[0])"
> value="test">
> 
> 
> 
> 
> and the error message is something like:
> "document.testForm.att.0 is null or is not an
> object".
> 
> One should notice that when the index reference [0]
> is
> deleted, the page works fine.
> 
> Does anyone here has any experience with this
> problem
> ?
> 
> Thanks in advance.
> 
> FLu-X
> 
> 
> __
> 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]
> 
> 
> 
> Confidentiality Warning:  This e-mail contains
> information intended only for the use of the
> individual or entity named above.  If the reader of
> this e-mail is not the intended recipient or the
> employee or agent responsible for delivering it to
> the intended recipient, any dissemination,
> publication or copying of this e-mail is strictly
> prohibited. The sender does not accept any
> responsibility for any loss, disruption or damage to
> your data or computer system that may occur while
> using data contained in, or transmitted with, this
> e-mail.   If you have received this e-mail in error,
> please immediately notify us by return e-mail. 
> Thank you.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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

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



RE: I8ln question

2003-06-25 Thread David Tobey
Seems like either option would work. #1 would be best if you're more likely
to add/change the languages you support, and #2 if you're more likely to
add/change the categories you offer.

> -Original Message-
> From: Brian McSweeney [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 5:56 AM
> To: [EMAIL PROTECTED]
> Subject: I8ln question
>
>
> Hi folks,
>
> In my application I have multiple category entries stored in a database
> table named "categories".
> For each entry, I have a name and a description field.
>
> I want to internationalize the application with struts and have
> identified two possible approaches.
>
> 1)   Set up a resource bundle which contains keys which are the same
> as the database entries
> for name and description and use the  tag to display
> the correct name.
>
> For example, say I have two category entries:
>
> Name: fish
> Description: fishdesc
>
> Name: dogs
> Description: dogsdesc
>
> Now in my resource bundle I can put:
>
> fish=fish
> fishdesc=this category is for fishes
>
> dogs=dogs
> dogsdesc=this category is for dogs
>
> And so, in my jsp I could hopefully use the  key= />
> to display the correct thing. Adding a new language should
> be simple here.
>
> 2)   I could also do this completely in the database, by creating a
> language mapping table
> For example
>
>  ------
> |   Category  | | CategoryI8ln |
> 1__*
> | PK || Name
> |
> --- |
> Description   |
> | Language
> |
>
> -
>
> I would really like anyone's experience with trying to
> internationalize data that is stored in
> the database that won't change that often using struts. Do
> you think option 1 or 2 is better,
> or do you have a different solution?
>
> The advantages of solution 1 over solution 2 as I see them
> are:
>
> Simple database structure
> No need to have the database set up for UTF-8
>
> The disadvantages of solution 1 over solution 2 as I see
> them are:
>
> Replication of the information in the database
> Can't add a new category on the fly
>
> Any comments, suggestions would be much appreciated.
> Thanks,
> Brian
>


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



Re: ExceptionConfig bundle Attribute & Using Multiple Message Resources.

2003-06-25 Thread James Mitchell
>From the struts-config_1_1.dtd

 From: Butash, Bob [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 12:41 PM
> To: 'Struts Users Mailing List'
> Subject: ExceptionConfig bundle Attribute & Using Multiple Message
> Resourc es.
>
>
> We are trying to create an ExceptionHandler that has some built in logging
> capabilities and one of the items that we would like to log is the
Formatted
> message that is associated with the Error key.  So we are trying to
> determine a way to get visibility to the message resources.  The
> ExceptionHandler's execute method does not get the Action class therefore
> there is no visibility to the ServletContext.  Does anyone have any ideas
in
> this area?
>
> Also while we were investigating this we stumbled on a couple of questions
> that we have not been able to resolve.
>
> ExceptionConfig has a bundle attribute:
> I have seen very little documentation as to what this is actually used
for.
> If I provide an actual ResourceBundle name here it is not used when
> formatting the message to the view.  Does anyone know what this is
intended
> to be used for?
>
> Taking advantage of multiple message resources:
> It is clearly documented how you establish multiple message-resources, but
I
> have not been able to locate how you designate that you want to use a
> secondary message resource.  For example I want to create an ActionError
> with a message key that is obtained from a different message resource
file,
> how is this done?
>
> Any help would be great, thanks in advance.
>
> -
> 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]



Struts File Upload w/DynaForm

2003-06-25 Thread Bailey, Shane C.
 

Trying to use file upload with struts for the first time I get an exception:

org.apache.commons.beanutils.ConversionException: Cannot assign value of
type
'org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFile' to
property 'fileContent' of type 'org.apache.struts.upload.DiskFile'
at
org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:423)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1769)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1684)

 

 

struts config:



 

JSP:



 

 

Any, suggestions?  Any examples online?  I have looked in the archive just
to get this far.

 



RE: How To Render Binary Output - spreadsheet - from Struts

2003-06-25 Thread Michael Remijan
Make a servlet call, then set the response content type as

response.setContentType("application/vnd.ms-excel");

and then write the contents of the excel spreedsheet the the reponse output stream.  
If you have a hyperlink on a jsp page that has an href like this:

  http://localhost/context/do-export-mapping

then by setting the content type above will cause excel to open automatically.

Mike

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



RE: Indexed properties and JavaScript

2003-06-25 Thread Jones, Ted
Have you tried:

onclick="alert(document.testForm.elements['att[0]'].value)"

?


-Original Message-
From: Fabiano de O. Lucchese [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:53 PM
To: [EMAIL PROTECTED]
Subject: Indexed properties and JavaScript


Hi All,

I've been trying to develop a Struts based web site
and got stuck by the following problem: I have defined
a form bean that contains indexed properties; thus,
I'm supposed to use squared brackets "[x]" to refer to
the individual elements of each of these "array-like
properties" into my HTML/JSP page; on the other hand,
I also had to embbed some javascript code in this page
in order to enlighten the server-side processing. The
problem is that I just can't use javascript code along
with "array-like properties" because the brackets used
by them seem to conflict with the javascript syntax.

The following sample code reproduces this problem:



test










and the error message is something like:
"document.testForm.att.0 is null or is not an object".

One should notice that when the index reference [0] is
deleted, the page works fine.

Does anyone here has any experience with this problem
?

Thanks in advance.

FLu-X


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



Confidentiality Warning:  This e-mail contains information intended only for the use 
of the individual or entity named above.  If the reader of this e-mail is not the 
intended recipient or the employee or agent responsible for delivering it to the 
intended recipient, any dissemination, publication or copying of this e-mail is 
strictly prohibited. The sender does not accept any responsibility for any loss, 
disruption or damage to your data or computer system that may occur while using data 
contained in, or transmitted with, this e-mail.   If you have received this e-mail in 
error, please immediately notify us by return e-mail.  Thank you.


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



Re: How To Render Binary Output - spreadsheet - from Struts

2003-06-25 Thread douglas reames
Thanks Dan.

Problem is though, sometimes my clients want their Excel spreadsheets.  If 
you have any advise on how to output a binary stream from JSP - such as that 
which would be produced by POI - I would be grateful to hear it.

The User Guide ( 3.4.4 Image Rendering Components ) provides some guidance 
on rendering binary images:  "Render a hyperlink with a URL that executes a 
servlet request. The servlet will use a graphics library to render the 
graphical image ...".  I am afraid I am missing the boat here, if they are 
talking about rendering 'on the fly'.

regards,
Doug Reames

From: "Dan Tran" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: How To Render Binary Output  - spreadsheet - from Struts
Date: Wed, 25 Jun 2003 11:40:39 -0700
use display tag, it can do it for you transparently

http://edhill.its.uiowa.edu/display/

-Dan

- Original Message -
From: "douglas reames" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:24 AM
Subject: How To Render Binary Output - spreadsheet - from Struts
> I need to render a POI constructed spreadsheet on the fly.
>
> With Struts I can:
> [1] [ Action / Business Bean ] dynamically design - based on user's
> selections,
> [2] [ JSP ] construct a java file,
> [3] [ JSP ] compile the java file.
> [4] [ JSP ] execute the class file
>
> Will JSP output a Byte Array to the Response output stream?
>
> regards,
> Douglas Reames
>
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> -
> 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]
_
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]


RE: ExceptionConfig bundle Attribute & Using Multiple Message Resources.

2003-06-25 Thread Butash, Bob
I have figured out how to use different message resources, based on a
response to a previous post.

I still have not found further information regarding the bundle attribute on
ExceptionConfig.

ExceptionConfig has a bundle attribute:
I have seen very little documentation as to what this is actually used for.
If I provide an actual ResourceBundle name here it is not used when
formatting the message to the view.  Does anyone know what this is intended
to be used for?

Any help would be appreciated.

-Original Message-
From: Butash, Bob [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 12:41 PM
To: 'Struts Users Mailing List'
Subject: ExceptionConfig bundle Attribute & Using Multiple Message
Resourc es.


We are trying to create an ExceptionHandler that has some built in logging
capabilities and one of the items that we would like to log is the Formatted
message that is associated with the Error key.  So we are trying to
determine a way to get visibility to the message resources.  The
ExceptionHandler's execute method does not get the Action class therefore
there is no visibility to the ServletContext.  Does anyone have any ideas in
this area?

Also while we were investigating this we stumbled on a couple of questions
that we have not been able to resolve.

ExceptionConfig has a bundle attribute:
I have seen very little documentation as to what this is actually used for.
If I provide an actual ResourceBundle name here it is not used when
formatting the message to the view.  Does anyone know what this is intended
to be used for?

Taking advantage of multiple message resources:
It is clearly documented how you establish multiple message-resources, but I
have not been able to locate how you designate that you want to use a
secondary message resource.  For example I want to create an ActionError
with a message key that is obtained from a different message resource file,
how is this done?

Any help would be great, thanks in advance.

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



Indexed properties and JavaScript

2003-06-25 Thread Fabiano de O. Lucchese
Hi All,

I've been trying to develop a Struts based web site
and got stuck by the following problem: I have defined
a form bean that contains indexed properties; thus,
I'm supposed to use squared brackets "[x]" to refer to
the individual elements of each of these "array-like
properties" into my HTML/JSP page; on the other hand,
I also had to embbed some javascript code in this page
in order to enlighten the server-side processing. The
problem is that I just can't use javascript code along
with "array-like properties" because the brackets used
by them seem to conflict with the javascript syntax.

The following sample code reproduces this problem:



test










and the error message is something like:
"document.testForm.att.0 is null or is not an object".

One should notice that when the index reference [0] is
deleted, the page works fine.

Does anyone here has any experience with this problem
?

Thanks in advance.

FLu-X


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



[OT] Scrollable Result Set

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
Hey,
I'm trying to use a PreparedStatement to get a ResultSet.  I know how to get
a customized ResultSet if you're only using a Statement, but how can I get a
scrollable ResultSet with my PreparedStatement?
Thanks!

 - Keith

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



Re: How To Render Binary Output - spreadsheet - from Struts

2003-06-25 Thread Dan Tran
use display tag, it can do it for you transparently

http://edhill.its.uiowa.edu/display/

-Dan

- Original Message - 
From: "douglas reames" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 11:24 AM
Subject: How To Render Binary Output - spreadsheet - from Struts


> I need to render a POI constructed spreadsheet on the fly.
> 
> With Struts I can:
> [1] [ Action / Business Bean ] dynamically design - based on user's 
> selections,
> [2] [ JSP ] construct a java file,
> [3] [ JSP ] compile the java file.
> [4] [ JSP ] execute the class file
> 
> Will JSP output a Byte Array to the Response output stream?
> 
> regards,
> Douglas Reames
> 
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*.  
> http://join.msn.com/?page=features/featuredemail
> 
> 
> -
> 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] opening URI in mozilla

2003-06-25 Thread Ashish Kulkarni
Hi,
I have a link on one of the jsp which opens a local
file from the client PC, i am working on intranet
application so this is fine by me, 
so my path in HTML tag looks like this
file:///C:/cognos/scheduling/Scenario.imr

This works perfect in IE , but i get error in mozilla
and netscape, saying

Security Error: Content at
http://localhost:8080/testapp/menu/mapsmenu.jsp may
not load or link to
file:///C:/cognos/scheduling/Scenario.imr.

Error: uncaught exception: [Exception... "Access to
restricted URI denied"  code: "1012" nsresult:
"0x805303f4 (NS_ERROR_DOM_BAD_URI)"  location:
"http://localhost:8080/testapp/menu/coolmenus4.js
Line: 419"]

any workaround or any forum where i can post this
question
Ashish

=
A$HI$H

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



How To Render Binary Output - spreadsheet - from Struts

2003-06-25 Thread douglas reames
I need to render a POI constructed spreadsheet on the fly.

With Struts I can:
[1] [ Action / Business Bean ] dynamically design - based on user's 
selections,
[2] [ JSP ] construct a java file,
[3] [ JSP ] compile the java file.
[4] [ JSP ] execute the class file

Will JSP output a Byte Array to the Response output stream?

regards,
Douglas Reames
_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


can't redirect out of the context

2003-06-25 Thread Afshartous, Nick

Hi,

I'm trying to have an Action redirect to yahoo using the lines
below. However, the servlet context is getting prepended
and the error is

   The requested resource (/acme/www.yahoo.com) is not available.

Setting contextRelative did not make a difference.

Thanks for any suggestions.  
--
Nick




 ActionForward forward = new RedirectingActionForward("www.yahoo.com");

 forward.setContextRelative(false);

 return forward;


RE: Checking for a null property

2003-06-25 Thread Jindal, Ashwini
Hello Lin,

Can you tell me what version of Struts does the empty tags belong to? I am using the 
WSAD for our development and I am getting and error when I insert an empty or notEmpty 
tags.

Do I have to import any/another jar file for this?

Thanks,
...AJ


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 4:12 PM
To: 'Struts Users Mailing List'
Subject: RE: Checking for a null property




Evaluate if not null;   


>From struts api ref:
Evaluate the nested body content of this tag if the requested variable is
neither null, nor an empty string, nor an empty java.util.Collection (tested by
the .isEmpty() method on the java.util.Collection interface).












-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: June 24, 2003 4:04 PM
To: [EMAIL PROTECTED]
Subject: RE: Checking for a null property


But doesn't the present tag just check whether the property is present, and 
not if it is null or not? I was having some strange actions with this.



---
Thanks...
Mick Knutson
---





>From: "Varun Garg" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Subject: RE: Checking for a null property
>Date: Tue, 24 Jun 2003 17:00:28 -0500
>
>
>   
>
>
>
>-Original Message-
>From: Jindal, Ashwini [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 24, 2003 4:57 PM
>To: [EMAIL PROTECTED]
>Subject: Checking for a null property
>Importance: High
>
>
>Anyone,
>
>Can anyone please help me with the following situation?
>
>I am trying to display the Agent's full Name. Now it works fine as long
>as the Agent has a valid full Name. As soon as Agent is null, I get a
>Null Pointer. I want to check
>
>   
>
>   if the agent is null
>   then do something
>
>Can please tell me how I can make this check?
>
>Thank you,
>...AJ
>
>-
>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]
>

_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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



I get only digests

2003-06-25 Thread Wolfgang Woger
Hi,
why do I only get digests from [EMAIL PROTECTED] ?
and not separate messages from the members 
in the list.
(with [EMAIL PROTECTED] it works)
What am I doing wrong?

Thanks Wolfgang


RE: Checking for a null property

2003-06-25 Thread David Graham
--- "Jindal, Ashwini" <[EMAIL PROTECTED]> wrote:
> Affan,
> 
> Where does this C: tag come from???

The c tags are part of the JSTL.

David

> 
> ...AJ
> 
> -Original Message-
> From: Affan Qureshi [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 4:18 AM
> To: Struts Users Mailing List
> Subject: Re: Checking for a null property
> 
> 
> Save yourself all the trouble and use 
> Affan
> - Original Message -
> From: "Varun Garg" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Wednesday, June 25, 2003 3:24 AM
> Subject: RE: Checking for a null property
> 
> 
> > I think you can use empty also, but present also works for me.
> >
> > The documentation also suggests that
> > property - Checks for the existence of a non-null property value,
> > returned by a property getter method on the JSP bean (in any scope)
> that
> > is specified by the name attribute. Property references can be simple,
> > nested, and/or indexed.
> >
> > I have used the empty more for collections to make sure there is
> > something in there.
> >
> > Varun
> >
> >
> > -Original Message-
> > From: Mick Knutson [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 24, 2003 5:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Checking for a null property
> >
> >
> > But doesn't the present tag just check whether the property is
> present,
> > and
> > not if it is null or not? I was having some strange actions with this.
> >
> >
> >
> > ---
> > Thanks...
> > Mick Knutson
> > ---
> >
> >
> >
> >
> >
> > >From: "Varun Garg" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> > >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > >Subject: RE: Checking for a null property
> > >Date: Tue, 24 Jun 2003 17:00:28 -0500
> > >
> > >
> > > 
> > >
> > >
> > >
> > >-Original Message-
> > >From: Jindal, Ashwini [mailto:[EMAIL PROTECTED]
> > >Sent: Tuesday, June 24, 2003 4:57 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: Checking for a null property
> > >Importance: High
> > >
> > >
> > >Anyone,
> > >
> > >Can anyone please help me with the following situation?
> > >
> > >I am trying to display the Agent's full Name. Now it works fine as
> long
> >
> > >as the Agent has a valid full Name. As soon as Agent is null, I get a
> > >Null Pointer. I want to check
> > >
> > > 
> > >
> > > if the agent is null
> > > then do something
> > >
> > >Can please tell me how I can make this check?
> > >
> > >Thank you,
> > >...AJ
> > >
> > >-
> > >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]
> > >
> >
> > _
> > Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> > http://join.msn.com/?page=features/featuredemail
> >
> >
> > -
> > 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]
> 


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

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



RE: Checking for a null property

2003-06-25 Thread Jindal, Ashwini
Affan,

Where does this C: tag come from???

...AJ

-Original Message-
From: Affan Qureshi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:18 AM
To: Struts Users Mailing List
Subject: Re: Checking for a null property


Save yourself all the trouble and use 
Affan
- Original Message -
From: "Varun Garg" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 3:24 AM
Subject: RE: Checking for a null property


> I think you can use empty also, but present also works for me.
>
> The documentation also suggests that
> property - Checks for the existence of a non-null property value,
> returned by a property getter method on the JSP bean (in any scope) that
> is specified by the name attribute. Property references can be simple,
> nested, and/or indexed.
>
> I have used the empty more for collections to make sure there is
> something in there.
>
> Varun
>
>
> -Original Message-
> From: Mick Knutson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 24, 2003 5:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Checking for a null property
>
>
> But doesn't the present tag just check whether the property is present,
> and
> not if it is null or not? I was having some strange actions with this.
>
>
>
> ---
> Thanks...
> Mick Knutson
> ---
>
>
>
>
>
> >From: "Varun Garg" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> >Subject: RE: Checking for a null property
> >Date: Tue, 24 Jun 2003 17:00:28 -0500
> >
> >
> > 
> >
> >
> >
> >-Original Message-
> >From: Jindal, Ashwini [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, June 24, 2003 4:57 PM
> >To: [EMAIL PROTECTED]
> >Subject: Checking for a null property
> >Importance: High
> >
> >
> >Anyone,
> >
> >Can anyone please help me with the following situation?
> >
> >I am trying to display the Agent's full Name. Now it works fine as long
>
> >as the Agent has a valid full Name. As soon as Agent is null, I get a
> >Null Pointer. I want to check
> >
> > 
> >
> > if the agent is null
> > then do something
> >
> >Can please tell me how I can make this check?
> >
> >Thank you,
> >...AJ
> >
> >-
> >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]
> >
>
> _
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> -
> 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: Error in Tiles Tutorial?

2003-06-25 Thread Marius Scurtescu
The problem is still there in RC2, it would be really nice if this
toturial makes it into the final release. I posted a bug on this
regard: 21090
Thanks for the link to the old tutorial Cedric. Is there a newer
one? If yes, is there any way to read/get that tutorial?
Marius

Cedric Dumoulin wrote:
 This error means that the definition "mainLayout" doesn't exist in the 
tile factory associated to the current module.
 Apparently, this link doesn't work anymore in the 
tiles-documentation.war :-(.
 The (old) tutorial can still be found there 
http://www.lifl.fr/~dumoulin/tiles/doc/tutorialBody.html

Cedric

K.C. Baltz wrote:

I tried to run through the Tiles tutorial this morning and ran into a 
problem right off the bat.  I have Struts 1.1 RC1 and have deployed 
tiles-documentation.war into Tomcat 4.1.   I can view most of the 
documentation, but when I click on the Tutorial link 
(http://localhost:8080/tiles-documentation/doc/tutorial.jsp), I get 
the following exception:
org.apache.jasper.JasperException: Error - Tag Insert : Can't get 
definition 'mainLayout'. Check if this name exist in definitions factory.

Everything in the configuration looks OK to me at first blush, but if 
I really knew how to track down a problem like this, I wouldn't need 
the tutorial, would I?  :)

I've tried redeploying the WAR with no success.Does the tutorial 
work for anyone else?

K.C.



-
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: requiredif question

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
Here's my struts-config and my validation.xml.  I've also attached them, if
it's easier to look at that way.  I've only shown parts of my
struts-config.xml, enough to show one example action that isn't validating
right.
___

Struts-Config snippets:






















___

Validation.xml:



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






















If I should send any other files, let me know.
Any input would be great, thanks!


- Keith







-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:32 PM
To: [EMAIL PROTECTED]
Subject: RE: requiredif question


I did not see yours. Can you post your code again?



---
Thanks...
Mick Knutson
---





>From: "Kamholz, Keith   (corp-staff) USX" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: requiredif question
>Date: Wed, 25 Jun 2003 13:26:48 -0400
>
>I'm having a similar problem.  All I'm trying to do is have a 'required'
>condition for 2 fields of my form.  Mine submits just fine when I leave it
>blank as well.  I posted my code here yesterday, but nobody was able to 
>help
>me.  If you figure this out, I'd appreciate it if you let me know what the
>problem is.  I'll do the same!
>
>- Keith
>
>
>-Original Message-
>From: Mick Knutson [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 25, 2003 1:26 PM
>To: [EMAIL PROTECTED]
>Subject: Re: requiredif question
>
>
>Yes, no matter what I enter, nothing happends at all. It just accepts
>whatever I enter, or leave blank, and submits just fine.
>
>
>
>---
>Thanks...
>Mick Knutson
>---
>
>
>
>
>
> >From: Kevin Robair <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >Subject: Re: requiredif question
> >Date: Wed, 25 Jun 2003 10:20:35 -0700 (PDT)
> >
> >Just a hunch:
> >
> >For Struts 1.1RC1 , the varnames should be:
> >
> >field-test[x]
> >field-join
> >etc...
> >
> >In 1.1RC2, they are
> >
> >fieldTest[n]
> >fieldJoin
> >etc
> >
> >BTW, I am unsure what you mean by:
> >
> >   "does not seem to operate at all"
> >
> >Are there any errors or exceptions in the log? If the form validates no
> >matter what you enter, and there are no errors in the log, then it is
> >possibly a configuration problem. You could try a simpler validation, in
> >place of this one just to make sure it is doing something. Then, remove
> >the NOTNULL check, and see if the NOTEQUAL alone works.
> >
> >-Kevin
> >
> >--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> > > I have the following code that does not seem to operate at all.
> > >
> > > I want phone1type to be a required field _if_ the phone1 attribute is
> > > _not_
> > > ""
> > >
> > >  > > depends="requiredif">
> > > 
> > > 
> > > field[0]
> > > phone1
> > > 
> > > 
> > > fieldTest[0]
> > > NOTNULL
> > > 
> > > 
> > > field[1]
> > > phone1
> > >   
> > >   
> > > fieldTest[1]
> > > NOTEQUAL
> > >   
> > >   
> > > fieldValue[1]
> > >  
> > >   
> > >   
> > > fieldJoin
> > > OR
> > > 
> > > 
> > >
> > >
> > >
> > >
> > > ---
> > > Thanks...
> > > Mick Knutson
> > > ---
> > >
> > > _
> > > 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]
> >
>
>_
>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 unsubs

Re: Question - how many of us?

2003-06-25 Thread Craig R. McClanahan


On Wed, 25 Jun 2003, Igor Shabalov wrote:

> Date: Wed, 25 Jun 2003 10:04:24 -0700
> From: Igor Shabalov <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Question - how many of us?
>
>
> Do anybody have any idea how many Struts users exists or how many downloads
> of Struts runtime per month we have now?

It's pretty hard to track stuff like this, but here's a few nuggets:

* Currently there are 2744 subscribers to STRUTS-USER (plus an unknown
  number who read it through newsfeed mirrors).  It's the largest
  user mailing list at Jakarta, exceeding TOMCAT-USER that has ~2400.

* Download counts are really hard to accumulate now that we are using
  the mirroring system, but last summer Struts was averaging
  8-9000 downloads per month.  I expect that number is somewhat higher
  now.

* The upcoming 1.1 final release will probably send that number
  through the roof, at least temporarily :-).

* Vadim Gritsenko accumulates and posts some high level statistics
  for Apache web sites that can be interesting to peruse:

http://www.apache.org/~vgritsenko/stats/index.html

  Struts definitely shows up as an active project there too.

Craig

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



RE: [OT] Empty Result Set

2003-06-25 Thread Jones, Ted
...or if you use executeQuery(), you could check to see if myResultSet
== null before looping through it.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 12:35 PM
To: Struts Users Mailing List
Subject: Re: [OT] Empty Result Set


boolean isEmpty = !rs.next();

David

--- "Kamholz, Keith   (corp-staff) USX" <[EMAIL PROTECTED]> wrote:
> Hey everyone,
> This isn't really a struts question, but it's applicable.  I'm just
> wondering how to find out if a ResultSet is empty or not after I
execute
> my
> query.  I've searched online, but I'm having a hard time finding much
of
> anything.
> Can I just use:
> 
> if (myResultSet.next() )
> {
>   empty = false;
> }
> else
> {
>   empty = true;
> }
> 
> 
> Would that work or would that not do what I'm looking for?
> Any help would be appreciated, thanks!
> 
> - Keith
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Confidentiality Warning:  This e-mail contains information intended only for the use 
of the individual or entity named above.  If the reader of this e-mail is not the 
intended recipient or the employee or agent responsible for delivering it to the 
intended recipient, any dissemination, publication or copying of this e-mail is 
strictly prohibited. The sender does not accept any responsibility for any loss, 
disruption or damage to your data or computer system that may occur while using data 
contained in, or transmitted with, this e-mail.   If you have received this e-mail in 
error, please immediately notify us by return e-mail.  Thank you.


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



Re: [OT] Empty Result Set

2003-06-25 Thread Mick Knutson
That should work fine. I usually do a while( result.next ){ process 
looping }



---
Thanks...
Mick Knutson
---




From: "Kamholz, Keith   (corp-staff) USX" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts (E-mail)" <[EMAIL PROTECTED]>
Subject: [OT] Empty Result Set
Date: Wed, 25 Jun 2003 13:30:34 -0400
Hey everyone,
This isn't really a struts question, but it's applicable.  I'm just
wondering how to find out if a ResultSet is empty or not after I execute my
query.  I've searched online, but I'm having a hard time finding much of
anything.
Can I just use:
if (myResultSet.next() )
{
empty = false;
}
else
{
empty = true;
}
Would that work or would that not do what I'm looking for?
Any help would be appreciated, thanks!
- Keith

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


Re: [OT] Empty Result Set

2003-06-25 Thread David Graham
boolean isEmpty = !rs.next();

David

--- "Kamholz, Keith   (corp-staff) USX" <[EMAIL PROTECTED]> wrote:
> Hey everyone,
> This isn't really a struts question, but it's applicable.  I'm just
> wondering how to find out if a ResultSet is empty or not after I execute
> my
> query.  I've searched online, but I'm having a hard time finding much of
> anything.
> Can I just use:
> 
> if (myResultSet.next() )
> {
>   empty = false;
> }
> else
> {
>   empty = true;
> }
> 
> 
> Would that work or would that not do what I'm looking for?
> Any help would be appreciated, thanks!
> 
> - Keith
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



[OT] Empty Result Set

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
Hey everyone,
This isn't really a struts question, but it's applicable.  I'm just
wondering how to find out if a ResultSet is empty or not after I execute my
query.  I've searched online, but I'm having a hard time finding much of
anything.
Can I just use:

if (myResultSet.next() )
{
empty = false;
}
else
{
empty = true;
}


Would that work or would that not do what I'm looking for?
Any help would be appreciated, thanks!

- Keith


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



RE: requiredif question

2003-06-25 Thread Mick Knutson
I did not see yours. Can you post your code again?



---
Thanks...
Mick Knutson
---




From: "Kamholz, Keith   (corp-staff) USX" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
Subject: RE: requiredif question
Date: Wed, 25 Jun 2003 13:26:48 -0400
I'm having a similar problem.  All I'm trying to do is have a 'required'
condition for 2 fields of my form.  Mine submits just fine when I leave it
blank as well.  I posted my code here yesterday, but nobody was able to 
help
me.  If you figure this out, I'd appreciate it if you let me know what the
problem is.  I'll do the same!

- Keith

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: requiredif question
Yes, no matter what I enter, nothing happends at all. It just accepts
whatever I enter, or leave blank, and submits just fine.


---
Thanks...
Mick Knutson
---




>From: Kevin Robair <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: requiredif question
>Date: Wed, 25 Jun 2003 10:20:35 -0700 (PDT)
>
>Just a hunch:
>
>For Struts 1.1RC1 , the varnames should be:
>
>field-test[x]
>field-join
>etc...
>
>In 1.1RC2, they are
>
>fieldTest[n]
>fieldJoin
>etc
>
>BTW, I am unsure what you mean by:
>
>   "does not seem to operate at all"
>
>Are there any errors or exceptions in the log? If the form validates no
>matter what you enter, and there are no errors in the log, then it is
>possibly a configuration problem. You could try a simpler validation, in
>place of this one just to make sure it is doing something. Then, remove
>the NOTNULL check, and see if the NOTEQUAL alone works.
>
>-Kevin
>
>--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> > I have the following code that does not seem to operate at all.
> >
> > I want phone1type to be a required field _if_ the phone1 attribute is
> > _not_
> > ""
> >
> >  > depends="requiredif">
> > 
> > 
> > field[0]
> > phone1
> > 
> > 
> > fieldTest[0]
> > NOTNULL
> > 
> > 
> > field[1]
> > phone1
> >   
> >   
> > fieldTest[1]
> > NOTEQUAL
> >   
> >   
> > fieldValue[1]
> >  
> >   
> >   
> > fieldJoin
> > OR
> > 
> > 
> >
> >
> >
> >
> > ---
> > Thanks...
> > Mick Knutson
> > ---
> >
> > _
> > 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]
>
_
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]
_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: requiredif question

2003-06-25 Thread Kamholz, Keith (corp-staff) USX
I'm having a similar problem.  All I'm trying to do is have a 'required'
condition for 2 fields of my form.  Mine submits just fine when I leave it
blank as well.  I posted my code here yesterday, but nobody was able to help
me.  If you figure this out, I'd appreciate it if you let me know what the
problem is.  I'll do the same!

- Keith


-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: requiredif question


Yes, no matter what I enter, nothing happends at all. It just accepts 
whatever I enter, or leave blank, and submits just fine.



---
Thanks...
Mick Knutson
---





>From: Kevin Robair <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: requiredif question
>Date: Wed, 25 Jun 2003 10:20:35 -0700 (PDT)
>
>Just a hunch:
>
>For Struts 1.1RC1 , the varnames should be:
>
>field-test[x]
>field-join
>etc...
>
>In 1.1RC2, they are
>
>fieldTest[n]
>fieldJoin
>etc
>
>BTW, I am unsure what you mean by:
>
>   "does not seem to operate at all"
>
>Are there any errors or exceptions in the log? If the form validates no
>matter what you enter, and there are no errors in the log, then it is
>possibly a configuration problem. You could try a simpler validation, in
>place of this one just to make sure it is doing something. Then, remove
>the NOTNULL check, and see if the NOTEQUAL alone works.
>
>-Kevin
>
>--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> > I have the following code that does not seem to operate at all.
> >
> > I want phone1type to be a required field _if_ the phone1 attribute is
> > _not_
> > ""
> >
> >  > depends="requiredif">
> > 
> > 
> > field[0]
> > phone1
> > 
> > 
> > fieldTest[0]
> > NOTNULL
> > 
> > 
> > field[1]
> > phone1
> >   
> >   
> > fieldTest[1]
> > NOTEQUAL
> >   
> >   
> > fieldValue[1]
> >  
> >   
> >   
> > fieldJoin
> > OR
> > 
> > 
> >
> >
> >
> >
> > ---
> > Thanks...
> > Mick Knutson
> > ---
> >
> > _
> > 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]
>

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



Re: requiredif question

2003-06-25 Thread Mick Knutson
Yes, no matter what I enter, nothing happends at all. It just accepts 
whatever I enter, or leave blank, and submits just fine.



---
Thanks...
Mick Knutson
---




From: Kevin Robair <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: requiredif question
Date: Wed, 25 Jun 2003 10:20:35 -0700 (PDT)
Just a hunch:

For Struts 1.1RC1 , the varnames should be:

field-test[x]
field-join
etc...
In 1.1RC2, they are

fieldTest[n]
fieldJoin
etc
BTW, I am unsure what you mean by:

  "does not seem to operate at all"

Are there any errors or exceptions in the log? If the form validates no
matter what you enter, and there are no errors in the log, then it is
possibly a configuration problem. You could try a simpler validation, in
place of this one just to make sure it is doing something. Then, remove
the NOTNULL check, and see if the NOTEQUAL alone works.
-Kevin

--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> I have the following code that does not seem to operate at all.
>
> I want phone1type to be a required field _if_ the phone1 attribute is
> _not_
> ""
>
>  depends="requiredif">
> 
> 
> field[0]
> phone1
> 
> 
> fieldTest[0]
> NOTNULL
> 
> 
> field[1]
> phone1
>   
>   
> fieldTest[1]
> NOTEQUAL
>   
>   
> fieldValue[1]
>  
>   
>   
> fieldJoin
> OR
> 
> 
>
>
>
>
> ---
> Thanks...
> Mick Knutson
> ---
>
> _
> 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]
_
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]


RE: Struts Taglib DTD's and Firewalls

2003-06-25 Thread Kevin Peters
We put ours in a dtd directory under the WEB-INF directory, our
validator.xml looks like this...



Hope this helps...


-Original Message-
From: Matt E [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:30 AM
To: Struts Users Mailing List
Subject: RE: Struts Taglib DTD's and Firewalls


Kevin,

I downloaded all the DTDs and editied the taglib and
XML files to remove the url but keep the DTD.  I now
get this error:

org.apache.jasper.compiler.CompileException:
/int0/webdata/swtools/apps/tir/toolDevelopmentRequest.jsp(0,0)
Unable to open taglibrary /WEB-INF/struts-html.tld :
Parse Error in the tag library descriptor: Relative
URI "web-app_2_3.dtd"; can not be resolved without a
base URI.

What do I need to do to tell the xml/tld files that
the dtd is in the same directory as the other files? 
Do I have to put an absoulte URL or can I get away
with a realitive path somehow?

Thanks


--- Kevin Peters <[EMAIL PROTECTED]>
wrote:
> That's what we did.  We downloaded all of the DTDs
> our application
> references so we can point to a local copy.  Make
> sure you keep them
> current, though.
> 
> 
> Kevin
> 
> -Original Message-
> From: Matt E [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 10:06 AM
> To: [EMAIL PROTECTED]
> Subject: Struts Taglib DTD's and Firewalls
> 
> 
> Hello All.
> 
> I'm attempting to deploy a Struts project to a
> server
> here at work.  Whenever I try to access any pages in
> it I get this error:
> 
> org.apache.jasper.compiler.CompileException:
>
/int0/webdata/swtools/apps/tir/toolDevelopmentRequest.jsp(0,0)
> Unable to open taglibrary /WEB-INF/struts-html.tld :
> Parse Error in the tag library descriptor: External
> entity not found:
> "http://java.sun.com/dtd/web-app_2_3.dtd";.
> 
> I think this is due to a firewall that blocks all
> access to external sites unless you have entered a
> username and password.
> 
> From my local machine I can access the dtd.  Is
> there
> anyway to put a copy of it on the local machine, and
> then tell the tag libs to look at the local copy of
> the dtd?
> 
> I don't want to try to get a hole broken in the
> firewall for this.
> 
> Thanks all!
> 
> __
> 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]
> 
> 
>
***
> 
> This electronic mail transmission contains
> confidential and/or privileged 
> information intended only for the person(s) named. 
> Any use, distribution, 
> copying or disclosure by another person is strictly
> prohibited. 
>
***
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


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


*** 
This electronic mail transmission contains confidential and/or privileged 
information intended only for the person(s) named.  Any use, distribution, 
copying or disclosure by another person is strictly prohibited. 
*** 



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



Re: requiredif question

2003-06-25 Thread Kevin Robair
Just a hunch:

For Struts 1.1RC1 , the varnames should be:

field-test[x]
field-join
etc...

In 1.1RC2, they are

fieldTest[n]
fieldJoin  
etc

BTW, I am unsure what you mean by:

  "does not seem to operate at all"

Are there any errors or exceptions in the log? If the form validates no
matter what you enter, and there are no errors in the log, then it is
possibly a configuration problem. You could try a simpler validation, in
place of this one just to make sure it is doing something. Then, remove
the NOTNULL check, and see if the NOTEQUAL alone works.

-Kevin

--- Mick Knutson <[EMAIL PROTECTED]> wrote:
> I have the following code that does not seem to operate at all.
> 
> I want phone1type to be a required field _if_ the phone1 attribute is
> _not_ 
> ""
> 
>  depends="requiredif">
> 
> 
> field[0]
> phone1
> 
> 
> fieldTest[0]
> NOTNULL
> 
> 
> field[1]
> phone1
>   
>   
> fieldTest[1]
> NOTEQUAL
>   
>   
> fieldValue[1]
>  
>   
>   
> fieldJoin
> OR
> 
> 
> 
> 
> 
> 
> ---
> Thanks...
> Mick Knutson
> ---
> 
> _
> 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]



Re: ActionForm

2003-06-25 Thread AJGadgil
Agreed.  Was just curious if Struts had an adequate solution for this type of 
problem.  Currently, I went back to using getParameterValues() which does an 
excellent job.


In a message dated 6/25/2003 1:14:48 PM Eastern Daylight Time, 
[EMAIL PROTECTED] writes:

> >I'm running into a problem with using ActioForm.  I mean I know how to do
> the
> >normal stuff like say a login form, but I'm running into serious issues
> when
> >it comes to a dynamic forms.  I writing a survey application and well the
> form
> >is created dynamically as I dunno how many questions will exist in the
> >survey.  The problem comes into the picture when i'm trying to collect the
> form
> >data.  It seems the value object needs to have a specific number of
> methods.  Any
> >way to make this dynamic??
> >
> >
> 
> When you don't know how many questions in the surveys, you might consider
> a map based property. But I don't believe this will give you much
> productivity
> gains comparing with the use of the ServletRequest.getParameterMap()
> method (The fundamental question becomes why you need form beans
> for this problem?)
> 
> Jing
> Netspread Carrier
> http://www.netspread.com
> 



Re: ActionForm

2003-06-25 Thread Jing Zhou

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 9:20 AM
Subject: ActionForm


> I'm running into a problem with using ActioForm.  I mean I know how to do
the
> normal stuff like say a login form, but I'm running into serious issues
when
> it comes to a dynamic forms.  I writing a survey application and well the
form
> is created dynamically as I dunno how many questions will exist in the
> survey.  The problem comes into the picture when i'm trying to collect the
form
> data.  It seems the value object needs to have a specific number of
methods.  Any
> way to make this dynamic??
>
>

When you don't know how many questions in the surveys, you might consider
a map based property. But I don't believe this will give you much
productivity
gains comparing with the use of the ServletRequest.getParameterMap()
method (The fundamental question becomes why you need form beans
for this problem?)

Jing
Netspread Carrier
http://www.netspread.com


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



Re: SSL Ext and the Struts Controller class issue.

2003-06-25 Thread Mick Knutson
OK, looking through the sslext.jar, I found the SecureTilesRequestProcessor.
But, I have a new error that seems very odd.
I use the containers j_security_check within a login.jsp, not a struts 
action.
So, when I try to access any secured page, I am prompted for a username and 
password.
Then I am re-directed to the requested page. In this case, 
registrationView.do is the requested page.
Well, I get the username/password prompt just fine, and then even get the 
SSL dialog from IE. But then, instead of getting directed to 
localhost:8443/registrationView.do, I get this URL in the location bar, "", 
but I get a page cannot be displayed.

Here is the stack trace I get:
===
:10,213 INFO  [SecurityContextFilter] processing request 
/registrationView.do
:10,244 INFO  [SecurityContextFilter] processing username.
:10,244 INFO  [TilesRequestProcessor] Tiles definition factory found for 
request processor ''.
:10,260 INFO  [PropertyMessageResources] Initializing, 
config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
:28,869 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda
:28,885 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda
:28,901 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda
:28,916 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda
:28,948 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda
:28,963 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda
:28,994 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda
:29,026 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda
:29,057 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessio
bjnpnjglufda
:29,088 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessio
bjnpnjglufda;jsessionid=5bjnpnjglufda
:29,135 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessio
bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda
:29,166 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessio
bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda
:29,213 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessio
bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda
:29,244 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessio
bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda
:29,291 INFO  [SecurityContextFilter] processing request 
/registrationView.do;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5
jglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessionid=5bjnpnjglufda;jsessio
bj

RE: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Michael Remijan
Filters have mapping patterns just like servlets have mapping patters (take a look at 
the web.xml DTD).  So like you say servlet "Foo" is mapped to *.foo or /foo/* you can 
map a filter to urls as well.  So if you have a directory in your webapp named 
"secure". can protect all the jsp pages in that directory with the mapping /secure/*.  
similarly, you can add the mappings of servlets to protect them in the same way.

Michael.

-Original Message-
From: Jing Zhou [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 11:54 AM
To: Struts Users Mailing List
Subject: Re: Looking for ideas for action servlet checking for logged in
user.


This is an interesting use of Filters. Our action mappings have
an attribute, 'privileged'. When the privileged attribute is set to true,
users only with a true privileged mode in his/her action
tracking (in the user's session) can execute the corresponding actions.

Can a filter be easily bound to the dynamic security requirements
as shown above? and in what ways, any ideas?

Jing

- Original Message - 
From: "Michael Remijan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 10:49 AM
Subject: RE: Looking for ideas for action servlet checking for logged in
user.


I've found using security constraints to be a little cumbersome, especially
since it requires some moderate modification of tomcat to put in a jdbc
realm that fits your needs.

My preference is to use Filters.  A filter set up on your secure directory
(specifed as /secure-dir-name/*) can be run, check for an object in the
session, and easily redirect if not found.

Mike

-Original Message-
From: Jing Zhou [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:10 AM
To: Struts Users Mailing List
Subject: Re: Looking for ideas for action servlet checking for logged in
user.



- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 4:13 AM
Subject: Re: Looking for ideas for action servlet checking for logged in
user.


> I would use container-managed security. All the secured pages should go
> in a directory which is the target of a security constraint in the
> deployment descriptor. This forces the user to log in when trying to
> access any secured pages. In the actions where a user-object is
> required, this can be retrieved on demand using the user-name from the
> login, and then stored in the session.

What I am doing is, yes, everything is under security constraints and when
the user logins, an action tracking object is created to maintain the user
related objects. The action tracking is stored in the user's session. When
the user logout, the action tracking is cleared and removed from the
user's session. The action tracking has a lot other responsibilities.

>
> hth
> Adam
>

Jing

> Jing Zhou wrote:
> > - Original Message - 
> > From: "Larry Zappeterrini" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 24, 2003 4:13 PM
> > Subject: RE: Looking for ideas for action servlet checking for logged in
> > user.
> >
> >
> >
> >>Check out http://marc.theaimsgroup.com/?t=10445485033&r=1&w=2 for a
> >>possible solution.
> >>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, June 24, 2003 4:59 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: Looking for ideas for action servlet checking for logged in
> >>user.
> >>
> >>
> >>I have a webapp which have several pages which require the user to be
> >>logged in(have a httpSession with a "usercontainer" object stored) , and
a
> >>few pages that doesn't require a log in(the log-in page, references,
> >>indexes...). All pages are fronted by actions.
> >>My current solution is to check for valid login in every action class
that
> >>needs to protect its invocation. That seems tedious. I though about
> >>extending the action servlet to do it, but then it would check for all
> >>requests.
> >>And I do want to distinguish between if the user is
> >>authorized(isUSerInRole) and if he/she is even logged in, so I can't use
> >>the role parameter in the action element.
> >>
> >>My next idea is extending the action servlet pluss adding parameters
that
> >>can go into the action element in the struts-config.xml file.
> >>(some thing like  >>usersession="true"> )
> >>This would require my action servlet to know about my userContainer
stored
> >>in the httpsession. Pluss modifying the struts-config file.
> >>I haven't looked into how hard this is, figure I'd ask someone who's run
> >>into this before.
> >>
> >>Any other good approaches, or should I just stick with what I got?(check
> >>individually in every action)
> >
> >
> > Yes. So far so good. One possible improvement is that you put all of
> > the checking codes into a base class of your action classes. Then you
> > extend the action mapping to prov

Question - how many of us?

2003-06-25 Thread Igor Shabalov
Do anybody have any idea how many Struts users exists or how many downloads 
of Struts runtime per month we have now?

--
Igor Shabalov
Director of Engineering
Exadel Inc.
http://www.exadel.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Looking for ideas for action servlet checking for logged in user.

2003-06-25 Thread Jing Zhou
This is an interesting use of Filters. Our action mappings have
an attribute, 'privileged'. When the privileged attribute is set to true,
users only with a true privileged mode in his/her action
tracking (in the user's session) can execute the corresponding actions.

Can a filter be easily bound to the dynamic security requirements
as shown above? and in what ways, any ideas?

Jing

- Original Message - 
From: "Michael Remijan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 10:49 AM
Subject: RE: Looking for ideas for action servlet checking for logged in
user.


I've found using security constraints to be a little cumbersome, especially
since it requires some moderate modification of tomcat to put in a jdbc
realm that fits your needs.

My preference is to use Filters.  A filter set up on your secure directory
(specifed as /secure-dir-name/*) can be run, check for an object in the
session, and easily redirect if not found.

Mike

-Original Message-
From: Jing Zhou [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 10:10 AM
To: Struts Users Mailing List
Subject: Re: Looking for ideas for action servlet checking for logged in
user.



- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 25, 2003 4:13 AM
Subject: Re: Looking for ideas for action servlet checking for logged in
user.


> I would use container-managed security. All the secured pages should go
> in a directory which is the target of a security constraint in the
> deployment descriptor. This forces the user to log in when trying to
> access any secured pages. In the actions where a user-object is
> required, this can be retrieved on demand using the user-name from the
> login, and then stored in the session.

What I am doing is, yes, everything is under security constraints and when
the user logins, an action tracking object is created to maintain the user
related objects. The action tracking is stored in the user's session. When
the user logout, the action tracking is cleared and removed from the
user's session. The action tracking has a lot other responsibilities.

>
> hth
> Adam
>

Jing

> Jing Zhou wrote:
> > - Original Message - 
> > From: "Larry Zappeterrini" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, June 24, 2003 4:13 PM
> > Subject: RE: Looking for ideas for action servlet checking for logged in
> > user.
> >
> >
> >
> >>Check out http://marc.theaimsgroup.com/?t=10445485033&r=1&w=2 for a
> >>possible solution.
> >>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> >>Sent: Tuesday, June 24, 2003 4:59 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: Looking for ideas for action servlet checking for logged in
> >>user.
> >>
> >>
> >>I have a webapp which have several pages which require the user to be
> >>logged in(have a httpSession with a "usercontainer" object stored) , and
a
> >>few pages that doesn't require a log in(the log-in page, references,
> >>indexes...). All pages are fronted by actions.
> >>My current solution is to check for valid login in every action class
that
> >>needs to protect its invocation. That seems tedious. I though about
> >>extending the action servlet to do it, but then it would check for all
> >>requests.
> >>And I do want to distinguish between if the user is
> >>authorized(isUSerInRole) and if he/she is even logged in, so I can't use
> >>the role parameter in the action element.
> >>
> >>My next idea is extending the action servlet pluss adding parameters
that
> >>can go into the action element in the struts-config.xml file.
> >>(some thing like  >>usersession="true"> )
> >>This would require my action servlet to know about my userContainer
stored
> >>in the httpsession. Pluss modifying the struts-config file.
> >>I haven't looked into how hard this is, figure I'd ask someone who's run
> >>into this before.
> >>
> >>Any other good approaches, or should I just stick with what I got?(check
> >>individually in every action)
> >
> >
> > Yes. So far so good. One possible improvement is that you put all of
> > the checking codes into a base class of your action classes. Then you
> > extend the action mapping to provide additional attributes that allow
> > the checking codes to configure themselves dynamically for the
> > corresponding actions, e.g. the usersession attribute.
> >
> >
> >>thanks,
> >>Henrik Bentel
> >>
> >>
> >
> >
> > Jing
> >
> >
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
***
> >
> >>This electronic mail transmission contains confidential and/or
privileged
> >>information intended only for the person(s) named.  A

SSL Ext and the Struts Controller class issue.

2003-06-25 Thread Mick Knutson
I want to use the SSL Ext plugin. But, I also need to use Tiles.
So, how do I set up SSLExt with the 
"org.apache.struts.action.SecureRequestProcessor", verse the 
"org.apache.struts.tiles.TilesRequestProcessor" controller class I have now?



---
Thanks...
Mick Knutson
---
_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

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


RE: Validate Client side(Javascript) code shows up in the page

2003-06-25 Thread Mounagurusamy, Jayakumar (HAL)
All the Javascript code from validator-rules.xml starting from"function
validateMaxLength(form)"

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 9:37 AM
To: Struts Users Mailing List
Subject: RE: Validate Client side(Javascript) code shows up in the page


The javascript you posted is clearly within  tags.  What appears
on your screen?

David

--- "Mounagurusamy, Jayakumar (HAL)" <[EMAIL PROTECTED]>
wrote:
> Struts version 1.1rc2
> 
> 
> 
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 9:29 AM
> To: Struts Users Mailing List
> Subject: Re: Validate Client side(Javascript) code shows up in the page
> 
> 
> What version are you using?  This sounds like a bug that was fixed some
> time ago.
> 
> David
> 
> --- "Mounagurusamy, Jayakumar (HAL)" <[EMAIL PROTECTED]>
> wrote:
> > Hello,
> > 
> > I got the following configuration in the struts-config.xml, 
> > 
> >   
> >  > value="WEB-INF/resources/validator/validator-rules.xml,
> > WEB-INF/resources/validator/apisValidation.xml" />
> >   
> > 
> > when I go to the html page the JavaScript code shows up in the page
> > which
> > suppose not to be there. When look into the source code through view
> > source,
> > I see the following code and remaining out side the