Re: Fine Grained Access Control in Sturts

2003-03-21 Thread Max Cooper
A given user can have many roles, so be careful not to break that concept if
you can avoid it. Even if you don't need it now, it is supported by the
standard security stuff and it would be a shame to paint yourself into a
such a corner accidentally. You might need it later.

-Max

- Original Message -
From: Dan Allen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 9:36 PM
Subject: Re: Fine Grained Access Control in Sturts


  I always feel bad when I ask a question that is in the existing
  documentation.
 
  For others (unlike David) who do not have the documentation
  memorized, the logic:present tag will take a role attribute:
 
  Checks whether the currently authenticated user (if any) has been
  associated with any of the specified security roles. Use a
  comma-delimited list to check for multiple roles. Example:
  logic:present role=role1,role2,role3 code. /logic:present
 
  (RT EXPR)

 How would this be done with jstl?

 c:if test=${user.role == 'member'}/
 ???

 not quite as easy, and is 'user' a page scoped variable or is
 something else required.

 Dan

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 I'm old enough to know better, but still too young to care.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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





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



RE: Fine Grained Access Control in Sturts

2003-03-21 Thread Mick . Knutson
Is there a way to actually use Roles and Groups in Control?
I.E. I have 2 groups, groupA, and groupB.
userA would have read, write and admin role in goupA, but have only read 
role in groupB

Is this possible?

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 9:05 AM
To: Struts Users Mailing List
Subject: Re: Fine Grained Access Control in Sturts


A given user can have many roles, so be careful not to break that concept if
you can avoid it. Even if you don't need it now, it is supported by the
standard security stuff and it would be a shame to paint yourself into a
such a corner accidentally. You might need it later.

-Max

- Original Message -
From: Dan Allen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 9:36 PM
Subject: Re: Fine Grained Access Control in Sturts


  I always feel bad when I ask a question that is in the existing
  documentation.
 
  For others (unlike David) who do not have the documentation
  memorized, the logic:present tag will take a role attribute:
 
  Checks whether the currently authenticated user (if any) has been
  associated with any of the specified security roles. Use a
  comma-delimited list to check for multiple roles. Example:
  logic:present role=role1,role2,role3 code. /logic:present
 
  (RT EXPR)

 How would this be done with jstl?

 c:if test=${user.role == 'member'}/
 ???

 not quite as easy, and is 'user' a page scoped variable or is
 something else required.

 Dan

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 I'm old enough to know better, but still too young to care.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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





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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Request attribute and forward redirect

2003-03-21 Thread conrad . crampton


Hi,
When I set redirect to true for a forward mapping I lose my request   
attribute in the resulting forwarded page. The only documented way of   
retaining an object is to put it in the session or application scope (as   
far as I can tell). Does anyone know of a way of putting this into the   
request scope? Or do I have to put into session and then use a scriptlet   
in my jsp to remove the session attribute once I have used the object?

Just looking for the 'correct' way really - it doesn't seem very elegant   
to do what I have suggested.

TIA
Conrad

Conrad Crampton J
Software Solutions
Kent Police
FHQ
11 Edinburgh Square
Sutton Road
Maidstone
Kent
ME15 9BZ

