SwitchAction doesn't work?

2002-08-03 Thread @Basebeans.com

Subject: SwitchAction doesn't work?
From: Serge Shikov [EMAIL PROTECTED]
 ===
Hi!

Whats wrong with this /rules sub-app config?

action path=/switch type=org.apache.struts.actions.SwitchAction/

and this HTML:

   form action=context path/rules/switch.do
 input type=text name=prefix value=/actions/
 input type=text name=page value=/new-set.do/
 input type=submit/
   /form

Looks like SwitchAction doesn't work. When I submit this form, instead 
of expected /new-set.do action in /actions sub-app I see default page 
from /rules sub-app (marked by unknown='true' attribute in config).


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




[ANN] Starting Struts User Group in New Jersey

2002-08-03 Thread John Menke

Is anyone interested in joining?  Looks like we have a group of 3-5 people
already interested.  We are thinking about having meetings in the New
Brunswick area.  I have made arrangements for website hosting for the group
and have a committment from Vic Cekvenich at BaseBeans to be a guest
speaker.

I'm not duplicating an already existing group am I?

Anyone intersted in participating please contact me at

[EMAIL PROTECTED]



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




Limiting No of Records per page/view

2002-08-03 Thread Vijay Kumar


Hi,
I am using Struts  . I need to displays say 10 records per page/view and 
give user ability to click on either next button or hyperlink to display 
next set of 10 records. User should also have the ability to go back by 
clicking previous button. I am able to display all records using iterate 
tag, but not able to limit the no of records shown. Any example or code will 
be helpful.
This is what i am doing to display records.

logic:iterate id=selling name=table.list

tr
td width=150 height=15 class=tableRowsReadOnly
   nbspbean:write name=selling property=sellingcode/
/td

   td width=150 height=15 class=tableRowsReadOnly
   nbspbean:write name=selling property=season/
/td

/logic:iterate

Cheers
vkvk

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Limiting No of Records per page/view

2002-08-03 Thread Vijay Kumar


Hi,
I am using Struts 1.0.2 . I need to displays say 10 records per 
page/view and give user ability to click on either next button or hyperlink 
to display next set of 10 records. User should also have the ability to go 
back by clicking previous button. I am able to display all records using 
iterate tag, but not able to limit the no of records shown. Any example or 
code will be helpful.
This is what i am doing to display records.

logic:iterate id=selling name=table.list

tr
td width=150 height=15 class=tableRowsReadOnly
   nbspbean:write name=selling property=sellingcode/
/td

   td width=150 height=15 class=tableRowsReadOnly
   nbspbean:write name=selling property=season/
/td

/logic:iterate

Cheers
vkvk



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Re: field length for input tags

2002-08-03 Thread Tarun Sainanee

Would it be wrong to do it the same way in Struts? I mean just use the 
html:text maxlength=5 property=DDD/.
Something wrong with this?
Regards,
Tarun Sainanee
TCS Delhi
--
Nothing gives one person so much advantage over another as to remain 
always cool and 
unruffled under all circumstances.
-- Thomas Jefferson






John Rothfield [EMAIL PROTECTED]
08/02/2002 10:16 PM
Please respond to Struts Users Mailing List

 
To: [EMAIL PROTECTED]
cc: 
Subject:field length for input tags


I have field definitions for my input fields defined in my Java classes
Previously, (using Velocity) I coded my fields like this:

input type=text name=source value=$!source
size=$sourceField.fieldSize maxlength=$sourceField.maxLength 

where $sourceField.fieldSize was substituted in by the templating engine.

Now I'm converting my forms to use struts so it will be something like:

  html:text property=source size=16 maxlength=16/

I understand that struts will populate the value automatically. How do you
recommend setting the
size and maxlength?

Thanks, John



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






strusts + log4j

2002-08-03 Thread Michael Delamere

Hi,

I´m trying to use log4j for logging in my application.  The problem I´m
facing though, is that as soon as I drop the log4j jar into any lib
directory, struts doesn´t load anymore.  I get the folowing message:

The requested service (Servlet struts is currently unavailable) is not
currently available.

Does struts have a problem with log4j or what could I be doing wrong?

Thanks,

Michael


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




Re: strusts + log4j

2002-08-03 Thread Michael Delamere

What do you mean exactly with the following sentence:

 Have u configured log4j initialization servlet?

Thanks for your reply,

Michael


- Original Message -
From: Tarun Sainanee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:10 PM
Subject: Re: strusts + log4j


No, Struts and Log4j gel well together.
Have u configured log4j initialization servlet?
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain
always cool and
unruffled under all circumstances.
-- Thomas Jefferson






Michael Delamere [EMAIL PROTECTED]
08/03/2002 05:37 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:strusts + log4j


Hi,

I´m trying to use log4j for logging in my application.  The problem I´m
facing though, is that as soon as I drop the log4j jar into any lib
directory, struts doesn´t load anymore.  I get the folowing message:

The requested service (Servlet struts is currently unavailable) is not
currently available.

Does struts have a problem with log4j or what could I be doing wrong?

Thanks,

Michael


--
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: strusts + log4j

2002-08-03 Thread Michael Delamere

Of course I´m using my controller servlet ;-).

I will try that although I still find it a bit strange that struts suddenly
stops working just because I dropped the log4j jar into my lib directory!  I
mean if I wasn´t logging in a servlet but say in a normal java class, why
would I do the log4j initialization servlet entry in web.xml.

Maybe there´s something I´m not understanding here.

