Re: multiple parameters for dispatchaction

2003-01-03 Thread usha
Hi Dan Tran

Correct on the first page i don't have any form its just a list upon 
cliking the primary key field i need to fill out my ActionForm for that 
primary key to show it on the next page.

Thanks
usha

Dan Tran wrote:

So you start out with a list of items and upon clicking on
the item (your primary key), it will invoke a dispatch action?  In another
word, the initial screen does not have a form.?

-D

- Original Message -
From: usha [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 11:35 PM
Subject: Re: multiple parameters for dispatchaction


 

Hi Dan Tran

i cannot set as hidden field because in that page all the primary keys
list will be there upon clicking on the on of the primary key the key
has to passed to the dispatchaction class

Thanks
usha

Dan Tran wrote:

   

set your primary key as a hidden field.  This way you dont have to pass
 

it
 

in the query string

-D


- Original Message -
From: usha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 10:41 PM
Subject: multiple parameters for dispatchaction




 

Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary key
value.

Thanks
usha


--
To unsubscribe, e-mail:


   

mailto:[EMAIL PROTECTED]


 

For additional commands, e-mail:


   

mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
 

mailto:[EMAIL PROTECTED]
 

For additional commands, e-mail:
 

mailto:[EMAIL PROTECTED]
 

 



--
To unsubscribe, e-mail:
   

mailto:[EMAIL PROTECTED]
 

For additional commands, e-mail:
   

mailto:[EMAIL PROTECTED]
 


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





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




Re: multiple parameters for dispatchaction

2003-01-03 Thread Dan Tran
Now I understand, you are trying to use a single dispatch action object for
all actions.

Sorry I could not figure out how to pass another param to the dispatch,
however I
have another suggestion:

Break your action object into 2 action classes

- LoadAction to process and HREF to load the object

- The dispatchAction itself.

This way you can activate the validation framework in the dispatchAction
object
If you combine all actions into dispatchAction, your initial loading action
may fail due some
of your validation rule again an empty object

-D

- If later you want to take advantage to struts validation you can
activate
- Original Message -
From: usha [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 12:00 AM
Subject: Re: multiple parameters for dispatchaction


 Hi Dan Tran

 Correct on the first page i don't have any form its just a list upon
 cliking the primary key field i need to fill out my ActionForm for that
 primary key to show it on the next page.

 Thanks
 usha

 Dan Tran wrote:

 So you start out with a list of items and upon clicking on
 the item (your primary key), it will invoke a dispatch action?  In
another
 word, the initial screen does not have a form.?
 
 -D
 
 - Original Message -
 From: usha [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, January 02, 2003 11:35 PM
 Subject: Re: multiple parameters for dispatchaction
 
 
 
 
 Hi Dan Tran
 
 i cannot set as hidden field because in that page all the primary keys
 list will be there upon clicking on the on of the primary key the key
 has to passed to the dispatchaction class
 
 Thanks
 usha
 
 Dan Tran wrote:
 
 
 
 set your primary key as a hidden field.  This way you dont have to pass
 
 
 it
 
 
 in the query string
 
 -D
 
 
 - Original Message -
 From: usha [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 02, 2003 10:41 PM
 Subject: multiple parameters for dispatchaction
 
 
 
 
 
 
 Hi
 
 can we pass multiple parameters for dispatchaction.
 
 for example
 i wanted to go to the details page on click of link i wanted to pass
 the primary key value along with the dispatch action parameter value.
 
 how can i pass the both the dispatchaction parameter and the primary
key
 value.
 
 Thanks
 usha
 
 
 --
 To unsubscribe, e-mail:
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 For additional commands, e-mail:
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 For additional commands, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 For additional commands, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 




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


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




RE: ArrayDescriptor - GenericConnection exception

2003-01-03 Thread Adolfo Miguelez
We solved a close problem with StructDescriptor/ArrayDescriptor and 
WAS/VisualAge pool and a cumbersome ClassCastException by extracting 
getPhysicalConnection() from the connection returned by the IBM pool.

Hope it can save time for someone in the same trouble since it take quite a 
long time for us,

Regards,

Adolfo.

From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: ArrayDescriptor - GenericConnection exception
Date: Thu, 2 Jan 2003 16:29:46 -0500

Oracle requires an explicit OracleConnection. Thus you have to get the
underlying connection of struts/tomcat connection by

((PoolableConnection) getConnection()).getDelegate()

Regards,


PQ

This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: January 2, 2003 3:25 PM
To: [EMAIL PROTECTED]
Subject: ArrayDescriptor - GenericConnection exception


Hi, Folks:

Happy New Year!

I am having the same problem Eva had. Anyone has a solution?

Many thanks.

Patrick


[Mail Archive]
struts-user
Chronological --
Find
Thread --
ArrayDescriptor - GenericConnection exception

* From: Eva Garabedian
* Subject: ArrayDescriptor - GenericConnection exception
* Date: Wed, 12 Jun 2002 16:24:31 -0700

Hello List - I've got a question about passing a string array into an
Oracle Procedure.
Specifically, my ArrayDescriptor assignment line is throwing a struts
exception, whose message is simply
org.apache.struts.util.GenericConnection.
I'm using a CallableStatement in my Java code to pass my String[] to my
Oracle procedure. Before I added the String[] parameter, everything was
working quite nicely. Now when I run this I get the dreaded
NullPointerException in the Tomcat messages in my browser, and the first
System.out.println (found below) shows up, but the GenericConnection
exception is thrown before the second println executes. This leads me to
believe that the ArrayDescriptor is the culprit. In the following code,
please note that the user_type NL_GROUP exists in my database, created
by the user CREATOR.

Thanks in advance for any suggestions about where I should look for
help.



Here is my related code:
public boolean addCustomer(String userName, String password,
String[] nlGroup) throws Exception  {

   Connection conn = null;
   CallableStatement stmt = null;
   String sql = {call INS_CUSTOMER_AND_CONTACT_INFO(?, ?, ?)};

   try {
 conn = dataSource.getConnection();

 System.out.println(After getConnection. );

 ArrayDescriptor desc =
ArrayDescriptor.createDescriptor(CREATOR.NL_GROUP, conn);

 System.out.println(After arrayDescriptor assignment. );

 ARRAY newArray = new ARRAY(desc, conn, nlGroup);
 stmt = conn.prepareCall(sql);
 stmt.setString(1, userName);
 stmt.setString(2, password);
 ((OraclePreparedStatement)stmt).setArray(3, newArray);
.
.
.


* ArrayDescriptor - GenericConnection exception, Eva Garabedian


Chronological -- Thread --

Reply via email to



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



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


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



Re: multiple parameters for dispatchaction

2003-01-03 Thread Dan Tran
After reading your message more carefully,  where is your problem?  in the
first page
or second page?

-D
- Original Message -
From: usha [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 12:00 AM
Subject: Re: multiple parameters for dispatchaction


 Hi Dan Tran

 Correct on the first page i don't have any form its just a list upon
 cliking the primary key field i need to fill out my ActionForm for that
 primary key to show it on the next page.

 Thanks
 usha

 Dan Tran wrote:

 So you start out with a list of items and upon clicking on
 the item (your primary key), it will invoke a dispatch action?  In
another
 word, the initial screen does not have a form.?
 
 -D
 
 - Original Message -
 From: usha [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, January 02, 2003 11:35 PM
 Subject: Re: multiple parameters for dispatchaction
 
 
 
 
 Hi Dan Tran
 
 i cannot set as hidden field because in that page all the primary keys
 list will be there upon clicking on the on of the primary key the key
 has to passed to the dispatchaction class
 
 Thanks
 usha
 
 Dan Tran wrote:
 
 
 
 set your primary key as a hidden field.  This way you dont have to pass
 
 
 it
 
 
 in the query string
 
 -D
 
 
 - Original Message -
 From: usha [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 02, 2003 10:41 PM
 Subject: multiple parameters for dispatchaction
 
 
 
 
 
 
 Hi
 
 can we pass multiple parameters for dispatchaction.
 
 for example
 i wanted to go to the details page on click of link i wanted to pass
 the primary key value along with the dispatch action parameter value.
 
 how can i pass the both the dispatchaction parameter and the primary
key
 value.
 
 Thanks
 usha
 
 
 --
 To unsubscribe, e-mail:
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 For additional commands, e-mail:
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 For additional commands, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 For additional commands, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 




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


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




struts on iPlanet webserver4.1

2003-01-03 Thread Arun Jannela

HI,

Could you please let me know what might be wrong ..I was unable to run the struts on 
iPlanet webserver4.1.

Arun

org.apache.jasper.JasperException: Unable to open taglibrary  /WEB-INF/struts-bean.tld 
:  
at 
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:688)
 
at 
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:119)
 
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:190) 
at org.apache.jasper.compiler.Parser.parse(Parser.java:1048) 
at org.apache.jasper.compiler.Parser.parse(Parser.java:1022) 
at org.apache.jasper.compiler.Parser.parse(Parser.java:1018) 
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:173) 
at 
com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:230) 
at 
com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149) 
at 
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:463) 
 
 
[03/Jan/2003:13:23:40] warning (  736): Internal error: Failed to get GenericServlet. 
(uri=/PFTS_NSF/login.jsp,SCRIPT_NAME=/login.jsp) 


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







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


Re: multiple parameters for dispatchaction

2003-01-03 Thread usha
Hi Dan Tran

my problem is when i click a link on the first page it will be sent to a 
particular method on the dispatchaction class, in that particular method 
i need to know the my primary key that i selected on the first page.so 
that's why i am thinking to sent it as a parameter in the url so that i 
can get it in the method in the request object, but this is an 
dispatchaction class i need to pass the parameter for the method to be 
excuted. can i pass another parameter along with this dispatchaction 
parameter in the link?

Thanks
usha

Dan Tran wrote:

After reading your message more carefully,  where is your problem?  in the
first page
or second page?

-D
- Original Message -
From: usha [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 12:00 AM
Subject: Re: multiple parameters for dispatchaction


 

Hi Dan Tran

Correct on the first page i don't have any form its just a list upon
cliking the primary key field i need to fill out my ActionForm for that
primary key to show it on the next page.

Thanks
usha

Dan Tran wrote:

   

So you start out with a list of items and upon clicking on
the item (your primary key), it will invoke a dispatch action?  In
 

another
 

word, the initial screen does not have a form.?

-D

- Original Message -
From: usha [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 11:35 PM
Subject: Re: multiple parameters for dispatchaction




 

Hi Dan Tran

i cannot set as hidden field because in that page all the primary keys
list will be there upon clicking on the on of the primary key the key
has to passed to the dispatchaction class

Thanks
usha

Dan Tran wrote:



   

set your primary key as a hidden field.  This way you dont have to pass


 

it


 

in the query string

-D


- Original Message -
From: usha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 02, 2003 10:41 PM
Subject: multiple parameters for dispatchaction






 

Hi

can we pass multiple parameters for dispatchaction.

for example
i wanted to go to the details page on click of link i wanted to pass
the primary key value along with the dispatch action parameter value.

how can i pass the both the dispatchaction parameter and the primary
   

key
 

value.

Thanks
usha


--
To unsubscribe, e-mail:




   

mailto:[EMAIL PROTECTED]




 

For additional commands, e-mail:




   

mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:


 

mailto:[EMAIL PROTECTED]


 

For additional commands, e-mail:


 

mailto:[EMAIL PROTECTED]


 

 

--
To unsubscribe, e-mail:


   

mailto:[EMAIL PROTECTED]


 

For additional commands, e-mail:


   

mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
 

mailto:[EMAIL PROTECTED]
 

For additional commands, e-mail:
 

mailto:[EMAIL PROTECTED]
 

 



--
To unsubscribe, e-mail:
   

mailto:[EMAIL PROTECTED]
 

For additional commands, e-mail:
   

mailto:[EMAIL PROTECTED]
 


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





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




Re: Page Anchoring using Tiles Def

2003-01-03 Thread Cedric Dumoulin

 Hi,

 For me, it is not possible to specify on the server side where to jump 
in the resulting page on the client side. Only the client (browser) can 
request a page and specify an anchor in this page. The server has no way 
to change the uri or anchor of the requested page, unless using a redirect.
 Remind that a redirect is a server side order asking the client to 
resend a request with a uri specified by the server. A redirect break 
the original request processing: the client send another request which 
is processed as a new request by the server.
 I think that your problem is not tied to Tiles, it is a conception 
problem. The use of a redirect seem the only solution ...

  Hope this help,
 Cedric

Bhamani, Nizar A TL56E wrote:

My struts config is using Tiles definition to forward to a
Page instead of jsp.

i.e. I am using the following :
   forward name=DoSomething 
   	path=.tilesdef.doSomething 
	redirect=false 
	contextRelative=true /

instead of :
   forward name=DoSomething 
   	path=/jsp/doSomething.jsp 
	redirect=false 
	contextRelative=true /


Is there a way to jump to an anchor location on the
Page I am forwarding to without using the jsp forward 
And redirect=true ?

i.e. I want to use the tilesdef and jump to an anchored
location. Has anybody done this Or Is there a way to do this ?

Thanks,


Nizar Bhamani



CONFIDENTIALITY
This e-mail and any attachments are confidential and also may be privileged.
If you are not the named recipient, or have otherwise received this 
communication in error, please delete it from your inbox, notify the sender
immediately, and do not disclose its contents to any other person, 
use them for any purpose, or store or copy them in any medium. 
Thank you for your cooperation. 




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


 



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




Re: Beta3: Log4j gone mad

2003-01-03 Thread Andreas Mack
On Thu, 2003-01-02 at 14:13, Davor Cengija wrote:

 All the categories are covered by their specific loggers (com.mycompany,
 org.apache etc) so I don't need the rootLogger. However, when added
 (associated with A1) everything actually goes to A1 (Project.log file) and
 not to stderr but the correct files are empty.
 
 This might be the commons-logging.jar issue (while upgrading, I copied all
 the libraries, including struts.jar and commons-logging.jar to my
 WEB-INF/lib dir).
 
 Anyone?
 


Maybe. I think I had the same problem, but everything went to root *in
addition* to the normal files. I've set additivity to false in each of
my loggers, like: 
-
log4j.logger.de.mediales.htng=DEBUG, A2
log4j.additivity.de.mediales.htng=false

log4j.logger.MAIL=DEBUG, M1
log4j.additivity.MAIL=false

and it worked fine. Also make sure you configure common-logging, like
setting it to SimpleLogger so it won't interfere with log4j. I think it
uses log4j if available.

HTH,

Andreas.

-- 
Andreas Mack [EMAIL PROTECTED]
mediales. GmbH


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




Re: Beta3: Log4j gone mad

2003-01-03 Thread Davor Cengija
Andreas Mack wrote:
 On Thu, 2003-01-02 at 14:13, Davor Cengija wrote:


 Maybe. I think I had the same problem, but everything went to root *in
 addition* to the normal files. I've set additivity to false in each of
 my loggers, like:
 -
 log4j.logger.de.mediales.htng=DEBUG, A2
 log4j.additivity.de.mediales.htng=false

 log4j.logger.MAIL=DEBUG, M1
 log4j.additivity.MAIL=false
 
 and it worked fine.

It seems to be working now. Thanks!

 Also make sure you configure common-logging, like
 setting it to SimpleLogger so it won't interfere with log4j. I think
 it uses log4j if available.


I'll try this as well.

Many thanks!

Davor





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




Re: multiple parameters for dispatchaction

2003-01-03 Thread Affan Qureshi
Of course. Set up a link like:
A href=myDispatch.do?method=loadpkey=1112Link Text/A

In the action class you can get the value of the primary key by
request.getParameter(pkey)

Was that the problem or am I missing something?

Affan
- Original Message -
From: usha [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 1:54 PM
Subject: Re: multiple parameters for dispatchaction


 Hi Dan Tran

 my problem is when i click a link on the first page it will be sent to a
 particular method on the dispatchaction class, in that particular method
 i need to know the my primary key that i selected on the first page.so
 that's why i am thinking to sent it as a parameter in the url so that i
 can get it in the method in the request object, but this is an
 dispatchaction class i need to pass the parameter for the method to be
 excuted. can i pass another parameter along with this dispatchaction
 parameter in the link?

 Thanks
 usha

 Dan Tran wrote:

 After reading your message more carefully,  where is your problem?  in
the
 first page
 or second page?
 
 -D
 - Original Message -
 From: usha [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, January 03, 2003 12:00 AM
 Subject: Re: multiple parameters for dispatchaction
 
 
 
 
 Hi Dan Tran
 
 Correct on the first page i don't have any form its just a list upon
 cliking the primary key field i need to fill out my ActionForm for that
 primary key to show it on the next page.
 
 Thanks
 usha
 
 Dan Tran wrote:
 
 
 
 So you start out with a list of items and upon clicking on
 the item (your primary key), it will invoke a dispatch action?  In
 
 
 another
 
 
 word, the initial screen does not have a form.?
 
 -D
 
 - Original Message -
 From: usha [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, January 02, 2003 11:35 PM
 Subject: Re: multiple parameters for dispatchaction
 
 
 
 
 
 
 Hi Dan Tran
 
 i cannot set as hidden field because in that page all the primary keys
 list will be there upon clicking on the on of the primary key the key
 has to passed to the dispatchaction class
 
 Thanks
 usha
 
 Dan Tran wrote:
 
 
 
 
 
 set your primary key as a hidden field.  This way you dont have to
pass
 
 
 
 
 it
 
 
 
 
 in the query string
 
 -D
 
 
 - Original Message -
 From: usha [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 02, 2003 10:41 PM
 Subject: multiple parameters for dispatchaction
 
 
 
 
 
 
 
 
 Hi
 
 can we pass multiple parameters for dispatchaction.
 
 for example
 i wanted to go to the details page on click of link i wanted to pass
 the primary key value along with the dispatch action parameter
value.
 
 how can i pass the both the dispatchaction parameter and the primary
 
 
 key
 
 
 value.
 
 Thanks
 usha
 
 
 --
 To unsubscribe, e-mail:
 
 
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 For additional commands, e-mail:
 
 
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 For additional commands, e-mail:
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 For additional commands, e-mail:
 
 
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 For additional commands, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 For additional commands, e-mail:
 
 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 




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



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




Re: defeating caching

2003-01-03 Thread Caoilte O'Connor
thanks for the tip, but I've already tried adding that line and people still 
complain that their proxy servers are caching pages (these are school 
networks where that's the only way to access the internet).

- Is there a particular place in the struts-config where the controller 
element must go? I have it at the top just below struts-config at the moment. 
The dtd seems to suggest having it lower but that breaks my action mappings 
when i reboot.

- Could it be that some pages don't have the right tag in and are not getting 
the expiry tags set correctly. It's possible the web designers have left 
html:base tags out on some pages.
 


caoilte

On Thursday 02 January 2003 6:39 pm, Siggelkow, Bill wrote:
 Add the following stanza to your struts-config.xml ...

   controller
 nocache=true/

 -Original Message-
 From: Caoilte O'Connor [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 01, 2003 10:36 PM
 To: [EMAIL PROTECTED]
 Subject: defeating caching


 Hi,
 Can anyone tell me exactly what options I should set for struts1.1 to
 defeat web caching. I found the option in the dtd and a few mentions of it
 in the archives, but no information anywhere on how to set it for all
 pages the webapp returns.

 much appreciated,

 caoilte

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

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


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




Need help for java IDE

2003-01-03 Thread Ravireddy
Hi greetings,
 
I want to know any opensource IDE for Java which is compatable for
Debugging java, jsp and j2ee ,
 
If anyone knows , pls let me know 
 
Ravi
 



Re: Need help for java IDE

2003-01-03 Thread Amandeep . Midha


Netbeans is quite a good ide, try it

---
Amandeep Midha (CHARMIE)
IT Solutions, India
TEL : 91-80-6655122 extn. 2117
MOBILE: +919844048126
FAX: 91-80-6655755
---
Visit my site @ http://newdelhi.topcities.com
---



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




RE: REPOST: Forcing the ActionForm to populate a field before the other

2003-01-03 Thread Brown, Melonie S. - Contractor
Craig,

You said below that 

There are no guarantees on the order that the setters are called.  This is
for two reasons:

[snip]

Wouldn't that also mean that the example given by Ted Husted at
http://www.husted.com/struts/tips/006.html (using multiple sets of arrays
and hidden fields to keep track of an id and value submitted with the form)
could conceivably return mismatched id's and values?


Melonie Brown
Programmer Analyst



-Original Message-
From: Toni [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 02, 2003 2:52 PM
To: 'Struts Users Mailing List'
Subject: RE: REPOST: Forcing the ActionForm to populate a field before the
other


Thank you Rick, James and Craig for your inputs.  The answers is exactly
what I was looking for in order to get off my lazy a** and break things
apart.

I was trying to set a quantity field do indicate how many child forms to
display in one step without using an action with the nested tag lib.

Happy new year.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 02, 2003 11:56 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: REPOST: Forcing the ActionForm to populate a field before the
other




On Thu, 2 Jan 2003, Toni Charlot wrote:

 Date: Thu, 2 Jan 2003 10:10:32 -0500
 From: Toni Charlot [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: REPOST: Forcing the ActionForm to populate a field before the
 other

 I would like to have a setter method called before another.  What's
 the best way to do that in the ActionForm

There are no guarantees on the order that the setters are called.  This is
for two reasons:

* There is no rule in the HTTP or HTML specs defining the order
  in which the request parameters are sent, so it's totally up
  to the client.  And they really do operate differently.

* There is no rule in the servlet spec saying that the input order
  has to be preserved, so it's totally up to the container to decide
  how to implement this.  And they really do operate differently.

More fundamentally, though, the only reason that the setter order would
matter is if there are side effects (setting one property affects the
semantics of setting a different one).  Designing your form beans in this
way is a very poor architectural decision -- the whole point of a form bean
is to simply represent the input values that the user actually entered on
the form.  Any functionality that tries to assign meaning to these inputs
should be done in business logic (which can pull data out of the form bean
in any order that you need), not in the form bean itself.


 Thank you.

Craig McClanahan



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




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




Struts based app. and SSL doesnt work together

2003-01-03 Thread Maris Orbidans

hello all

We have finished a large project which was based on Struts. Now our client wants to 
use SSL. 
We set up SSL and now our app. doesnt work anymore. It seems that form beans aren't 
being populated. 
I think that maybe struts control servlet cant read GET parameters for some reason.

Our architecture consists of Apache HTTP server, which talks to Tomcat. SSL support is 
installed in Apache server.

Do you have ideas how to solve this problem ?


Maris Orbidans
app. architect

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




RE: Need help for java IDE

2003-01-03 Thread James Mitchell
Also consider Eclipse

 http://www.eclipse.org



--
James Mitchell
Software Engineer/Open Source Evangelist
http://www.open-tools.org

C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg. 
- Bjarne Stroustrup


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 03, 2003 6:20 AM
 To: Struts Users Mailing List
 Subject: Re: Need help for java IDE
 
 
 
 
 Netbeans is quite a good ide, try it
 
 --
 -
 Amandeep Midha (CHARMIE)
 IT Solutions, India
 TEL : 91-80-6655122 extn. 2117
 MOBILE: +919844048126
 FAX: 91-80-6655755
 --
 -
 Visit my site @ http://newdelhi.topcities.com
 --
 -
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 


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




RE: Struts based app. and SSL doesnt work together

2003-01-03 Thread mech
Maybe describe your enviroment more. Because I have similar situation,
but have no problem with my Tomcat 4.1.18, mod_jk 1.2.0, Apache 1.3.27
setup (opensa.org Apache)

I'm developing a Struts App which is using both http and https (mainly
for login).
I mainly use html:form - post, sometimes I use get parameters, but
only to send to action.do?test=value at the moment.

I have Apache on 80/443 and Tomcat on 8080/8443 with 8009 mod_jk.
Everything works fine for me... No matter if I access Apache and it's
SSL port or use Tomcat standalone (which I also configured to use ssl on
8443).

Michael

 -Original Message-
 From: Maris Orbidans [mailto:[EMAIL PROTECTED]] 
 Sent: Freitag, 3. Januar 2003 14:36
 To: Struts Users Mailing List
 Subject: Struts based app. and SSL doesnt work together
 
 
 
 hello all
 
 We have finished a large project which was based on Struts. 
 Now our client wants to use SSL. 
 We set up SSL and now our app. doesnt work anymore. It seems 
 that form beans aren't being populated. 
 I think that maybe struts control servlet cant read GET 
 parameters for some reason.
 
 Our architecture consists of Apache HTTP server, which talks 
 to Tomcat. SSL support is installed in Apache server.
 
 Do you have ideas how to solve this problem ?
 
 
 Maris Orbidans
 app. architect
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: multi row / multi col input forms

2003-01-03 Thread Mike Ash
Thanks! I finally see the light.

-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 5:44 PM
To: 'Struts Users Mailing List'
Subject: RE: multi row / multi col input forms


Here's one way to do it:

Let's say you want to be able to record the grades of some students
across a number of classes.

First define a Bean called StudentGrades:

Package example;

public StudentGrades {
   private String name, biology, chemistry, physics, english, math;

   public String getName () { return this.name; }
   public String getBiology () { return this.biology; }
   public String getChemisty () { return this.chemistry; }
   public String getPhysics () { return this.physics; }
   public String getEnglish () { return this.english; }
   public String getMath () { return this.math; }

   public void setName (String name) { this.name = name; }
   public void setBiology (String grade) { this.biology = grade; }
   public void setChemisty (String grade) { this.chemistry = grade; }
   public void setPhysics (String grade) { this.physics = grade; }
   public void setEnglish (String grade) { this.english = grade; }
   public void setMath (String grade) { this.math = grade; }
}

In your struts-config.xml, define:

form-bean  name=studentGradeForm
type=org.apache.struts.validator.DynaValidatorForm
   form-property name=grades type=example.StudentGrades[]
size=50
/form-bean

Then, presuming that your Action populates the StudentGrades array with
the student names, in your JSP, you'd say:

html:form action=/some/action
TABLETRTDName/TDTDBiology/TDTDChemistry/TDTDPhysics/T
DTDEnglish/TDTDMath/TD/TR
logic:iterate id=student name=studentGradeForm property=grades
type=example.StudentGrades
logic:notEmpty name=student property=name
TRTDbean:write name=student property=name indexed=true//TD
TDhtml:text name=student property=biology indexed=true//TD
TDhtml:text name=student property=chimstry indexed=true//TD
TDhtml:text name=student property=physics indexed=true//TD
TDhtml:text name=student property=english indexed=true//TD
TDhtml:text name=student property=math indexed=true//TD/TR
/logic:notEmpty
/logic:iterate
/TABLE

 -Original Message-
 From: Mike Ash [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 02, 2003 5:04 PM
 To: 'Struts Users Mailing List'
 Subject: RE: multi row / multi col input forms
 
 
 I understand what he is saying about setter methods perhaps I 
 am not explaining the problem correctly
 
 The exact example is I am trying to display a listing of a 
 dynamic number of projects with hours assigned to them by day 
 for a given week, the user can then update any of those 
 fields to make changes, some of those fields may be blank 
 which means the browser will not send them to the server 
 which puts the rows / cols out of balance.
 
 I am using the logic iterate tag to build a row which looks like
 
 someText  someMoreText inputBox1 inputBox2 inputBox3 inputBox4
 
 So for two rows I get
 
 someText  someMoreText inputBox1 inputBox2 inputBox3 
 inputBox4 someText  someMoreText inputBox1 inputBox2 
 inputBox3 inputBox4
 
 This means that from a vertical perspective the boxes have 
 the same name ( is there a better way to do the names?) If a 
 inputBox doesn't contain anything I can't tell which one it 
 really was except which column it didn't come from.
 
 Clear as mud?
 
 
 -Original Message-
 From: Khalid K. [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 02, 2003 3:51 PM
 To: Struts Users Mailing List
 Subject: Re: multi row / multi col input forms
 
 
 please read the post below from Craig(he answered a 
 similar question..see question/answer below)
 
 
 
 On Thu, 2 Jan 2003, Toni Charlot wrote:
 
  Date: Thu, 2 Jan 2003 10:10:32 -0500
  From: Toni Charlot [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List 
 [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: REPOST: Forcing the ActionForm to populate a field 
 before the
  other
 
  I would like to have a setter method called before another.  What's 
  the best way to do that in the ActionForm
 
 There are no guarantees on the order that the setters are 
 called.  This is for two reasons:
 
 * There is no rule in the HTTP or HTML specs defining the order
   in which the request parameters are sent, so it's totally up
   to the client.  And they really do operate differently.
 
 * There is no rule in the servlet spec saying that the input order
   has to be preserved, so it's totally up to the container to decide
   how to implement this.  And they really do operate differently.
 
 More fundamentally, though, the only reason that the setter 
 order would matter is if there are side effects (setting one 
 property affects the semantics of setting a different one).  
 Designing your form beans in this way is a very poor 
 architectural decision -- the whole point of a form bean is 
 to simply represent the input values that the user actually 
 entered on 

RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Siggelkow, Bill
Did you try taking the version off the URI?  In other words, use:
http://jakarta.apache.org/struts/tags-tiles;

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 5:21 PM
To: [EMAIL PROTECTED]
Subject: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


I am trying to deploy a .ear file to JBOSS and canNot get around this
error:

org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application

There are a bunch of .jsp files that contain this reference:
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %

The web.xml has this reference:
 taglib
 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

The lib directory has struts.jar and the classes directory has the
classes
Does anyone have a clue on this?
HELP!
Thanks

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

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




RE: Need help for java IDE

2003-01-03 Thread Arik Levin ( Tikal )
Eclipse is more mature than Netbeans and more than http://www.jedit.org
I have worked with all of them. I recommend using Eclipse.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 3:55 PM
To: 'Struts Users Mailing List'
Subject: RE: Need help for java IDE

Also consider Eclipse

 http://www.eclipse.org



--
James Mitchell
Software Engineer/Open Source Evangelist
http://www.open-tools.org

C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg. 
- Bjarne Stroustrup


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 03, 2003 6:20 AM
 To: Struts Users Mailing List
 Subject: Re: Need help for java IDE
 
 
 
 
 Netbeans is quite a good ide, try it
 
 --
 -
 Amandeep Midha (CHARMIE)
 IT Solutions, India
 TEL : 91-80-6655122 extn. 2117
 MOBILE: +919844048126
 FAX: 91-80-6655755
 --
 -
 Visit my site @ http://newdelhi.topcities.com
 --
 -
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 


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


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




RE: Need help for java IDE

2003-01-03 Thread James Childers
As much as I like Eclipse, it doesn't do JSPs at this time, which is what the original 
poster asked for. (AFAIK; if there is a plug-in available somebody please correct me.)

-= J

 -Original Message-
 From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 8:41 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Need help for java IDE
 
 
 Eclipse is more mature than Netbeans and more than 
 http://www.jedit.org
 I have worked with all of them. I recommend using Eclipse.
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 03, 2003 3:55 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Need help for java IDE
 
 Also consider Eclipse
 
  http://www.eclipse.org
 
 
 
 --
 James Mitchell
 Software Engineer/Open Source Evangelist
 http://www.open-tools.org
 
 C makes it easy to shoot yourself in the foot; C++ makes it 
 harder, but
 when you do, it blows away your whole leg. 
 - Bjarne Stroustrup
 
 
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, January 03, 2003 6:20 AM
  To: Struts Users Mailing List
  Subject: Re: Need help for java IDE
  
  
  
  
  Netbeans is quite a good ide, try it
  

 

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




RE: Need help for java IDE

2003-01-03 Thread ROSSEL Olivier
 As much as I like Eclipse, it doesn't do JSPs at this time, 
 which is what the original poster asked for. (AFAIK; if there 
 is a plug-in available somebody please correct me.)

There are plug-ins to debug java code corresponding to JSPs, with
the line number of the original JSP.

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




RE: Need help for java IDE

2003-01-03 Thread Arik Levin ( Tikal )
There's a plugin named: Lomboz it has JSP support.

-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 4:40 PM
To: Struts Users Mailing List
Subject: RE: Need help for java IDE

As much as I like Eclipse, it doesn't do JSPs at this time, which is what
the original poster asked for. (AFAIK; if there is a plug-in available
somebody please correct me.)

-= J

 -Original Message-
 From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 8:41 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Need help for java IDE
 
 
 Eclipse is more mature than Netbeans and more than 
 http://www.jedit.org
 I have worked with all of them. I recommend using Eclipse.
 
 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 03, 2003 3:55 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Need help for java IDE
 
 Also consider Eclipse
 
  http://www.eclipse.org
 
 
 
 --
 James Mitchell
 Software Engineer/Open Source Evangelist
 http://www.open-tools.org
 
 C makes it easy to shoot yourself in the foot; C++ makes it 
 harder, but
 when you do, it blows away your whole leg. 
 - Bjarne Stroustrup
 
 
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] 
  Sent: Friday, January 03, 2003 6:20 AM
  To: Struts Users Mailing List
  Subject: Re: Need help for java IDE
  
  
  
  
  Netbeans is quite a good ide, try it
  

 

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


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




RE: ApplicationResources.properties

2003-01-03 Thread pqin
Isn't it defined in struts config xml? message-resources parameter=/?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Jimmy Oh [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 12:27 AM
To: Struts Users
Subject: ApplicationResources.properties

Hi,
I am new to Struts.  I want to know whether is there a way (or is it
possible at all?) to put the `ApplicationResources.properties' file in
another directory other than in the `WEB-INF/classes' directory onwards?
That is, I do not want `ApplicationResources.properties' to be in
`WEB-INF/classes' or any of its sub-directories.

TIA
Jimmy


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



Re: Need help for java IDE

2003-01-03 Thread Robert S. Sfeir

On Friday, January 3, 2003, at 09:39 AM, James Childers wrote:


As much as I like Eclipse, it doesn't do JSPs at this time, which is 
what the original poster asked for. (AFAIK; if there is a plug-in 
available somebody please correct me.)

There's Lomboz on sourceforge.net but in my opinion in lacks HEAVYLY on 
proper development, support and setup.  I think they're trying too hard 
to do too much, and lots of stuff doesn't work right.  Also whom ever 
is writing the code is not very responsive and seems to be extremely 
protective of their code.  I've offered to help, but didn't even get an 
email back.  I wanted to do testing for them on Mac OS X, because they 
don't have access to one, and they never wrote back.

So I dropped Eclipse AND Netbeans in favor of IntelliJ's IDEA.  They 
currently have a special where you can buy it for $200.00... that's not 
expensive considering everything the IDE does.

R


-= J


-Original Message-
From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 8:41 AM
To: 'Struts Users Mailing List'
Subject: RE: Need help for java IDE


Eclipse is more mature than Netbeans and more than
http://www.jedit.org
I have worked with all of them. I recommend using Eclipse.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:55 PM
To: 'Struts Users Mailing List'
Subject: RE: Need help for java IDE

Also consider Eclipse

 http://www.eclipse.org



--
James Mitchell
Software Engineer/Open Source Evangelist
http://www.open-tools.org

C makes it easy to shoot yourself in the foot; C++ makes it
harder, but
when you do, it blows away your whole leg.
- Bjarne Stroustrup



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 6:20 AM
To: Struts Users Mailing List
Subject: Re: Need help for java IDE




Netbeans is quite a good ide, try it







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


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




RE: Does not work to use SaveToken to avoid duplicated submit if I us e the same jsp as the form and also as the resulting page?

2003-01-03 Thread pqin
On top of this question, I would like to know if this token can resolve
issues casuing by depressing BackSpace key?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Jason Yam [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 1:26 AM
To: Struts Users Mailing List
Subject: Does not work to use SaveToken to avoid duplicated submit if I us e
the same jsp as the form and also as the resulting page?

Hi everyone,
 
I try to use Struts 1.0.2's SaveToken function to avoid duplicated
submit.  However I try to use the following logic to make it work:
 
Action = JSP (show the submit form without the data) = (click submit) =
Action with populated form = JSP (show the same jsp page to show the data
result)
 
I get the message duplicated request.
 
I think neither (1) it can use the same Action class to show and process
the data, nor (2) it can use the same jsp page to show the form and display
the result.  I use a debugger to know that the value of the hidden variable
for storing the saved session Token value is the same as the session Token
stored in session after I click the submit button.  That 's why the
isValidToken is false.  It is the bug in my coding or this is the default
behaviour of Struts?
 
Thank you!
 
Jason



RE: Struts based app. and SSL doesnt work together

2003-01-03 Thread Maris Orbidans


Mod_ssl 2.8.12
Apache HTTP server 1.3.27
Tomcat 4.0


Maris


 -Original Message-
 From: mech [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 3:59 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts based app. and SSL doesnt work together
 
 
 Maybe describe your enviroment more. Because I have similar situation,
 but have no problem with my Tomcat 4.1.18, mod_jk 1.2.0, Apache 1.3.27
 setup (opensa.org Apache)
 
 I'm developing a Struts App which is using both http and https (mainly
 for login).
 I mainly use html:form - post, sometimes I use get parameters, but
 only to send to action.do?test=value at the moment.
 
 I have Apache on 80/443 and Tomcat on 8080/8443 with 8009 mod_jk.
 Everything works fine for me... No matter if I access Apache and it's
 SSL port or use Tomcat standalone (which I also configured to 
 use ssl on
 8443).
 
 Michael
 
  -Original Message-
  From: Maris Orbidans [mailto:[EMAIL PROTECTED]] 
  Sent: Freitag, 3. Januar 2003 14:36
  To: Struts Users Mailing List
  Subject: Struts based app. and SSL doesnt work together
  
  
  
  hello all
  
  We have finished a large project which was based on Struts. 
  Now our client wants to use SSL. 
  We set up SSL and now our app. doesnt work anymore. It seems 
  that form beans aren't being populated. 
  I think that maybe struts control servlet cant read GET 
  parameters for some reason.
  
  Our architecture consists of Apache HTTP server, which talks 
  to Tomcat. SSL support is installed in Apache server.
  
  Do you have ideas how to solve this problem ?
  
  
  Maris Orbidans
  app. architect
  
  --
  To unsubscribe, e-mail:   
  mailto:struts-user- [EMAIL PROTECTED]
  For 
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




RE: Need help for java IDE

2003-01-03 Thread Arik Levin ( Tikal )
$200 is not much, but in case of free IDE: Eclipse;)

-Original Message-
From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 4:44 PM
To: Struts Users Mailing List
Subject: Re: Need help for java IDE


On Friday, January 3, 2003, at 09:39 AM, James Childers wrote:

 As much as I like Eclipse, it doesn't do JSPs at this time, which is 
 what the original poster asked for. (AFAIK; if there is a plug-in 
 available somebody please correct me.)

There's Lomboz on sourceforge.net but in my opinion in lacks HEAVYLY on 
proper development, support and setup.  I think they're trying too hard 
to do too much, and lots of stuff doesn't work right.  Also whom ever 
is writing the code is not very responsive and seems to be extremely 
protective of their code.  I've offered to help, but didn't even get an 
email back.  I wanted to do testing for them on Mac OS X, because they 
don't have access to one, and they never wrote back.

So I dropped Eclipse AND Netbeans in favor of IntelliJ's IDEA.  They 
currently have a special where you can buy it for $200.00... that's not 
expensive considering everything the IDE does.

R


 -= J

 -Original Message-
 From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 8:41 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Need help for java IDE


 Eclipse is more mature than Netbeans and more than
 http://www.jedit.org
 I have worked with all of them. I recommend using Eclipse.

 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 3:55 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Need help for java IDE

 Also consider Eclipse

  http://www.eclipse.org



 --
 James Mitchell
 Software Engineer/Open Source Evangelist
 http://www.open-tools.org

 C makes it easy to shoot yourself in the foot; C++ makes it
 harder, but
 when you do, it blows away your whole leg.
 - Bjarne Stroustrup


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 6:20 AM
 To: Struts Users Mailing List
 Subject: Re: Need help for java IDE




 Netbeans is quite a good ide, try it




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


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


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




RE: Struts based app. and SSL doesnt work together

2003-01-03 Thread pqin
Have you checked apache's ssl log?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Maris Orbidans [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 9:47 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Struts based app. and SSL doesnt work together



Mod_ssl 2.8.12
Apache HTTP server 1.3.27
Tomcat 4.0


Maris


 -Original Message-
 From: mech [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 3:59 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts based app. and SSL doesnt work together
 
 
 Maybe describe your enviroment more. Because I have similar situation,
 but have no problem with my Tomcat 4.1.18, mod_jk 1.2.0, Apache 1.3.27
 setup (opensa.org Apache)
 
 I'm developing a Struts App which is using both http and https (mainly
 for login).
 I mainly use html:form - post, sometimes I use get parameters, but
 only to send to action.do?test=value at the moment.
 
 I have Apache on 80/443 and Tomcat on 8080/8443 with 8009 mod_jk.
 Everything works fine for me... No matter if I access Apache and it's
 SSL port or use Tomcat standalone (which I also configured to 
 use ssl on
 8443).
 
 Michael
 
  -Original Message-
  From: Maris Orbidans [mailto:[EMAIL PROTECTED]] 
  Sent: Freitag, 3. Januar 2003 14:36
  To: Struts Users Mailing List
  Subject: Struts based app. and SSL doesnt work together
  
  
  
  hello all
  
  We have finished a large project which was based on Struts. 
  Now our client wants to use SSL. 
  We set up SSL and now our app. doesnt work anymore. It seems 
  that form beans aren't being populated. 
  I think that maybe struts control servlet cant read GET 
  parameters for some reason.
  
  Our architecture consists of Apache HTTP server, which talks 
  to Tomcat. SSL support is installed in Apache server.
  
  Do you have ideas how to solve this problem ?
  
  
  Maris Orbidans
  app. architect
  
  --
  To unsubscribe, e-mail:   
  mailto:struts-user- [EMAIL PROTECTED]
  For 
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
  
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


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



Re: Need help for java IDE

2003-01-03 Thread Robert S. Sfeir

On Friday, January 3, 2003, at 09:51 AM, Arik Levin ( Tikal ) wrote:


$200 is not much, but in case of free IDE: Eclipse;)


Yeah but everything free is not as good as struts ;-), some things you 
have to pay to get it right.

R


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



RE: Need help for java IDE

2003-01-03 Thread Arik Levin ( Tikal )
IntelliJ's IDEA is that good??? I'm not familiar with it

-Original Message-
From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 4:52 PM
To: Struts Users Mailing List
Subject: Re: Need help for java IDE


On Friday, January 3, 2003, at 09:51 AM, Arik Levin ( Tikal ) wrote:

 $200 is not much, but in case of free IDE: Eclipse;)

Yeah but everything free is not as good as struts ;-), some things you 
have to pay to get it right.

R


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


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




Re: Need help for java IDE

2003-01-03 Thread Robert S. Sfeir

On Friday, January 3, 2003, at 10:11 AM, Arik Levin ( Tikal ) wrote:


IntelliJ's IDEA is that good??? I'm not familiar with it


You don't know what you're missing!  Download it, it's free for 30 
days.  Won't take you anywhere near that long to get used to it, and 
get addicted to it.

R


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



RE: Need help for java IDE

2003-01-03 Thread Sri Sankaran

The thing I like about IDEA is that because it is so intuitive to use it gets out of 
the way of coding.  If you find yourself thinking I *should* be able to do xyz by, 
say, right-clicking... chances are that's how it is done.  Since it is written for 
Java application development, its feature set is very apropos.  It also has an active 
community developing plug-ins to extend the feature set -- including James Holmes 
Struts Console.

Sri

 -Original Message-
 From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 03, 2003 10:12 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Need help for java IDE
 
 
 IntelliJ's IDEA is that good??? I'm not familiar with it
 
 -Original Message-
 From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 03, 2003 4:52 PM
 To: Struts Users Mailing List
 Subject: Re: Need help for java IDE
 
 
 On Friday, January 3, 2003, at 09:51 AM, Arik Levin ( Tikal ) wrote:
 
  $200 is not much, but in case of free IDE: Eclipse;)
 
 Yeah but everything free is not as good as struts ;-), some 
 things you 
 have to pay to get it right.
 
 R
 
 
 --
 To unsubscribe, e-mail: 
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




RE: Need help for java IDE

2003-01-03 Thread Arik Levin ( Tikal )
I'll do that R, thanx!

-Original Message-
From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 5:17 PM
To: Struts Users Mailing List
Subject: Re: Need help for java IDE


On Friday, January 3, 2003, at 10:11 AM, Arik Levin ( Tikal ) wrote:

 IntelliJ's IDEA is that good??? I'm not familiar with it

You don't know what you're missing!  Download it, it's free for 30 
days.  Won't take you anywhere near that long to get used to it, and 
get addicted to it.

R


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


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




Re: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Cedric Dumoulin

 Hi, 

 The 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri 
specifies a logical name that jsp pages can use. You can replace it by 
any logical name as long as your jsp use the same logical name.
The taglib-location specified where the tld file resides in your 
application. Does the file exist at specified location in your deployed 
directories ?

  Cedric




Daniel Grey wrote:

I am trying to deploy a .ear file to JBOSS and canNot get around this
error:

org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application

There are a bunch of .jsp files that contain this reference:
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %

The web.xml has this reference:
taglib

taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
   taglib-location/WEB-INF/struts-tiles.tld/taglib-location
 /taglib

The lib directory has struts.jar and the classes directory has the
classes
Does anyone have a clue on this?
HELP!
Thanks

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


 



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




RE: Need help for java IDE

2003-01-03 Thread mech
I tried Lomboz, but actually you need it only if you use an application
server like JBOSS.
Just for Tomcat's purposes you can try:

Sysdeo Eclipse Tomcat Launcher Plugin
http://www.sysdeo.com/eclipse/tomcatPlugin.html

Not such feature overloaded like Lomboz, if just writing webapps, but
does the job. Start, Stop, Restart Tomcat. Deploy webapps to .wars
(although I don't like that for development).

AFAIK. The only strange thing is that you need to copy some Jasper
stuff into Tomcats common/lib directory to make compile from Eclipse
work. If you want to run Tomcat standalone later you need to remove that
lib again. 

I tried Netbeans (to slow GUI) and Eclipse (much faster) with some
plugins... Have a look at 
http://eclipse-plugins.2y.net/eclipse/index.jsp for more stuff.

Michael

 -Original Message-
 From: Robert S. Sfeir [mailto:[EMAIL PROTECTED]] 
 Sent: Freitag, 3. Januar 2003 15:44
 To: Struts Users Mailing List
 Subject: Re: Need help for java IDE
 
 
 
 On Friday, January 3, 2003, at 09:39 AM, James Childers wrote:
 
  As much as I like Eclipse, it doesn't do JSPs at this time, which is
  what the original poster asked for. (AFAIK; if there is a plug-in 
  available somebody please correct me.)
 
 There's Lomboz on sourceforge.net but in my opinion in lacks 
 HEAVYLY on 
 proper development, support and setup.  I think they're 
 trying too hard 
 to do too much, and lots of stuff doesn't work right.  Also whom ever 
 is writing the code is not very responsive and seems to be extremely 
 protective of their code.  I've offered to help, but didn't 
 even get an 
 email back.  I wanted to do testing for them on Mac OS X, 
 because they 
 don't have access to one, and they never wrote back.
 
 So I dropped Eclipse AND Netbeans in favor of IntelliJ's IDEA.  They 
 currently have a special where you can buy it for $200.00... 
 that's not 
 expensive considering everything the IDE does.
 
 R
 
 
  -= J
 
  -Original Message-
  From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
  Sent: Friday, January 03, 2003 8:41 AM
  To: 'Struts Users Mailing List'
  Subject: RE: Need help for java IDE
 
 
  Eclipse is more mature than Netbeans and more than 
  http://www.jedit.org I have worked with all of them. I recommend 
  using Eclipse.
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: Friday, January 03, 2003 3:55 PM
  To: 'Struts Users Mailing List'
  Subject: RE: Need help for java IDE
 
  Also consider Eclipse
 
   http://www.eclipse.org
 
 
 
  --
  James Mitchell
  Software Engineer/Open Source Evangelist http://www.open-tools.org
 
  C makes it easy to shoot yourself in the foot; C++ makes 
 it harder, 
  but when you do, it blows away your whole leg.
  - Bjarne Stroustrup
 
 
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]
  Sent: Friday, January 03, 2003 6:20 AM
  To: Struts Users Mailing List
  Subject: Re: Need help for java IDE
 
 
 
 
  Netbeans is quite a good ide, try it
 
 
 
 
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 


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




[FRIDAY] show this to your wife/wives

2003-01-03 Thread Gemes Tibor
http://www.monster-hardware.com/articles/marriedageek.htm

Tib

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




[OT] some log4j problems using RollingFileAppender not creating a backup file

2003-01-03 Thread Rick Reumann
I know this isn't a struts question, but the log4j list seems pretty
dead that I posted this to and I've searched and searched for some
answers and I'm desperate now:). Maybe someone else using log4j in
their struts apps has run into this problem...

I'm using log4j 1.2.7jar and Tomcat 4.0.6 on w2K.

I can not seem to successfully get the RollingFileAppender to back up
the file after it gets to a certain size. I saw this post in the
archives but it didn't seem to provide a solution:
http://www.mail-archive.com/log4j-user@jakarta.apache.org/msg06397.html

My properties file looks like:

log4j.rootCategory=ERROR, rolling
log4j.logger.com.adp=DEBUG, rolling
log4j.logger.corporate=DEBUG, rolling

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
 
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=C:\\jakarta-tomcat-4.0.6\\logs\\backoffice.log
log4j.appender.rolling.MaxFileSize=2KB
log4j.appender.rolling.MaxBackupIndex=5
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{MM/dd/yy hh:mm:ss a } %-5p %c - %m%n

I'm using 2KB for max backup size for testing, but it never seems to
create a backup file (backoffice.log.1 etc). It does end up resetting
the  backoffice.log when I restart the server but normally without
bouncing the log just fills up past 2K. I really would love to get
this backup working otherwise I'll probably have to reinvent the wheel
and create my own FileIO stuff to do the logging.

Any help would be greatly appreciated with this.

Thanks,


-- 

Rick
mailto:[EMAIL PROTECTED]


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




DynaValidatorForm data not repopulating

2003-01-03 Thread Samir Shah
Hi,

I have a form which get populated using bean in the
request object, the use can edit information and
submit it.  The formbean for this defined as below.

form-bean name=gotoStep2Form 

type=org.apache.struts.validator.DynaValidatorForm 

form-property name=propId
type=java.lang.String /
form-property name=propNm
type=java.lang.String /
form-property name=effDt
type=java.lang.String /
form-property name=crteDt
type=java.lang.String /
form-property name=prospectNm
type=java.lang.String /
form-property name=strLn1
type=java.lang.String /
form-property name=strLn2
type=java.lang.String /
form-property name=admnNm
type=java.lang.String /
form-property name=admnTtlNm
type=java.lang.String /

form-property name=cityNm
type=java.lang.String /
form-property name=admnPhnNbr
type=java.lang.String /
form-property name=stateCd
type=java.lang.String /
form-property name=admnFaxNbr
type=java.lang.String /
form-property name=zipCd
type=java.lang.String /
form-property name=admnEMailAddr
type=java.lang.String /
form-property name=sicCd
type=java.lang.String /
form-property name=sicDesc
type=java.lang.String /
  /form-bean

Here is what has been defined for valiator.xml

  form name=gotoStep2Form
field
property=prospectNm
depends=required
arg0
key=gotoStep2.propNm.displayName/
 /field
 field
property=zipCd
depends=required,mask
arg0 key=zipCd.displayName/
 var
   var-namemask/var-name
   var-value${zip}/var-value
 /var
 /field
 field
property=stateCd
depends=required
arg0 key=stateCd.displayName/
 /field 
/form

When the use changes some of the information and say
does not provide a zip code, the validator kicks in
and 
send the user back to the page saying zip code is
required.

PROBLEM:  The problem is it fails to draw the form
with the information.  basically no form in drawn.

WHAT I TRIED:  I put the beans in the session object,
now when it gives a validation error it finds to
information to redraw the page, but it basically zaps
all the information that was entered by the user.  I
have a feeling that putting the beans in the session
is not the way to go. 

TIA,

Samir


=
-Samir Shah

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: DynaValidatorForm data not repopulating

2003-01-03 Thread Rick Reumann

On Friday, January 3, 2003, 11:04:08 AM, Samir wrote:

SS PROBLEM:  The problem is it fails to draw the form
SS with the information.  basically no form in drawn.

Is absolutely nothing drawn or is the html form drawn but just the
fields aren't filled back in with what the user selected? Stupid
question I know (but sometimes it's the obvious).. are you sure you
are being forwarded to the correct page when the validation finds
errors? Check that you have the correct page listed as the input
page in your config file for that action. If the form is showing up
but just not populated with the information then it's something
different but figured I'd start with the obvious first.

-- 

Rick
mailto:[EMAIL PROTECTED]


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




RE: [OT] some log4j problems using RollingFileAppender not creating a backup file

2003-01-03 Thread Siggelkow, Bill
Rick, 
  I have had this working with Log4j 1.2.6 on both solaris and windows.  I saw your 
post on the struts-atlanta group about this and noting some possible windows file 
locking issue.  Have you tried a different path to see if that makes any difference?  
Maybe use a relative file path?

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:59 AM
To: Struts List
Subject: [OT] some log4j problems using RollingFileAppender not creating
a backup file


I know this isn't a struts question, but the log4j list seems pretty
dead that I posted this to and I've searched and searched for some
answers and I'm desperate now:). Maybe someone else using log4j in
their struts apps has run into this problem...

I'm using log4j 1.2.7jar and Tomcat 4.0.6 on w2K.

I can not seem to successfully get the RollingFileAppender to back up
the file after it gets to a certain size. I saw this post in the
archives but it didn't seem to provide a solution:
http://www.mail-archive.com/log4j-user@jakarta.apache.org/msg06397.html

My properties file looks like:

log4j.rootCategory=ERROR, rolling
log4j.logger.com.adp=DEBUG, rolling
log4j.logger.corporate=DEBUG, rolling

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
 
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=C:\\jakarta-tomcat-4.0.6\\logs\\backoffice.log
log4j.appender.rolling.MaxFileSize=2KB
log4j.appender.rolling.MaxBackupIndex=5
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{MM/dd/yy hh:mm:ss a } %-5p %c - %m%n

I'm using 2KB for max backup size for testing, but it never seems to
create a backup file (backoffice.log.1 etc). It does end up resetting
the  backoffice.log when I restart the server but normally without
bouncing the log just fills up past 2K. I really would love to get
this backup working otherwise I'll probably have to reinvent the wheel
and create my own FileIO stuff to do the logging.

Any help would be greatly appreciated with this.

Thanks,


-- 

Rick
mailto:[EMAIL PROTECTED]


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

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




Re[2]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Rick Reumann
On Friday, January 3, 2003, 11:27:08 AM, Bill wrote:

SB Rick,I have had this working with Log4j 1.2.6 on both solaris
SB and windows.  I saw your post on the struts-atlanta group about
SB this and noting some possible windows file locking issue.  Have
SB you tried a different path to see if that makes any difference?
SB Maybe use a relative file path?

Man, I'm stumped even more by all of this:) ... I tried having a
log file in all different places and with all different path set
ups. Behavior seems to always be the same.

The only small oddity I've found is that if I let the log fill up
on it's own up to capacity (2K) it will just the same log file
over again when it gets too big. However if I manually cut and
past to fill up the file to say 5K and then use the app which will
write to the log file it doesn't start the file over and keeps
writing to it (until I restart the server). Neither scenario
creates a backup though so I'm still stuck there. I'm going nuts
here.

You sure this log4j properties file looks ok? (on this last
attempt I took out all paths and it writes the log file right in
the bin folder).

log4j.rootCategory=ERROR, rolling
log4j.logger.com.adp=DEBUG, rolling
log4j.logger.corporate=DEBUG, rolling
 
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
 
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=backoffice.log
log4j.appender.rolling.MaxFileSize=2KB
log4j.appender.rolling.MaxBackupIndex=5
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{MM/dd/yy hh:mm:ss a } %-5p %c - 
%m%n


Any other ideas? Thanks for the help so far.

-- 

Rick
mailto:[EMAIL PROTECTED]


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




Re: DynaValidatorForm data not repopulating

2003-01-03 Thread Samir Shah
 Is absolutely nothing drawn or is the html form
 drawn but just the
 fields aren't filled back in with what the user
 selected? 
The HTML page gets drawn, but I get an error logged
that says
[1/3/03 11:00:02:000 CST] 7da25c48 WebGroup  X
Servlet Error: Cannot find bean prospect in any scope:
javax.servlet.jsp.JspException: Cannot find bean
prospect in any scope
at quoteweb._step1_jsp_90._jspService(step1.jsp  
  :373)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:142)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:300)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


 are you sure you
 are being forwarded to the correct page when the
 validation finds
 errors? Check that you have the correct page listed
 as the input
 page in your config file for that action. 
Here is what the config file says
actionpath=/gotoStep2
   type=com.fdl.quoteweb.GotoStep2Action
   scope=request
   name=gotoStep2Form
   validate=true
   input=/quoteweb/step1.jsp
   forward name=success
path=/quoteweb/step2.jsp /
   forward name=failure
path=/quoteweb/step1.jsp /
/action

If the
 form is showing up
 but just not populated with the information then
 it's something
 different but figured I'd start with the obvious
 first.
 
 -- 
 
 Rick
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


=
-Samir Shah

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Re[2]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Siggelkow, Bill
Are you saying that when it reaches 2K it is creating a new backoffice.log but not 
creating the archive (backup) copy?

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 11:58 AM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re[2]: [OT] some log4j problems using RollingFileAppender not
creati ng a backup file


On Friday, January 3, 2003, 11:27:08 AM, Bill wrote:

SB Rick,I have had this working with Log4j 1.2.6 on both solaris
SB and windows.  I saw your post on the struts-atlanta group about
SB this and noting some possible windows file locking issue.  Have
SB you tried a different path to see if that makes any difference?
SB Maybe use a relative file path?

Man, I'm stumped even more by all of this:) ... I tried having a
log file in all different places and with all different path set
ups. Behavior seems to always be the same.

The only small oddity I've found is that if I let the log fill up
on it's own up to capacity (2K) it will just the same log file
over again when it gets too big. However if I manually cut and
past to fill up the file to say 5K and then use the app which will
write to the log file it doesn't start the file over and keeps
writing to it (until I restart the server). Neither scenario
creates a backup though so I'm still stuck there. I'm going nuts
here.

You sure this log4j properties file looks ok? (on this last
attempt I took out all paths and it writes the log file right in
the bin folder).

log4j.rootCategory=ERROR, rolling
log4j.logger.com.adp=DEBUG, rolling
log4j.logger.corporate=DEBUG, rolling
 
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
 
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
log4j.appender.rolling.File=backoffice.log
log4j.appender.rolling.MaxFileSize=2KB
log4j.appender.rolling.MaxBackupIndex=5
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%d{MM/dd/yy hh:mm:ss a } %-5p %c - 
%m%n


Any other ideas? Thanks for the help so far.

-- 

Rick
mailto:[EMAIL PROTECTED]


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

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




RE: [FRIDAY] show this to your wife/wives

2003-01-03 Thread Chappell, Simon P
Now this is very funny. I'm gonna have to show this to my wife. Thankfully my wife is 
very understanding of my geek tendencies and has even suggested that I buy her the I 
love my geek t-shirt from thinkgeek.com for valentines day! Cool or what? :-)

Here's the link:

http://www.thinkgeek.com/tshirts/ladies/5981/

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 6:03 AM
To: [EMAIL PROTECTED]
Subject: [FRIDAY] show this to your wife/wives


http://www.monster-hardware.com/articles/marriedageek.htm

Tib

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



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




RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Daniel Grey
Yes the taglib-location file exists in the correct location:
taglib-location/WEB-INF/struts-tiles.tld/taglib-location

The beginning of struts-tiles.tld is:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd;
taglib
  tlibversion1.1/tlibversion
  jspversion1.1/jspversion
  shortnameTiles Tag Library/shortname
  urihttp://jakarta.apache.org/struts/tags-tiles-1.1/uri
  tag
nameinsert/name
tagclassorg.apache.struts.taglib.tiles.InsertTag/tagclass
bodycontentJSP/bodycontent
attribute

I've tried replacing
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
with different version numbers etc etc nothing works.
How can I verify / locate the logical name it is referring to?
Thanks very much
Dan


-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 7:31 AM
To: Struts Users Mailing List
Subject: Re: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved



  Hi, 

  The 
 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri

specifies a logical name that jsp pages can use. You can replace it by 
any logical name as long as your jsp use the same logical name.
The taglib-location specified where the tld file resides in your 
application. Does the file exist at specified location in your deployed 
directories ?

   Cedric




Daniel Grey wrote:

I am trying to deploy a .ear file to JBOSS and canNot get around this
error:

org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application

There are a bunch of .jsp files that contain this reference:
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %

The web.xml has this reference:
 taglib
 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri

taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

The lib directory has struts.jar and the classes directory has the
classes
Does anyone have a clue on this?
HELP!
Thanks

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


  



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


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




RE: [FRIDAY] show this to your wife/wives

2003-01-03 Thread Jeff Jensen
Very cool indeed.  I gave the I Love My Geek t-shirt to my wife for this 
Christmas.  She absolutely loved it!  Highly recommended.  

I also gave the Geek in Training t-shirt to my 4 year old (who rules the 
computer already...I think he will begin Struts contributions by the time he is 
6 :-).  That is a fun one too.

BTW - the article was great - struck a bit too accurately though!


Quoting Chappell, Simon P [EMAIL PROTECTED]:

 Now this is very funny. I'm gonna have to show this to my wife. Thankfully my
 wife is very understanding of my geek tendencies and has even suggested that
 I buy her the I love my geek t-shirt from thinkgeek.com for valentines day!
 Cool or what? :-)
 
 Here's the link:
 
 http://www.thinkgeek.com/tshirts/ladies/5981/
 
 Simon
 
 -
 Simon P. Chappell [EMAIL PROTECTED]
 Java Programming Specialist  www.landsend.com
 Lands' End, Inc.   (608) 935-4526
 
 
 -Original Message-
 From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 6:03 AM
 To: [EMAIL PROTECTED]
 Subject: [FRIDAY] show this to your wife/wives
 
 
 http://www.monster-hardware.com/articles/marriedageek.htm
 
 Tib
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user-[EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 



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




html:select and html:options

2003-01-03 Thread Jose Luis
hi everyone, i have a page whit the following code:

nested:select property=sector 

nested:options property=sectorCompany/

/nested:select

where sectorCompany is an ArrayList that i built prior to view the jsp. My problem is:

what i really need is to pass to the result action the value which represents the 
labels that contains the SectorCompany ArrayList, so, How i can build a select that 
shows labels but that also stores the id (longs representing registers in a RDBMS) to 
pass this id?


Thank everybody in advance.

ps. If someOne knows a subject in the mailing list which already solves this plese 
redirectme to it.

José Luis






RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Daniel Grey
Yes I did - still get the same results. I've tried more variations on
that than I can remember.
Thanks

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 6:33 AM
To: 'Struts Users Mailing List'
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


Did you try taking the version off the URI?  In other words, use:
http://jakarta.apache.org/struts/tags-tiles;

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 5:21 PM
To: [EMAIL PROTECTED]
Subject: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


I am trying to deploy a .ear file to JBOSS and canNot get around this
error:

org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application

There are a bunch of .jsp files that contain this reference:
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %

The web.xml has this reference:
 taglib
 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

The lib directory has struts.jar and the classes directory has the
classes
Does anyone have a clue on this?
HELP!
Thanks

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

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


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




tiles:insert page= question...

2003-01-03 Thread ajTreece
I have a need to display a page via tiles:insert page=some-page /, 
but the trick is the page is NOT contained in the webapp. It is a page 
that is external to the webapp but still on the same server.

I have recently switched from using iPlanet v6 to Tomcat v4.1.18 as my 
web server/container for various reasons, but it worked under iPlanet 
and does not under Tomcat. If I include the external page in my webapp 
it works on Tomcat. Is this the normal feature of tiles? Can tiles only 
work with files that reside in the webapp -or- am I just not calling it 
correctly.

On my server I have two webapps one is called staging. I'm converting an 
existing site to struts with a whole new look and feel and the staging 
area is a place where developers can make some quick changes to an 
existing page without having to reload the main webapp over and over 
again. They will eventually be part of the main webapp, but now they are 
technically external to my main webapp. If I just use the full URL in 
the browser like http://myserver/staging/some-page.html the page views 
as expected, but if I try to display it from my main webapp via 
tiles:insert page=/staging/some-page.html / I just get a blank screen.


Thanks, ajTreece



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



RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
Don't understand why you prefer an absolute path? I use relative path,

In web.xml

taglib
taglib-uri/tags/struts-tiles/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
/taglib

tld file is in my WEB-INF, struts.jar is in my WEB-INF/lib, and tiles plugin
is defined in struts config xml.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 1:02 PM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 

Yes I did - still get the same results. I've tried more variations on
that than I can remember.
Thanks

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 6:33 AM
To: 'Struts Users Mailing List'
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


Did you try taking the version off the URI?  In other words, use:
http://jakarta.apache.org/struts/tags-tiles;

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 5:21 PM
To: [EMAIL PROTECTED]
Subject: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


I am trying to deploy a .ear file to JBOSS and canNot get around this
error:

org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application

There are a bunch of .jsp files that contain this reference:
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %

The web.xml has this reference:
 taglib
 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

The lib directory has struts.jar and the classes directory has the
classes
Does anyone have a clue on this?
HELP!
Thanks

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

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


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



RE: html:select and html:options

2003-01-03 Thread Sterin, Ilya
You can use the LabelValueBean class for that, see www.husted.com for
examples.

Ilya

-Original Message-
From: Jose Luis
To: Struts Users Mailing List
Sent: 1/3/03 11:04 AM
Subject: html:select and html:options

hi everyone, i have a page whit the following code:

nested:select property=sector 

nested:options property=sectorCompany/

/nested:select

where sectorCompany is an ArrayList that i built prior to view the jsp.
My problem is:

what i really need is to pass to the result action the value which
represents the labels that contains the SectorCompany ArrayList, so, How
i can build a select that shows labels but that also stores the id
(longs representing registers in a RDBMS) to pass this id?


Thank everybody in advance.

ps. If someOne knows a subject in the mailing list which already solves
this plese redirectme to it.

José Luis






RE: tiles:insert page= question...

2003-01-03 Thread Siggelkow, Bill
It is my understanding that any page that you include cannot be outside of the current 
servlet context root.  In fact, I am surprised that this worked for you on iPlanet -- 
it seems to me to be inviolation of the servlet spec.

-Original Message-
From: ajTreece [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 1:11 PM
To: Struts Users Mailing List
Subject: tiles:insert page= question...


I have a need to display a page via tiles:insert page=some-page /, 
but the trick is the page is NOT contained in the webapp. It is a page 
that is external to the webapp but still on the same server.

I have recently switched from using iPlanet v6 to Tomcat v4.1.18 as my 
web server/container for various reasons, but it worked under iPlanet 
and does not under Tomcat. If I include the external page in my webapp 
it works on Tomcat. Is this the normal feature of tiles? Can tiles only 
work with files that reside in the webapp -or- am I just not calling it 
correctly.

On my server I have two webapps one is called staging. I'm converting an 
existing site to struts with a whole new look and feel and the staging 
area is a place where developers can make some quick changes to an 
existing page without having to reload the main webapp over and over 
again. They will eventually be part of the main webapp, but now they are 
technically external to my main webapp. If I just use the full URL in 
the browser like http://myserver/staging/some-page.html the page views 
as expected, but if I try to display it from my main webapp via 
tiles:insert page=/staging/some-page.html / I just get a blank screen.


Thanks, ajTreece



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

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




Newbie struts-blank question.

2003-01-03 Thread Alok Pota
I have a simple application built on top of the struts-blank template. The
app consist of a simple jsp, action class, action form class trilogy to get
my hands wet.

I noticed that for some reason, the perform(..) method of the action class
never gets called.


So I decided to extend ActionServlet and put System.out.println in the
code..

public class TestActionServlet extends ActionServlet {

protected Action processActionCreate(ActionMapping mapping,
HttpServletRequest request) {
Action act = super.processActionCreate(mapping, request);
System.out.println(Action identified +act);
return act;
}

public void doGet(HttpServletRequest request, HttpServletResponse
response)
 throws IOException, ServletException {

 System.out.println(doGEt called  );
 super.doGet(request, response);

}

}


Looking at the console print out I found that
processActionCreate(ActionMapping mapping, HttpServletRequest request) {
never gets called.

I double checked the URL that I am calling the URL is
http://localhost:80/app/submit.do and following are my XML files...

==
struts-config.xml
==

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 1.0//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
struts-config
  !-- == Form Bean Definitions
=== --
  form-beans
form-bean name=submitForm type=SubmitForm/
  /form-beans
  !-- == Action Mapping Definitions
== --
  action-mappings
 action  path=/submit
  type=SubmitAction
  name=submitForm
  input=/submit.jsp
  scope=request
forward name=success path=/submit.jsp/
forward name=failure path=/submit.jsp/
/action
  /action-mappings
/struts-config

==
web.xml
==

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app

  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN

  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app
  !-- Standard Action Servlet Configuration (with debugging) --

  servlet
servlet-nameaction/servlet-name
servlet-classTestActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
init-param
  param-namedetail/param-name
  param-value2/param-value
/init-param
init-param
  param-namevalidate/param-name
  param-valuetrue/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet

  !-- Standard Action Servlet Mapping --

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

  !-- Struts Tag Library Descriptors --

  taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
taglib-location/WEB-INF/struts-logic.tld/taglib-location
  /taglib
/web-app


From whatever little knowldege of Struts I have, I believe the that .do
suffix should be stripped by struts and the
/submit action be translated to instantiate (if necessary) the SubmitAction
class. However, this class never gets
instantiated.

-Pls advice


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




nestedtag, iterate and multibox

2003-01-03 Thread Jose Luis
I´m testing the nested tags, and i found some troublesome in the way i used to do 
things and with nested tags i couldn´t. Here is an example, (perhaps someone have a 
solution or workaround).

here is the code:

nested:iterate property=empleados id=service indexId=servIdx
tr align=center 
td width=24 
%-- html:multibox property=listaempleados value=
/html:multibox --%
%-- input type=checkbox name=checkbox2 value=checkbox --%
/td
td width=226nested:write property=nombre//td
td width=196nested:write property=email//td
td width=98nested:write property=telefono//td
td width=144Rol/td
/tr
/nested:iterate

where i iterate in the empleados property, an ArrayList. This ArrayList is an 
ArrayList of Objects of type Empleados. This class has some properties like nombre, 
email, telefono,etc and, and here is the problem, i want to have a multibox (one check 
box per line) which value once checked will be the Emplado id.

Before nested tags i use jspscriptlet to put this value into the value like value=%= 
empleado.getId() % but with the nested tags i cant use it.



Have anybody a solution?



thanks.



P.S. happy new year.








Re: Newbie struts-blank question.

2003-01-03 Thread Khalid K.
what version of Struts are you using?
I believe the perform method is deprecated in 1.1-b*
checkout the javadocs

http://jakarta.apache.org/struts/

Khalid


- Original Message -
From: Alok Pota [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 10:17 AM
Subject: Newbie struts-blank question.


 I have a simple application built on top of the struts-blank template. The
 app consist of a simple jsp, action class, action form class trilogy to
get
 my hands wet.

 I noticed that for some reason, the perform(..) method of the action class
 never gets called.


 So I decided to extend ActionServlet and put System.out.println in the
 code..

 public class TestActionServlet extends ActionServlet {

 protected Action processActionCreate(ActionMapping mapping,
 HttpServletRequest request) {
 Action act = super.processActionCreate(mapping, request);
 System.out.println(Action identified +act);
 return act;
 }

 public void doGet(HttpServletRequest request, HttpServletResponse
 response)
  throws IOException, ServletException {

  System.out.println(doGEt called  );
  super.doGet(request, response);

 }

 }


 Looking at the console print out I found that
 processActionCreate(ActionMapping mapping, HttpServletRequest request) {
 never gets called.

 I double checked the URL that I am calling the URL is
 http://localhost:80/app/submit.do and following are my XML files...

 ==
 struts-config.xml
 ==

 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE struts-config PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration
1.0//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
 struts-config
   !-- == Form Bean Definitions
 === --
   form-beans
 form-bean name=submitForm type=SubmitForm/
   /form-beans
   !-- == Action Mapping Definitions
 == --
   action-mappings
  action  path=/submit
   type=SubmitAction
   name=submitForm
   input=/submit.jsp
   scope=request
 forward name=success path=/submit.jsp/
 forward name=failure path=/submit.jsp/
 /action
   /action-mappings
 /struts-config

 ==
 web.xml
 ==

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app

   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN

   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 web-app
   !-- Standard Action Servlet Configuration (with debugging) --

   servlet
 servlet-nameaction/servlet-name
 servlet-classTestActionServlet/servlet-class
 init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namevalidate/param-name
   param-valuetrue/param-value
 /init-param
 load-on-startup2/load-on-startup
   /servlet

   !-- Standard Action Servlet Mapping --

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

   !-- Struts Tag Library Descriptors --

   taglib
 taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
 taglib-location/WEB-INF/struts-bean.tld/taglib-location
   /taglib

   taglib
 taglib-uri/WEB-INF/struts-html.tld/taglib-uri
 taglib-location/WEB-INF/struts-html.tld/taglib-location
   /taglib

   taglib
 taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
 taglib-location/WEB-INF/struts-logic.tld/taglib-location
   /taglib
 /web-app


 From whatever little knowldege of Struts I have, I believe the that .do
 suffix should be stripped by struts and the
 /submit action be translated to instantiate (if necessary) the
SubmitAction
 class. However, this class never gets
 instantiated.

 -Pls advice


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





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




Re: html:select and html:options

2003-01-03 Thread Jose Luis
RE: html:select and html:optionsnow i have the page www.husted.com/struts/, please 
could you guideme where exactly or moreless?

Thanks
p.s happy new year
  - Original Message - 
  From: Sterin, Ilya 
  To: 'Jose Luis ' ; 'Struts Users Mailing List ' 
  Sent: Friday, January 03, 2003 7:08 PM
  Subject: RE: html:select and html:options


  You can use the LabelValueBean class for that, see www.husted.com for examples. 

  Ilya 

  -Original Message- 
  From: Jose Luis 
  To: Struts Users Mailing List 
  Sent: 1/3/03 11:04 AM 
  Subject: html:select and html:options 

  hi everyone, i have a page whit the following code: 

  nested:select property=sector  

  nested:options property=sectorCompany/ 

  /nested:select 

  where sectorCompany is an ArrayList that i built prior to view the jsp. 
  My problem is: 

  what i really need is to pass to the result action the value which 
  represents the labels that contains the SectorCompany ArrayList, so, How 
  i can build a select that shows labels but that also stores the id 
  (longs representing registers in a RDBMS) to pass this id? 



  Thank everybody in advance. 

  ps. If someOne knows a subject in the mailing list which already solves 
  this plese redirectme to it. 

  José Luis 







RE: Newbie struts-blank question.

2003-01-03 Thread Alok Pota
I'm using the perform method with the following signature.

perform(ActionMapping mapping, ActionForm form, HttpServletRequest
request,HttpServletResponse response)


Two perform methods that use ActionServlet as one of their arguments have
been deprecated. The one I am using has
not been deprecated.



-Original Message-
From: Khalid K. [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 12:23 PM
To: Struts Users Mailing List
Subject: Re: Newbie struts-blank question.


what version of Struts are you using?
I believe the perform method is deprecated in 1.1-b*
checkout the javadocs

http://jakarta.apache.org/struts/

Khalid


- Original Message -
From: Alok Pota [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 10:17 AM
Subject: Newbie struts-blank question.


 I have a simple application built on top of the struts-blank template. The
 app consist of a simple jsp, action class, action form class trilogy to
get
 my hands wet.

 I noticed that for some reason, the perform(..) method of the action class
 never gets called.


 So I decided to extend ActionServlet and put System.out.println in the
 code..

 public class TestActionServlet extends ActionServlet {

 protected Action processActionCreate(ActionMapping mapping,
 HttpServletRequest request) {
 Action act = super.processActionCreate(mapping, request);
 System.out.println(Action identified +act);
 return act;
 }

 public void doGet(HttpServletRequest request, HttpServletResponse
 response)
  throws IOException, ServletException {

  System.out.println(doGEt called  );
  super.doGet(request, response);

 }

 }


 Looking at the console print out I found that
 processActionCreate(ActionMapping mapping, HttpServletRequest request) {
 never gets called.

 I double checked the URL that I am calling the URL is
 http://localhost:80/app/submit.do and following are my XML files...

 ==
 struts-config.xml
 ==

 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE struts-config PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration
1.0//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
 struts-config
   !-- == Form Bean Definitions
 === --
   form-beans
 form-bean name=submitForm type=SubmitForm/
   /form-beans
   !-- == Action Mapping Definitions
 == --
   action-mappings
  action  path=/submit
   type=SubmitAction
   name=submitForm
   input=/submit.jsp
   scope=request
 forward name=success path=/submit.jsp/
 forward name=failure path=/submit.jsp/
 /action
   /action-mappings
 /struts-config

 ==
 web.xml
 ==

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app

   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN

   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 web-app
   !-- Standard Action Servlet Configuration (with debugging) --

   servlet
 servlet-nameaction/servlet-name
 servlet-classTestActionServlet/servlet-class
 init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namevalidate/param-name
   param-valuetrue/param-value
 /init-param
 load-on-startup2/load-on-startup
   /servlet

   !-- Standard Action Servlet Mapping --

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

   !-- Struts Tag Library Descriptors --

   taglib
 taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
 taglib-location/WEB-INF/struts-bean.tld/taglib-location
   /taglib

   taglib
 taglib-uri/WEB-INF/struts-html.tld/taglib-uri
 taglib-location/WEB-INF/struts-html.tld/taglib-location
   /taglib

   taglib
 taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
 taglib-location/WEB-INF/struts-logic.tld/taglib-location
   /taglib
 /web-app


 From whatever little knowldege of Struts I have, I believe the that .do
 suffix should be stripped by struts and the
 /submit action be translated to instantiate (if necessary) the
SubmitAction
 class. However, this class never gets
 instantiated.

 -Pls advice


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





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



--
To unsubscribe, e-mail:   mailto:[EMAIL 

RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Craig R. McClanahan


On Fri, 3 Jan 2003 [EMAIL PROTECTED] wrote:


 Don't understand why you prefer an absolute path? I use relative path,

 In web.xml

 taglib
   taglib-uri/tags/struts-tiles/taglib-uri
   taglib-location/WEB-INF/struts-tiles.tld/taglib-location
 /taglib


In a JSP 1.2 (or later) container, you can now nest multiple TLDS in the
META-INF/tlds subdirectory of a JAR file, and they will be automatically
recognized by the container.  That means you do not have to use any
taglib directive at all in the web.xml file, if you don't want to, as
long as you use the official URIs for these libraries (it's in the uri
element of the TLD itself.

The Struts documentation still describes the techniques using taglib,
because the minimum platform is JSP 1.1 and automatic TLD recognition for
multiple tag libraries does not work there.

Craig


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




RE: Newbie struts-blank question.

2003-01-03 Thread Alok Pota
My bad. You are right its deprecated. Thanks



-Original Message-
From: Alok Pota [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 12:28 PM
To: Struts Users Mailing List
Subject: RE: Newbie struts-blank question.


I'm using the perform method with the following signature.

perform(ActionMapping mapping, ActionForm form, HttpServletRequest
request,HttpServletResponse response)


Two perform methods that use ActionServlet as one of their arguments have
been deprecated. The one I am using has
not been deprecated.



-Original Message-
From: Khalid K. [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 12:23 PM
To: Struts Users Mailing List
Subject: Re: Newbie struts-blank question.


what version of Struts are you using?
I believe the perform method is deprecated in 1.1-b*
checkout the javadocs

http://jakarta.apache.org/struts/

Khalid


- Original Message -
From: Alok Pota [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 10:17 AM
Subject: Newbie struts-blank question.


 I have a simple application built on top of the struts-blank template. The
 app consist of a simple jsp, action class, action form class trilogy to
get
 my hands wet.

 I noticed that for some reason, the perform(..) method of the action class
 never gets called.


 So I decided to extend ActionServlet and put System.out.println in the
 code..

 public class TestActionServlet extends ActionServlet {

 protected Action processActionCreate(ActionMapping mapping,
 HttpServletRequest request) {
 Action act = super.processActionCreate(mapping, request);
 System.out.println(Action identified +act);
 return act;
 }

 public void doGet(HttpServletRequest request, HttpServletResponse
 response)
  throws IOException, ServletException {

  System.out.println(doGEt called  );
  super.doGet(request, response);

 }

 }


 Looking at the console print out I found that
 processActionCreate(ActionMapping mapping, HttpServletRequest request) {
 never gets called.

 I double checked the URL that I am calling the URL is
 http://localhost:80/app/submit.do and following are my XML files...

 ==
 struts-config.xml
 ==

 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE struts-config PUBLIC
   -//Apache Software Foundation//DTD Struts Configuration
1.0//EN
   http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd;
 struts-config
   !-- == Form Bean Definitions
 === --
   form-beans
 form-bean name=submitForm type=SubmitForm/
   /form-beans
   !-- == Action Mapping Definitions
 == --
   action-mappings
  action  path=/submit
   type=SubmitAction
   name=submitForm
   input=/submit.jsp
   scope=request
 forward name=success path=/submit.jsp/
 forward name=failure path=/submit.jsp/
 /action
   /action-mappings
 /struts-config

 ==
 web.xml
 ==

 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app

   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN

   http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 web-app
   !-- Standard Action Servlet Configuration (with debugging) --

   servlet
 servlet-nameaction/servlet-name
 servlet-classTestActionServlet/servlet-class
 init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
 /init-param
 init-param
   param-nameconfig/param-name
   param-value/WEB-INF/struts-config.xml/param-value
 /init-param
 init-param
   param-namedebug/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namedetail/param-name
   param-value2/param-value
 /init-param
 init-param
   param-namevalidate/param-name
   param-valuetrue/param-value
 /init-param
 load-on-startup2/load-on-startup
   /servlet

   !-- Standard Action Servlet Mapping --

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

   !-- Struts Tag Library Descriptors --

   taglib
 taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
 taglib-location/WEB-INF/struts-bean.tld/taglib-location
   /taglib

   taglib
 taglib-uri/WEB-INF/struts-html.tld/taglib-uri
 taglib-location/WEB-INF/struts-html.tld/taglib-location
   /taglib

   taglib
 taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
 taglib-location/WEB-INF/struts-logic.tld/taglib-location
   /taglib
 /web-app


 From whatever little knowldege of Struts I have, I believe the that .do
 suffix should be stripped by struts and the
 /submit action be translated to instantiate (if necessary) the
SubmitAction
 class. However, this class never gets
 instantiated.

 -Pls advice


 --
 To unsubscribe, e-mail:

Re[4]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Rick Reumann


On Friday, January 3, 2003, 12:11:48 PM, Bill wrote:

SB Are you saying that when it reaches 2K it is creating a new
SB backoffice.log but not creating the archive (backup) copy?

Yes exactly. It doesn't create the archive(backup) copy.

(And actually it doesn't 'always' seem to even create a new
backoffice.log. Hard to explain on this later point as it doesn't seem
consistent. According to that one link on the log4j others seem to
have similar problems on win2k so maybe it's just a windows thing-
although I swear it used to work with the old log4j jar and using
Cateogry as opposed to Logger).


-- 

Rick
mailto:[EMAIL PROTECTED]


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




RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Daniel Grey
The problem is that I inherited this monstrosity, didn't create it.
Can't find a config.xml. 
Pardon my ignorance, but what is in the /tags/struts-tiles location?
Thanks very much
d

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:12 AM
To: [EMAIL PROTECTED]
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


Don't understand why you prefer an absolute path? I use relative path,

In web.xml

taglib
taglib-uri/tags/struts-tiles/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
/taglib

tld file is in my WEB-INF, struts.jar is in my WEB-INF/lib, and tiles
plugin
is defined in struts config xml.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 1:02 PM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 

Yes I did - still get the same results. I've tried more variations on
that than I can remember.
Thanks

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 6:33 AM
To: 'Struts Users Mailing List'
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


Did you try taking the version off the URI?  In other words, use:
http://jakarta.apache.org/struts/tags-tiles;

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 5:21 PM
To: [EMAIL PROTECTED]
Subject: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


I am trying to deploy a .ear file to JBOSS and canNot get around this
error:

org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application

There are a bunch of .jsp files that contain this reference:
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %

The web.xml has this reference:
 taglib
 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

The lib directory has struts.jar and the classes directory has the
classes
Does anyone have a clue on this?
HELP!
Thanks

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

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


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

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




RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Daniel Grey
I just looked in the struts.jar and the tiles.jar and they both have a
META-INF/struts-tiles.tld.
Problem is that I inherited this monstrosity of files, jars, jsps etc.
It feelss like 20,000 leagues under the sea...
Thanks mucho


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:28 AM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 




On Fri, 3 Jan 2003 [EMAIL PROTECTED] wrote:


 Don't understand why you prefer an absolute path? I use relative path,

 In web.xml

 taglib
   taglib-uri/tags/struts-tiles/taglib-uri
   taglib-location/WEB-INF/struts-tiles.tld/taglib-location
 /taglib


In a JSP 1.2 (or later) container, you can now nest multiple TLDS in the
META-INF/tlds subdirectory of a JAR file, and they will be
automatically
recognized by the container.  That means you do not have to use any
taglib directive at all in the web.xml file, if you don't want to, as
long as you use the official URIs for these libraries (it's in the uri
element of the TLD itself.

The Struts documentation still describes the techniques using taglib,
because the minimum platform is JSP 1.1 and automatic TLD recognition
for
multiple tag libraries does not work there.

Craig


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


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




Re: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Khalid K.
the tld files are under the WEB-INF directory of your web app.
- Original Message -
From: Daniel Grey [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 10:43 AM
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved


I just looked in the struts.jar and the tiles.jar and they both have a
META-INF/struts-tiles.tld.
Problem is that I inherited this monstrosity of files, jars, jsps etc.
It feelss like 20,000 leagues under the sea...
Thanks mucho


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:28 AM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved




On Fri, 3 Jan 2003 [EMAIL PROTECTED] wrote:


 Don't understand why you prefer an absolute path? I use relative path,

 In web.xml

 taglib
 taglib-uri/tags/struts-tiles/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
 /taglib


In a JSP 1.2 (or later) container, you can now nest multiple TLDS in the
META-INF/tlds subdirectory of a JAR file, and they will be
automatically
recognized by the container.  That means you do not have to use any
taglib directive at all in the web.xml file, if you don't want to, as
long as you use the official URIs for these libraries (it's in the uri
element of the TLD itself.

The Struts documentation still describes the techniques using taglib,
because the minimum platform is JSP 1.1 and automatic TLD recognition
for
multiple tag libraries does not work there.

Craig


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


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





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




Re: FYI: Struts in Action Unavailable at Amazon

2003-01-03 Thread Ted Husted
After several inquiries, my publisher has finally gotten Amazon to
update their database to reflect the true status of the book, Available
in 24 hours.

They do have copies in the warehouse, and a third reprinting is in the
works for when these run out.

Thanks for bringing this up =:0)

-Ted.



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




link broken

2003-01-03 Thread Khalid K.
tried downloading Struts 1.1-b3, from the following page:
http://jakarta.apache.org/site/binindex.html

clicked on the following link:
Struts 1.1 Beta 3  
http://jakarta.apache.org/site/[preferred]/jakarta/struts/binaries/

got a page not foundnot sure where to report this...

Khalid



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




RE: Re[4]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Siggelkow, Bill
Do you have a Windows Explorer window open on that folder?  I have found that Windows 
explorer can hold locks this way.

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 1:30 PM
To: Struts Users Mailing List
Subject: Re[4]: [OT] some log4j problems using RollingFileAppender not
creati ng a backup file




On Friday, January 3, 2003, 12:11:48 PM, Bill wrote:

SB Are you saying that when it reaches 2K it is creating a new
SB backoffice.log but not creating the archive (backup) copy?

Yes exactly. It doesn't create the archive(backup) copy.

(And actually it doesn't 'always' seem to even create a new
backoffice.log. Hard to explain on this later point as it doesn't seem
consistent. According to that one link on the log4j others seem to
have similar problems on win2k so maybe it's just a windows thing-
although I swear it used to work with the old log4j jar and using
Cateogry as opposed to Logger).


-- 

Rick
mailto:[EMAIL PROTECTED]


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

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




Dynamic forwarding to generated page

2003-01-03 Thread Darrel Riekhof
My action class generates the file that I'd like it to forward to.  This 
generated file doesn't have a standard name, it depends on parameters. 
So,  instead of using the standard mapping.findForward( Success ) 
call at the end of my execute() method, I was planning on creating my 
own ActionForward instance, setting all the necessary properties, and 
returning it instead.

Is this a reasonable/common way to do it (and will it work)?

Darrel


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



Re: FYI: Struts in Action Unavailable at Amazon

2003-01-03 Thread Vincent Stoessel
3rd printing huh?
Congrats to you all! Who says you can't make a living off of
open source?

Ted Husted wrote:

After several inquiries, my publisher has finally gotten Amazon to
update their database to reflect the true status of the book, Available
in 24 hours.

They do have copies in the warehouse, and a third reprinting is in the
works for when these run out.

Thanks for bringing this up =:0)

-Ted.



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


--
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




Re[6]: [OT] some log4j problems using RollingFileAppender not creati ng a backup file

2003-01-03 Thread Rick Reumann


On Friday, January 3, 2003, 1:56:38 PM, Bill wrote:

SB Do you have a Windows Explorer window open on that folder?  I have
SB found that Windows explorer can hold locks this way.

Even with everything closed except the web browser, the archive file
is not being created. It does seem to consistently start over though
with a blank log file when it reaches 2K- so I know it's understanding
it needs to do something when it hits 2K. It's just the archived copy
that is not being created.


-- 

Rick
mailto:[EMAIL PROTECTED]


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




RE: link broken

2003-01-03 Thread James Mitchell
Not sure where you are getting that link, but try this instead:

 http://jakarta.apache.org/site/binindex.cgi

 ^^^
  (notice anything)

--
James Mitchell
Software Engineer/Open Source Evangelist
http://www.open-tools.org

C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg. 
- Bjarne Stroustrup


 -Original Message-
 From: Khalid K. [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 03, 2003 1:53 PM
 To: Struts Users Mailing List
 Subject: link broken
 
 
 tried downloading Struts 1.1-b3, from the following page:
 http://jakarta.apache.org/site/binindex.html
 
 clicked on the following link:
 Struts 1.1 Beta 3  
 http://jakarta.apache.org/site/[preferred]/jakarta/struts/binaries/
 
 got a page not foundnot sure where to report this...
 
 Khalid
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 


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




RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Daniel Grey
yes they're under there also - still doesn't work though
thanks

-Original Message-
From: Khalid K. [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:47 AM
To: Struts Users Mailing List
Subject: Re: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


the tld files are under the WEB-INF directory of your web app.
- Original Message -
From: Daniel Grey [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 10:43 AM
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved


I just looked in the struts.jar and the tiles.jar and they both have a
META-INF/struts-tiles.tld.
Problem is that I inherited this monstrosity of files, jars, jsps etc.
It feelss like 20,000 leagues under the sea...
Thanks mucho


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:28 AM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved




On Fri, 3 Jan 2003 [EMAIL PROTECTED] wrote:


 Don't understand why you prefer an absolute path? I use relative path,

 In web.xml

 taglib
 taglib-uri/tags/struts-tiles/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
 /taglib


In a JSP 1.2 (or later) container, you can now nest multiple TLDS in the
META-INF/tlds subdirectory of a JAR file, and they will be
automatically
recognized by the container.  That means you do not have to use any
taglib directive at all in the web.xml file, if you don't want to, as
long as you use the official URIs for these libraries (it's in the uri
element of the TLD itself.

The Struts documentation still describes the techniques using taglib,
because the minimum platform is JSP 1.1 and automatic TLD recognition
for
multiple tag libraries does not work there.

Craig


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


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





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


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




RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 2:20 PM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 

yes they're under there also - still doesn't work though
thanks

-Original Message-
From: Khalid K. [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:47 AM
To: Struts Users Mailing List
Subject: Re: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


the tld files are under the WEB-INF directory of your web app.
- Original Message -
From: Daniel Grey [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 10:43 AM
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved


I just looked in the struts.jar and the tiles.jar and they both have a
META-INF/struts-tiles.tld.
Problem is that I inherited this monstrosity of files, jars, jsps etc.
It feelss like 20,000 leagues under the sea...
Thanks mucho


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 10:28 AM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved




On Fri, 3 Jan 2003 [EMAIL PROTECTED] wrote:


 Don't understand why you prefer an absolute path? I use relative path,

 In web.xml

 taglib
 taglib-uri/tags/struts-tiles/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
 /taglib


In a JSP 1.2 (or later) container, you can now nest multiple TLDS in the
META-INF/tlds subdirectory of a JAR file, and they will be
automatically
recognized by the container.  That means you do not have to use any
taglib directive at all in the web.xml file, if you don't want to, as
long as you use the official URIs for these libraries (it's in the uri
element of the TLD itself.

The Struts documentation still describes the techniques using taglib,
because the minimum platform is JSP 1.1 and automatic TLD recognition
for
multiple tag libraries does not work there.

Craig


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


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





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


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



Iterate Index Evaluation

2003-01-03 Thread Cohan, Sean
I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?

logic:match name=index value=odd or even?


Thanks.


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




RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
Forget META-INF (sorry Craig). I think I finally figured it out.

Let's go back to old release (1.1b2). In my web.xml, I define

taglib
taglib-urimytiles/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
/taglib

taglib-uri is just a reference that you will use in your jsp. Treat it as a
variable name.

%@ taglib uri='mytiles' prefix='tiles' %
tiles:insert ./

location is where your file is located, relative path, don't if absolute
path works.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 1:02 PM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 

Yes I did - still get the same results. I've tried more variations on
that than I can remember.
Thanks

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 6:33 AM
To: 'Struts Users Mailing List'
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


Did you try taking the version off the URI?  In other words, use:
http://jakarta.apache.org/struts/tags-tiles;

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 5:21 PM
To: [EMAIL PROTECTED]
Subject: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


I am trying to deploy a .ear file to JBOSS and canNot get around this
error:

org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application

There are a bunch of .jsp files that contain this reference:
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %

The web.xml has this reference:
 taglib
 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

The lib directory has struts.jar and the classes directory has the
classes
Does anyone have a clue on this?
HELP!
Thanks

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

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


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



RE: nestedtag, iterate and multibox

2003-01-03 Thread Sri Sankaran


 -Original Message-
 From: Jose Luis [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, January 03, 2003 1:30 PM
 To: Struts Users Mailing List
 Subject: nestedtag, iterate and multibox
 
 
 I´m testing the nested tags, and i found some troublesome in 
 the way i used to do things and with nested tags i couldn´t. 
 Here is an example, (perhaps someone have a solution or workaround).
 
 here is the code:
 
 nested:iterate property=empleados id=service indexId=servIdx
 tr align=center 
 td width=24 
 %-- html:multibox property=listaempleados value=   
  /html:multibox --%
 %-- input type=checkbox name=checkbox2 
 value=checkbox --%
 /td
 td width=226nested:write property=nombre//td
 td width=196nested:write property=email//td
 td width=98nested:write property=telefono//td
 td width=144Rol/td
 /tr
 /nested:iterate
 
 where i iterate in the empleados property, an ArrayList. This 
 ArrayList is an ArrayList of Objects of type Empleados. This 
 class has some properties like nombre, email, telefono,etc 
 and, and here is the problem, i want to have a multibox (one 
 check box per line) which value once checked will be the Emplado id.
 
 Before nested tags i use jspscriptlet to put this value into 
 the value like value=%= empleado.getId() % but with the 
 nested tags i cant use it.
 

If I understand your question correctly, you are trying to get the id property of 
Empleados object.  Have you tried

nested:multibox property=listaempleados
  nested:write property=id
/nested:multibox

I am assuming (reading your snippet above) that each Empleados object has a 
getListempleados() method and a getId() method.

Sri

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




RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Try something like ...

logic:iterate indexId=index ...
  bean:define id=indexMod2 value='%= index % 2 %'/
  logic:equal name=indexMod2 value=0
markup for even row here
  /logic:equal
  logic:notEqual name=indexMod2 value=0
markup for odd row here
  /logic:equal
/logic:iterate

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?

logic:match name=index value=odd or even?


Thanks.


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

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




RE: Iterate Index Evaluation

2003-01-03 Thread Cohan, Sean
Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...

logic:iterate indexId=index ...
  bean:define id=indexMod2 value='%= index % 2 %'/
  logic:equal name=indexMod2 value=0
markup for even row here
  /logic:equal
  logic:notEqual name=indexMod2 value=0
markup for odd row here
  /logic:equal
/logic:iterate

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?

logic:match name=index value=odd or even?


Thanks.


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

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

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




Struts data-source vs. Tomcat JNDI registered DataSource

2003-01-03 Thread Charlie Toohey
For those using Struts with Tomcat,
Any advantage or difference in using a Struts data source based on the
Jakarta Commons DataBase Connection Pool BasicDataSource class,
vs. using the Tomcat data source using the Jakarta Commons DBCP and 
Pool (configuring factory as org.apache.commons.dbcp.BasicDataSourceFactory), 
registering the DataSource with a naming service based on JNDI ?

I was planning on configuring a DataSource with JNDI in web.xml/server.xml 
for database access, but then noticed that struts-config.xml has a 
data-source entry. 

Any opinions ?

- Charlie


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




Re: link broken

2003-01-03 Thread Khalid K.
thanks..yes i did notice the [preference] thingi in the link..not sure

Khalid

- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 11:17 AM
Subject: RE: link broken


 Not sure where you are getting that link, but try this instead:

  http://jakarta.apache.org/site/binindex.cgi

  ^^^
   (notice anything)

 --
 James Mitchell
 Software Engineer/Open Source Evangelist
 http://www.open-tools.org

 C makes it easy to shoot yourself in the foot; C++ makes it harder, but
 when you do, it blows away your whole leg.
 - Bjarne Stroustrup


  -Original Message-
  From: Khalid K. [mailto:[EMAIL PROTECTED]]
  Sent: Friday, January 03, 2003 1:53 PM
  To: Struts Users Mailing List
  Subject: link broken
 
 
  tried downloading Struts 1.1-b3, from the following page:
  http://jakarta.apache.org/site/binindex.html
 
  clicked on the following link:
  Struts 1.1 Beta 3
  http://jakarta.apache.org/site/[preferred]/jakarta/struts/binaries/
 
  got a page not foundnot sure where to report this...
 
  Khalid
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
 
 


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





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




RE: Struts data-source vs. Tomcat JNDI registered DataSource

2003-01-03 Thread pqin
JNDI is way too easy.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Charlie Toohey [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 3:09 PM
To: [EMAIL PROTECTED]
Subject: Struts data-source vs. Tomcat JNDI registered DataSource

For those using Struts with Tomcat,
Any advantage or difference in using a Struts data source based on the
Jakarta Commons DataBase Connection Pool BasicDataSource class,
vs. using the Tomcat data source using the Jakarta Commons DBCP and 
Pool (configuring factory as
org.apache.commons.dbcp.BasicDataSourceFactory), 
registering the DataSource with a naming service based on JNDI ?

I was planning on configuring a DataSource with JNDI in web.xml/server.xml 
for database access, but then noticed that struts-config.xml has a 
data-source entry. 

Any opinions ?

- Charlie


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



RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Daniel Grey
I made that change, now the error message is:

org.apache.jasper.JasperException: null(-1,-1) File
/WEB-INF/pages/mytiles not found

web.xml entry is:
 taglib
taglib-urimytiles/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

the pages directory has a bunch of jsp's
This seems a little better...
thanks very much
d


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 11:38 AM
To: [EMAIL PROTECTED]
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


Forget META-INF (sorry Craig). I think I finally figured it out.

Let's go back to old release (1.1b2). In my web.xml, I define

taglib
taglib-urimytiles/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
/taglib

taglib-uri is just a reference that you will use in your jsp. Treat it
as a
variable name.

%@ taglib uri='mytiles' prefix='tiles' %
tiles:insert ./

location is where your file is located, relative path, don't if absolute
path works.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 1:02 PM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 

Yes I did - still get the same results. I've tried more variations on
that than I can remember.
Thanks

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 6:33 AM
To: 'Struts Users Mailing List'
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


Did you try taking the version off the URI?  In other words, use:
http://jakarta.apache.org/struts/tags-tiles;

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 5:21 PM
To: [EMAIL PROTECTED]
Subject: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


I am trying to deploy a .ear file to JBOSS and canNot get around this
error:

org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application

There are a bunch of .jsp files that contain this reference:
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %

The web.xml has this reference:
 taglib
 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

The lib directory has struts.jar and the classes directory has the
classes
Does anyone have a clue on this?
HELP!
Thanks

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

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


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

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




RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
Are your tlds located in myapp/WEB-INF?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 3:32 PM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 

I made that change, now the error message is:

org.apache.jasper.JasperException: null(-1,-1) File
/WEB-INF/pages/mytiles not found

web.xml entry is:
 taglib
taglib-urimytiles/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

the pages directory has a bunch of jsp's
This seems a little better...
thanks very much
d


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 11:38 AM
To: [EMAIL PROTECTED]
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


Forget META-INF (sorry Craig). I think I finally figured it out.

Let's go back to old release (1.1b2). In my web.xml, I define

taglib
taglib-urimytiles/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
/taglib

taglib-uri is just a reference that you will use in your jsp. Treat it
as a
variable name.

%@ taglib uri='mytiles' prefix='tiles' %
tiles:insert ./

location is where your file is located, relative path, don't if absolute
path works.

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 1:02 PM
To: Struts Users Mailing List
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 

Yes I did - still get the same results. I've tried more variations on
that than I can remember.
Thanks

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 6:33 AM
To: 'Struts Users Mailing List'
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


Did you try taking the version off the URI?  In other words, use:
http://jakarta.apache.org/struts/tags-tiles;

-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 5:21 PM
To: [EMAIL PROTECTED]
Subject: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 


I am trying to deploy a .ear file to JBOSS and canNot get around this
error:

org.apache.jasper.JasperException: null(-1,-1) This absolute uri
(http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
either web.xml or the jar files deployed with this application

There are a bunch of .jsp files that contain this reference:
%@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
prefix=tiles %

The web.xml has this reference:
 taglib
 
taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib

The lib directory has struts.jar and the classes directory has the
classes
Does anyone have a clue on this?
HELP!
Thanks

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

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


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

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



Struts with Tomcat5

2003-01-03 Thread John Menke
Does anyone have this running yet?  I have looked through the archives but
not much comes up with Tomcat5.  Are there any known issues?

-jm


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




RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Er ... I think you may be right ... I know it can be done using scriptlet for example:

logic:iterate indexId=index ...
  % if ((index % 2) == 0) {%
even row markup here
  % } else { %
odd row markup here
  % } %
/logic:iterate

But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...

logic:iterate indexId=index ...
  bean:define id=indexMod2 value='%= index % 2 %'/
  logic:equal name=indexMod2 value=0
markup for even row here
  /logic:equal
  logic:notEqual name=indexMod2 value=0
markup for odd row here
  /logic:equal
/logic:iterate

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?

logic:match name=index value=odd or even?


Thanks.


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

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

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

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




Re: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread Khalid K.
it looks like it is looking at WEB-INF/pages, not in WEB-INF
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 12:38 PM
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved


 Are your tlds located in myapp/WEB-INF?

 Regards,


 PQ

 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing

 -Original Message-
 From: Daniel Grey [mailto:[EMAIL PROTECTED]]
 Sent: January 3, 2003 3:32 PM
 To: Struts Users Mailing List
 Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved

 I made that change, now the error message is:

 org.apache.jasper.JasperException: null(-1,-1) File
 /WEB-INF/pages/mytiles not found

 web.xml entry is:
  taglib
 taglib-urimytiles/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
   /taglib

 the pages directory has a bunch of jsp's
 This seems a little better...
 thanks very much
 d


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 11:38 AM
 To: [EMAIL PROTECTED]
 Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved


 Forget META-INF (sorry Craig). I think I finally figured it out.

 Let's go back to old release (1.1b2). In my web.xml, I define

 taglib
 taglib-urimytiles/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
 /taglib

 taglib-uri is just a reference that you will use in your jsp. Treat it
 as a
 variable name.

 %@ taglib uri='mytiles' prefix='tiles' %
 tiles:insert ./

 location is where your file is located, relative path, don't if absolute
 path works.

 Regards,


 PQ

 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing

 -Original Message-
 From: Daniel Grey [mailto:[EMAIL PROTECTED]]
 Sent: January 3, 2003 1:02 PM
 To: Struts Users Mailing List
 Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved

 Yes I did - still get the same results. I've tried more variations on
 that than I can remember.
 Thanks

 -Original Message-
 From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 6:33 AM
 To: 'Struts Users Mailing List'
 Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved


 Did you try taking the version off the URI?  In other words, use:
 http://jakarta.apache.org/struts/tags-tiles;

 -Original Message-
 From: Daniel Grey [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 02, 2003 5:21 PM
 To: [EMAIL PROTECTED]
 Subject: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved


 I am trying to deploy a .ear file to JBOSS and canNot get around this
 error:

 org.apache.jasper.JasperException: null(-1,-1) This absolute uri
 (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
 either web.xml or the jar files deployed with this application

 There are a bunch of .jsp files that contain this reference:
 %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
 prefix=tiles %

 The web.xml has this reference:
  taglib

 taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
   /taglib

 The lib directory has struts.jar and the classes directory has the
 classes
 Does anyone have a clue on this?
 HELP!
 Thanks

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

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


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

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



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




Re: Struts data-source vs. Tomcat JNDI registered DataSource

2003-01-03 Thread Craig R. McClanahan


On Fri, 3 Jan 2003, Charlie Toohey wrote:

 Date: Fri, 3 Jan 2003 12:09:29 -0800
 From: Charlie Toohey [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Struts data-source vs. Tomcat JNDI registered DataSource

 For those using Struts with Tomcat,
 Any advantage or difference in using a Struts data source based on the
 Jakarta Commons DataBase Connection Pool BasicDataSource class,
 vs. using the Tomcat data source using the Jakarta Commons DBCP and
 Pool (configuring factory as org.apache.commons.dbcp.BasicDataSourceFactory),
 registering the DataSource with a naming service based on JNDI ?


Struts 1.1 and Tomcat 4.1 both use commons-dbcp under the covers.

 I was planning on configuring a DataSource with JNDI in web.xml/server.xml
 for database access, but then noticed that struts-config.xml has a
 data-source entry.


Using JNDI is portable to any J2EE based app server, plus any servlet
container that supports the JNDI namespace (i.e. like Tomcat 4.x).  In
addition, the logic required to get a connection from the pool does *not*
need to have a reference to the DataSource or ServletContext, which means
your business logic can become more insulated from the web tier.  Further,
the JNDI data source itself is configured external to your webapp, so you
don't have to tweak the web.xml file to adjust for differences (example -
you can install the exact same webapp on a development, test, and
production server without having to tweak it to connect to the correct
database.)  Finally, using JNDI means that you'll automatically take
advantage of the connection pool provided by your app server container (if
you ever run on something other than Tomcat), which is likely to be
optimized for performance on that container.

The only downside to using JNDI is that your business logic *must* run
inside a container that provides the JNDI services, or your app must
otherwise supply one.  If this is not a problem for you, I'd *always* go
the JNDI route.

 Any opinions ?

 - Charlie

Craig McClanahan



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




Re: Struts with Tomcat5

2003-01-03 Thread Craig R. McClanahan


On Fri, 3 Jan 2003, John Menke wrote:

 Date: Fri, 3 Jan 2003 15:47:27 -0500
 From: John Menke [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 To: struts-user [EMAIL PROTECTED]
 Subject: Struts with Tomcat5

 Does anyone have this running yet?  I have looked through the archives but
 not much comes up with Tomcat5.  Are there any known issues?


The admin webapp in Tomcat 4.1 and 5 is Struts based :-).

 -jm

Craig


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




Re: Struts with Tomcat5

2003-01-03 Thread Micael
Where are you getting Tomcat 5?

At 03:47 PM 1/3/03 -0500, you wrote:

Does anyone have this running yet?  I have looked through the archives but
not much comes up with Tomcat5.  Are there any known issues?

-jm


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




LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Strike that ... reverse it!  I was able to use the bean:define as follows:

logic:iterate indexId=ndx ...
  bean:define id=tmpMod value=%= String.valueOf(ndx.intValue() % 2) %/
  logic:equal name=tmpMod value=0
even markup here
  /logic:equal
  logic:notEqual name=tmpMod value=0
odd markup here
  /logic:notEqual
/logic:iterate

Give it a try!  The expression is still a little wicked but not as evil as the 
scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet for example:

logic:iterate indexId=index ...
  % if ((index % 2) == 0) {%
even row markup here
  % } else { %
odd row markup here
  % } %
/logic:iterate

But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...

logic:iterate indexId=index ...
  bean:define id=indexMod2 value='%= index % 2 %'/
  logic:equal name=indexMod2 value=0
markup for even row here
  /logic:equal
  logic:notEqual name=indexMod2 value=0
markup for odd row here
  /logic:equal
/logic:iterate

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?

logic:match name=index value=odd or even?


Thanks.


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

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

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

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

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




RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved

2003-01-03 Thread pqin
Check your jsp, is there any place in the jsp that explicitly looking for
tld in WEB-INF/pages?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Khalid K. [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 3:46 PM
To: Struts Users Mailing List
Subject: Re: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved 

it looks like it is looking at WEB-INF/pages, not in WEB-INF
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 12:38 PM
Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
resolved


 Are your tlds located in myapp/WEB-INF?

 Regards,


 PQ

 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing

 -Original Message-
 From: Daniel Grey [mailto:[EMAIL PROTECTED]]
 Sent: January 3, 2003 3:32 PM
 To: Struts Users Mailing List
 Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved

 I made that change, now the error message is:

 org.apache.jasper.JasperException: null(-1,-1) File
 /WEB-INF/pages/mytiles not found

 web.xml entry is:
  taglib
 taglib-urimytiles/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
   /taglib

 the pages directory has a bunch of jsp's
 This seems a little better...
 thanks very much
 d


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 11:38 AM
 To: [EMAIL PROTECTED]
 Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved


 Forget META-INF (sorry Craig). I think I finally figured it out.

 Let's go back to old release (1.1b2). In my web.xml, I define

 taglib
 taglib-urimytiles/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
 /taglib

 taglib-uri is just a reference that you will use in your jsp. Treat it
 as a
 variable name.

 %@ taglib uri='mytiles' prefix='tiles' %
 tiles:insert ./

 location is where your file is located, relative path, don't if absolute
 path works.

 Regards,


 PQ

 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing

 -Original Message-
 From: Daniel Grey [mailto:[EMAIL PROTECTED]]
 Sent: January 3, 2003 1:02 PM
 To: Struts Users Mailing List
 Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved

 Yes I did - still get the same results. I've tried more variations on
 that than I can remember.
 Thanks

 -Original Message-
 From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 6:33 AM
 To: 'Struts Users Mailing List'
 Subject: RE: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved


 Did you try taking the version off the URI?  In other words, use:
 http://jakarta.apache.org/struts/tags-tiles;

 -Original Message-
 From: Daniel Grey [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 02, 2003 5:21 PM
 To: [EMAIL PROTECTED]
 Subject: (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be
 resolved


 I am trying to deploy a .ear file to JBOSS and canNot get around this
 error:

 org.apache.jasper.JasperException: null(-1,-1) This absolute uri
 (http://jakarta.apache.org/struts/tags-tiles-1.1) cannot be resolved in
 either web.xml or the jar files deployed with this application

 There are a bunch of .jsp files that contain this reference:
 %@ taglib uri=http://jakarta.apache.org/struts/tags-tiles-1.1;
 prefix=tiles %

 The web.xml has this reference:
  taglib

 taglib-urihttp://jakarta.apache.org/struts/tags-tiles-1.1/taglib-uri
 taglib-location/WEB-INF/struts-tiles.tld/taglib-location
   /taglib

 The lib directory has struts.jar and the classes directory has the
 classes
 Does anyone have a clue on this?
 HELP!
 Thanks

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

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


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

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



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



RE: Iterate Index Evaluation

2003-01-03 Thread Cohan, Sean
chuckle, chuckle...

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:

logic:iterate indexId=index ...
  % if ((index % 2) == 0) {%
even row markup here
  % } else { %
odd row markup here
  % } %
/logic:iterate

But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...

logic:iterate indexId=index ...
  bean:define id=indexMod2 value='%= index % 2 %'/
  logic:equal name=indexMod2 value=0
markup for even row here
  /logic:equal
  logic:notEqual name=indexMod2 value=0
markup for odd row here
  /logic:equal
/logic:iterate

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?

logic:match name=index value=odd or even?


Thanks.


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

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

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

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

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




RE: Iterate Index Evaluation

2003-01-03 Thread pqin
Can you use html-el?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 3:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation

Strike that ... reverse it!  I was able to use the bean:define as follows:

logic:iterate indexId=ndx ...
  bean:define id=tmpMod value=%= String.valueOf(ndx.intValue() % 2)
%/
  logic:equal name=tmpMod value=0
even markup here
  /logic:equal
  logic:notEqual name=tmpMod value=0
odd markup here
  /logic:notEqual
/logic:iterate

Give it a try!  The expression is still a little wicked but not as evil as
the scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:

logic:iterate indexId=index ...
  % if ((index % 2) == 0) {%
even row markup here
  % } else { %
odd row markup here
  % } %
/logic:iterate

But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...

logic:iterate indexId=index ...
  bean:define id=indexMod2 value='%= index % 2 %'/
  logic:equal name=indexMod2 value=0
markup for even row here
  /logic:equal
  logic:notEqual name=indexMod2 value=0
markup for odd row here
  /logic:equal
/logic:iterate

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?

logic:match name=index value=odd or even?


Thanks.


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

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

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

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

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



Re: Iterate Index Evaluation

2003-01-03 Thread Khalid K.
u can always write your own tag and get rid of that scriptlet :)

Khalid

- Original Message -
From: Cohan, Sean [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, January 03, 2003 12:58 PM
Subject: RE: Iterate Index Evaluation


 chuckle, chuckle...

 -Original Message-
 From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 3:43 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Iterate Index Evaluation


 Er ... I think you may be right ... I know it can be done using scriptlet
 for example:

 logic:iterate indexId=index ...
   % if ((index % 2) == 0) {%
 even row markup here
   % } else { %
 odd row markup here
   % } %
 /logic:iterate

 But we all know how evil this is!

 -Original Message-
 From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 3:05 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Iterate Index Evaluation


 Thanks, but I think there will be a problem with the bean:define since the
 jsp 1.1 spec does not allow you to use the same bean name more than once
in
 a single page (which is what we would be doing in an iterate tag.)  Unless
 I'm misinterpreting.

 -Original Message-
 From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 2:49 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Iterate Index Evaluation


 Try something like ...

 logic:iterate indexId=index ...
   bean:define id=indexMod2 value='%= index % 2 %'/
   logic:equal name=indexMod2 value=0
 markup for even row here
   /logic:equal
   logic:notEqual name=indexMod2 value=0
 markup for odd row here
   /logic:equal
 /logic:iterate

 -Original Message-
 From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 2:40 PM
 To: Struts (E-mail)
 Subject: Iterate Index Evaluation


 I need to iterate over a collection and be able to tell whether the
current
 index is odd or even.  Any ideas on how I can use the logic tag for this?

 logic:match name=index value=odd or even?


 Thanks.


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

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

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

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

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





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




RE: Iterate Index Evaluation

2003-01-03 Thread Siggelkow, Bill
Possibly ... I haven't worked with EL yet ... it's on my to-do list.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Iterate Index Evaluation


Can you use html-el?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] 
Sent: January 3, 2003 3:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation

Strike that ... reverse it!  I was able to use the bean:define as follows:

logic:iterate indexId=ndx ...
  bean:define id=tmpMod value=%= String.valueOf(ndx.intValue() % 2)
%/
  logic:equal name=tmpMod value=0
even markup here
  /logic:equal
  logic:notEqual name=tmpMod value=0
odd markup here
  /logic:notEqual
/logic:iterate

Give it a try!  The expression is still a little wicked but not as evil as
the scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:

logic:iterate indexId=index ...
  % if ((index % 2) == 0) {%
even row markup here
  % } else { %
odd row markup here
  % } %
/logic:iterate

But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...

logic:iterate indexId=index ...
  bean:define id=indexMod2 value='%= index % 2 %'/
  logic:equal name=indexMod2 value=0
markup for even row here
  /logic:equal
  logic:notEqual name=indexMod2 value=0
markup for odd row here
  /logic:equal
/logic:iterate

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?

logic:match name=index value=odd or even?


Thanks.


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

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

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

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

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

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




Re: Struts with Tomcat5

2003-01-03 Thread Craig R. McClanahan


On Fri, 3 Jan 2003, Micael wrote:

 Where are you getting Tomcat 5?

Nightly builds are available under:

  http://jakarta.apache.org/builds/jakarta-tomcat/nightly-5/

Note that this has not been released, so use at your own risk.  However,
it's a wonderful way to learn about all the new stuff in Servlet 2.4 and
JSP 2.0 (especially the latter -- there are loads of new goodies).

Craig


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




Validator with Map-backed forms

2003-01-03 Thread Max Kremer
Hi, 

I've asked this question before but so far haven't received any feedback on this 
subject:
Is there any way to use the Validator with map-backed Action Forms?

I'm currently using Map-backed forms to manage forms that are dynamically
created from a database, where the number of fields, their names, their
types are not necessarily known at deployment (so no DynaActionForm). I'm
wondering if it's still possible to use the (Commons) Validator to validate
the form fields.

I understand that the normal usage requires form elements in the
validator-rules file to match that of a form-bean element in the Struts
config file. That's not really possible in my case because I don't know
ahead of time what the fields will be (by name or type, in number, etc.).
Would it be possible to programmatically create the formset and form
elements Validator requires but still use them in conjunction with the
validations file (where the validator elements are stored), which would be
commonly shared between forms? Any pointers on how I can accomplish this?
Or, is there a better way to handle dynamic (i.e., on-the-fly or real-time)
form creation with Struts?







Regards,

Max Kremer




RE: Iterate Index Evaluation

2003-01-03 Thread Cohan, Sean
Thanks very much!  I will.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Strike that ... reverse it!  I was able to use the bean:define as follows:

logic:iterate indexId=ndx ...
  bean:define id=tmpMod value=%= String.valueOf(ndx.intValue() % 2)
%/
  logic:equal name=tmpMod value=0
even markup here
  /logic:equal
  logic:notEqual name=tmpMod value=0
odd markup here
  /logic:notEqual
/logic:iterate

Give it a try!  The expression is still a little wicked but not as evil as
the scriptlet.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Er ... I think you may be right ... I know it can be done using scriptlet
for example:

logic:iterate indexId=index ...
  % if ((index % 2) == 0) {%
even row markup here
  % } else { %
odd row markup here
  % } %
/logic:iterate

But we all know how evil this is!

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Thanks, but I think there will be a problem with the bean:define since the
jsp 1.1 spec does not allow you to use the same bean name more than once in
a single page (which is what we would be doing in an iterate tag.)  Unless
I'm misinterpreting.

-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation


Try something like ...

logic:iterate indexId=index ...
  bean:define id=indexMod2 value='%= index % 2 %'/
  logic:equal name=indexMod2 value=0
markup for even row here
  /logic:equal
  logic:notEqual name=indexMod2 value=0
markup for odd row here
  /logic:equal
/logic:iterate

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:40 PM
To: Struts (E-mail)
Subject: Iterate Index Evaluation


I need to iterate over a collection and be able to tell whether the current
index is odd or even.  Any ideas on how I can use the logic tag for this?

logic:match name=index value=odd or even?


Thanks.


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

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

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

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

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

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




RE: Struts with Tomcat5

2003-01-03 Thread John Menke
I guess you can pretty much say it works then ;)  thanks for the info

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Friday, January 03, 2003 3:49 PM
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: Struts with Tomcat5
 
 
 
 
 On Fri, 3 Jan 2003, John Menke wrote:
 
  Date: Fri, 3 Jan 2003 15:47:27 -0500
  From: John Menke [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
  To: struts-user [EMAIL PROTECTED]
  Subject: Struts with Tomcat5
 
  Does anyone have this running yet?  I have looked through the 
 archives but
  not much comes up with Tomcat5.  Are there any known issues?
 
 
 The admin webapp in Tomcat 4.1 and 5 is Struts based :-).
 
  -jm
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Struts with Tomcat5

2003-01-03 Thread John Menke
Craig,

I'm getting from nightly builds now, last nights build lets me run my
application :)

I did however find a  problem with the Administrator module on last nights
build.  I will post to Tomcat List

from the login page:

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:633)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:192)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
12)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:255)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:280)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:194)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:277)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:996)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:555)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:996)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2570)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:996)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:490)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:996)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:544)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:593)
at java.lang.Thread.run(Thread.java:536)


root cause

javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:819)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)
at org.apache.jsp.login_jsp._jspx_meth_bean_message_0(login_jsp.java:210)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:88)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
12)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:255)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:280)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:194)
at

  1   2   >