(01622 652869
19 2869

begin 666 InterScan_Disclaimer.txt
M5AIR!%;6%I;!A;[EMAIL PROTECTED](%C8V]M%N6EN9R!D;V-U;65N=AS*2!C
M;VYT86EN(EN9F]R;6%T:6]N(9R;[EMAIL PROTECTED]AE($ME;[EMAIL PROTECTED];G1Y($-O;G-T
M86)U;%R[EMAIL PROTECTED]@@:7,@8V]N9FED96YT:6%L(]R('!R:79I;5G960N
M( -E1H92!I;F9OFUA=EO;B!IR!I;G1E;F1E9!T;R!B92!F;W(@=AE
M(5X8VQUVEV92!UV4@;[EMAIL PROTECTED]AE(EN9EV:61U86PHRD@;W(@8F]D:65S
M('1O('=H;VT@:70@:7,@861DF5S[EMAIL PROTECTED]@6]U(%R92!N;[EMAIL PROTECTED]AE
M(EN=5N95D(')E8VEP:65N=!B92!A=V%R92!T:%T(%N2!D:7-C;]S
M=7)E+!C;W!Y:6YG+!D:7-TFEB=71I;VX@;W(@=7-E(]F('1H92!C;VYT
M96YTR!O9B!T:ES(EN9F]R;6%T:6]N(ES('!R;VAI8FET960N( -DEF
M('EO=2!H879E(')E8V5I=F5D('1H:7,@16UA:6P@:[EMAIL PROTECTED])R;W(@QE87-E
M(YO=EF2!UR!B2!T96QEAO;F4@:6UM961I871E;'DN( T*5AE(-O
M'ER:6=H=!I;B!T:[EMAIL PROTECTED]5N=',@;[EMAIL PROTECTED]AIR!E;6%I;!A;[EMAIL 
PROTECTED]
M(5N8VQOW5R97,@:7,@=AE('!R;W!EG1Y(]F($ME;[EMAIL PROTECTED];G1Y($-O
M;G-T86)U;%R2!A;[EMAIL PROTECTED]('5N875T:]R:7-E9!R97!R;V1U8W1I;VX@
M;W(@9ES8VQOW5R92!IR!C;VYTF%R2!T;R!T:4@')O=FES:6]NR!O
M9B!T:[EMAIL PROTECTED]7)I9VAT($1EVEG;G,@86YD(%!A=5N=',@06-T([EMAIL PROTECTED]
#0H 
end


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



Re: Fine Grained Access Control in Sturts

2003-03-21 Thread Sebastien Cesbron
And what about read mode for role newbie and write mode for role 
admin.

Is there a way not to put the input field twice with two different 
logic:present tags ?

Does anybody have an idea on how to change display based on the role 
(and maybe something else) ?

Seb

Max Cooper wrote:
You can use the logic tags to do something like this:

logic:present role=admin
   html:link page=/admin/Admin.doAdmin/html:link
/logic:present
This assumes you are using a security mechanism where
request.isUserInRole(admin) will return true when the user is in that
role. For that to work, you must use container-managed security or a
filter-based solution like http://securityfilter.sourceforge.net/.
-Max
shamelessly plugging SecurityFilter again :)
- Original Message -
From: Mike Duffy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 12:23 PM
Subject: Fine Grained Access Control in Sturts


Does anyone have any thoughts on fine grained access control in
Struts?
Struts enables access control based on actions (see Struts in
Action, Husted, et. al., pp 550-553), and most application servers
can protect resources based on realms/roles.
But what about display options based on roles.  For example, if you
only wanted an Admin link to appear if the user was an
administrator, what would be the best way to do this?
You could make the role an attribute of the user object and then do
a logic test for the appropriate role.  Or it might be even better to
write a logic tag that takes the user role as an attribute.  Any
thoughts?
Thanks for your consideration.

BTW.  The Husted book is a very good book.

Mike

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
GRAND JEU SMS : Pour gagner un NOKIA 7650, envoyez le mot IF au 61321
(prix d'un SMS + 0.35 euro). Un SMS vous dira si vous avez gagné.
Règlement : http://www.ifrance.com/_reloc/sign.sms
_
GRAND JEU SMS : Pour gagner un NOKIA 7650, envoyez le mot IF au 61321
(prix d'un SMS + 0.35 euro). Un SMS vous dira si vous avez gagné.
Règlement : http://www.ifrance.com/_reloc/sign.sms
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Request attribute and forward redirect

2003-03-21 Thread Andrew Hill
Yep. When you set redirect to true, then what happens is that the server
tells the browser to ask the server for the next page - thus its a client
side forward (and once youve rendered a response out to the client that
request is over) - thus you have a new request when the browser does as the
server requested and requests the url specified in the forward and the old
request is gone - and all its attributes with it.

If doing a server-side forward (ie: redirect=false) then the original
request and all its attributes and parameters are preserved - the server
simply forwards the request on to whatever resource is mapped to process the
url specified in the forward (not sure if filters are invoked. I think they
arent?) (Of course the client doesnt know about any of this internal
forwarding and so shows whichever url it thought it was getting.)

If a server side forward is no good for you, then the only other way is to
make use of the session - which as you mentioned can easily get inelegant.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, 21 March 2003 16:28
To: [EMAIL PROTECTED]
Subject: Request attribute and forward redirect




Hi,
When I set redirect to true for a forward mapping I lose my request
attribute in the resulting forwarded page. The only documented way of
retaining an object is to put it in the session or application scope (as
far as I can tell). Does anyone know of a way of putting this into the
request scope? Or do I have to put into session and then use a scriptlet
in my jsp to remove the session attribute once I have used the object?

Just looking for the 'correct' way really - it doesn't seem very elegant
to do what I have suggested.

TIA
Conrad

Conrad Crampton J
Software Solutions
Kent Police
FHQ
11 Edinburgh Square
Sutton Road
Maidstone
Kent
ME15 9BZ

(01622 652869
19 2869



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



Re: HTML Tags proposal

2003-03-21 Thread julian green
how about this??

jsp:include page=%= LanguageUtil.getPreferredLanguagePath(request, 
data/country.xml) % flush=true /

Julian

Jeff Smith wrote:
I have been following the thread on Country Selection Pull-down and it
addresses an issue that has bothered me as well - how do we create
localizable forms from bean data?
The suggestion of putting localized versions of the various field labels in
my DB (from where I build my labels bean) seems anathema to me - the more
localization I can place in my resources file, the more efficient my
localization project will be.
Would it be possible to add an attribute to the various tags called
localize which takes a true or false (default to false). If set to true,
this tag would treat the value field of the element as a message key and get
the final display value from the resource file?
It seems to me that this would be a powerful (and fairly simple) solution to
a number of form-localization problems.
Jefficus

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


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


RE: RE: Request attribute and forward redir

2003-03-21 Thread conrad . crampton


Thanks for this - it is what I suspected. The reason I want to do the   
client side forward is that I don't want the page resubmitted as it is   
creating records in the database. I noticed some stuff on struts token,   
is this the way I should go instead to prevent the resubmission and   
therefore solve the request attribute issue or is it 'safer' to go the   
client redirection and use the session attribute - I suppose it is 6 of   
one and half dozen of the other!

Any advice is welcome as I am pretty new to this
TIA
Conrad

Conrad Crampton J
Software Solutions
Kent Police
FHQ
11 Edinburgh Square
Sutton Road
Maidstone
Kent
ME15 9BZ

(01622 652869
19 2869


 --
From:  struts-user[SMTP:[EMAIL PROTECTED]
Sent:  21 March 2003 08:40
To:  Struts Users Mailing List [EMAIL PROTECTED]
Subject:   RE: Request attribute and forward redir



Yep. When you set redirect to true, then what happens is that the server
tells the browser to ask the server for the next page - thus its a client
side forward (and once youve rendered a response out to the client that
request is over) - thus you have a new request when the browser does as   
the
server requested and requests the url specified in the forward and the   
old
request is gone - and all its attributes with it.

If doing a server-side forward (ie: redirect=false) then the original
request and all its attributes and parameters are preserved - the server
simply forwards the request on to whatever resource is mapped to process   
the
url specified in the forward (not sure if filters are invoked. I think   
they
arent?) (Of course the client doesnt know about any of this internal
forwarding and so shows whichever url it thought it was getting.)

If a server side forward is no good for you, then the only other way is   
to
make use of the session - which as you mentioned can easily get   
inelegant.

 -Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, 21 March 2003 16:28
To: [EMAIL PROTECTED]
Subject: Request attribute and forward redirect




Hi,
When I set redirect to true for a forward mapping I lose my request
attribute in the resulting forwarded page. The only documented way of
retaining an object is to put it in the session or application scope (as
far as I can tell). Does anyone know of a way of putting this into the
request scope? Or do I have to put into session and then use a scriptlet
in my jsp to remove the session attribute once I have used the object?

Just looking for the 'correct' way really - it doesn't seem very elegant
to do what I have suggested.

TIA
Conrad

Conrad Crampton J
Software Solutions
Kent Police
FHQ
11 Edinburgh Square
Sutton Road
Maidstone
Kent
ME15 9BZ

(01622 652869
19 2869



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



begin 666 InterScan_Disclaimer.txt
M5AIR!%;6%I;!A;[EMAIL PROTECTED](%C8V]M%N6EN9R!D;V-U;65N=AS*2!C
M;VYT86EN(EN9F]R;6%T:6]N(9R;[EMAIL PROTECTED]AE($ME;[EMAIL PROTECTED];G1Y($-O;G-T
M86)U;%R[EMAIL PROTECTED]@@:7,@8V]N9FED96YT:6%L(]R('!R:79I;5G960N
M( -E1H92!I;F9OFUA=EO;B!IR!I;G1E;F1E9!T;R!B92!F;W(@=AE
M(5X8VQUVEV92!UV4@;[EMAIL PROTECTED]AE(EN9EV:61U86PHRD@;W(@8F]D:65S
M('1O('=H;VT@:70@:7,@861DF5S[EMAIL PROTECTED]@6]U(%R92!N;[EMAIL PROTECTED]AE
M(EN=5N95D(')E8VEP:65N=!B92!A=V%R92!T:%T(%N2!D:7-C;]S
M=7)E+!C;W!Y:6YG+!D:7-TFEB=71I;VX@;W(@=7-E(]F('1H92!C;VYT
M96YTR!O9B!T:ES(EN9F]R;6%T:6]N(ES('!R;VAI8FET960N( -DEF
M('EO=2!H879E(')E8V5I=F5D('1H:7,@16UA:6P@:[EMAIL PROTECTED])R;W(@QE87-E
M(YO=EF2!UR!B2!T96QEAO;F4@:6UM961I871E;'DN( T*5AE(-O
M'ER:6=H=!I;B!T:[EMAIL PROTECTED]5N=',@;[EMAIL PROTECTED]AIR!E;6%I;!A;[EMAIL 
PROTECTED]
M(5N8VQOW5R97,@:7,@=AE('!R;W!EG1Y(]F($ME;[EMAIL PROTECTED];G1Y($-O
M;G-T86)U;%R2!A;[EMAIL PROTECTED]('5N875T:]R:7-E9!R97!R;V1U8W1I;VX@
M;W(@9ES8VQOW5R92!IR!C;VYTF%R2!T;R!T:4@')O=FES:6]NR!O
M9B!T:[EMAIL PROTECTED]7)I9VAT($1EVEG;G,@86YD(%!A=5N=',@06-T([EMAIL PROTECTED]
#0H 
end


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



Re: BeanUtils.copyProperties between from and DAO issues

2003-03-21 Thread Dan Allen
Mitchell Morris ([EMAIL PROTECTED]) wrote:

 Hmmm ... looking in the BeanUtils javadocs, I see there's already an
 IntegerArrayConverter which turns a String[] into an int[]. Oh look! The
 author's name seems oddly familiar; anybody know some guy named Craig R.
 McClanahan?
 
 just-need-to-register-it-then-I-suppose-ly y'rs,
Aha!  Finally got to the bottom of this one by creating a little
test suite for myself.  Turns out that, besides ConvertUtils being
awesome, there is a dichotomy.

The conversion from String[] = int[] works as expected.

The conversion from int[] = String[] is some quirky shit.

Basically, int[] = String[] looks for some format like {1,2,3} as a
string and makes that into a String[] array, so it takes a String
and makes a string array.  To me, this is not really the right
converter at all.  Here is the issue, my model returns an int[]
array of industryIds.  My form has a select box which is
LabelValueBean collection which takes an array of String[].  So when
copyProperties takes my model bean to populate the form bean, it
turns a nice int array like

int[] industryIds = {2,8,9,2};

into 

String[] industryIds = {null,I,null,fd54d6}

As you can see, this will certainly not populate the form correctly.
So now I am digging into adding my own converter.  I will get back
to you when it is done.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Personally, I'm not finding Windows 
to be less expensive to administer, 
but those security holes--that'll kill 'em, 
-- Al Gillen, IDC
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: working with a team

2003-03-21 Thread Dan Allen

Stephen Smithstone ([EMAIL PROTECTED]) wrote:

 Have u tried sharing the drive as a network drive with permissions on it ??
 
 then get the jsp developer to map the network to a drive on his computer

We aren't even in the same county, so this will be a little hard.  I
guess a good question to ask would be, can an ant script build on a
remote computer?  I think the answer to this is yes, but of course I
have to figure out how to do it ;(

I guess CVS is the way to go...sure would be nice if someone wrote
an article on this though.  Sometimes the hardest part is just
setting everything up.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Personally, I'm not finding Windows 
to be less expensive to administer, 
but those security holes--that'll kill 'em, 
-- Al Gillen, IDC
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



creating my Class

2003-03-21 Thread Richard Raquepo
I am in the process of designing a class but coudn't figure out how to start it 
because i'm thinking how
struts tags will display my info.

My expected output is like this

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

I don't how will be the data type of my class probably it will look like this:

class Record {
ArrayList record;
ArrayList subrecord[];
}


r really don't what to use really. Can someone give me some idea and also how will i 
be able to display it in
my JSP using struts tags.

thanks a lot.

-Richard

RE: creating my Class

2003-03-21 Thread Mick . Knutson
an ArrayList will hold Objects. an ArrayList is an object itself. So, the ArrayList 
could contain other ArrayList's in it. 

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:12 AM
To: Struts Users Mailing List
Subject: creating my Class


I am in the process of designing a class but coudn't figure out how to start it 
because i'm thinking how
struts tags will display my info.

My expected output is like this

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

I don't how will be the data type of my class probably it will look like this:

class Record {
ArrayList record;
ArrayList subrecord[];
}


r really don't what to use really. Can someone give me some idea and also how will i 
be able to display it in
my JSP using struts tags.

thanks a lot.

-Richard

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



Re: creating my Class

2003-03-21 Thread Richard Raquepo
how can show my record-subrecord?

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

how will i put data and how will the matching be made.
i mean assuming i have a integer key, how is it done then.

 maybe you can show me some java code i will really appreciate it. thanks.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 5:08 PM
Subject: RE: creating my Class


an ArrayList will hold Objects. an ArrayList is an object itself. So, the
ArrayList could contain other ArrayList's in it.


  _

Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _



-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:12 AM
To: Struts Users Mailing List
Subject: creating my Class


I am in the process of designing a class but coudn't figure out how to start
it because i'm thinking how
struts tags will display my info.

My expected output is like this

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

I don't how will be the data type of my class probably it will look like
this:

class Record {
ArrayList record;
ArrayList subrecord[];
}


r really don't what to use really. Can someone give me some idea and also
how will i be able to display it in
my JSP using struts tags.

thanks a lot.

-Richard

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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




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



Re: Fine Grained Access Control in Sturts

2003-03-21 Thread Max Cooper
Roles are groups are essentially the same thing in the context of
Servlet-spec security.

The method request.isUserInRole(role-name) is all you get.

You can map the more complicated structure to simple roles using some scheme
like this:

groupA.read
groupA.write
groupA.admin
groupB.read
groupB.write
groupB.admin

These are all simple role names. The '.' separator is just an arbitrary
convention and has no meaning beyond the meaning you give it in this
scenario (i.e. the container will do no special processing based on the
presence of the '.').

For the userA you describe, s/he would have these roles:

groupA.read
groupA.write
groupA.admin
groupB.read

So these calls would have these values:

request.isUserInRole(groupA.read) = true
request.isUserInRole(groupA.write) = true
request.isUserInRole(groupA.admin) = true
request.isUserInRole(groupB.read) = true
request.isUserInRole(groupB.write) = false
request.isUserInRole(groupB.admin) = false

You could even write your own Realm to do special processing on the '.'
notation if you want to that would use another table to look up permissions
like read, write, admin based on the group groupA or groupB. The
container will just ask your Realm implementation if a user has the
groupA.read role, but the realm can do whatever processing it needs to do
to get an answer to that question, including consulting a more complex
schema than the basic user, role, and user_role_map tables. That may
or may not be a useful abstraction to maintain. If you just use the basic
schema, you don't have to do any special processing.

-Max

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 12:10 AM
Subject: RE: Fine Grained Access Control in Sturts


Is there a way to actually use Roles and Groups in Control?
I.E. I have 2 groups, groupA, and groupB.
userA would have read, write and admin role in goupA, but have
only read role in groupB

Is this possible?


  _

Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _



-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 9:05 AM
To: Struts Users Mailing List
Subject: Re: Fine Grained Access Control in Sturts


A given user can have many roles, so be careful not to break that concept if
you can avoid it. Even if you don't need it now, it is supported by the
standard security stuff and it would be a shame to paint yourself into a
such a corner accidentally. You might need it later.

-Max

- Original Message -
From: Dan Allen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 9:36 PM
Subject: Re: Fine Grained Access Control in Sturts


  I always feel bad when I ask a question that is in the existing
  documentation.
 
  For others (unlike David) who do not have the documentation
  memorized, the logic:present tag will take a role attribute:
 
  Checks whether the currently authenticated user (if any) has been
  associated with any of the specified security roles. Use a
  comma-delimited list to check for multiple roles. Example:
  logic:present role=role1,role2,role3 code. /logic:present
 
  (RT EXPR)

 How would this be done with jstl?

 c:if test=${user.role == 'member'}/
 ???

 not quite as easy, and is 'user' a page scoped variable or is
 something else required.

 Dan

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 I'm old enough to know better, but still too young to care.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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





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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to 

Struts validator for multiple modules

2003-03-21 Thread Navjot Singh
Hi List,

Somehow, I made it working for myself. Now i am happy with the overall
setup. (After a learning pain of almost 5-7 days ;-)
Whenever I get time, I will put up my sample app on board so that others
won't waste time to setup their module based app structure.

regards
navjot singh

- Original Message -
From: Navjot Singh [EMAIL PROTECTED]
To: Struts Users List [EMAIL PROTECTED]
Sent: Wednesday, March 19, 2003 7:33 PM
Subject: struts validator


| hi all,
|
| I have this kind of setup.
|
| + def, mod1, mod2 [3 Modules]
| + Def1.properties, Mod1.properties , Mod2.properties  [respective Message
| Resources]
| + validation-def.xml, validation-mod1.xml, validation-mod2.xml [respective
| Validation files]
|
| I have tried this. BUT every time, after Validation it picks up from
Default
| resource bundle.
|
| Please HELP! I am getting fed up from Struts now.
| From past 10 days, all i am trying to to do is to get the Modules based
| setup working. Still, i am doing the same and not getting to the
application
| logic.
|
| DOES VALIDATION Support multiple message resources / validation files.
|
| regards
| navjot singh
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|


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



Re: [Tiles] Is it possible to get a definition name in a layout.jsp

2003-03-21 Thread Cedric Dumoulin
 Hi,

 It is not possible in the actual version to retrieve the definition 
name. It is an enhancement request for a next version.
 The workaround is to add an attribute whose value is the definition name.

   Cedric

Raible, Matt wrote:

I have the following definition in my tiles-config.xml:

   definition name=.login extends=baseLayout
   put name=title.key  value=login.title/
   put name=heading.key value=login.heading/
   put name=content value=/WEB-INF/pages/welcome.jsp/
   /definition
baseLayout has a path of:

definition name=baseLayout path=/layouts/baseLayout.jsp

In baseLayout.jsp, is it possible to retrieve the definition's name (i.e.
.login).  I'd like to use this in my body tag as an id, so after the
login definition is rendered, I'll have:
body id=.login

My reason for wanting this is so I can specify minor CSS tweaks on a
per-page basis.  This idea was inspired by
http://diveintomark.org/archives/2003/01/16/body_ids.html.
Thanks,

Matt

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



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


Re: BeanUtils.copyProperties between from and DAO issues

2003-03-21 Thread Dan Allen

Dan Allen ([EMAIL PROTECTED]) wrote:

 Mitchell Morris ([EMAIL PROTECTED]) wrote:
 
  Hmmm ... looking in the BeanUtils javadocs, I see there's already an
  IntegerArrayConverter which turns a String[] into an int[]. Oh look! The
  author's name seems oddly familiar; anybody know some guy named Craig R.
  McClanahan?
  
  just-need-to-register-it-then-I-suppose-ly y'rs,
 Aha!  Finally got to the bottom of this one by creating a little
 test suite for myself.  Turns out that, besides ConvertUtils being
 awesome, there is a dichotomy.
 
 The conversion from String[] = int[] works as expected.
 
 The conversion from int[] = String[] is some quirky shit.
 
 Basically, int[] = String[] looks for some format like {1,2,3} as a
 string and makes that into a String[] array, so it takes a String
 and makes a string array.  To me, this is not really the right
 converter at all.  Here is the issue, my model returns an int[]
 array of industryIds.  My form has a select box which is
 LabelValueBean collection which takes an array of String[].  So when
 copyProperties takes my model bean to populate the form bean, it
 turns a nice int array like
 
 int[] industryIds = {2,8,9,2};
 
 into 
 
 String[] industryIds = {null,I,null,fd54d6}
 
 As you can see, this will certainly not populate the form correctly.
 So now I am digging into adding my own converter.  I will get back
 to you when it is done.
 
 Dan

I almost have a patch for this, it is really simple.  Where should I
direct the patch proposal.  To the dev list?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Hey, somebody, sometime, somewhere, said something I think that 
just maybe might have been true but I think that I maybe 
didn't like it. 
 
F^CK IT, I'm suing everybody. 
 -- slashdot member in response to 
petswarehouse.com sueing google.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



RE: Fine Grained Access Control in Sturts

2003-03-21 Thread Mick . Knutson
Thank you very much for this. Quite helpful!

 
  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:17 AM
To: Struts Users Mailing List
Subject: Re: Fine Grained Access Control in Sturts


Roles are groups are essentially the same thing in the context of
Servlet-spec security.

The method request.isUserInRole(role-name) is all you get.

You can map the more complicated structure to simple roles using some scheme
like this:

groupA.read
groupA.write
groupA.admin
groupB.read
groupB.write
groupB.admin

These are all simple role names. The '.' separator is just an arbitrary
convention and has no meaning beyond the meaning you give it in this
scenario (i.e. the container will do no special processing based on the
presence of the '.').

For the userA you describe, s/he would have these roles:

groupA.read
groupA.write
groupA.admin
groupB.read

So these calls would have these values:

request.isUserInRole(groupA.read) = true
request.isUserInRole(groupA.write) = true
request.isUserInRole(groupA.admin) = true
request.isUserInRole(groupB.read) = true
request.isUserInRole(groupB.write) = false
request.isUserInRole(groupB.admin) = false

You could even write your own Realm to do special processing on the '.'
notation if you want to that would use another table to look up permissions
like read, write, admin based on the group groupA or groupB. The
container will just ask your Realm implementation if a user has the
groupA.read role, but the realm can do whatever processing it needs to do
to get an answer to that question, including consulting a more complex
schema than the basic user, role, and user_role_map tables. That may
or may not be a useful abstraction to maintain. If you just use the basic
schema, you don't have to do any special processing.

-Max

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 12:10 AM
Subject: RE: Fine Grained Access Control in Sturts


Is there a way to actually use Roles and Groups in Control?
I.E. I have 2 groups, groupA, and groupB.
userA would have read, write and admin role in goupA, but have
only read role in groupB

Is this possible?


  _

Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _



-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 9:05 AM
To: Struts Users Mailing List
Subject: Re: Fine Grained Access Control in Sturts


A given user can have many roles, so be careful not to break that concept if
you can avoid it. Even if you don't need it now, it is supported by the
standard security stuff and it would be a shame to paint yourself into a
such a corner accidentally. You might need it later.

-Max

- Original Message -
From: Dan Allen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 9:36 PM
Subject: Re: Fine Grained Access Control in Sturts


  I always feel bad when I ask a question that is in the existing
  documentation.
 
  For others (unlike David) who do not have the documentation
  memorized, the logic:present tag will take a role attribute:
 
  Checks whether the currently authenticated user (if any) has been
  associated with any of the specified security roles. Use a
  comma-delimited list to check for multiple roles. Example:
  logic:present role=role1,role2,role3 code. /logic:present
 
  (RT EXPR)

 How would this be done with jstl?

 c:if test=${user.role == 'member'}/
 ???

 not quite as easy, and is 'user' a page scoped variable or is
 something else required.

 Dan

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 I'm old enough to know better, but still too young to care.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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





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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be 

RE: creating my Class

2003-03-21 Thread Mick . Knutson
That depends, if you are going to have 1 Class per Record, then you could do something 
like:
But if you need to reference each record by name, then you can either add a name 
Attribute to the Record like:

class Record {
private String name;
private ArrayList record;

public void setSubRecord(Record subRecord){...}
public Record getSubRecord(String recordName){
   loop...
   if( record.getName().equals(recordName) )
   return record;
}

public void setName(String name){...}
public String getName(){...}

}

Then you can just search each RecordObject in the ArrayList.

Of coarse you can always look at a HashMap as well.

  _  

Thank You
 
Mick Knutson
 
Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _  



-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:22 AM
To: Struts Users Mailing List
Subject: Re: creating my Class


how can show my record-subrecord?

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

how will i put data and how will the matching be made.
i mean assuming i have a integer key, how is it done then.

 maybe you can show me some java code i will really appreciate it. thanks.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 5:08 PM
Subject: RE: creating my Class


an ArrayList will hold Objects. an ArrayList is an object itself. So, the
ArrayList could contain other ArrayList's in it.


  _

Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _



-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:12 AM
To: Struts Users Mailing List
Subject: creating my Class


I am in the process of designing a class but coudn't figure out how to start
it because i'm thinking how
struts tags will display my info.

My expected output is like this

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

I don't how will be the data type of my class probably it will look like
this:

class Record {
ArrayList record;
ArrayList subrecord[];
}


r really don't what to use really. Can someone give me some idea and also
how will i be able to display it in
my JSP using struts tags.

thanks a lot.

-Richard

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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




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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.



RE: creating my Class

2003-03-21 Thread ALAMI Ahmed
May be like this:

public class Records{
private List records = new ArrayList();
//Constructor
public addRecord(Record record){
records.add(record);
}
// get and set methods
}


public class Record {
private Liste subRecords = new ArrayList();
private String name=null;
private String description = null;
//Constructor
public addSubRecord(SubRecord subRecord){
subRecords.add(subRecord);
// get and set methods
}
}

public class SubRecord{
//Constructor
private String name=null;
private String description = null;
// get and set methods
}
So in your class Action you construct the Records objetcs and you display it in the 
JSP page using bean:define and logic:iterate tags

Hope it helps you




-Message d'origine-
De : Richard Raquepo [mailto:[EMAIL PROTECTED]
Envoyé : Friday, March 21, 2003 10:12 AM
À : Struts Users Mailing List
Objet : creating my Class


I am in the process of designing a class but coudn't figure out how to start it 
because i'm thinking how
struts tags will display my info.

My expected output is like this

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

I don't how will be the data type of my class probably it will look like this:

class Record {
ArrayList record;
ArrayList subrecord[];
}


r really don't what to use really. Can someone give me some idea and also how will i 
be able to display it in
my JSP using struts tags.

thanks a lot.

-Richard


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



Re: BeanUtils.copyProperties between from and DAO issues

2003-03-21 Thread Dan Allen
Here it is:

--- StringArrayConverter.java.orig  2003-03-21 04:43:17.0 -0500
+++ StringArrayConverter.java   2003-03-21 04:43:20.0 -0500
@@ -113,6 +113,10 @@
 
 // --- Static Variables
 
+   /**
+* p Model object for int arrays./p
+*/
+   private static int ints[] = new int[0];
 
 /**
  * pModel object for type comparisons./p
@@ -149,6 +153,19 @@
 return (value);
 }
 
+   // Deal with the input value as an int array
+   if (ints.getClass() == value.getClass())
+   {
+   int[] values = (int[]) value;
+   String[] results = new String[values.length];
+   for (int i = 0; i  values.length; i++)
+   {
+   results[i] = new 
StringBuffer().append(values[i]).toString();
+   }
+   
+   return (results);
+   }
+
 // Parse the input value as a String into elements
 // and convert to the appropriate type
 try {


As you can see, it was just necessary to check to see if an int[]
was passed to the converter.  Now this class mirrors its inverse,
IntegerArrayConvertor.java which first checks for a String[] to be
passed in, and then works with a String (in the format {2,3,4}).
Obviously if you pass in an int[] you want to get out the exact same
values converted to a String[] and as you can see, it is failproof
since StringBuffer can deal with any type.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Personally, I'm not finding Windows 
to be less expensive to administer, 
but those security holes--that'll kill 'em, 
-- Al Gillen, IDC
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



hi a problem - Shank

2003-03-21 Thread Jaya Shankar
Hi all

How do I populate a jsp with DB field values, just up on loading the page in
the browser using struts framework?

Thanks in advance
shank

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 3:09 PM
Subject: RE: creating my Class


That depends, if you are going to have 1 Class per Record, then you could do
something like:
But if you need to reference each record by name, then you can either add a
name Attribute to the Record like:

class Record {
private String name;
private ArrayList record;

public void setSubRecord(Record subRecord){...}
public Record getSubRecord(String recordName){
   loop...
   if( record.getName().equals(recordName) )
   return record;
}

public void setName(String name){...}
public String getName(){...}

}

Then you can just search each RecordObject in the ArrayList.

Of coarse you can always look at a HashMap as well.

  _

Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _



-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:22 AM
To: Struts Users Mailing List
Subject: Re: creating my Class


how can show my record-subrecord?

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

how will i put data and how will the matching be made.
i mean assuming i have a integer key, how is it done then.

 maybe you can show me some java code i will really appreciate it. thanks.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 5:08 PM
Subject: RE: creating my Class


an ArrayList will hold Objects. an ArrayList is an object itself. So, the
ArrayList could contain other ArrayList's in it.


  _

Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _



-Original Message-
From: Richard Raquepo [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:12 AM
To: Struts Users Mailing List
Subject: creating my Class


I am in the process of designing a class but coudn't figure out how to start
it because i'm thinking how
struts tags will display my info.

My expected output is like this

Record1blahblah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record1_sub_detail1blah
Record2blah
Record3blah
Record3_sub_detail1blah

I don't how will be the data type of my class probably it will look like
this:

class Record {
ArrayList record;
ArrayList subrecord[];
}


r really don't what to use really. Can someone give me some idea and also
how will i be able to display it in
my JSP using struts tags.

thanks a lot.

-Richard

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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




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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result 

Re: hi a problem - Shank

2003-03-21 Thread Navjot Singh
Go through the action tag with type attribute (your class) defined
taking the values from DB and passing on to the jsp after forwarding.

hope you got what i am trying to say ;-)
-navjot

- Original Message -
From: Jaya Shankar [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 3:19 PM
Subject: hi a problem - Shank


| Hi all
|
| How do I populate a jsp with DB field values, just up on loading the page
in
| the browser using struts framework?
|
| Thanks in advance
| shank
|
| - Original Message -
| From: [EMAIL PROTECTED]
| To: [EMAIL PROTECTED]
| Sent: Friday, March 21, 2003 3:09 PM
| Subject: RE: creating my Class
|
|
| That depends, if you are going to have 1 Class per Record, then you could
do
| something like:
| But if you need to reference each record by name, then you can either add
a
| name Attribute to the Record like:
|
| class Record {
| private String name;
| private ArrayList record;
|
| public void setSubRecord(Record subRecord){...}
| public Record getSubRecord(String recordName){
|loop...
|if( record.getName().equals(recordName) )
|return record;
| }
|
| public void setName(String name){...}
| public String getName(){...}
|
| }
|
| Then you can just search each RecordObject in the ArrayList.
|
| Of coarse you can always look at a HashMap as well.
|
|   _
|
| Thank You
|
| Mick Knutson
|
| Sr. Designer - Project Trust
| aUBS AG, Financial - Zürich
| Office: +41 (0)1/234.42.75
| Internal: 48194
| Mobile: 079.726.14.26
|   _
|
|
|
| -Original Message-
| From: Richard Raquepo [mailto:[EMAIL PROTECTED]
| Sent: Friday, March 21, 2003 10:22 AM
| To: Struts Users Mailing List
| Subject: Re: creating my Class
|
|
| how can show my record-subrecord?
|
| Record1blahblah
| Record1_sub_detail1blah
| Record1_sub_detail1blah
| Record1_sub_detail1blah
| Record2blah
| Record3blah
| Record3_sub_detail1blah
|
| how will i put data and how will the matching be made.
| i mean assuming i have a integer key, how is it done then.
|
|  maybe you can show me some java code i will really appreciate it. thanks.
|
|
| - Original Message -
| From: [EMAIL PROTECTED]
| To: [EMAIL PROTECTED]
| Sent: Friday, March 21, 2003 5:08 PM
| Subject: RE: creating my Class
|
|
| an ArrayList will hold Objects. an ArrayList is an object itself. So, the
| ArrayList could contain other ArrayList's in it.
|
|
|   _
|
| Thank You
|
| Mick Knutson
|
| Sr. Designer - Project Trust
| aUBS AG, Financial - Zürich
| Office: +41 (0)1/234.42.75
| Internal: 48194
| Mobile: 079.726.14.26
|   _
|
|
|
| -Original Message-
| From: Richard Raquepo [mailto:[EMAIL PROTECTED]
| Sent: Friday, March 21, 2003 10:12 AM
| To: Struts Users Mailing List
| Subject: creating my Class
|
|
| I am in the process of designing a class but coudn't figure out how to
start
| it because i'm thinking how
| struts tags will display my info.
|
| My expected output is like this
|
| Record1blahblah
| Record1_sub_detail1blah
| Record1_sub_detail1blah
| Record1_sub_detail1blah
| Record2blah
| Record3blah
| Record3_sub_detail1blah
|
| I don't how will be the data type of my class probably it will look like
| this:
|
| class Record {
| ArrayList record;
| ArrayList subrecord[];
| }
|
|
| r really don't what to use really. Can someone give me some idea and also
| how will i be able to display it in
| my JSP using struts tags.
|
| thanks a lot.
|
| -Richard
|
| Visit our website at http://www.ubswarburg.com
|
| This message contains confidential information and is intended only
| for the individual named.  If you are not the named addressee you
| should not disseminate, distribute or copy this e-mail.  Please
| notify the sender immediately by e-mail if you have received this
| e-mail by mistake and delete this e-mail from your system.
|
| E-mail transmission cannot be guaranteed to be secure or error-free
| as information could be intercepted, corrupted, lost, destroyed,
| arrive late or incomplete, or contain viruses.  The sender therefore
| does not accept liability for any errors or omissions in the contents
| of this message which arise as a result of e-mail transmission.  If
| verification is required please request a hard-copy version.  This
| message is provided for informational purposes and should not be
| construed as a solicitation or offer to buy or sell any securities or
| related financial instruments.
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
| Visit our website at 

Struts 1.1 RC1 - Validator problems on Linux only

2003-03-21 Thread Reinhard Nägele
Hi,

we've been developing an application with Struts 1.1 RC1 which runs fine 
on Win 2000 machines. Today we deployed it to a Linux machine (Red Hat, 
JDK 1.4.1_01, Tomcat 4.1.12) and found out that the validator didn't 
work as expected, i. e. validation simply never failed. So I decided to 
attach to the VM and debug into the code. To do so, I needed the 
validator sources which, unfortunately, are not part of the Struts 
source distribution. So, I used the latest nightly build of the 
validator, attached to the process in order to debug into it, and, guess 
what, now it worked.

So, I really wonder what this was. Has anybody else experienced such 
behavior? Are there any Linux-specific issues?

Thanks,
Reinhard


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


internationalization

2003-03-21 Thread modena
Hi i've a simple question: is possible obtain the languages supported from
application? With the MessageResources class i could obtain the message in a
particular language, if it is supported from application. For example if i've
the properties file for the french languages i could obtain a message in this
language...but how i know the language supported of my application ( in fact the
file properties that there are in my application ). Is stupid try to obtain the
message in all language for example try to obtain the message in french and if
exists i know that there is a file properties for french...how obtain the list
of file properties of application?
Thank in advantage.
Alessio


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



dropping sessions

2003-03-21 Thread Dan Allen
Using security filter and the org.apache.catalina.realm.JDBCRealm,
if I reload my application all the active sessions are dropped.
Isn't the idea of reloading the application (through the manager) to
preserve all the sessions?

I can't for the life of me figure out what is screwing up.  All I am
doing is putting up a login page, having the user login and show the
remoteUser name, then reloading the application.  At this point,
when the user does refresh, poof, session is gone.

Any ideas?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
The idea of implementing a serious complex set of business 
logic rules in a scripting language like Perl really scares me. 
Perl is too much 'write once, read never again'. And that's no good 
for business logic that requires maintenance. 
 - voostind
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: Fine Grained Access Control in Sturts

2003-03-21 Thread Max Cooper
There are a number of things you can do, but most of them involve multiple
logic tags. Here is one that doesn't:

html:text property=property1
   disabled=%= !request.isUserInRole(admin) ? true : false %
/

That will set disabled to true when the user does not have the admin
role. This assumes that you are using a security setup where
request.isUserInRole() works, which means container-managed security or a
filter-based solution like SecurityFilter. You may also choose to use
multiple logic tags, etc., as a matter of convention or in the interest of
clarity or minimizing %= % stuff.

This will handle the UI side of things. But it would be very easy for a user
to sidestep this security approach unless you also add checking to make
sure the user has the role required to change this property on the server.
If the action that handles this form after it is submitted just blindly
accepts any values or chages to values without checking for access, a user
could construct their own request to change the value, even if they don't
have the admin role. Don't trust the access level if it is simply a hidden
field or something, as the user can change that, too.

To really protect your app, you would need to do something like this (in the
Action):

if (request.isUserInRole(admin)) {
   myPersistentObject.setProperty1(bean.getProperty1());
} else {
   // user doesn't have access, so ignore any changes to property1
}

It can be useful to include the access information in the ActionForm if you
want to pass it down to your business logic level, thereby avoiding coupling
your business logic processing to the security framework of the web
environment. If you do this, just be sure to re-set the values you get with
the form submission to protect your app from the user changing them
maliciously. Your action might have code like this for such protection:

// The user might set this to true in their form submittal even if they
don't have access.
// Throw out the value from the form submittal and set it properly before
passing the
// ActionForm (bean) to the business logic processing layer
bean.setUserHasAdminAccess(request.isUserInRole(admin) ? true :
false);

// the doSomething() method will call bean.getUserHasAdminAccess() to see if
the user
// should really be allowed to change property1
BusinessLogicProcessor.doSomething(bean);

Don't trust the request! Anyone can submit whatever they want to your web
app. That's one reason we do server-side validation. You obviously have to
trust some information, but it is all too easy to open security holes in
your app if you are too trusting. Without such server-side processing, a
user could run these commands to change things that you don't want them to
change:

curl -d property1=haha_I_changed_it http://server/wreakHavoc.do
curl -d property1=haha_I_changed_ituserHasAdminRole=true
http://server/wreakHavoc.do

You can login and use a session with curl, too, since it supports cookies.
So don't think that hurdle will protect you app. Here's an example:

curl -c cookies.txt -b cookies.txt -d
j_username=badboyj_password=password http://server/j_security_check
curl -c cookies.txt -b cookies.txt -d
property1=haha_I_changed_ituserHasAdminRole=true
http://server/wreakHavoc.do

You can even do some of this stuff in the browser, which will maintain the
session for you. A user could type this into the address bar:

http://server/wreakHavoc.do?property1=haha_I_changed_ituserHasAdminRole=tru
e


I get a lot of who's going to do that? responses when I bring this stuff
up. But frankly, anyone who knows a little HTTP and HTML can do this quite
easily. It might be a disgruntled or merely mischeivious
employee/associate/customer on an intranet or extranet app. Or anyone on the
internet for an extranet or internet app. If you don't think about this
stuff from the beginning and take measures to protect your app, you can end
up in a very bad situtation where you have to go over the whole app to find
and close security holes. That can make a mess of your architecture if you
have to pile on a bunch of code where you didn't expect to need it, and
could be a very bad thing for your company or career if you have holes that
lead to lost money, destroyed data, or merely a damaged reputation.
Understanding these simple 'hacking' techniques go a long way toward toward
developing secure systems, but many web app developers are not aware of
them. Any time you create some functionality, take a moment to think like a
hacker and see how the new functionality might allow the user to do
something they aren't supposed to be able to do. Be careful!

-Max

- Original Message -
From: Sebastien Cesbron [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 1:35 AM
Subject: Re: Fine Grained Access Control in Sturts


 And what about read mode for role newbie and write mode for role
 admin.

 Is there a way not to put the input field twice with two different
 logic:present tags ?

 

[Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Sasha Bilton
Hi,

I'm running an Apache (1.3) webserver on linux (Suse 8) that has 
multiple virtual hosts. I'm using JkMount (AJP 13) to get Tomcat to 
handle my Struts .jsp files.   At the moment JkMount only looks in ROOT 
for jsp files, so even though I have the doc root set to 
/home/bob/jakarta/webapps/bob and happily serves .html from that 
directory, if I try and point to a .jsp file it looks in webapps/ROOT.

That would be fine if I where just running one site, but I need to be 
able to look in multiple directories under webapps for my Struts files.

Also, should I do anything special to handle the .do extension in my 
JkMount settings?

Many, many thanks in advance!

Sasha

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


RE: Java Out Of Memory

2003-03-21 Thread Butt, Dudley
many thanx I will give Jikes a try

-Original Message-
From: Ditlinger, Steve [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 8:08 PM
To: 'Struts Users Mailing List'
Subject: RE: Java Out Of Memory



We have found that by using the jikes compiler instead of javac for doing
ejbc, we are much more economical with memory.  Specifically we use jikes
1.15, although a few of us use 1.17 (avoid 1.16!!).  Prior to switching over
to use jikes, we were constantly getting the same memory errors you are
seeing.

Steve



 -Original Message-
 From: Butt, Dudley [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 20, 2003 8:54 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Java Out Of Memory
 
 
 yes guys come on, anyone got some tricks up their sleeves? i 
 really would appreciate it
 
 -Original Message-
 From: Alexandre Jaquet [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 20, 2003 6:51 PM
 To: Struts Users Mailing List
 Subject: Re: Java Out Of Memory
 
 
 yeap I think so too but I'm sure someone could you
 more here
 
 cheers
 
 - Original Message -
 From: Butt, Dudley [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, March 20, 2003 5:46 PM
 Subject: RE: Java Out Of Memory
 
 
  so in other words, i need more RAM : )
 
  -Original Message-
  From: Alexandre Jaquet [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 20, 2003 6:45 PM
  To: Struts Users Mailing List
  Subject: Re: Java Out Of Memory
 
 
  it's only for modify the ram size (by default 64 are allowed)
 
  - Original Message -
  From: Butt, Dudley [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Thursday, March 20, 2003 5:43 PM
  Subject: RE: Java Out Of Memory
 
 
   is -Xms256m only for available RAM, or can I increase my 
 page file size
  and use that in the -X option aswell?
  
   -Original Message-
   From: Alexandre Jaquet [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 20, 2003 6:37 PM
   To: Struts Users Mailing List
   Subject: Re: Java Out Of Memory
  
  
   If you use -Xms256m you just will allow to use your whole memory.
  
   - Original Message -
   From: Butt, Dudley [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Thursday, March 20, 2003 5:31 PM
   Subject: Java Out Of Memory
  
  
Hi there,
   
I know this isn't a Struts question, but I also know you're all
  extremely
   experienced Java dudes, so how can I prevent a Out Of 
 Memory error when
doing a Javac compile for ejbc, with a 
 EntityRelationshipBean? Any
 help
   would be great!
I'm compiling on a 256M machine and my command looks like this..
   
set PATH=C:\java\j2sdk1.4.1_01\bin;%PATH%
set LIB=C:\java\working\invest\lib\
   
java -verbosegc -cp %LIB%weblogic.jar -Xms128m -Xmx256m
   weblogic.ejbc -compiler javac EntityRel1.jar EntityRel.jar
   
Many Thanx
   
   
NOTICE:
   
This message contains privileged and confidential 
 information intended
only for the person or entity to which it is addressed.
Any review, retransmission, dissemination, copy or other 
 use of, or
taking of any action in reliance upon this information 
 by persons or
entities other than the intended recipient, is prohibited.
   
If you received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and 
 thereafter delete
 the
material from any computer.
   
The New Africa Capital Group, its subsidiaries or 
 associates do not
accept liability for any personal views expressed in 
 this message.
   

 -
To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
  
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
   NOTICE:
  
   This message contains privileged and confidential 
 information intended
   only for the person or entity to which it is addressed.
   Any review, retransmission, dissemination, copy or other use of, or
   taking of any action in reliance upon this information by 
 persons or
   entities other than the intended recipient, is prohibited.
  
   If you received this message in error, please notify the sender
   immediately by e-mail, facsimile or telephone and 
 thereafter delete the
   material from any computer.
  
   The New Africa Capital Group, its subsidiaries or associates do not
   accept liability for any personal views expressed in this message.
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For 

Re: working with a team

2003-03-21 Thread Arron Bates
 Stephen Smithstone ([EMAIL PROTECTED]) wrote:
 
  Have u tried sharing the drive as a network drive with permissions on it
  ??
  
  then get the jsp developer to map the network to a drive on his computer
 
 We aren't even in the same county, so this will be a little hard.  I
 guess a good question to ask would be, can an ant script build on a
 remote computer?  I think the answer to this is yes, but of course I
 have to figure out how to do it ;(
 
 I guess CVS is the way to go...sure would be nice if someone wrote
 an article on this though.  Sometimes the hardest part is just
 setting everything up.

If the main thing that you're after is JSP's, just have your markup dude FTP
the JSP's directly into the web app, and have the servlet container reload
them automatically without restart?...

Static resources like images will be naturally handled.

If you run Resin, it'll recompile the java classes on the fly too.


Arron.

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



RE: Multipart form bean population after validation failure

2003-03-21 Thread Dragomir Denev
Well, after heavy research (which I should have made before posting this
question) I found that this is a bug
(http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17583).
Anyway, nobody answered my request :-(

Regards,
Drago

-Original Message-
From: Dragomir Denev [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 23:01
To: [EMAIL PROTECTED]
Subject: Multipart form bean population after validation failure


Hi all,

Here is the problem:

I have the following action mappings:
action name=documentForm
path=/admin/documentEdit
scope=request
type=bg.crc.admintool.servlet.admin.DocumentEditAction
validate=false
  forward name=continue
   path=/admin/index.jsp?content=document_edit.jsp
   redirect=false/
/action

action input=/admin/documentEdit.do
name=documentForm
path=/admin/documentEditProcess
scope=request
type=bg.crc.admintool.servlet.admin.ProcessDocumentEditAction
validate=true
  forward name=continue
   path=/admin/documentView.do
   redirect=true/
/action

The document_edit.jsp contains a multipart form for uploading a file.
There is also (in the document_edit.jsp file) a hidden field named docId.

The logic flow is the following:
1. I request /admin/documentEdit.do?docId=100
2. /admin/documentEdit action forwards to document_edit.jsp
3. the form is displayed and the hidden field is set to 100 (I use
html:hidden property=docId/ tag)
4. I set the form fields deliberately so that when I submit it the form
validation should fail.
5. I submit the form (the action is /admin/documentEditProcess)
6. The controller servlet calls validate(), the method fails and the
controller forwards to
   /admin/documentEdit.do (as specified by the input attribute of the
mapping).
7. The document_edit.jsp page is displayed again with the error message but
the hidden field
   is set to zero (zero because the form bean reset method sets its docId
field to 0).

Well, at this point I expect the hidden field to be 100, not 0.
The interesting thing is that when I remove the
enctype=multipart/form-data attribute from the form
tag everything works just fine, i.e the hidden field is corectly set to 100.
This means (in my opinion)
that the action servlet cannot populate correctly a form bean when a
multipart form is submitted and
the validate method returns non empty ActionErrors object.

Is this a bug or am I overlooking something?

My version of struts is 1.1-rc1.

Thank you in advance.
Greetings,
Drago


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


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



Re: working with a team

2003-03-21 Thread Dan Allen
So far I don't see much I like.  If the JSP developer uploads right
to the webapp then my web resources are out of sync.  That means if
I make a tweak to the JSP the next time he uploads, poof.  That is
damn ugly.

The best scenario is as follows.  There is a single CVS repository.
I have tomcat (or whatever) running and he does too.  We both
checkout the original source.  He messes with the JSPs, reloads he
local app, get's it all tweaked.  Then, he CVS commits all changes.
I do the same.  At the end of the day, week or whatever interval,
the CVS version is checked out into a war file and deployed.  The
last step is the only tricky part, I will have to make an ant script
for that.

This brings me to my next question, which may be container specific.
Don't let this throw off the topic of the post, maybe a quick little
reponse.  If I copy over a new version of the *.war file for an
app, why doesn't the container redeploy it over the old version?  It
seems like once a war has been deployed, you have to nix the whole
folder, restart the container and copy in the new war.  It would
seem to me the container should check the timestamp of the war
against the folder or something and if it is newer, redeploy it.
This also causes issues with files that were removed from the war,
which are now trash files and left in the deployed app.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
The package said 'Windows 95 or better', so I installed Linux
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Dan Allen
 I'm running an Apache (1.3) webserver on linux (Suse 8) that has 
 multiple virtual hosts. I'm using JkMount (AJP 13) to get Tomcat to 
 handle my Struts .jsp files.   At the moment JkMount only looks in ROOT 
 for jsp files, so even though I have the doc root set to 
 /home/bob/jakarta/webapps/bob and happily serves .html from that 
 directory, if I try and point to a .jsp file it looks in webapps/ROOT.
 
 That would be fine if I where just running one site, but I need to be 
 able to look in multiple directories under webapps for my Struts files.
 
 Also, should I do anything special to handle the .do extension in my 
 JkMount settings?
Glad you asked, I need to know the same, I am just about to try out
mod_jk

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
[Frodo]: He deserves death. 
[Gandalf]: Deserves it! I daresay he does. Many that live 
deserve death. And some that die deserve life.  Can you give 
it to them?  Then do not be too eager to deal out death in 
judgement. For even the very wise cannot see all ends.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



RE: Struts 1.1 RC1 - Validator problems on Linux only

2003-03-21 Thread COMPAGNON GUILLAUME
ensure you ve got the very last version of commons-validator

in fact, with the commons validator bundled with 1.1RC1, there is a bug when
the machine has no connection to the Internet

for more information, have a look to the bug database.

regards
Guillaume Compagnon

 -Message d'origine-
 De:   Reinhard Nägele [SMTP:[EMAIL PROTECTED]
 Date: vendredi 21 mars 2003 11:07
 À:[EMAIL PROTECTED]
 Objet:Struts 1.1 RC1 - Validator problems on Linux only
 
 Hi,
 
 we've been developing an application with Struts 1.1 RC1 which runs fine  on Win 
 2000 machines. Today we deployed it to a Linux machine (Red Hat,  JDK 1.4.1_01, 
 Tomcat 4.1.12) and found out that the validator didn't 
 work as expected, i. e. validation simply never failed. So I decided to  attach to 
 the VM and debug into the code. To do so, I needed the 
 validator sources which, unfortunately, are not part of the Struts 
 source distribution. So, I used the latest nightly build of the 
 validator, attached to the process in order to debug into it, and, guess  what, now 
 it worked.
 
 So, I really wonder what this was. Has anybody else experienced such 
 behavior? Are there any Linux-specific issues?
 
 Thanks,
 Reinhard
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et 
etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique 
est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce 
message s'il a ete altere, deforme ou falsifie.
This message and any attachments ( the message) are confidential and intended solely 
for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible to 
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for 
the message if altered, changed or falsified.



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



RE: internationalization

2003-03-21 Thread COMPAGNON GUILLAUME
MessageResource works like the java.util.ResourceBundle
if no properties file for italian exits (applicationResources_it.properties
for example), it takes the default one (applicationResources.properties)

no exception, just a default case...

otherwise, if no default file exists ... you will have a null for the
message or a ??unknown?? (if null=false in the struts-config file)

grazie mille ...

Guillaume Compagnon

 -Message d'origine-
 De:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]
 Date: vendredi 21 mars 2003 11:08
 À:[EMAIL PROTECTED]
 Objet:internationalization
 
 Hi i've a simple question: is possible obtain the languages supported from
 application? With the MessageResources class i could obtain the message in
 a
 particular language, if it is supported from application. For example if
 i've
 the properties file for the french languages i could obtain a message in
 this
 language...but how i know the language supported of my application ( in
 fact the
 file properties that there are in my application ). Is stupid try to
 obtain the
 message in all language for example try to obtain the message in french
 and if
 exists i know that there is a file properties for french...how obtain the
 list
 of file properties of application?
 Thank in advantage.
 Alessio
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et 
etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique 
est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce 
message s'il a ete altere, deforme ou falsifie.
This message and any attachments ( the message) are confidential and intended solely 
for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible to 
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for 
the message if altered, changed or falsified.



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



Re: Struts 1.1 RC1 - Validator problems on Linux only

2003-03-21 Thread Reinhard Nägele
Thanks for the info. I guess, the Internet connection was the problem 
then. I searched the bug database but couldn't find this. I'll check again.

Reinhard

COMPAGNON GUILLAUME wrote:
ensure you ve got the very last version of commons-validator

in fact, with the commons validator bundled with 1.1RC1, there is a bug when
the machine has no connection to the Internet
for more information, have a look to the bug database.

regards
Guillaume Compagnon



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


RE: Struts 1.1 RC1 - Validator problems on Linux only

2003-03-21 Thread COMPAGNON GUILLAUME

this is the bug:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17470
 -Message d'origine-
 De:   Reinhard Nägele [SMTP:[EMAIL PROTECTED]
 Date: vendredi 21 mars 2003 11:52
 À:Struts Users Mailing List
 Objet:Re: Struts 1.1 RC1 - Validator problems on Linux only
 
 Thanks for the info. I guess, the Internet connection was the problem 
 then. I searched the bug database but couldn't find this. I'll check
 again.
 
 Reinhard
 
 
 COMPAGNON GUILLAUME wrote:
  ensure you ve got the very last version of commons-validator
  
  in fact, with the commons validator bundled with 1.1RC1, there is a bug
 when
  the machine has no connection to the Internet
  
  for more information, have a look to the bug database.
  
  regards
  Guillaume Compagnon
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et 
etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique 
est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce 
message s'il a ete altere, deforme ou falsifie.
This message and any attachments ( the message) are confidential and intended solely 
for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible to 
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for 
the message if altered, changed or falsified.



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



Accessing resource properties

2003-03-21 Thread Mohan Radhakrishnan
Hi

Is there a way to store what is returned by 
  
 bean:message key=%=x%/

in a variable in the scope directly using bean:define or something else
instead of writing the following scriptlet in my JSP ?

MessageResources messages =
MessageResources.getMessageResources(ApplicationResources);
messages.getMessage( information );

Thanks,
Mohan

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



Iterator taglibs

2003-03-21 Thread usha
Hi

i wanted to use the  iterators1.2  taglibs   with struts. is is 
possible to use the with struts.

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


A tag inside another: it will be not interpreted!

2003-03-21 Thread Giovanni Formenti
Hallo,
i have some new conclusion about the problem posted in the messagge Struts
form with XML/XSL.
The server process the html tags, then process the xsltags:style (now i
use the JSTL taglibs for the XSL transformation) that output a text with
some html tags but they aren't parsed like Struts tag. So i have in output
to the client an HTML file with some html tags!
I'm searching a way to put the whole text (after the execution of
xsltags:style xml=aaa.xml xsl=aaa.xsl/ i have
html:formhtml:text/.../html:form) in the text that the Struts
parser bring like input... or something like this!

I hope my problem is more understandable now... even if my english is a
little bit poor!
Please, help me!!!

Giovanni


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



Re: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Ludovic Maitre
Hello,

I think that you must adress this question to the tomcat mailing list 
because the answer is not specific to struts AFAIK.

Sorry per advance for my (poor) english.

I use Apache 1.3.27 with JK 1.2.2 on Windows 2000 with virtual hosts.
I have 3 tomcat contexts accessible on my server :
- admin and manager on the principal webserver
- toto on a dns based virtual host (it's only an exemple name, the real 
name is different)
Admin and manager tomcat contexts are located on a folder specific to 
tomcat, i.e. is not under the documentroot (d:/www) of my apache 
webserver. toto is loaded from a context file referencing a war file.

My webapps always reside in a context different from ROOT context in 
Tomcat (each webapps is accessible under www.myserver.com/webappname/ ).
 For having multiple webapps located just under the root (accessible 
from www.myserver.com/, you must configure virtual hosts in tomcat, 
which is not convered by my answer (and i not use this)

I think that if you reference a directory under apache documentroot who 
contain the static and the dynamic files (jsp and co) you just have to 
adjust the following settings :

in my httpd .conf i have the following configuration (note the mount of 
the admin context for remote management in the intranet) :

### Section DSO
...
# Load mod_jk module
LoadModule jk_module D:\$httpd-root\modules\mod_jk-1.3.dll # adjust 
with the DSO module on unix (tested ok on MacOS X)

# Apache Modules compiled into the standard Windows build

ClearModuleList
...
# Declare the JK module for IfModule directive
AddModule mod_jk.c
...
### Section Global mod_jk configuration

# Where to find workers.properties

JkWorkersFile conf/jk/workers.properties

# Where to put jk logs

JkLogFile logs/mod_jk.log

# Set the jk log level [debug/error/info]

JkLogLevel info
#Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
#JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
#JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T
### Section 3: Virtual Hosts

# Please see the documentation at URL:http://www.apache.org/docs/vhosts/
# for further details before you try to setup virtual hosts.
#
# VirtualHost basés sur le nom
#
# on ecoute les requetes adressees a toutes les adresses IP

NameVirtualHost 192.168.253.50

VirtualHost 192.168.253.50
 ServerName web
 DocumentRoot d:/www/
 

Order Deny,Allow
Deny from all
Allow from 192.168.253.*
 # Send servlet for context /admin to worker named worker1
 JkMount /admin/* worker1
 # Send servlet for context /manager to worker named worker1
 JkMount /manager/* worker1
/VirtualHost

and :

VirtualHost 192.168.253.50

 ServerName www.toto.com
 DocumentRoot d:/www/toto !-- here reside the static website for 
toto.com, perhaps you can place your expanded webapps under  this folder 
is you want to use

 ErrorLog logs/www.toto.com/error_log
 CustomLog logs/www.toto.com/access_log combined
 # Send servlet for context /toto to worker named worker2
 JkMount /toto/* worker2 !-- try to use : JkMount /toto/*.jsp worker2 
and /toto/*.do worker2 or JkMount /*.jsp worker2...

 Directory d:/www/toto  
Options FollowSymLinks
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
 /Directory
/VirtualHost

i have the following workers.property file in $httpd_root/conf/jk :
# Workers configuration
worker.list=worker1
worker.list=worker2
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
# Use the tomcat installed on toto
worker.worker1.host=192.168.253.50
worker.worker1.port=8007
# Use the tomcat installed on buggs
#worker.worker1.host=192.168.253.52
#worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300
# Set properties for worker2 (ajp13)
worker.worker2.type=ajp13
# Use the tomcat installed on toto
worker.worker2.host=192.168.253.50
worker.worker2.port=8009
# Use the tomcat installed on buggs
#worker.worker2.host=192.168.253.52
#worker.worker2.port=8009
worker.worker2.lbfactor=50
worker.worker2.cachesize=10
worker.worker2.cache_timeout=600
worker.worker2.socket_keepalive=1
worker.worker2.socket_timeout=300
For tomcat i have the following conf in 
$tomcat_root/conf/workers.properties :
# Workers configuration for Toto
workers.tomcat_home=d:/$httpd_root/tools/tomcat
workers.java_home=$(JAVA_HOME)
ps=\

worker.list=worker1
worker.ajp13.port=8007
worker.ajp13.host=192.168.253.50
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.list=worker2
worker.ajp13.port=8009
worker.ajp13.host=192.168.253.50
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=worker1,worker2
And in server.xml :
Service...
Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
acceptCount=10 bufferSize=2048 connectionTimeout=2 debug=5 

Re: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Ludovic Maitre
errata : the webapp under www.toto.com is accessible under 
www.toto.com/toto in the example.

--
Ludovic Maître
Factory Productions | Tél: (33) 04 93 07 08 00
149, avenue des mimosas | Fax: (33) 04 93 07 04 02
06700 Saint-Laurent-du-Var (France) | Web: http://www.factory.fr


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


[OT] RE: Java Out Of Memory ---solved, thanx to Steve and jikes

2003-03-21 Thread Butt, Dudley
Hi, thanx to Steve

JIKES ROCKS!!

Set me on the right track! Good job! It compiled, with even a fraction of the memory I 
have, it never exceeded the 200mb usage mark

java -verbosegc -cp %LIB%weblogic.jar -Xms128m -Xmx256m weblogic.ejbc -compiler jikes 
-verbose EntityRel1.jar EntityRel.jar

-Original Message-
From: Butt, Dudley 
Sent: Friday, March 21, 2003 12:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Java Out Of Memory


many thanx I will give Jikes a try

-Original Message-
From: Ditlinger, Steve [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 8:08 PM
To: 'Struts Users Mailing List'
Subject: RE: Java Out Of Memory



We have found that by using the jikes compiler instead of javac for doing
ejbc, we are much more economical with memory.  Specifically we use jikes
1.15, although a few of us use 1.17 (avoid 1.16!!).  Prior to switching over
to use jikes, we were constantly getting the same memory errors you are
seeing.

Steve



 -Original Message-
 From: Butt, Dudley [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 20, 2003 8:54 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Java Out Of Memory
 
 
 yes guys come on, anyone got some tricks up their sleeves? i 
 really would appreciate it
 
 -Original Message-
 From: Alexandre Jaquet [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 20, 2003 6:51 PM
 To: Struts Users Mailing List
 Subject: Re: Java Out Of Memory
 
 
 yeap I think so too but I'm sure someone could you
 more here
 
 cheers
 
 - Original Message -
 From: Butt, Dudley [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, March 20, 2003 5:46 PM
 Subject: RE: Java Out Of Memory
 
 
  so in other words, i need more RAM : )
 
  -Original Message-
  From: Alexandre Jaquet [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 20, 2003 6:45 PM
  To: Struts Users Mailing List
  Subject: Re: Java Out Of Memory
 
 
  it's only for modify the ram size (by default 64 are allowed)
 
  - Original Message -
  From: Butt, Dudley [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Thursday, March 20, 2003 5:43 PM
  Subject: RE: Java Out Of Memory
 
 
   is -Xms256m only for available RAM, or can I increase my 
 page file size
  and use that in the -X option aswell?
  
   -Original Message-
   From: Alexandre Jaquet [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 20, 2003 6:37 PM
   To: Struts Users Mailing List
   Subject: Re: Java Out Of Memory
  
  
   If you use -Xms256m you just will allow to use your whole memory.
  
   - Original Message -
   From: Butt, Dudley [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Thursday, March 20, 2003 5:31 PM
   Subject: Java Out Of Memory
  
  
Hi there,
   
I know this isn't a Struts question, but I also know you're all
  extremely
   experienced Java dudes, so how can I prevent a Out Of 
 Memory error when
doing a Javac compile for ejbc, with a 
 EntityRelationshipBean? Any
 help
   would be great!
I'm compiling on a 256M machine and my command looks like this..
   
set PATH=C:\java\j2sdk1.4.1_01\bin;%PATH%
set LIB=C:\java\working\invest\lib\
   
java -verbosegc -cp %LIB%weblogic.jar -Xms128m -Xmx256m
   weblogic.ejbc -compiler javac EntityRel1.jar EntityRel.jar
   
Many Thanx
   
   
NOTICE:
   
This message contains privileged and confidential 
 information intended
only for the person or entity to which it is addressed.
Any review, retransmission, dissemination, copy or other 
 use of, or
taking of any action in reliance upon this information 
 by persons or
entities other than the intended recipient, is prohibited.
   
If you received this message in error, please notify the sender
immediately by e-mail, facsimile or telephone and 
 thereafter delete
 the
material from any computer.
   
The New Africa Capital Group, its subsidiaries or 
 associates do not
accept liability for any personal views expressed in 
 this message.
   

 -
To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
  
  
   
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
  
  
   NOTICE:
  
   This message contains privileged and confidential 
 information intended
   only for the person or entity to which it is addressed.
   Any review, retransmission, dissemination, copy or other use of, or
   taking of any action in reliance upon this information by 
 persons or
   entities other than the intended recipient, is prohibited.
  
   If you received this message in error, please notify the sender
   immediately by e-mail, facsimile or telephone and 
 thereafter delete the
   material from any computer.
  
   The New 

Syntax error at token 0, line 0 offset 0.

2003-03-21 Thread Søren Blidorf
Hi.
I am trying to update values in my db and I get the following error:
java.sql.SQLException: [JRun][SQLServer JDBC Driver]Syntax error at
token 0, line 0 offset 0.

It is only when the values in my STRUTS form is null.

It is not a problem with other similar actions. Can anybody give me an
idear of what is wrong?

Søren Blidorf

Nolas Consulting
www.nolas.dk




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



SV: Syntax error at token 0, line 0 offset 0.

2003-03-21 Thread Søren Blidorf
By the way.

It seems that the UPDATE is working fine. The values that are not null
are updated.

BUT I would like to get rid of the error message

Soren

-Oprindelig meddelelse-
Fra: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sendt: 21. marts 2003 12:55
Til: [EMAIL PROTECTED]
Emne: Syntax error at token 0, line 0 offset 0. 

Hi.
I am trying to update values in my db and I get the following error:
java.sql.SQLException: [JRun][SQLServer JDBC Driver]Syntax error at
token 0, line 0 offset 0.

It is only when the values in my STRUTS form is null.

It is not a problem with other similar actions. Can anybody give me an
idear of what is wrong?

Søren Blidorf

Nolas Consulting
www.nolas.dk




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



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



Re: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Dan Allen
I can't believe it takes a rocket scientist to setup these darn
connectors.  Plus, I can't for the life of me find a tutorial on
doing this in apache 1.3, everyone seems to be running apache2 these
days even though it isn't considered stable by most linux distros.

Frustrating.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
I'm old enough to know better, but still too young to care.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: struts-config.xml

2003-03-21 Thread Joseph Fifield
Just set your 'config' init-param to something like this:

init-param
param-nameconfig/param-name
param-value
/WEB-INF/struts-config-main.xml,
/WEB-INF/struts-config-customer.xml,
/WEB-INF/struts-config-order.xml,
/WEB-INF/struts-config-inventory.xml
/param-value
/init-param

Joe

- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 8:08 PM
Subject: Re: struts-config.xml


 can you give us a working of your web.xml.
 i'm kind of thinking your kind of solution.
 thanks...
 - Original Message -
 From: Joseph Fifield [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, March 21, 2003 5:26 AM
 Subject: RE: struts-config.xml


  If you are using 1.1, you can simply split the file into multiple files,
  and list each comma-delimited in web.xml. IIRC, this was new in 1.1b3.
  We have one for every major part of our application, and it required no
  additional code changes.
 
  Joe
 
   -Original Message-
   From: Pat Young [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 20, 2003 4:23 PM
   To: Struts Users Mailing List
   Subject: RE: struts-config.xml
  
  
   Yes, I have looked at sub-applications and we are
   considering it.  Using sub-applications does have some
   technical considerations that have to be accounted
   for.I realize that we could use a merge feature of
   a versioning tool also.  I was curious if anyone had
   any other creative ideas around this problem or if
   there was a feature in Struts that I had missed.
  
   Pat Young
  
  
  
   --- Mike Jasnowski [EMAIL PROTECTED] wrote:
Well, version control considerations aside (for
issues around merges when
new struts-config.xml are checked in), Have you also
looked at Struts
sub-applications? Each can have it's own
struts-config.xml.
   
-Original Message-
From: Pat Young [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 4:14 PM
To: [EMAIL PROTECTED]
Subject: struts-config.xml
   
   
I am curious as to how others are working with the
   struts-config.xml
file.  I am working on a large project with a team of 8 other
developers.  So far we
have over 200 actions.  The struts-config.xml is
becoming a bottle neck, because each developer needs
to update the file at the same with entries into
this
file.  Does anyone have any ideas as to how to make
working with this file any easier?  Thanks in
advance.
   
Pay Young
   
__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness,
live on your desktop!
http://platinum.yahoo.com
   
   
   -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
   
   
   -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
  
  
   __
   Do you Yahoo!?
   Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
   desktop! http://platinum.yahoo.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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





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



Re: A tag inside another: it will be not interpreted!

2003-03-21 Thread Robert S. Sfeir
Giovanni,

I;m not entirely sure I followed everything, but if you're getting HTML 
tags displayed on screen, meaning instead of img src= you get 
lt;img src= gt; which will cause the 'tag' to display as text, 
look for the filter property of the tag you're using and set that to 
false.  It will cause the tag to not encode the text and correctly 
parse the html inside it.  BE REAL CAREFUL though, because I've caught 
myself in instances where a form was returned from the DB and it caused 
to break the page because of how the html was put together and saved in 
the DB.

Hope this helps.
R
P.S.  Sorry to be CC'ing you, sometimes my emails don't make it to the 
list... actually most of the time they don't.

On Friday, March 21, 2003, at 06:36 AM, Giovanni Formenti wrote:

Hallo,
i have some new conclusion about the problem posted in the messagge 
Struts
form with XML/XSL.
The server process the html tags, then process the xsltags:style 
(now i
use the JSTL taglibs for the XSL transformation) that output a text 
with
some html tags but they aren't parsed like Struts tag. So i have in 
output
to the client an HTML file with some html tags!
I'm searching a way to put the whole text (after the execution of
xsltags:style xml=aaa.xml xsl=aaa.xsl/ i have
html:formhtml:text/.../html:form) in the text that the Struts
parser bring like input... or something like this!

I hope my problem is more understandable now... even if my english is a
little bit poor!
Please, help me!!!
Giovanni

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


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


Re: dropping sessions

2003-03-21 Thread Boris Folgmann
Dan Allen wrote:

 Isn't the idea of reloading the application (through the manager) to
 preserve all the sessions?

No, you do a reload when your WEB-INF/classes have changed. It's impossible
to reuse the old session data, because your classes may have other
attributes now or whatever you have changed.

-- 
Dipl.-Inf. Boris Folgmann   mailto:[EMAIL PROTECTED]
Folgmann IT-Consulting  http://www.folgmann.de


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



Digester Best Practice

2003-03-21 Thread Jeff Caddel
Any reasons for one of these approaches being better/worse than the other?

URL url = 
Thread.currentThread().getContextClassLoader().getResource(/WEB-INF/test.xml); 

InputStream input = url.openStream();
Digester digester = new Digester();
digester.parse(input);
URL url = 
Thread.currentThread().getContextClassLoader().getResource(/WEB-INF/test.xml); 

InputSource is = new InputSource(url.toExternalForm());
is.setByteStream(input);
InputSream input = url.openStream();
Digester digester = new Digester();
digester.parse(is);
ActionServlet does it the second way (InputSource), Tiles code does it 
the first way (InputStream).  I ran into a problem getting Digester to 
parse xml documents that use includes with the InputStream method:

!DOCTYPE xxx PUBLIC -//xx//xx 1.0//EN http://localhost/my-dtd.dtd; [
!ENTITY users SYSTEM users.xml
]
my-xml
users;
/my-xml
It throws org.xml.sax.SAXParseException: Relative URI users.xml; can 
not be resolved without a base URI. 
Switching to the InputSource method let Digester do it's thing, but I'm 
unclear on why.

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


Re: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Dan Allen
Alright, I got this to work with mod_jk and apache 1.3 out of the
box...but be sure to change the locahost to localhost in the
workers.properties file (typo)

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/quickhowto.html

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
While they're pumping, you're soaking them 
 -- Speed Loader TV Advert
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: dropping sessions

2003-03-21 Thread Dan Allen

Boris Folgmann ([EMAIL PROTECTED]) wrote:

 Dan Allen wrote:
 
  Isn't the idea of reloading the application (through the manager) to
  preserve all the sessions?
 
 No, you do a reload when your WEB-INF/classes have changed. It's impossible
 to reuse the old session data, because your classes may have other
 attributes now or whatever you have changed.

Okay, that makes sense, so now every time I change the tiles
definitions or struts-config the sessions go bye bye too?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
If you are going to play the game of trial and error, 
don't be suprised when the results are revealing. -- me
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: A tag inside another: it will be not interpreted!

2003-03-21 Thread Giovanni Formenti
- Original Message -
From: Robert S. Sfeir [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 1:30 PM
Subject: Re: A tag inside another: it will be not interpreted!


 I;m not entirely sure I followed everything, but if you're getting HTML
 tags displayed on screen, meaning instead of img src= you get
 lt;img src= gt; which will cause the 'tag' to display as text,

I'm sorry, but maybe i explain my problem not so clear.
I have a tag xsl:style/ that produce a piece of HTML with some struts
tags:
xsl:style/  html:formhtml:text/.../html:form
Now i want that Struts tags are parsed to produce forminput
type=text... and so on but this don't happen! Maybe because are nested
tags?!
In the HTML i have the right  and  (not gt; and lt;) so the browser
(correctly!) don't display my form!
It' more clear now?

Thanks for any answer!
Giovanni


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



Digester Subtlety

2003-03-21 Thread Jeff Caddel
Any reasons for one of these approaches being better/worse than the other?

URL url = 
Thread.currentThread().getContextClassLoader().getResource(/WEB-INF/test.xml); 

InputStream input = url.openStream();
Digester digester = new Digester();
digester.parse(input);
URL url = 
Thread.currentThread().getContextClassLoader().getResource(/WEB-INF/test.xml); 

InputSource is = new InputSource(url.toExternalForm());
is.setByteStream(input);
InputSream input = url.openStream();
Digester digester = new Digester();
digester.parse(is);
ActionServlet does it the second way (InputSource), Tiles code does it 
the first way (InputStream).  I ran into a problem getting Digester to 
parse xml documents that use includes with the InputStream method:

!DOCTYPE xyz PUBLIC -//xyz//xyz 1.0//EN http://localhost/xyz.dtd; [
!ENTITY users SYSTEM users.xml
]
abc
   users;
/abc
It throws org.xml.sax.SAXParseException: Relative URI users.xml; can 
not be resolved without a base URI. Switching to the InputSource method 
let Digester do it's thing, but I'm unclear on why.



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


Re: Digester Subtlety

2003-03-21 Thread Jeff Caddel
Apologies for the duplicate msg.  I got a somewhat cryptic reply that 
the orginal had bounced, presumably because it had xxx in the xml 
doctype area.

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


Re: struts-config.xml

2003-03-21 Thread Sloan Seaman
You can also have imultiple files and then have ANT use a skeleton
struts-config.xml file to build the final file.

Just use variable replacement in ANT to insert all the seperate files into
one master file (that is how we do it)

--
Sloan

- Original Message -
From: Joseph Fifield [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 4:26 PM
Subject: RE: struts-config.xml


 If you are using 1.1, you can simply split the file into multiple files,
 and list each comma-delimited in web.xml. IIRC, this was new in 1.1b3.
 We have one for every major part of our application, and it required no
 additional code changes.

 Joe

  -Original Message-
  From: Pat Young [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 20, 2003 4:23 PM
  To: Struts Users Mailing List
  Subject: RE: struts-config.xml
 
 
  Yes, I have looked at sub-applications and we are
  considering it.  Using sub-applications does have some
  technical considerations that have to be accounted
  for.I realize that we could use a merge feature of
  a versioning tool also.  I was curious if anyone had
  any other creative ideas around this problem or if
  there was a feature in Struts that I had missed.
 
  Pat Young
 
 
 
  --- Mike Jasnowski [EMAIL PROTECTED] wrote:
   Well, version control considerations aside (for
   issues around merges when
   new struts-config.xml are checked in), Have you also
   looked at Struts
   sub-applications? Each can have it's own
   struts-config.xml.
  
   -Original Message-
   From: Pat Young [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 20, 2003 4:14 PM
   To: [EMAIL PROTECTED]
   Subject: struts-config.xml
  
  
   I am curious as to how others are working with the
  struts-config.xml
   file.  I am working on a large project with a team of 8 other
   developers.  So far we
   have over 200 actions.  The struts-config.xml is
   becoming a bottle neck, because each developer needs
   to update the file at the same with entries into
   this
   file.  Does anyone have any ideas as to how to make
   working with this file any easier?  Thanks in
   advance.
  
   Pay Young
  
   __
   Do you Yahoo!?
   Yahoo! Platinum - Watch CBS' NCAA March Madness,
   live on your desktop!
   http://platinum.yahoo.com
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
 
 
  __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
  desktop! http://platinum.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



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




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



Re: A tag inside another: it will be not interpreted!

2003-03-21 Thread Nicolas De Loof
If I understand your case you have something like this :

you want some XML to be processed by xsltags:style Tag, and produce
some JSP code with html:xxx Struts tags.

This fails because JSP compiler works this way :
- scriptlets and JSP tags (that are declared by a %@ taglib %) are
used to build the java code of the JSP. Tags are translated into
methodcalls.
- java code is compiled to a servlet
- servlet is deployed on the container and gets the requests.

Your XSL tag is translated to a method call on the Tag implementation,
that transform XML and put the result on output. This output can be
anything, JSP compiler has ended with your JSP !

You cannot produce JSP code with a JSP.

Nico.


 Hallo,
 i have some new conclusion about the problem posted in the messagge
Struts
 form with XML/XSL.
 The server process the html tags, then process the xsltags:style
(now i
 use the JSTL taglibs for the XSL transformation) that output a text
with
 some html tags but they aren't parsed like Struts tag. So i have
in output
 to the client an HTML file with some html tags!
 I'm searching a way to put the whole text (after the execution of
 xsltags:style xml=aaa.xml xsl=aaa.xsl/ i have
 html:formhtml:text/.../html:form) in the text that the
Struts
 parser bring like input... or something like this!

 I hope my problem is more understandable now... even if my english
is a
 little bit poor!
 Please, help me!!!

 Giovanni


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


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



Re: Accessing resource properties

2003-03-21 Thread Susan Bradeen
Something like this?

bean:define id=myValue 
   bean:message key=whatever.from.your.message.resources/
/bean:define

Then use %= myValue % where you need to.


Susan Bradeen

On 03/21/2003 06:05:14 AM Mohan Radhakrishnan wrote:

 Hi
 
 Is there a way to store what is returned by
 
 bean:message key=%=x%/
 
 in a variable in the scope directly using bean:define or something else
 instead of writing the following scriptlet in my JSP ?
 
 MessageResources messages =
 MessageResources.getMessageResources(ApplicationResources);
 messages.getMessage( information );
 
 Thanks,
 Mohan
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: [friday] NEWBIE - unsubscription help

2003-03-21 Thread Dan Allen

James Mitchell ([EMAIL PROTECTED]) wrote:

 On Fri, 2003-03-21 at 00:37, Dan Allen wrote:
I'm sorry to bother you all with this silly question but can someone please
   tell me how to unsubscibe from this list?
   
   I've tried sending countless emails to
   [EMAIL PROTECTED] but that does not seem to work.
   As I share this email with my wife, you can imagine her 'amused' look when
   the whole screen is filled with Struts mails! :(
   Thanks.
  
  Have you ever heard of filtering?  Maybe you should look into that
  and you won't need to unsubscribe so desperately.
 
 I think what Dan was 'really trying to say' is that you should:
 1. send a blank message to [EMAIL PROTECTED]
 (using the same email address you used to subscribe)
 2. wait until the confirmation comes and then reply to that email.

Yes, that about sums it up.  But you have to wonder, with all those
great tools...

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
I'm old enough to know better, but still too young to care.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



WebSphere Application Developer / Log4J, duplicate messages???

2003-03-21 Thread Cook, Graham
Hi, 
 
I have a problem with WSAD. I've enabled log4j as it should be but whenever
a message gets printed to the console, I get a duplicate SYSTEMOUT message
from what i believe is WSAD.
 
Does anyone have any idea how to stop WSAD duplicating these log4J messages?
 
 
EXAMPLE:-
 
..
..
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Mapping Parameter value for this action is Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Parmater doaction=Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter value for
this action is Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater doaction=Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
..
..



 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .




RE: working with a team

2003-03-21 Thread Dragomir Denev
What is your container?
I have JBoss and when I redeploy a webapp in a .war file everything's fine.
When I redeploy a webapp in expanded format I need only touch the web.xml
file
and JBoss redeploys the app automatically. Hope this helps.

Drago

-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 12:39
To: Struts Users Mailing List
Subject: Re: working with a team


So far I don't see much I like.  If the JSP developer uploads right
to the webapp then my web resources are out of sync.  That means if
I make a tweak to the JSP the next time he uploads, poof.  That is
damn ugly.

The best scenario is as follows.  There is a single CVS repository.
I have tomcat (or whatever) running and he does too.  We both
checkout the original source.  He messes with the JSPs, reloads he
local app, get's it all tweaked.  Then, he CVS commits all changes.
I do the same.  At the end of the day, week or whatever interval,
the CVS version is checked out into a war file and deployed.  The
last step is the only tricky part, I will have to make an ant script
for that.

This brings me to my next question, which may be container specific.
Don't let this throw off the topic of the post, maybe a quick little
reponse.  If I copy over a new version of the *.war file for an
app, why doesn't the container redeploy it over the old version?  It
seems like once a war has been deployed, you have to nix the whole
folder, restart the container and copy in the new war.  It would
seem to me the container should check the timestamp of the war
against the folder or something and if it is newer, redeploy it.
This also causes issues with files that were removed from the war,
which are now trash files and left in the deployed app.

Dan

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The package said 'Windows 95 or better', so I installed Linux
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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


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



Re: A tag inside another: it will be not interpreted!

2003-03-21 Thread Giovanni Formenti
Ok... i understand this too late...
But there are nested tag that can be processed... how work this custom
tags?
or maybe the solution is to change the StyleTag so it can parse inner
html-tag?

Thanx
Gio

PS: sorry for the CCN but i try to solve the problem quickly

- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:28 PM
Subject: Re: A tag inside another: it will be not interpreted!


 If I understand your case you have something like this :

 you want some XML to be processed by xsltags:style Tag, and produce
 some JSP code with html:xxx Struts tags.

 This fails because JSP compiler works this way :
 - scriptlets and JSP tags (that are declared by a %@ taglib %) are
 used to build the java code of the JSP. Tags are translated into
 methodcalls.
 - java code is compiled to a servlet
 - servlet is deployed on the container and gets the requests.

 Your XSL tag is translated to a method call on the Tag implementation,
 that transform XML and put the result on output. This output can be
 anything, JSP compiler has ended with your JSP !

 You cannot produce JSP code with a JSP.

 Nico.


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



RE: WebSphere Application Developer / Log4J, duplicate messages???

2003-03-21 Thread shirishchandra.sakhare
How have u configured log4j?

I mean if the same appender is added twice(In this case Sysout),the output of logging 
will go twice to the appender..

So may be u can check this.

regards,
Shirish

-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:34 PM
To: '[EMAIL PROTECTED]'
Subject: WebSphere Application Developer / Log4J, duplicate messages???


Hi, 
 
I have a problem with WSAD. I've enabled log4j as it should be but whenever
a message gets printed to the console, I get a duplicate SYSTEMOUT message
from what i believe is WSAD.
 
Does anyone have any idea how to stop WSAD duplicating these log4J messages?
 
 
EXAMPLE:-
 
..
..
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Mapping Parameter value for this action is Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Parmater doaction=Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter value for
this action is Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater doaction=Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
..
..



 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .



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



RE: WebSphere Application Developer / Log4J, duplicate messages???

2003-03-21 Thread Cook, Graham
This is the log4.properties file:-


# Create a single console appender that logs INFO and higer
#log4j.rootLogger=INFO, stdout

# Create a console appender that logs ERROR's on org.apache ONLY
log4j.logger.org.apache=ERROR, output1

# Create a console appender that logs TRACE or higher on corus packages only
log4j.logger.corus=TRACE, output1

# Configure the stdout appender to go to the console
log4j.appender.output1=org.apache.log4j.ConsoleAppender

# Configure the stdout appender to use the PatternLayout
log4j.appender.output1.layout=org.apache.log4j.PatternLayout




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 13:40
To: [EMAIL PROTECTED]
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


How have u configured log4j?

I mean if the same appender is added twice(In this case Sysout),the output
of logging will go twice to the appender..

So may be u can check this.

regards,
Shirish

-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:34 PM
To: '[EMAIL PROTECTED]'
Subject: WebSphere Application Developer / Log4J, duplicate messages???


Hi, 
 
I have a problem with WSAD. I've enabled log4j as it should be but whenever
a message gets printed to the console, I get a duplicate SYSTEMOUT message
from what i believe is WSAD.
 
Does anyone have any idea how to stop WSAD duplicating these log4J messages?
 
 
EXAMPLE:-
 
..
..
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Mapping Parameter value for this action is Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Parmater doaction=Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter value for
this action is Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater doaction=Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
..
..


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



 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .



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



Re: working with a team

2003-03-21 Thread Chris Trawick
We have a team of several jsp and ejb developers.  We all develop and unit
test with local instances of the application and communicate our changes via
CVS.  Only when we are ready for a release do we commit the latest to a
server.  We agree that several JSP developers working off the same
deployment is a Bad Thing, so we don't.

As for struts-config management, that too can be problematic.  We avoid
those issues as well by using XDoclet.

chris

- Original Message -
From: Dan Allen [EMAIL PROTECTED]
To: Struts-User List [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 12:01 AM
Subject: working with a team


 I am looking for some advice/articles on setting up my struts
 application so that all members of the team can all work with it.
 Let me first state my situation/dilemma and let you know what I am
 looking for.

 1. I have a source tree (/home/me/src/struts/projects/project1)
 outside of the web folder (ie /var/tomcat/webapps) where I am
 coding.  When I change a source file I run `ant build` and `ant
 reload`, if I just change a web file, I run `ant update`.  All of
 these processes copy the files into the
 /var/tomcat4/webapps/project1 folder and change the state of the
 running application (if necessary)

 2. My JSP developer, working on his own computer, copies down all
 the web files, modifies the ones he is working on and ftps them back
 to the source folder

 3. I then have to run `ant update` to move the web files to the
 container.

 This is obviously not the way to do things, but we just got started
 using struts 2 weeks ago and haven't had a chance to organize
 things.  Now it is time to organize things.  I am running Eclipse
 and it makes it very easy to rebuild and restart the application or
 container, but I am not sure how to handle the case of multiple
 developers on mutiple computers.

 In short, how does the JSP developer update the web content and
 restart the application from a remote computer and still keep the
 files in sync with what I am working on?  I have CVS experience and
 I guess I could setup CVS, but that still doesn't handle the issue
 that the source repository is outside of the container and something
 needs to move the files into the container and possibly restart the
 applicaiton or container if necessary (if there is a change to
 struts-config.xml or tiles-definitions.xml).

 My JSP developer is coming from the viewpoint of just uploading a
 page and being able to access it, so this is all foreign to him.
 Since an action must proceed every page, it is necessary to restart
 the application each time a change to struts-config.xml is made.
 Plus, the JSP developer has to use struts-console (or edit by hand,
 prone to error) the struts-config.xml file.

 I am looking for a tutorial on setting up a team to run struts.
 Anyone, any info, please!

 Dan

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Windows is packaged with Solitaire (ooh)!
 Linux is distributed with Doom...
 you can have your deck of cards, I'll take a chainsaw!
  -- Linus Torvalds
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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



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



RE: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Edgar Dollin
This sounds like a tomcat configuration error.  You need to set appBase
under host and docBase under context.  If you still have problems I would
post this under [EMAIL PROTECTED]

Edgar

 -Original Message-
 From: Sasha Bilton [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 21, 2003 4:51 AM
 To: 'Struts Users Mailing List'
 Subject: [Q] Apache http.conf, Tomcat  Struts
 
 
 Hi,
 
 I'm running an Apache (1.3) webserver on linux (Suse 8) that has 
 multiple virtual hosts. I'm using JkMount (AJP 13) to get Tomcat to 
 handle my Struts .jsp files.   At the moment JkMount only 
 looks in ROOT 
 for jsp files, so even though I have the doc root set to 
 /home/bob/jakarta/webapps/bob and happily serves .html from that 
 directory, if I try and point to a .jsp file it looks in webapps/ROOT.
 
 That would be fine if I where just running one site, but I need to be 
 able to look in multiple directories under webapps for my 
 Struts files.
 
 Also, should I do anything special to handle the .do extension in my 
 JkMount settings?
 
 Many, many thanks in advance!
 
 Sasha
 
 

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



Re: [Q] Apache http.conf, Tomcat Struts

2003-03-21 Thread Sasha Bilton
Dan Allen wrote:
Alright, I got this to work with mod_jk and apache 1.3 out of the
box...but be sure to change the locahost to localhost in the
workers.properties file (typo)
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/quickhowto.html
That's a good start, but it still doesn't help with the following...

www.alpha.com -- /home/bob/jt/webapps/alpha
www.beta.com -- /home/bob/jt/webapps/beta
I've only managed to get

www.alpha.com/*.html -- /home/bob/jt/webapps/alpha
but
www.alpha.com/*.jsp-- /home/bob/jt/webapps/ROOT

www.beta.com/*.html -- /home/bob/jt/webapps/beta
but
www.beta.com/*.jsp-- /home/bob/jt/webapps/ROOT
it's fairly easy to get

www.alpha.com/alpha/*.jsp -- /home/bob/jt/webapps/ROOT/alpha
www.beta.com/beta/*.jsp -- /home/bob/jt/webapps/ROOT/beta






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


RE: WebSphere Application Developer / Log4J, duplicate messages?? ?

2003-03-21 Thread Susan Bradeen
Have you got a commons-logging.properties file?

Susan Bradeen


On 03/21/2003 08:42:54 AM Cook, Graham wrote:

 This is the log4.properties file:-
 
 
 # Create a single console appender that logs INFO and higer
 #log4j.rootLogger=INFO, stdout
 
 # Create a console appender that logs ERROR's on org.apache ONLY
 log4j.logger.org.apache=ERROR, output1
 
 # Create a console appender that logs TRACE or higher on corus packages 
only
 log4j.logger.corus=TRACE, output1
 
 # Configure the stdout appender to go to the console
 log4j.appender.output1=org.apache.log4j.ConsoleAppender
 
 # Configure the stdout appender to use the PatternLayout
 log4j.appender.output1.layout=org.apache.log4j.PatternLayout
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: 21 March 2003 13:40
 To: [EMAIL PROTECTED]
 Subject: RE: WebSphere Application Developer / Log4J, duplicate
 messages???
 
 
 How have u configured log4j?
 
 I mean if the same appender is added twice(In this case Sysout),the 
output
 of logging will go twice to the appender..
 
 So may be u can check this.
 
 regards,
 Shirish
 
 -Original Message-
 From: Cook, Graham [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 21, 2003 2:34 PM
 To: '[EMAIL PROTECTED]'
 Subject: WebSphere Application Developer / Log4J, duplicate messages???
 
 
 Hi,
 
 I have a problem with WSAD. I've enabled log4j as it should be but 
whenever
 a message gets printed to the console, I get a duplicate SYSTEMOUT 
message
 from what i believe is WSAD.
 
 Does anyone have any idea how to stop WSAD duplicating these log4J 
messages?
 
 
 EXAMPLE:-
 
 ..
 ..
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 Mapping Parameter value for this action is Calculate
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 Parmater doaction=Calculate
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 In calculate() method
 [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter value 
for
 this action is Calculate
 [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater 
doaction=Calculate
 [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
 [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
 calculateAndSetItemLinesTotal() method
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 In calculateAndSetItemLinesTotal() method
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 In calculateAndSetItemLinesTotal() method
 ..
 ..
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 
  This message contains information that may be privileged or 
confidential and
 is the property of the Cap Gemini Ernst  Young Group. It is intended 
only for
 the person to whom it is addressed. If you are not the intended 
recipient, you
 are not authorized to read, print, retain, copy, disseminate, 
distribute, or use
 this message or any part thereof. If you receive this message in error, 
please
 notify the sender immediately and delete all copies of this message .
 

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

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



RE: WebSphere Application Developer / Log4J, duplicate messages?? ?

2003-03-21 Thread Cook, Graham
commons-logging.properties :-

org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jF
actory






-Original Message-
From: Susan Bradeen [mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 13:58
To: Struts Users Mailing List
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages?? ?


Have you got a commons-logging.properties file?

Susan Bradeen


On 03/21/2003 08:42:54 AM Cook, Graham wrote:

 This is the log4.properties file:-
 
 
 # Create a single console appender that logs INFO and higer
 #log4j.rootLogger=INFO, stdout
 
 # Create a console appender that logs ERROR's on org.apache ONLY
 log4j.logger.org.apache=ERROR, output1
 
 # Create a console appender that logs TRACE or higher on corus packages 
only
 log4j.logger.corus=TRACE, output1
 
 # Configure the stdout appender to go to the console
 log4j.appender.output1=org.apache.log4j.ConsoleAppender
 
 # Configure the stdout appender to use the PatternLayout
 log4j.appender.output1.layout=org.apache.log4j.PatternLayout
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: 21 March 2003 13:40
 To: [EMAIL PROTECTED]
 Subject: RE: WebSphere Application Developer / Log4J, duplicate
 messages???
 
 
 How have u configured log4j?
 
 I mean if the same appender is added twice(In this case Sysout),the 
output
 of logging will go twice to the appender..
 
 So may be u can check this.
 
 regards,
 Shirish
 
 -Original Message-
 From: Cook, Graham [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 21, 2003 2:34 PM
 To: '[EMAIL PROTECTED]'
 Subject: WebSphere Application Developer / Log4J, duplicate messages???
 
 
 Hi,
 
 I have a problem with WSAD. I've enabled log4j as it should be but 
whenever
 a message gets printed to the console, I get a duplicate SYSTEMOUT 
message
 from what i believe is WSAD.
 
 Does anyone have any idea how to stop WSAD duplicating these log4J 
messages?
 
 
 EXAMPLE:-
 
 ..
 ..
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 Mapping Parameter value for this action is Calculate
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 Parmater doaction=Calculate
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 In calculate() method
 [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter value 
for
 this action is Calculate
 [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater 
doaction=Calculate
 [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
 [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
 calculateAndSetItemLinesTotal() method
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 In calculateAndSetItemLinesTotal() method
 21992 [Servlet.Engine.Transports:10] DEBUG 
registration.SteelInvoiceAction -
 In calculateAndSetItemLinesTotal() method
 ..
 ..
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 
  This message contains information that may be privileged or 
confidential and
 is the property of the Cap Gemini Ernst  Young Group. It is intended 
only for
 the person to whom it is addressed. If you are not the intended 
recipient, you
 are not authorized to read, print, retain, copy, disseminate, 
distribute, or use
 this message or any part thereof. If you receive this message in error, 
please
 notify the sender immediately and delete all copies of this message .
 


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

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

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



RE: WebSphere Application Developer / Log4J, duplicate messages???

2003-03-21 Thread shirishchandra.sakhare
There seems some problem in this configuration..I am not sure if stdout is taken as 
COnsole appender by log4j...

BEcause U have stdout as appender for root.And then  output1 again maps to console 
appender..
So try the following change.

Just change the first line as follows:

# Create a single console appender that logs INFO and higer
#log4j.rootLogger=INFO, output1

Hope this helps,
Regards,
Shirish



-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:43 PM
To: 'Struts Users Mailing List'
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


This is the log4.properties file:-


# Create a single console appender that logs INFO and higer
#log4j.rootLogger=INFO, stdout

# Create a console appender that logs ERROR's on org.apache ONLY
log4j.logger.org.apache=ERROR, output1

# Create a console appender that logs TRACE or higher on corus packages only
log4j.logger.corus=TRACE, output1

# Configure the stdout appender to go to the console
log4j.appender.output1=org.apache.log4j.ConsoleAppender

# Configure the stdout appender to use the PatternLayout
log4j.appender.output1.layout=org.apache.log4j.PatternLayout




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 13:40
To: [EMAIL PROTECTED]
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


How have u configured log4j?

I mean if the same appender is added twice(In this case Sysout),the output
of logging will go twice to the appender..

So may be u can check this.

regards,
Shirish

-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:34 PM
To: '[EMAIL PROTECTED]'
Subject: WebSphere Application Developer / Log4J, duplicate messages???


Hi, 
 
I have a problem with WSAD. I've enabled log4j as it should be but whenever
a message gets printed to the console, I get a duplicate SYSTEMOUT message
from what i believe is WSAD.
 
Does anyone have any idea how to stop WSAD duplicating these log4J messages?
 
 
EXAMPLE:-
 
..
..
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Mapping Parameter value for this action is Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Parmater doaction=Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter value for
this action is Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater doaction=Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
..
..


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



 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .



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


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



RE: WebSphere Application Developer / Log4J, duplicate messages???

2003-03-21 Thread Cook, Graham
Nope, tryed that,  still dont work. That line was commented out anyway

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 14:10
To: [EMAIL PROTECTED]
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


There seems some problem in this configuration..I am not sure if stdout is
taken as COnsole appender by log4j...

BEcause U have stdout as appender for root.And then  output1 again maps to
console appender..
So try the following change.

Just change the first line as follows:

# Create a single console appender that logs INFO and higer
#log4j.rootLogger=INFO, output1

Hope this helps,
Regards,
Shirish



-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:43 PM
To: 'Struts Users Mailing List'
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


This is the log4.properties file:-


# Create a single console appender that logs INFO and higer
#log4j.rootLogger=INFO, stdout

# Create a console appender that logs ERROR's on org.apache ONLY
log4j.logger.org.apache=ERROR, output1

# Create a console appender that logs TRACE or higher on corus packages only
log4j.logger.corus=TRACE, output1

# Configure the stdout appender to go to the console
log4j.appender.output1=org.apache.log4j.ConsoleAppender

# Configure the stdout appender to use the PatternLayout
log4j.appender.output1.layout=org.apache.log4j.PatternLayout




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 13:40
To: [EMAIL PROTECTED]
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


How have u configured log4j?

I mean if the same appender is added twice(In this case Sysout),the output
of logging will go twice to the appender..

So may be u can check this.

regards,
Shirish

-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:34 PM
To: '[EMAIL PROTECTED]'
Subject: WebSphere Application Developer / Log4J, duplicate messages???


Hi, 
 
I have a problem with WSAD. I've enabled log4j as it should be but whenever
a message gets printed to the console, I get a duplicate SYSTEMOUT message
from what i believe is WSAD.
 
Does anyone have any idea how to stop WSAD duplicating these log4J messages?
 
 
EXAMPLE:-
 
..
..
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Mapping Parameter value for this action is Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Parmater doaction=Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter value for
this action is Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater doaction=Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
..
..


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




 This message contains information that may be privileged or confidential
and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only
for 
the person to whom it is addressed. If you are not the intended recipient,
you 
are not authorized to read, print, retain, copy, disseminate, distribute, or
use 
this message or any part thereof. If you receive this message in error,
please 
notify the sender immediately and delete all copies of this message .




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


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

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



RE: A tag inside another: it will be not interpreted!

2003-03-21 Thread apachep2
Have you declare %@ tablig 

-Original Message-
From: Giovanni Formenti [mailto:[EMAIL PROTECTED] 
Sent: March 21, 2003 7:46 AM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: A tag inside another: it will be not interpreted!

- Original Message -
From: Robert S. Sfeir [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 1:30 PM
Subject: Re: A tag inside another: it will be not interpreted!


 I;m not entirely sure I followed everything, but if you're getting
HTML
 tags displayed on screen, meaning instead of img src= you get
 lt;img src= gt; which will cause the 'tag' to display as text,

I'm sorry, but maybe i explain my problem not so clear.
I have a tag xsl:style/ that produce a piece of HTML with some
struts
tags:
xsl:style/  html:formhtml:text/.../html:form
Now i want that Struts tags are parsed to produce forminput
type=text... and so on but this don't happen! Maybe because are
nested
tags?!
In the HTML i have the right  and  (not gt; and lt;) so the
browser
(correctly!) don't display my form!
It' more clear now?

Thanks for any answer!
Giovanni


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


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



RE: WebSphere Application Developer / Log4J, duplicate messages?? ?

2003-03-21 Thread Susan Bradeen
Try putting this in your system properties ... - D options in the config 
for your server instance, I guess you'd call it, and see if that makes a 
difference. 

Susan Bradeen

On 03/21/2003 09:04:53 AM Cook, Graham wrote:

 commons-logging.properties :-
 
 
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jF
 actory
 
 
 
 
 
 
 -Original Message-
 From: Susan Bradeen [mailto:[EMAIL PROTECTED]
 Sent: 21 March 2003 13:58
 To: Struts Users Mailing List
 Subject: RE: WebSphere Application Developer / Log4J, duplicate
 messages?? ?
 
 
 Have you got a commons-logging.properties file?
 
 Susan Bradeen
 
 
 On 03/21/2003 08:42:54 AM Cook, Graham wrote:
 
  This is the log4.properties file:-
 
 
  # Create a single console appender that logs INFO and higer
  #log4j.rootLogger=INFO, stdout
 
  # Create a console appender that logs ERROR's on org.apache ONLY
  log4j.logger.org.apache=ERROR, output1
 
  # Create a console appender that logs TRACE or higher on corus 
packages
 only
  log4j.logger.corus=TRACE, output1
 
  # Configure the stdout appender to go to the console
  log4j.appender.output1=org.apache.log4j.ConsoleAppender
 
  # Configure the stdout appender to use the PatternLayout
  log4j.appender.output1.layout=org.apache.log4j.PatternLayout
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: 21 March 2003 13:40
  To: [EMAIL PROTECTED]
  Subject: RE: WebSphere Application Developer / Log4J, duplicate
  messages???
 
 
  How have u configured log4j?
 
  I mean if the same appender is added twice(In this case Sysout),the
 output
  of logging will go twice to the appender..
 
  So may be u can check this.
 
  regards,
  Shirish
 
  -Original Message-
  From: Cook, Graham [mailto:[EMAIL PROTECTED]
  Sent: Friday, March 21, 2003 2:34 PM
  To: '[EMAIL PROTECTED]'
  Subject: WebSphere Application Developer / Log4J, duplicate 
messages???
 
 
  Hi,
 
  I have a problem with WSAD. I've enabled log4j as it should be but
 whenever
  a message gets printed to the console, I get a duplicate SYSTEMOUT
 message
  from what i believe is WSAD.
 
  Does anyone have any idea how to stop WSAD duplicating these log4J
 messages?
 
 
  EXAMPLE:-
 
  ..
  ..
  21992 [Servlet.Engine.Transports:10] DEBUG
 registration.SteelInvoiceAction -
  Mapping Parameter value for this action is Calculate
  21992 [Servlet.Engine.Transports:10] DEBUG
 registration.SteelInvoiceAction -
  Parmater doaction=Calculate
  21992 [Servlet.Engine.Transports:10] DEBUG
 registration.SteelInvoiceAction -
  In calculate() method
  [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter 
value
 for
  this action is Calculate
  [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater
 doaction=Calculate
  [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
  [20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
  calculateAndSetItemLinesTotal() method
  21992 [Servlet.Engine.Transports:10] DEBUG
 registration.SteelInvoiceAction -
  In calculateAndSetItemLinesTotal() method
  21992 [Servlet.Engine.Transports:10] DEBUG
 registration.SteelInvoiceAction -
  In calculateAndSetItemLinesTotal() method
  ..
  ..
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 
  
   This message contains information that may be privileged or
 confidential and
  is the property of the Cap Gemini Ernst  Young Group. It is intended
 only for
  the person to whom it is addressed. If you are not the intended
 recipient, you
  are not authorized to read, print, retain, copy, disseminate,
 distribute, or use
  this message or any part thereof. If you receive this message in 
error,
 please
  notify the sender immediately and delete all copies of this message .
 
 

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

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



refresh command

2003-03-21 Thread Vladislav Kamensky
Is it possible to create Action that will have forward which is not specified by
struts-config.xml. I know that I can create Action that will create its own  forward
on the basis of  HttpRequest parameter, for example, but I need a bit different thing.

My Action is to be invoked from lots of pages and it should redirect
control flow to the page from which it was called. So, I need a kind of refresh action.
I can't figure out requested page by calling HttpRequest.getRequestURI() method
because my Control is used as a Tile (after RequestDispatcher's include() has been
invoked requestURI has value which is not equal to the initial one).

All what I need is to know the forward which was used by the system last time.
Having known that I will be able to redirect my Action to the View which was shown
when my Action was invoked.

Is it possible to get forward history list ?
Any ideas of how it can be resolved ?
Any suggestions are welcome.

--
Vlad Kamensky,
@Business  SPb.





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



RE: WebSphere Application Developer / Log4J, duplicate messages???

2003-03-21 Thread Cook, Graham
I only seem to be getting duplicates on my classes, not any Struts/Validator
classes..


Example Code:

..
..
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
..
..
protected static final Log log = LogFactory.getLog( RegistrationAction.class
);
..
..
..
log.info( setting registration type to STEEL INVOICE );
..
..




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 14:10
To: [EMAIL PROTECTED]
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


There seems some problem in this configuration..I am not sure if stdout is
taken as COnsole appender by log4j...

BEcause U have stdout as appender for root.And then  output1 again maps to
console appender..
So try the following change.

Just change the first line as follows:

# Create a single console appender that logs INFO and higer
#log4j.rootLogger=INFO, output1

Hope this helps,
Regards,
Shirish



-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:43 PM
To: 'Struts Users Mailing List'
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


This is the log4.properties file:-


# Create a single console appender that logs INFO and higer
#log4j.rootLogger=INFO, stdout

# Create a console appender that logs ERROR's on org.apache ONLY
log4j.logger.org.apache=ERROR, output1

# Create a console appender that logs TRACE or higher on corus packages only
log4j.logger.corus=TRACE, output1

# Configure the stdout appender to go to the console
log4j.appender.output1=org.apache.log4j.ConsoleAppender

# Configure the stdout appender to use the PatternLayout
log4j.appender.output1.layout=org.apache.log4j.PatternLayout




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 13:40
To: [EMAIL PROTECTED]
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


How have u configured log4j?

I mean if the same appender is added twice(In this case Sysout),the output
of logging will go twice to the appender..

So may be u can check this.

regards,
Shirish

-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:34 PM
To: '[EMAIL PROTECTED]'
Subject: WebSphere Application Developer / Log4J, duplicate messages???


Hi, 
 
I have a problem with WSAD. I've enabled log4j as it should be but whenever
a message gets printed to the console, I get a duplicate SYSTEMOUT message
from what i believe is WSAD.
 
Does anyone have any idea how to stop WSAD duplicating these log4J messages?
 
 
EXAMPLE:-
 
..
..
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Mapping Parameter value for this action is Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Parmater doaction=Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter value for
this action is Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater doaction=Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
..
..


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




 This message contains information that may be privileged or confidential
and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only
for 
the person to whom it is addressed. If you are not the intended recipient,
you 
are not authorized to read, print, retain, copy, disseminate, distribute, or
use 
this message or any part thereof. If you receive this message in error,
please 
notify the sender immediately and delete all copies of this message .




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


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

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



Re: A tag inside another: it will be not interpreted!

2003-03-21 Thread Giovanni Formenti
Sure!
Gio

- Original Message - 
From: apachep2 [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 3:14 PM
Subject: RE: A tag inside another: it will be not interpreted!


 Have you declare %@ tablig 
 
 
  I;m not entirely sure I followed everything, but if you're getting
 HTML
  tags displayed on screen, meaning instead of img src= you get
  lt;img src= gt; which will cause the 'tag' to display as text,
 


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



Re: refresh command

2003-03-21 Thread Dan Allen

Vladislav Kamensky ([EMAIL PROTECTED]) wrote:

 Is it possible to create Action that will have forward which is not specified by
 struts-config.xml. I know that I can create Action that will create its own  
 forward
 on the basis of  HttpRequest parameter, for example, but I need a bit different 
 thing.
 
 My Action is to be invoked from lots of pages and it should redirect
 control flow to the page from which it was called. So, I need a kind of refresh 
 action.
 I can't figure out requested page by calling HttpRequest.getRequestURI() method
 because my Control is used as a Tile (after RequestDispatcher's include() has been
 invoked requestURI has value which is not equal to the initial one).
 
 All what I need is to know the forward which was used by the system last time.
 Having known that I will be able to redirect my Action to the View which was shown
 when my Action was invoked.
 
 Is it possible to get forward history list ?
 Any ideas of how it can be resolved ?
 Any suggestions are welcome.

Search the list for how to prevent tiles from changing the
requestURI.  You have to basically intialize the tiles context
inside your action.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
I used to herd dairy cows.  Now I herd linux users.  Apart 
from the isolation, I think I preferred the cows.  They were 
better in conversation, easier to milk, and if they annoyed me 
enough, I could shoot them and eat them.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: struts-config.xml

2003-03-21 Thread Dan Allen
Sloan Seaman ([EMAIL PROTECTED]) wrote:

 You can also have imultiple files and then have ANT use a skeleton
 struts-config.xml file to build the final file.
 
 Just use variable replacement in ANT to insert all the seperate files into
 one master file (that is how we do it)

Great idea!  Who cares what the deployed struts-config.xml file
looks like after all.  Man, maybe struts developers could have saved
the time and just relied on ant.  Oh well, guess options are good.

Mind you code post?  Okay, I won't beat around the bush, can you
post that snippet from your ant build file?  I would be most
appreciative!

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Real programmers just hate to get up in the morning, and 
contrary to Ordinary People, they're in better shape as 
it gets closer to nighttime.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: [FRIDAY] Microsoft

2003-03-21 Thread Ted Husted
As developers, I think its our job to develop, making the best use of 
the best tools available.

I may be involved with a .NET project this summer. And if I am, you can 
bet I'm bringing along the C# renditions of my favorite tools. Ant, 
Hibernate, Lucene, Maverick (similar to Struts), Velocity, all have .NET 
projects churning away at SourceForge. Some of these still need some 
work, but its work we know how to do.

The nice thing about this article is that it echoes what I have been 
telling clients. .NET is a nice quick-to-market platform, but its 
immature and still needs to be augmented by the products real, live 
enterprise developers have been building in Java over the last few years.

Although the skills most of us bring to a project have less to do with 
the tools themselves, and more to do with how we use the tools. After 
all, no matter how good you are using product X today, it's liable to be 
a very different product two years from now.

-T.

--
Ted Husted,
Struts in Action http://husted.com/struts/book.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


data-source problem

2003-03-21 Thread Eugene Volynskiy
Hi,

I have a problem with data-source usage in Struts 1.1
When we had data-source defined in struts-config.xml without key attribute
is working just fine:
data-sources
 data-source   
 set-property property=driverClass
value=com.sybase.jdbc2.jdbc.SybDriver /   
 set-property property=url
value=jdbc:sybase:Tds:server:port/db /
 set-property property=maxCount value=10 /
 set-property property=minCount value=1 /
 set-property property=user value=user /
 set-property property=password value=pass /
 /data-source
/data-sources
In this case I established connection to default data-source using
Action.DATA_SOURCE_KEY: 
  ServletContext context = servlet.getServletContext();
DataSource dataSource = (DataSource)
context.getAttribute(Action.DATA_SOURCE_KEY);
  Connection conn = dataSource.getConnection();
But as soon as I add key attribute to datasource:
 data-source key=ds1   
 ...
   /data-source 
and trying to getAttribute by key:
...
DataSource dataSource = (DataSource)
context.getAttribute(ds1);
...
I have NullPointer Exception on any DB call I have.
I would appreciate any advise/suggestion on this.

Thank you,

Eugene 




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



RE: [FRIDAY] Microsoft

2003-03-21 Thread Andrew Hill
What article?

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Friday, 21 March 2003 22:32
To: [EMAIL PROTECTED]
Subject: Re: [FRIDAY] Microsoft


As developers, I think its our job to develop, making the best use of 
the best tools available.

I may be involved with a .NET project this summer. And if I am, you can 
bet I'm bringing along the C# renditions of my favorite tools. Ant, 
Hibernate, Lucene, Maverick (similar to Struts), Velocity, all have .NET 
projects churning away at SourceForge. Some of these still need some 
work, but its work we know how to do.

The nice thing about this article is that it echoes what I have been 
telling clients. .NET is a nice quick-to-market platform, but its 
immature and still needs to be augmented by the products real, live 
enterprise developers have been building in Java over the last few years.

Although the skills most of us bring to a project have less to do with 
the tools themselves, and more to do with how we use the tools. After 
all, no matter how good you are using product X today, it's liable to be 
a very different product two years from now.

-T.

-- 
Ted Husted,
Struts in Action http://husted.com/struts/book.html


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

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



RE: Fine Grained Access Control in Sturts

2003-03-21 Thread David Graham
http://jakarta.apache.org/struts/userGuide/struts-tiles.html#insert

David



From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Fine Grained Access Control in Sturts
Date: Fri, 21 Mar 2003 08:12:26 +0100
Can you have a tile require a certain Role like action mappings have?

  _

Thank You

Mick Knutson

Sr. Designer - Project Trust
aUBS AG, Financial - Zürich
Office: +41 (0)1/234.42.75
Internal: 48194
Mobile: 079.726.14.26
  _


-Original Message-
From: Mike Duffy [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 9:23 PM
To: [EMAIL PROTECTED]
Subject: Fine Grained Access Control in Sturts
Does anyone have any thoughts on fine grained access control in
Struts?
Struts enables access control based on actions (see Struts in
Action, Husted, et. al., pp 550-553), and most application servers
can protect resources based on realms/roles.
But what about display options based on roles.  For example, if you
only wanted an Admin link to appear if the user was an
administrator, what would be the best way to do this?
You could make the role an attribute of the user object and then do
a logic test for the appropriate role.  Or it might be even better to
write a logic tag that takes the user role as an attribute.  Any
thoughts?
Thanks for your consideration.

BTW.  The Husted book is a very good book.

Mike

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Re: Fine Grained Access Control in Sturts

2003-03-21 Thread David Graham

How would this be done with jstl?

c:if test=${user.role == 'member'}/
???
The logic:present tag relies on HttpServletRequest.isUserInRole()
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpServletRequest.html#isUserInRole(java.lang.String)
So, in JSTL I *think* you could do
c:if test=${request.isUserInRole('myrole')}
not quite as easy, and is 'user' a page scoped variable or is
something else required.
Dan
David

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

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


RE: working with a team

2003-03-21 Thread Chen, Gin
 seem to me the container should check the timestamp of the war
 against the folder or something and if it is newer, redeploy it.
 This also causes issues with files that were removed from the war,
 which are now trash files and left in the deployed app.

One a container redeploys your war it will clean out the old deploy. So
unless your 'trash files' are still in the new war it will not get
redeployed.
Also if you are having struts-config management issues but dont want to use
xdoclet. It is possible to separate out the files on ur own. Just use XML
include statements within the master file to bring it all together. There's
are several article that talk about this (One by Chuck Cavaness is 'Seven
Lessons from the Trenches [Oct 30, 2002 - OnJava.com]).
-Tim

-Original Message-
From: Chris Trawick [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 8:46 AM
To: Struts Users Mailing List
Subject: Re: working with a team


We have a team of several jsp and ejb developers.  We all develop and unit
test with local instances of the application and communicate our changes via
CVS.  Only when we are ready for a release do we commit the latest to a
server.  We agree that several JSP developers working off the same
deployment is a Bad Thing, so we don't.

As for struts-config management, that too can be problematic.  We avoid
those issues as well by using XDoclet.

chris

- Original Message -
From: Dan Allen [EMAIL PROTECTED]
To: Struts-User List [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 12:01 AM
Subject: working with a team


 I am looking for some advice/articles on setting up my struts
 application so that all members of the team can all work with it.
 Let me first state my situation/dilemma and let you know what I am
 looking for.

 1. I have a source tree (/home/me/src/struts/projects/project1)
 outside of the web folder (ie /var/tomcat/webapps) where I am
 coding.  When I change a source file I run `ant build` and `ant
 reload`, if I just change a web file, I run `ant update`.  All of
 these processes copy the files into the
 /var/tomcat4/webapps/project1 folder and change the state of the
 running application (if necessary)

 2. My JSP developer, working on his own computer, copies down all
 the web files, modifies the ones he is working on and ftps them back
 to the source folder

 3. I then have to run `ant update` to move the web files to the
 container.

 This is obviously not the way to do things, but we just got started
 using struts 2 weeks ago and haven't had a chance to organize
 things.  Now it is time to organize things.  I am running Eclipse
 and it makes it very easy to rebuild and restart the application or
 container, but I am not sure how to handle the case of multiple
 developers on mutiple computers.

 In short, how does the JSP developer update the web content and
 restart the application from a remote computer and still keep the
 files in sync with what I am working on?  I have CVS experience and
 I guess I could setup CVS, but that still doesn't handle the issue
 that the source repository is outside of the container and something
 needs to move the files into the container and possibly restart the
 applicaiton or container if necessary (if there is a change to
 struts-config.xml or tiles-definitions.xml).

 My JSP developer is coming from the viewpoint of just uploading a
 page and being able to access it, so this is all foreign to him.
 Since an action must proceed every page, it is necessary to restart
 the application each time a change to struts-config.xml is made.
 Plus, the JSP developer has to use struts-console (or edit by hand,
 prone to error) the struts-config.xml file.

 I am looking for a tutorial on setting up a team to run struts.
 Anyone, any info, please!

 Dan

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Windows is packaged with Solitaire (ooh)!
 Linux is distributed with Doom...
 you can have your deck of cards, I'll take a chainsaw!
  -- Linus Torvalds
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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



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

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



Validation and Reset

2003-03-21 Thread Weber, Jeremy
Hello all!

It seems when I click my reset button my form is validated.  Is there anyway
to keep this from happening?
I am using html:image and the reset methodology here
http://www.husted.com/struts/tips/001.html


Jeremy Weber
Eventra, Inc.   
Sr. SCM Specialist
203-882-9988 x2631
[EMAIL PROTECTED]

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



Re: struts-config.xml

2003-03-21 Thread Sloan Seaman
Here is a snipit of my struts-config.skeleton.xml:
form-beans
  @core.formbean
  @campaign.formbean
  @promotion.formbean
  @promotionTypes.pantryLoading.formbean
/form-beans
action-mappings
  @core.action
  @campaign.action
  @promotion.action
  @promotionTypes.pantryLoading.action
/action-mappings

Here is the snipit from the build:
Notes: there may be a better way to do this, this was quick and dirty
Also, each individual developer has three files:
struts-action.xml
struts-formbean.xml
validation.xml

I use struts-action for the actions, struts-formbean for the formbeans, and
I also build the validation file so that is what validation.xml is for

 target name=struts.config.build
  echo message=Building struts-config.xml/
  delete file=${j2ee.struts}/  !-- struts-config.xml --
  !-- build the struts-config.xml --
  copy file=${j2ee.struts.skeleton}
   tofile=${j2ee.struts}/

  loadfile property=struts.config.core.action
   srcFile=${src.core}/${j2ee.struts.action}/
  loadfile property=struts.config.core.formbean
   srcFile=${src.core}/${j2ee.struts.formbean}/
  replace file=${j2ee.struts}
   token=@core.action
   value=${struts.config.core.action}/
  replace file=${j2ee.struts}
   token=@core.formbean
   value=${struts.config.core.formbean}/

You should be able to get this gist from that

Works very well

--
Sloan

- Original Message -
From: Dan Allen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 9:31 AM
Subject: Re: struts-config.xml


 Sloan Seaman ([EMAIL PROTECTED]) wrote:

  You can also have imultiple files and then have ANT use a skeleton
  struts-config.xml file to build the final file.
 
  Just use variable replacement in ANT to insert all the seperate files
into
  one master file (that is how we do it)

 Great idea!  Who cares what the deployed struts-config.xml file
 looks like after all.  Man, maybe struts developers could have saved
 the time and just relied on ant.  Oh well, guess options are good.

 Mind you code post?  Okay, I won't beat around the bush, can you
 post that snippet from your ant build file?  I would be most
 appreciative!

 Dan

 --
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 Real programmers just hate to get up in the morning, and
 contrary to Ordinary People, they're in better shape as
 it gets closer to nighttime.
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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




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



RE: Validation and Reset

2003-03-21 Thread Ady Das O'Toole
You could remove the validate call in your form and call the form's validate
method in your Action depending on whether it was a submit or reset.


//validate form
ActionErrors errors = new ActionErrors();
errors = yourForm.validate(mapping, request);

//put the errors object in request
saveErrors(request, errors);

//forward to input

-Original Message-
From: Weber, Jeremy [mailto:[EMAIL PROTECTED]
Sent: 21 March 2003 14:27
To: 'Struts Users Mailing List' (E-mail)
Subject: Validation and Reset


Hello all!

It seems when I click my reset button my form is validated.  Is there anyway
to keep this from happening?
I am using html:image and the reset methodology here
http://www.husted.com/struts/tips/001.html


Jeremy Weber
Eventra, Inc.   
Sr. SCM Specialist
203-882-9988 x2631
[EMAIL PROTECTED]

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk



**
The information contained in this e-mail may be confidential. It is intended only for 
for the use
of the named recipient. If you are not the named recipient please delete this e-mail. 
If you have
received this e-mail and are not the named recipient, any disclosure, reproduction, 
distribution
or other dissemination or use of the information contained in this e-mail is strictly 
prohibited.
E-mail transmission cannot be guaranteed to be secure or error free as information 
could be 
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain 
viruses.  
The sender therefore does not accept liability for any errors or omissions in the 
contents of this 
message which arise as a result of e-mail transmission.  If verification is required 
please 
request a hard copy version.
Registered Office:
Camelot Group plc
Tolpits Lane
Watford
WD18 9RN
Tel: 01923 425000
Registered in England and Wales
No. 2822203
**



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk


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



[OT] Portlets

2003-03-21 Thread Etienne Labonté
Hi,

Is there a better place for discussing Portlets?


Tag Pipelining

2003-03-21 Thread Giovanni Formenti
Hallo, i'm newly here! :)
I found the name of my problem... Tag Pipelining
The problem is clearly explaned here:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg00150.html

If someone have some idea...

Thanx
Gio

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



RE: [FRIDAY] Microsoft

2003-03-21 Thread Sterin, Ilya
I think however powerful .NET might be, it'll never reach it's full
potential, due to the fact that it only really runs on M$ platforms.

Yes, there is the Mono project, which is an attempt to port .NET to Linux,
but it will never be full fledge as M$ only release 80% of the .NET
infrastructure to the public.

Here is the issue.  The industry is greatly adopting the Linux platform, for
servers and currently even workstations.  This is a major move, as we have
fortune 500 clients who are planning on switching the full infrastructure to
Linux.  Which means replacing Unix (Solaris, HP-UX, and AIX) as well as NT,
to all run Linux.  With these advancements, and Microsoft surely loosing the
battle on the **server side**, .NET is not really looked at as a serious
solution at many enterprises, though they'll have to adapt Windows as their
server side platform, which is rare, especially in bigger companies, who
currently run on Unix/Linux.

Ford Motor Company for example, has adapted J2EE as the global
infrastructure, and .NET argument was shut down, the same day it came up.

I think .NET is a totally viable and powerfull solution, but being that they
are controlled by M$ and will not be portable to multiple platforms, it
becomes almost a non-argument in most companies which run heterougenous
environments, and I'd argue that that's almost 99.99% of all companies.

Ilya

-Original Message-
From: Ted Husted
To: [EMAIL PROTECTED]
Sent: 3/21/03 7:31 AM
Subject: Re: [FRIDAY] Microsoft

As developers, I think its our job to develop, making the best use of 
the best tools available.

I may be involved with a .NET project this summer. And if I am, you can 
bet I'm bringing along the C# renditions of my favorite tools. Ant, 
Hibernate, Lucene, Maverick (similar to Struts), Velocity, all have .NET

projects churning away at SourceForge. Some of these still need some 
work, but its work we know how to do.

The nice thing about this article is that it echoes what I have been 
telling clients. .NET is a nice quick-to-market platform, but its 
immature and still needs to be augmented by the products real, live 
enterprise developers have been building in Java over the last few
years.

Although the skills most of us bring to a project have less to do with 
the tools themselves, and more to do with how we use the tools. After 
all, no matter how good you are using product X today, it's liable to be

a very different product two years from now.

-T.

-- 
Ted Husted,
Struts in Action http://husted.com/struts/book.html


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


Re: data-source problem

2003-03-21 Thread Stephen Smithstone
Are u using an Action if so try

getDatasource( httpServletRequest , ds1 );

as the Action has a method for getting a datasource  

On Friday 21 March 2003 2:32 pm, Eugene Volynskiy wrote:
 Hi,

 I have a problem with data-source usage in Struts 1.1
 When we had data-source defined in struts-config.xml without key
 attribute is working just fine:
 data-sources
data-source
set-property property=driverClass
 value=com.sybase.jdbc2.jdbc.SybDriver /
set-property property=url
 value=jdbc:sybase:Tds:server:port/db /
set-property property=maxCount value=10 /
set-property property=minCount value=1 /
set-property property=user value=user /
set-property property=password value=pass /
/data-source
 /data-sources
 In this case I established connection to default data-source using
 Action.DATA_SOURCE_KEY:
 ServletContext context = servlet.getServletContext();
   DataSource dataSource = (DataSource)
 context.getAttribute(Action.DATA_SOURCE_KEY);
 Connection conn = dataSource.getConnection();
 But as soon as I add key attribute to datasource:
data-source key=ds1
...
/data-source
 and trying to getAttribute by key:
   ...
   DataSource dataSource = (DataSource)
 context.getAttribute(ds1);
   ...
 I have NullPointer Exception on any DB call I have.
 I would appreciate any advise/suggestion on this.

 Thank you,

 Eugene




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


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



[REPSOST] Faces - UIComponent - read/write mode

2003-03-21 Thread Sebastien Cesbron
Sorry to post this again but I would like to have more details about the 
future of the struts-faces cooperation.

Do we have to work with components in the future ? Does it make sense to 
implement my own components now and in the future upgrade to faces 
components ?

Thanks in advance

Seb

 Original Message 

Hi,

I am looking at the struts faces integration ant I have a question about
it. Is there any plan to integrate the UIComponent tree in struts or is
the integration just a new tag library.
I am guessing that in the future we will put ui components in
actionforms : do I miss something (I am not an expert in both so maybe I
am in the wrong way) ?
My current problem is that I want to use the same form for both reading
and editing.
My idea is this one :
public LogonForm
{
   private UIInput login = new UIInput(); // with getter / setter
.
.
.
}
in my Action :

logonForm.getLogin().setAttribute(editable, Boolean.FALSE);

and in my jsp :

h:input_text id=login modelReference=logonForm.login/

and then my renderer uses getAttribute(editable) to know if my control
is editable or know (we can do the same thing with visible,
mandatory and so on).
But this is not possible at this time and this is maybe not a viable
solution. So, does somebody have any idea for a solution that is managed
by the input tag. I am not really fond of lot of if constructions to
distinguish edit/visu modes. Is there any alternatives ?
Thanks in advance

Seb

_
Envie de discuter en live avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[Q] Return-to-page - is there a slick solution?

2003-03-21 Thread Jeff Smith
My user is on his favorite page (one of many report pages he can choose
from). From there, I want to offer a number of utility sequences that he
can run - say Edit Profile, Change Preferences, etc. Each of these sequences
may be 1 page or a sequence of 2 or 3. I want to keep track of which page he
was on when he started and then return to that page at the end of the
sequence.

I could easily track that info in the first action step, put it into the
session scope and then pop back there at the end. But that seems to
circumvent the entire struts action forwarding mechanism.

I could grab the Action Mapping Input field, but that presumes that I will
only invoke my sequence from one place.

Struts appears to be missing a mechanism for these subroutine-like
sequences.

Does anybody have an elegant solution to this problem?

Jefficus


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



Re: [Q] Return-to-page - is there a slick solution?

2003-03-21 Thread David Graham
I could easily track that info in the first action step, put it into the
session scope and then pop back there at the end. But that seems to
circumvent the entire struts action forwarding mechanism.
Not if you store the action name in the session in the first step and have 
the last step call mapping.findForward(storedName);

David

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: [Q] Return-to-page - is there a slick solution?

2003-03-21 Thread Ian Hunter
I had a similar problem recently.  I have a series of actions that populate
a formbean from a database, forward to a JSP for editing, and those submit
to a different action for handling updates and cascaded things that must
happen based on business rules.

I also want to be able to link directly to the update action in some cases
where I have all the fields I want to change.

For instance, say I have a user/group/access table.  I can edit a particular
user's priviledges by called groupmaint.do or with the ID of the user in
question.  That action (EditGroupMemAction) populates a three field bean
(Member ID, Group ID, Access Level) and forwards to groupmaint.jsp -- the
details get edited, then posted to updategroup.do which updates the
database, etc. and forwards back to the starting page.

From the main page, I have the option for each user to ask for membership
in any group they don't currently belong in.  They can hit one button that
forwards to a different action (groupinterest.do), with a forward called
returnto set to the main page.  That action calls the exact same class as
updategroup.do, but that class knows to look for a forward called returnto
and either return to it or pass it along by storing it as a session
variable.  When I do that, I store the entire ActionForward object, not just
the page name, so I catch requests to redirect as well as any other strange
config details of that forward.

Does that help?

- Original Message -
From: Jeff Smith [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 10:12 AM
Subject: [Q] Return-to-page - is there a slick solution?


 My user is on his favorite page (one of many report pages he can choose
 from). From there, I want to offer a number of utility sequences that he
 can run - say Edit Profile, Change Preferences, etc. Each of these
sequences
 may be 1 page or a sequence of 2 or 3. I want to keep track of which page
he
 was on when he started and then return to that page at the end of the
 sequence.

 I could easily track that info in the first action step, put it into the
 session scope and then pop back there at the end. But that seems to
 circumvent the entire struts action forwarding mechanism.

 I could grab the Action Mapping Input field, but that presumes that I will
 only invoke my sequence from one place.

 Struts appears to be missing a mechanism for these subroutine-like
 sequences.

 Does anybody have an elegant solution to this problem?

 Jefficus


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



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



RE: struts-config.xml

2003-03-21 Thread Pat Young
Thanks Joseph!  This is exactly the solution we are
looking for.  We can break our struts-config.xml file
into multiple files and do not have the added
complexity of using application modules.

Pat Young


--- Joseph Fifield [EMAIL PROTECTED]
wrote:
 If you are using 1.1, you can simply split the file
 into multiple files,
 and list each comma-delimited in web.xml. IIRC, this
 was new in 1.1b3.
 We have one for every major part of our application,
 and it required no
 additional code changes.
 
 Joe
 
  -Original Message-
  From: Pat Young [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, March 20, 2003 4:23 PM
  To: Struts Users Mailing List
  Subject: RE: struts-config.xml
  
  
  Yes, I have looked at sub-applications and we are
  considering it.  Using sub-applications does have
 some 
  technical considerations that have to be accounted
  for.I realize that we could use a merge
 feature of
  a versioning tool also.  I was curious if anyone
 had
  any other creative ideas around this problem or if
  there was a feature in Struts that I had missed.
  
  Pat Young
  
  
  
  --- Mike Jasnowski [EMAIL PROTECTED] wrote:
   Well, version control considerations aside (for
   issues around merges when
   new struts-config.xml are checked in), Have you
 also
   looked at Struts
   sub-applications? Each can have it's own
   struts-config.xml.
   
   -Original Message-
   From: Pat Young [mailto:[EMAIL PROTECTED]
   Sent: Thursday, March 20, 2003 4:14 PM
   To: [EMAIL PROTECTED]
   Subject: struts-config.xml
   
   
   I am curious as to how others are working with
 the 
  struts-config.xml 
   file.  I am working on a large project with a
 team of 8 other 
   developers.  So far we
   have over 200 actions.  The struts-config.xml is
   becoming a bottle neck, because each developer
 needs
   to update the file at the same with entries into
   this
   file.  Does anyone have any ideas as to how to
 make
   working with this file any easier?  Thanks in
   advance.
   
   Pay Young
   
  
 __
   Do you Yahoo!?
   Yahoo! Platinum - Watch CBS' NCAA March Madness,
   live on your desktop!
   http://platinum.yahoo.com
   
  
 

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

-
   To unsubscribe, e-mail:
 [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
  
  
  __
  Do you Yahoo!?
  Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your 
  desktop! http://platinum.yahoo.com
  
 

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

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


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



Re: [Q] Return-to-page - is there a slick solution?

2003-03-21 Thread Jeff Smith
I was referring to storing the http_referrer and then popping back there.
And obviously this breaks the action forwarding cycle. (And let's not even
talk about users jumping directly to one of my sequence pages from the
outside world. We know THAT never happens. :-)

But you're suggesting storing the action name rather than the URL. I hadn't
considered this. (I'm not sure how to get that information, but I'm sure it
is addressed to death in previous threads, or maybe even in the
documentation. :-)

Thanks, I think that solves my immediate problem. But it sure would be nice
if struts had a built-in mechanism for supporting these kinds of sequences.

Jefficus

- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 21, 2003 9:36 AM
Subject: Re: [Q] Return-to-page - is there a slick solution?


 I could easily track that info in the first action step, put it into the
 session scope and then pop back there at the end. But that seems to
 circumvent the entire struts action forwarding mechanism.

 Not if you store the action name in the session in the first step and have
 the last step call mapping.findForward(storedName);

 David


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



Internationalization and file uploads with multipart/for-data

2003-03-21 Thread Kevin Wang




Hi all,

I am working on internationalization for our web application.By setting %@
page contentType=text/html; charset=UTF-8% and using a filter to set
request's characterset to UTF-8, I am able to get user's input in Chinese
and send it back to the browser correctly.

However I found that whenever I need to upload a file and add the attribute
enctype=multipart/form-data to html:form, I couldn't get user's input
in Chinese correctly. Is it a struts limitation or something I might have
done wrong?

Thanks!

Kevin Wang
IBM Database Technology Institute for e-Business
[EMAIL PROTECTED]
phone: (512)-838-4815 or t/l 678-4815



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



RE: data-source problem

2003-03-21 Thread Eugene Volynskiy
Unfortunately still does not work. Same error.Any other ideas?

-Original Message-
From: Stephen Smithstone [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 11:24 AM
To: Struts Users Mailing List
Subject: Re: data-source problem


Are u using an Action if so try

getDatasource( httpServletRequest , ds1 );

as the Action has a method for getting a datasource  

On Friday 21 March 2003 2:32 pm, Eugene Volynskiy wrote:
 Hi,

 I have a problem with data-source usage in Struts 1.1
 When we had data-source defined in struts-config.xml without key
 attribute is working just fine:
 data-sources
data-source
set-property property=driverClass
 value=com.sybase.jdbc2.jdbc.SybDriver /
set-property property=url
 value=jdbc:sybase:Tds:server:port/db /
set-property property=maxCount value=10 /
set-property property=minCount value=1 /
set-property property=user value=user /
set-property property=password value=pass /
/data-source
 /data-sources
 In this case I established connection to default data-source using
 Action.DATA_SOURCE_KEY:
 ServletContext context = servlet.getServletContext();
   DataSource dataSource = (DataSource)
 context.getAttribute(Action.DATA_SOURCE_KEY);
 Connection conn = dataSource.getConnection();
 But as soon as I add key attribute to datasource:
data-source key=ds1
...
/data-source
 and trying to getAttribute by key:
   ...
   DataSource dataSource = (DataSource)
 context.getAttribute(ds1);
   ...
 I have NullPointer Exception on any DB call I have.
 I would appreciate any advise/suggestion on this.

 Thank you,

 Eugene




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


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

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



RE: [Q] Return-to-page - is there a slick solution?

2003-03-21 Thread Nelson, Laird
 -Original Message-
 From: Jeff Smith [mailto:[EMAIL PROTECTED]
 Thanks, I think that solves my immediate problem. But it sure 
 would be nice
 if struts had a built-in mechanism for supporting these kinds 
 of sequences.

I think I raised the same issue Many Moons Ago, claimed I'd do something
about it, and promptly got laid off from my day job, or wandered off into
the weeds, or something.  Maybe I'll blow the dust off whatever's lying
around in this regard.  I know I've got it around here *somewhere*...
{sounds of glass breaking, large metal objects flying about}

The larger problem, of course, is many numbers of these types of
sequences--what I like to think of as how the web handles dialog boxes.  In
a dialog box metaphor, in a regular desktop application, you're staring at
some screen, a dialog box or wizard pops up, you plow through it, and when
it is dismissed, you're staring at the same screen you were before the whole
thing began.  With the web (leaving aside various stupid javascript and CSS
tricks), you need to somehow store these savepoints--mark points in the
flow that represent the screen you were staring at before the current
sequence/dialog box-ish thing/wizard started and got in front of it.  That
way, when you dismiss the dialog box, or complete the sequence, you are
returned back to the page/screen you were looking at previously.

I, like lots of other people, have usually handled this in a one-off sort of
way, where you know in advance how many of these sequences you're likely to
have, and store something slightly hackish, like the fromUrl or the
originalPage or some such in the session.  It's always struck me as kind
of nasty, but quick, dirty, and usually OK to do in the short term, which is
all they ever give you to work with anyhow.  ;-)

But on several projects now, that hack has ballooned somewhat out of control
as we'd really like to reuse a sequence in several positions in the
webapp--sometimes within another sequence.  So you always want to return to
the last savepoint on the stack, as it were.

Hmm.  Now I'm interested again.  I'll be back with whatever I find.

Cheers,
Laird

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



Re: [Q] Return-to-page - is there a slick solution?

2003-03-21 Thread Jeff Smith
 From: Ian Hunter [EMAIL PROTECTED]
 From the main page, I have the option for each user to ask for
membership
 in any group they don't currently belong in.  They can hit one button that
 forwards to a different action (groupinterest.do), with a forward called
 returnto set to the main page.  That action calls the exact same class
as
 updategroup.do, but that class knows to look for a forward called
returnto
 and either return to it or pass it along by storing it as a session
 variable.  When I do that, I store the entire ActionForward object, not
just
 the page name, so I catch requests to redirect as well as any other
strange
 config details of that forward.

So, if I follow this (and I'm not sure I do - either too much coffee or not
enough :-) you've created an indirection step in your sequence that knows
where to jump back to. I understand the part about tracking the entire
ActionForward so that you pick up all the nuances of the forward params.

Having re-read my posting, I realize I might not have been clear on one of
the problem points - there are dozens of pages from which my user may choose
to start this sequence. Doesn't your solution require a separate
indirection step for each potential starting point - in order to code the
approprite returnto forward?

But you raise a very good point, that David's suggestion (simply caching the
originating page name at sequence start time) doesn't address - capturing
the nuances of the returnto page forward, such as redirect=true/false or
perhaps even URL parameters.

Jefficus


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



  1   2   >