Regards,

Michael


- Original Message -
From: Tarun Sainanee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:44 PM
Subject: Re: strusts + log4j


log4j initialization servlet entry in web.xml. and a corresponding java
file
I hope u r also using a controller servlet!!!
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain
always cool and
unruffled under all circumstances.
-- Thomas Jefferson






Michael Delamere [EMAIL PROTECTED]
08/03/2002 05:43 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:Re: strusts + log4j


What do you mean exactly with the following sentence:

 Have u configured log4j initialization servlet?

Thanks for your reply,

Michael


- Original Message -
From: Tarun Sainanee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:10 PM
Subject: Re: strusts + log4j


No, Struts and Log4j gel well together.
Have u configured log4j initialization servlet?
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain
always cool and
unruffled under all circumstances.
-- Thomas Jefferson






Michael Delamere [EMAIL PROTECTED]
08/03/2002 05:37 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List
[EMAIL PROTECTED]
cc:
Subject:strusts + log4j


Hi,

I´m trying to use log4j for logging in my application.  The problem I´m
facing though, is that as soon as I drop the log4j jar into any lib
directory, struts doesn´t load anymore.  I get the folowing message:

The requested service (Servlet struts is currently unavailable) is not
currently available.

Does struts have a problem with log4j or what could I be doing wrong?

Thanks,

Michael


--
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: strusts + log4j

2002-08-03 Thread Tarun Sainanee

Do you mean that u havent yet used any logging instances in ur code. Have 
u just put the jar file in lib?
Regards,
Tarun Sainanee
TCS Delhi
--
Nothing gives one person so much advantage over another as to remain 
always cool and 
unruffled under all circumstances.
-- Thomas Jefferson






Michael Delamere [EMAIL PROTECTED]
08/03/2002 06:23 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Re: strusts + log4j


Of course I´m using my controller servlet ;-).

I will try that although I still find it a bit strange that struts 
suddenly
stops working just because I dropped the log4j jar into my lib directory! 
I
mean if I wasn´t logging in a servlet but say in a normal java class, why
would I do the log4j initialization servlet entry in web.xml.

Maybe there´s something I´m not understanding here.

Regards,

Michael


- Original Message -
From: Tarun Sainanee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:44 PM
Subject: Re: strusts + log4j


log4j initialization servlet entry in web.xml. and a corresponding java
file
I hope u r also using a controller servlet!!!
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain
always cool and
unruffled under all circumstances.
-- Thomas Jefferson






Michael Delamere [EMAIL PROTECTED]
08/03/2002 05:43 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List 
[EMAIL PROTECTED]
cc:
Subject:Re: strusts + log4j


What do you mean exactly with the following sentence:

 Have u configured log4j initialization servlet?

Thanks for your reply,

Michael


- Original Message -
From: Tarun Sainanee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:10 PM
Subject: Re: strusts + log4j


No, Struts and Log4j gel well together.
Have u configured log4j initialization servlet?
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain
always cool and
unruffled under all circumstances.
-- Thomas Jefferson






Michael Delamere [EMAIL PROTECTED]
08/03/2002 05:37 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List
[EMAIL PROTECTED]
cc:
Subject:strusts + log4j


Hi,

I´m trying to use log4j for logging in my application.  The problem I´m
facing though, is that as soon as I drop the log4j jar into any lib
directory, struts doesn´t load anymore.  I get the folowing message:

The requested service (Servlet struts is currently unavailable) is not
currently available.

Does struts have a problem with log4j or what could I be doing wrong?

Thanks,

Michael


--
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: Limiting No of Records per page/view

2002-08-03 Thread Todd G. Nist

Hello Vijay,

You can use the  length and offset attributes of the iterator tag.

The length is used to tell the iterator the number of times/number of items
to retrieve from the collection.

Offset is used to indicate the offset into the collection.

So for example, if you want to display only 10 items of the then you would
do something like this:

logic:iterate id=order
 name=orderlist
 length=10
 offset=0

Hope that helps.

Regards,

Todd G. Nist
-Original Message-
From: Vijay Kumar [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 03, 2002 4:15 AM
To: [EMAIL PROTECTED]
Subject: Limiting No of Records per page/view



Hi,
I am using Struts  . I need to displays say 10 records per page/view and
give user ability to click on either next button or hyperlink to display
next set of 10 records. User should also have the ability to go back by
clicking previous button. I am able to display all records using iterate
tag, but not able to limit the no of records shown. Any example or code will
be helpful.
This is what i am doing to display records.

logic:iterate id=selling name=table.list

tr
td width=150 height=15 class=tableRowsReadOnly
   nbspbean:write name=selling property=sellingcode/
/td

   td width=150 height=15 class=tableRowsReadOnly
   nbspbean:write name=selling property=season/
/td

/logic:iterate

Cheers
vkvk

_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
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: strusts + log4j

2002-08-03 Thread Etienne, Ingo (Goetzfried AG)

Hey kids,

don't play around, just ask and answer technical questions...

Michael, please check if you have another log4j jar file in your classpath,
this could be a possible reason.

With Very Best Regards
Ingo


-Original Message-
From: Tarun Sainanee [mailto:[EMAIL PROTECTED]]
Sent: Samstag, 3. August 2002 15:01
To: Struts Users Mailing List
Subject: Re: strusts + log4j


Do you mean that u havent yet used any logging instances in ur code. Have 
u just put the jar file in lib?
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain 
always cool and 
unruffled under all circumstances.
-- Thomas Jefferson






Michael Delamere [EMAIL PROTECTED]
08/03/2002 06:23 PM
Please respond to Struts Users Mailing List

 
To: Struts Users Mailing List [EMAIL PROTECTED]
cc: 
Subject:Re: strusts + log4j


Of course I´m using my controller servlet ;-).

I will try that although I still find it a bit strange that struts 
suddenly
stops working just because I dropped the log4j jar into my lib directory! 
I
mean if I wasn´t logging in a servlet but say in a normal java class, why
would I do the log4j initialization servlet entry in web.xml.

Maybe there´s something I´m not understanding here.

Regards,

Michael


- Original Message -
From: Tarun Sainanee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:44 PM
Subject: Re: strusts + log4j


log4j initialization servlet entry in web.xml. and a corresponding java
file
I hope u r also using a controller servlet!!!
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain
always cool and
unruffled under all circumstances.
-- Thomas Jefferson






Michael Delamere [EMAIL PROTECTED]
08/03/2002 05:43 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List 
[EMAIL PROTECTED]
cc:
Subject:Re: strusts + log4j


What do you mean exactly with the following sentence:

 Have u configured log4j initialization servlet?

Thanks for your reply,

Michael


- Original Message -
From: Tarun Sainanee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:10 PM
Subject: Re: strusts + log4j


No, Struts and Log4j gel well together.
Have u configured log4j initialization servlet?
Regards,
Tarun Sainanee
TCS Delhi

--
Nothing gives one person so much advantage over another as to remain
always cool and
unruffled under all circumstances.
-- Thomas Jefferson






Michael Delamere [EMAIL PROTECTED]
08/03/2002 05:37 PM
Please respond to Struts Users Mailing List


To: Struts Users Mailing List
[EMAIL PROTECTED]
cc:
Subject:strusts + log4j


Hi,

I´m trying to use log4j for logging in my application.  The problem I´m
facing though, is that as soon as I drop the log4j jar into any lib
directory, struts doesn´t load anymore.  I get the folowing message:

The requested service (Servlet struts is currently unavailable) is not
currently available.

Does struts have a problem with log4j or what could I be doing wrong?

Thanks,

Michael


--
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: How to connect a COM environment to struts ?

2002-08-03 Thread Martin Kuypers

Greg

The problem is solved and thanks to everyone who contributed to the solution

Martin
- Original Message -
From: Martin Kuypers [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 31, 2002 11:06 PM
Subject: Re: How to connect a COM environment to struts ?


 Thanks Greg, i am giving it a shot right now and let you know the outcome

 Martin
 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 31, 2002 8:00 PM
 Subject: RE: How to connect a COM environment to struts ?


   Is it also possible through this to do a file transfer bu your
  knowledge
  
  I don't know anything about that.
 
   Can you also send me a piece of your code as a reference
  
  The snippets I sent you in the last response should get you going on the
  VB side.  I couldn't really send you any more of our VB code without
  sending it all because some of the guys who wrote it like to do things
  in the most complicated way possible :-).  And the web framework we used
  in that project was not Struts, but somewhat similar to Struts.  If I
  can find time later today, I'll try to throw together a simple example
  of that using Struts, but I won't make promises.
 
  Thanks,
  Greg
 
 
  --
  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]




forms, security,read only fields,autopopulation

2002-08-03 Thread John Rothfield

I have an account information screen that lets the user change their
address. The screen displays account # also, but account # is a read only
field.
Question: should account # be in the form bean? I need to populate account
#, but
I'm afraid the user will hack the form and add an accountNo input field
which would then
automatically set the accountNo field. 

One approach is to have the form object contain the model as a variable,
and to have a
get method but no set method.

The example that came with struts uses the following:

bean:write name=user property=username filter=true/

where user is the formname.

Any comments?

Thanks, John



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




Re: strusts + log4j

2002-08-03 Thread Craig R. McClanahan



On Sat, 3 Aug 2002, Michael Delamere wrote:

 Date: Sat, 3 Aug 2002 14:53:19 +0200
 From: Michael Delamere [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: strusts + log4j

 Of course I´m using my controller servlet ;-).

 I will try that although I still find it a bit strange that struts suddenly
 stops working just because I dropped the log4j jar into my lib directory!  I
 mean if I wasn´t logging in a servlet but say in a normal java class, why
 would I do the log4j initialization servlet entry in web.xml.

 Maybe there´s something I´m not understanding here.


The very first thing you should do when strange things like this happen is
check the log files produced by your servlet container.  There will
generally be some message or stack trace that can give you a clue about
what is going wrong.

 Regards,

 Michael

Craig




 - Original Message -
 From: Tarun Sainanee [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Saturday, August 03, 2002 2:44 PM
 Subject: Re: strusts + log4j


 log4j initialization servlet entry in web.xml. and a corresponding java
 file
 I hope u r also using a controller servlet!!!
 Regards,
 Tarun Sainanee
 TCS Delhi
 
 --
 Nothing gives one person so much advantage over another as to remain
 always cool and
 unruffled under all circumstances.
 -- Thomas Jefferson






 Michael Delamere [EMAIL PROTECTED]
 08/03/2002 05:43 PM
 Please respond to Struts Users Mailing List


 To: Struts Users Mailing List [EMAIL PROTECTED]
 cc:
 Subject:Re: strusts + log4j


 What do you mean exactly with the following sentence:

  Have u configured log4j initialization servlet?

 Thanks for your reply,

 Michael


 - Original Message -
 From: Tarun Sainanee [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Saturday, August 03, 2002 2:10 PM
 Subject: Re: strusts + log4j


 No, Struts and Log4j gel well together.
 Have u configured log4j initialization servlet?
 Regards,
 Tarun Sainanee
 TCS Delhi
 
 --
 Nothing gives one person so much advantage over another as to remain
 always cool and
 unruffled under all circumstances.
 -- Thomas Jefferson






 Michael Delamere [EMAIL PROTECTED]
 08/03/2002 05:37 PM
 Please respond to Struts Users Mailing List


 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 cc:
 Subject:strusts + log4j


 Hi,

 I´m trying to use log4j for logging in my application.  The problem I´m
 facing though, is that as soon as I drop the log4j jar into any lib
 directory, struts doesn´t load anymore.  I get the folowing message:

 The requested service (Servlet struts is currently unavailable) is not
 currently available.

 Does struts have a problem with log4j or what could I be doing wrong?

 Thanks,

 Michael


 --
 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: strusts + log4j

2002-08-03 Thread Michael Delamere

Craig,

I did and it didn´t tell me very much.  Anyway, as I explained later there
appeared to be a mix-up with older and newer jars which led to this error.

Of course it seems like a trivial error and I don´t want to waste your time
with such things, but it just seemed so strange what was happening.

Thanks,

Michael


- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 7:01 PM
Subject: Re: strusts + log4j




 On Sat, 3 Aug 2002, Michael Delamere wrote:

  Date: Sat, 3 Aug 2002 14:53:19 +0200
  From: Michael Delamere [EMAIL PROTECTED]
  Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Subject: Re: strusts + log4j
 
  Of course I´m using my controller servlet ;-).
 
  I will try that although I still find it a bit strange that struts
suddenly
  stops working just because I dropped the log4j jar into my lib
directory!  I
  mean if I wasn´t logging in a servlet but say in a normal java class,
why
  would I do the log4j initialization servlet entry in web.xml.
 
  Maybe there´s something I´m not understanding here.
 

 The very first thing you should do when strange things like this happen is
 check the log files produced by your servlet container.  There will
 generally be some message or stack trace that can give you a clue about
 what is going wrong.

  Regards,
 
  Michael

 Craig


 
 
  - Original Message -
  From: Tarun Sainanee [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Saturday, August 03, 2002 2:44 PM
  Subject: Re: strusts + log4j
 
 
  log4j initialization servlet entry in web.xml. and a corresponding java
  file
  I hope u r also using a controller servlet!!!
  Regards,
  Tarun Sainanee
  TCS Delhi

 --
--
  --
  Nothing gives one person so much advantage over another as to remain
  always cool and
  unruffled under all circumstances.
  -- Thomas Jefferson
 
 
 
 
 
 
  Michael Delamere [EMAIL PROTECTED]
  08/03/2002 05:43 PM
  Please respond to Struts Users Mailing List
 
 
  To: Struts Users Mailing List
[EMAIL PROTECTED]
  cc:
  Subject:Re: strusts + log4j
 
 
  What do you mean exactly with the following sentence:
 
   Have u configured log4j initialization servlet?
 
  Thanks for your reply,
 
  Michael
 
 
  - Original Message -
  From: Tarun Sainanee [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Saturday, August 03, 2002 2:10 PM
  Subject: Re: strusts + log4j
 
 
  No, Struts and Log4j gel well together.
  Have u configured log4j initialization servlet?
  Regards,
  Tarun Sainanee
  TCS Delhi

 --
--
  --
  Nothing gives one person so much advantage over another as to remain
  always cool and
  unruffled under all circumstances.
  -- Thomas Jefferson
 
 
 
 
 
 
  Michael Delamere [EMAIL PROTECTED]
  08/03/2002 05:37 PM
  Please respond to Struts Users Mailing List
 
 
  To: Struts Users Mailing List
  [EMAIL PROTECTED]
  cc:
  Subject:strusts + log4j
 
 
  Hi,
 
  I´m trying to use log4j for logging in my application.  The problem I´m
  facing though, is that as soon as I drop the log4j jar into any lib
  directory, struts doesn´t load anymore.  I get the folowing message:
 
  The requested service (Servlet struts is currently unavailable) is not
  currently available.
 
  Does struts have a problem with log4j or what could I be doing wrong?
 
  Thanks,
 
  Michael
 
 
  --
  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: strusts + log4j

2002-08-03 Thread chuckcavaness

Take a look at the draft logging chapter in my upcoming 
struts book. I cover Struts and log4j.

You can find it here:
http://www.theserverside.com/resources/strutsreview.jsp

chuck
 Craig,
 
 I did and it didn´t tell me very much.  Anyway, as I explained later there
 appeared to be a mix-up with older and newer jars which led to this error.
 
 Of course it seems like a trivial error and I don´t want to waste your time
 with such things, but it just seemed so strange what was happening.
 
 Thanks,
 
 Michael
 
 
 - Original Message -
 From: Craig R. McClanahan [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Saturday, August 03, 2002 7:01 PM
 Subject: Re: strusts + log4j
 
 
 
 
  On Sat, 3 Aug 2002, Michael Delamere wrote:
 
   Date: Sat, 3 Aug 2002 14:53:19 +0200
   From: Michael Delamere [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: Re: strusts + log4j
  
   Of course I´m using my controller servlet ;-).
  
   I will try that although I still find it a bit strange that struts
 suddenly
   stops working just because I dropped the log4j jar into my lib
 directory!  I
   mean if I wasn´t logging in a servlet but say in a normal java class,
 why
   would I do the log4j initialization servlet entry in web.xml.
  
   Maybe there´s something I´m not understanding here.
  
 
  The very first thing you should do when strange things like this happen is
  check the log files produced by your servlet container.  There will
  generally be some message or stack trace that can give you a clue about
  what is going wrong.
 
   Regards,
  
   Michael
 
  Craig
 
 
  
  
   - Original Message -
   From: Tarun Sainanee [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Saturday, August 03, 2002 2:44 PM
   Subject: Re: strusts + log4j
  
  
   log4j initialization servlet entry in web.xml. and a corresponding java
   file
   I hope u r also using a controller servlet!!!
   Regards,
   Tarun Sainanee
   TCS Delhi
 
  --
 --
   --
   Nothing gives one person so much advantage over another as to remain
   always cool and
   unruffled under all circumstances.
   -- Thomas Jefferson
  
  
  
  
  
  
   Michael Delamere [EMAIL PROTECTED]
   08/03/2002 05:43 PM
   Please respond to Struts Users Mailing List
  
  
   To: Struts Users Mailing List
 [EMAIL PROTECTED]
   cc:
   Subject:Re: strusts + log4j
  
  
   What do you mean exactly with the following sentence:
  
Have u configured log4j initialization servlet?
  
   Thanks for your reply,
  
   Michael
  
  
   - Original Message -
   From: Tarun Sainanee [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Saturday, August 03, 2002 2:10 PM
   Subject: Re: strusts + log4j
  
  
   No, Struts and Log4j gel well together.
   Have u configured log4j initialization servlet?
   Regards,
   Tarun Sainanee
   TCS Delhi
 
  --
 --
   --
   Nothing gives one person so much advantage over another as to remain
   always cool and
   unruffled under all circumstances.
   -- Thomas Jefferson
  
  
  
  
  
  
   Michael Delamere [EMAIL PROTECTED]
   08/03/2002 05:37 PM
   Please respond to Struts Users Mailing List
  
  
   To: Struts Users Mailing List
   [EMAIL PROTECTED]
   cc:
   Subject:strusts + log4j
  
  
   Hi,
  
   I´m trying to use log4j for logging in my application.  The problem I´m
   facing though, is that as soon as I drop the log4j jar into any lib
   directory, struts doesn´t load anymore.  I get the folowing message:
  
   The requested service (Servlet struts is currently unavailable) is not
   currently available.
  
   Does struts have a problem with log4j or what could I be doing wrong?
  
   Thanks,
  
   Michael
  
  
   --
   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: Commons FileUpload (was: [Off Topic] com.oreilly.servletuplo ad and WebSphere web serv er)

2002-08-03 Thread Martin Cooper

There isn't a proper sample app like struts-upload.war that uses purely the
FileUpload component. The documentation for FileUpload itself is somewhat
lacking at this point, although the package.html file illustrates how to use
it in a servlet, with sample code for a doPost() method.

The Struts nightly builds as of 7/28 do use FileUpload for
struts-upload.war, though not in the same way as you would use it in your
own (non-Struts) servlet. There's a Struts class,
CommonsMultipartRequestHandler, which is an adaptor between the FileUpload
API and the Struts MultipartRequestHandler API. The bulk of the work is done
in the handleRequest() method.

Hope this helps.

--
Martin Cooper


 -Original Message-
 From: Rajesh Kalluri [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, August 03, 2002 10:09 AM
 To: Struts Users Mailing List
 Subject: RE: [Off Topic] com.oreilly.servlet upload and WebSphere web
 serv er
 
 
 Is there some sample code making use of commons-file upload 
 package like
 struts-upload.war in the nightly build/
 
 Rajesh
 -Original Message-
 From: Martin Cooper [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, August 03, 2002 1:12 AM
 To: 'Struts Users Mailing List'
 Subject: RE: [Off Topic] com.oreilly.servlet upload and WebSphere web
 serv er
 
 
 The latest nightly builds of Struts (since 7/28) include a 
 new file upload
 implementation based on the Commons FileUpload package. That 
 package is
 intended to be a standalone package which can be easily 
 integrated into
 other solutions (e.g. Turbine - where it originated - and Struts).
 Integration into Struts was pretty much painless.
 
 Although FileUpload is still in the Sandbox, rather than 
 Commons Proper, I
 believe the actual code is release quality. Once we get 
 Struts 1.1-b2 out
 the door, I fully intend to shepherd it through the 1.0 
 release process.
 
 --
 Martin Cooper
 
 
  -Original Message-
  From: Eddie Bush [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 02, 2002 11:11 AM
  To: Struts Users Mailing List
  Subject: Re: [Off Topic] com.oreilly.servlet upload and 
 WebSphere web
  server
 
 
  Ok - so everyone (like me) uses the Struts upload stuff.  
 Would it be
  possible to extract just the file upload business and use it in a
  stand-alone fashion?  ... or is it tightly integrated?  I haven't
  looked, to be honest.
 
  Thanks!
 
  Eddie
 
  Eddie Bush wrote:
 
   Hey guys - this is for my wife; not me :-)
  
   She has a requirement to upload some clients pictures and
  has settled
   on the COS stuff, but she can't import it into her IDE
  because it is
   complaining about some servlet spec 2.3 references (ie
   Filters/Wrappers).  From looking over the documentation on
   servlets.com, I got the impression it should be able to
  work with her
   environment, even if it's not spec 2.3 compliant.  Am I wrong?
  
   Has anyone used this successfully?  Does someone know of a good
   resource I can refer her to, so I can get on with my life
  and she can
   figure this out? :-)  Somehow I don't think just telling
  her to STFW
   would go over really well - LOL :-)
  
   THANKS!
  
   Eddie
  
   (Personally I just good ol'e Tomcat/Struts, so I have no
  clue what IBM
   has going on with their WebSphere stuff!)
  
  
  
   --
   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]




Any uses of set-property inside of global-forward

2002-08-03 Thread James Turner

Hi there,
The dtd for global-forward and action allows for a set-property tag.  I 
can see where this might be useful for an action, but are there any 
properties worth setting in a global forward?

James



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




Re: Any uses of set-property inside of global-forward

2002-08-03 Thread Craig R. McClanahan



On Sat, 3 Aug 2002, James Turner wrote:

 Date: Sat, 03 Aug 2002 13:54:18 -0400
 From: James Turner [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Any uses of set-property inside of global-forward

 Hi there,
 The dtd for global-forward and action allows for a set-property tag.  I
 can see where this might be useful for an action, but are there any
 properties worth setting in a global forward?


You can provide a custom subclass of ActionForward that included some
additional properties if you want to, which lets you add additional stuff
specific to your app.

 James

Craig


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




Re: Limiting No of Records per page/view

2002-08-03 Thread Stan Baranek

I use a scroller class that takes an ArrayList of objects. I make the 
objects in the list comparable so the list can be sorted. The scroller 
class uses a simple sorting class to hold the ArrayList. The scroller 
class has public methods like scrollForward(), sortList(), 
getCurrentPage(), gotoPage(), etc. The scroller figures out the proper 
page to display and returns a smaller list of elements. A hyperlink on 
each column heading in the .jsp can trigger a sort event. Subsequent 
clicks on the same column toggle the sort order.

I use the scroller class in my form bean and use methods like 
getDisplayResultsList() to return one page of the list to my .jsp. I 
also limit the number of results returned from the database and use 
light objects in the list so it's not too much of a pig. I think this 
approach works well for small volume applications - you probably don't 
want to use it for a large ecomerce app:-)

I've reused the code for this many times now and find that it's very 
quick to slap into an application and I never have to reinvent the wheel.

This is not the cleanest code in the world but it works well for me:-)

Here is a long-winded code example.

Here is an example of populating the ActionForm.Scroller object with an 
ArrayList of objects to be displayed.
You'll need to implement Comparable on the class of objects you're 
storing in the Scroller if you want to sort.

outputForm.scroller.setScrollList(resultList);
outputForm.setupScroller(); //--- initialize the scroller page size, etc.

Here are some of the key methods used in my ActionForm bean:
Note that the form bean resultList is a short list of one page of data 
that the scroller populates when you scroll
public Object[] getDisplayResultsList() { //--- added to make Struts happy
if (this.resultList != null 
this.resultList.size()  0) {
}
return this.resultList.toArray(); //--- struts likes it this way
}
public int getCurrentPage() {
return this.scroller.getCurrentPage();
}
public int getTotalPages() {
return this.scroller.getNumPages();
}
public int getPageSize() {
return this.scroller.getPageSize();
}
public int getTopIndex() { //--- used for listing current position in 
list (ie: displaying 11 to 20 of 100 total items. Current page 2 of 10. 
Page size: 10)
return this.scroller.getTopIndex();
}
public int getBotIndex() {
return this.scroller.getBotIndex();
}
public int getSortField() {
return this.sortField;
}
public void setSortField(int pSortField) {
this.sortField = pSortField;
}
public String getSortOrder() {
if (this.scroller.getSortAssending())
return A;
else
return D;
}

public void setupScroller() {
this.scroller.setPageSize(10);
this.scroller.setupPages();
this.setResultList(this.scroller.scrollTop());
}
public void scrollScreen(String pScrollFunction) {
ArrayList returnList = null;
if (pScrollFunction.equals(this.scroller.SCROLL_UP )) returnList = 
this.scroller.scrollUp();
else if (pScrollFunction.equals(this.scroller.SCROLL_DOWN )) returnList 
= this.scroller.scrollDown();
else if (pScrollFunction.equals(this.scroller.SCROLL_TOP )) returnList = 
this.scroller.scrollTop();
else if (pScrollFunction.equals(this.scroller.SCROLL_BOTTOM )) 
returnList = this.scroller.scrollBot();
else if (pScrollFunction.equals(this.scroller.REFRESH_SCREEN)) 
returnList = this.scroller.getCurrentScreen();
else if (pScrollFunction.equals(this.scroller.SORT_LIST )) returnList = 
this.scroller.sortList();
else if (pScrollFunction.equals(this.scroller.SCROLL_PAGE )) returnList 
= this.scroller.scrollToPage();

if (this.scroller.getMessageText() != null 
this.scroller.getMessageText().trim().length()  0) {
errors.add(results, new ActionError(scroller.getMessageText()));
}

if (returnList != null) this.setResultList(returnList);
}




import java.util.*;

public class Scroller {
private XYObjArray scrollList = null;
private int listSize = 0;
private int pageSize = 10;
private int topIndex = 0;
private int botIndex = 0;
private int currPage = 0;
private int numPages = 0;
private String messageText = null;
private boolean sortAssending = true;

//--- constants
public static final String SCROLL_TYPE = ScrollType;
public static final String SCROLL_UP = ScrollUp;
public static final String SCROLL_DOWN = ScrollDown;
public static final String SCROLL_TOP = ScrollTop;
public static final String SCROLL_BOTTOM = ScrollBottom;
public static final String SCROLL_PAGE = ScrollToPage;
public static final String REFRESH_SCREEN = RefreshScreen;
public static final String SORT_LIST = SortList;

public Scroller() { }

public void setScrollList(ArrayList pScrollList) throws Exception {
if (pScrollList.isEmpty()) {
Exception ex = new Exception(ERROR: Empty Scroll List when constructing 
Scroller class.);
throw ex;
} else {
this.scrollList = new XYObjArray(pScrollList.toArray(),64);
this.setListSize(this.scrollList.GetSize());
System.out.println(List size in scroller being set to: 
+this.getListSize());
}
}

public void setListSize(int pListSize) {
this.listSize = 

Re: forms, security,read only fields,autopopulation

2002-08-03 Thread Phil Steitz

John Rothfield wrote:

I have an account information screen that lets the user change their
address. The screen displays account # also, but account # is a read only
field.
Question: should account # be in the form bean? I need to populate account
#, but
I'm afraid the user will hack the form and add an accountNo input field
which would then
automatically set the accountNo field. 

One approach is to have the form object contain the model as a variable,
and to have a
get method but no set method.

The example that came with struts uses the following:

bean:write name=user property=username filter=true/

where user is the formname.

Any comments?

Thanks, John

First, you should ask yourself whether the user needs to see the full account
number.  You might want to consider displaying a masked version, showing
only enough to distinguish between multiple accounts that a user may have
(e.g. xxx--1234).

Second, and most importantly, you need to maintain the separation of the
model and the view.  Security is one of the primary motivators for Model
II/MVC. Updates to the model should be handled by business objects, not form
beans or even action classes. 

Finally, the mapping between accounts and logged in users should if possible
be maintained by the security system.  If you are using container-managed
security, you can get the identity of the logged-on user using J2EE APIs
in either the web container or the EJB container.  Before making any model
updates, you should verify that the logged in user actually owns the associated
account, using the J2EE (or application) APIs to get the identity of the
user and either your durable security store or a session object that is not
bound to the view, loaded at login, read-only thereafter, to do the check.
The closer you do the account authorization check to the actual model update,
the better.  

If you choose not to implement account-level authorization control in your
business objects, you should certainly avoid exposing the session account
data of record in your form beans.  You can still present the data; but
the form bean getter() should just access the *real* session data and the
setter() should be limited to setting an index into the *real* list of accounts
for the user stored elsewhere in the session. This is the main point -- the
set of accounts associated with a logged in user should in no case (other
than account enrollment) be modifiable by the user.

Just my -- admitedly conservative -- opinion.


Phil Steitz




--
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: strusts + log4j

2002-08-03 Thread Michael Delamere

Thanks,

I´ll check it out.  I´ve actually read most of the chapters already.  Great
work!  It´s nice to actually have books being printed even if it is an open
source project.  The unfortunate thing with many good open source projects
is the lack of documentation or books.  Struts fortunately has both :-).

Regards,

Michael


- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 7:43 PM
Subject: Re: strusts + log4j


 Take a look at the draft logging chapter in my upcoming
 struts book. I cover Struts and log4j.

 You can find it here:
 http://www.theserverside.com/resources/strutsreview.jsp

 chuck
  Craig,
 
  I did and it didn´t tell me very much.  Anyway, as I explained later
there
  appeared to be a mix-up with older and newer jars which led to this
error.
 
  Of course it seems like a trivial error and I don´t want to waste your
time
  with such things, but it just seemed so strange what was happening.
 
  Thanks,
 
  Michael
 
 
  - Original Message -
  From: Craig R. McClanahan [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Saturday, August 03, 2002 7:01 PM
  Subject: Re: strusts + log4j
 
 
  
  
   On Sat, 3 Aug 2002, Michael Delamere wrote:
  
Date: Sat, 3 Aug 2002 14:53:19 +0200
From: Michael Delamere [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: strusts + log4j
   
Of course I´m using my controller servlet ;-).
   
I will try that although I still find it a bit strange that struts
  suddenly
stops working just because I dropped the log4j jar into my lib
  directory!  I
mean if I wasn´t logging in a servlet but say in a normal java
class,
  why
would I do the log4j initialization servlet entry in web.xml.
   
Maybe there´s something I´m not understanding here.
   
  
   The very first thing you should do when strange things like this
happen is
   check the log files produced by your servlet container.  There will
   generally be some message or stack trace that can give you a clue
about
   what is going wrong.
  
Regards,
   
Michael
  
   Craig
  
  
   
   
- Original Message -
From: Tarun Sainanee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:44 PM
Subject: Re: strusts + log4j
   
   
log4j initialization servlet entry in web.xml. and a corresponding
java
file
I hope u r also using a controller servlet!!!
Regards,
Tarun Sainanee
TCS Delhi
  
 
 --
  --
--
Nothing gives one person so much advantage over another as to remain
always cool and
unruffled under all circumstances.
-- Thomas Jefferson
   
   
   
   
   
   
Michael Delamere [EMAIL PROTECTED]
08/03/2002 05:43 PM
Please respond to Struts Users Mailing List
   
   
To: Struts Users Mailing List
  [EMAIL PROTECTED]
cc:
Subject:Re: strusts + log4j
   
   
What do you mean exactly with the following sentence:
   
 Have u configured log4j initialization servlet?
   
Thanks for your reply,
   
Michael
   
   
- Original Message -
From: Tarun Sainanee [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Saturday, August 03, 2002 2:10 PM
Subject: Re: strusts + log4j
   
   
No, Struts and Log4j gel well together.
Have u configured log4j initialization servlet?
Regards,
Tarun Sainanee
TCS Delhi
  
 
 --
  --
--
Nothing gives one person so much advantage over another as to remain
always cool and
unruffled under all circumstances.
-- Thomas Jefferson
   
   
   
   
   
   
Michael Delamere [EMAIL PROTECTED]
08/03/2002 05:37 PM
Please respond to Struts Users Mailing List
   
   
To: Struts Users Mailing List
[EMAIL PROTECTED]
cc:
Subject:strusts + log4j
   
   
Hi,
   
I´m trying to use log4j for logging in my application.  The problem
I´m
facing though, is that as soon as I drop the log4j jar into any lib
directory, struts doesn´t load anymore.  I get the folowing message:
   
The requested service (Servlet struts is currently unavailable) is
not
currently available.
   
Does struts have a problem with log4j or what could I be doing
wrong?
   
Thanks,
   
Michael
   
   
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
   
   
   
   
   
   
--
To 

RE: using breadcrumbs

2002-08-03 Thread Holman, Cal

Navita I use tiles to manage breadcrumbs.  By adding a 'crumbnameXX' and
'crumblinkXX' to the tiles page definition and extending definitions I build
a tree within the page definitions.  Using a TilesAction for a UrlController
I load the crumbnameXX and crumblinkXX into request context. Because I
extend the page definitions all the curnbnameXX values are read from the
current definition back the chain creating a list from the current tile back
to the root page definition.  There needs to be a crumbs.jsp to render the
crumbs and it is included in the base template.  Let me know if you want the
source for the TilesAction and Crumb.jsp.

Here is an example of the tiles definition.  If on the page defined by
cal.pagedef the crumb would look like:  Home | Family | Cal


definition name=home.pagedef page=/template.jsp
controllerUrl=/do/layoutSwitch   
  put name=title value=home.title /
  put name=headervalue=/web/includes/header.jsp /
  put name=index
value=/web/pages/home/HomeIndex.jsp /
  put name=indexMain value=/web/includes/index.jsp /
  put name=content
value=/web/pages/home/HomeContent.jsp /
  put name=footer
value=/web/includes/footer.jsp /
  put name=styleSheet
value=web/styles/Grey_StyleSheet.css /
  put name=keywords  value=home.keywords/
  put name=crumbsvalue=/web/includes/crumb.jsp/
  put name=crumbtitle1   value=Home/
  put name=crumblink1
value=/AutoForward?forward=home.pagedef/
  put name=pagename  value=home/
  /definition

   definition name=family.pagedef extends=home.pagedef
  put name=title  value=family.title /
  put name=index value=/web/pages/family/FamilyIndex.jsp /
  put name=content   value=/web/pages/family/FamilyContent.jsp
/
  put name=keywords value=family.keywords/
  put name=crumbtitle2 value=Family/ 
  put name=crumblink2
value=/AutoForward?forward=family.pagedef/
  put name=pagename  value=family/
  /definition

  definition name=cal.pagedef extends=family.pagedef
  put name=title value=cal.title /
  put name=content   value=/web/pages/family/cal/CalContent.htm
/
  put name=index   value=/web/pages/family/cal/CalIndex.jsp /
  put name=keywords value=cal.keywords/
  put name=crumbtitle3 value=Cal/
  put name=crumblink3
value=/family/AutoForward?forward=cal.pagedef/
  put name=pagename  value=CurrentCal/
  /definition



Cal

http://www.calandva.com/ 



-Original Message-
From: Navita J. Bhoir [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 21:56
To: Struts (E-mail)
Subject: using breadcrumbs

hello,

i have two problems:

1 want to use breadcrumbs to display the navigation, does anybody have any
idea to do that ?

2 i have a page displaying details

person id  name city.. blah blah  other details
  
for every detail record i have a link for the id and i want to invoke
viewpersondetails.do with this person id as a request paramater on clicking
the person id.

how do i get about setting this dynamic value, is there any way using the
bean tag i can do this.

thanks in advance,

-navita


--
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: How to re-populate multiple selected options in a dropdown combo box

2002-08-03 Thread mike m

If I understand your problem, I believe you need two properties:
one for html:select (String[ ])
one for html:options (List or String[ ])

because you can't store both the available items and the selected item(s) in
the same property.

Mike

-Original Message-
From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 5:40 AM
To: [EMAIL PROTECTED]
Subject: How to re-populate multiple selected options in a dropdown
combo box


Subject: How to re-populate multiple selected options in a dropdown combo
box
From: Hu Ji Rong [EMAIL PROTECTED]
 ===
Hi,

I have the following code and String[ ] attribute with the same name in the
form bean, but got an error same bean with name stdAirspaceLimitList not
found.

   html:select value=1000M styleClass=txtBgManColor entryFont
multiple=true style=width: 157; height: 38
property=stdAirspaceLimitList size=2
  html:options property=stdAirspaceLimitList/
/html:select

What's wrong? What I want to do is select values from a non-multiple
dropdown combo box and put them into the multiple dropdown combox.

Thanks in advance.
JiRong



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