html:link

2003-01-30 Thread modena
Good day, my problem is the following: I use the Eric Fesler's taglib for 
realize dynamic link in this way:
 
 
mytag:IterS colors=#FF,#E5E9F5
 TR bgcolor=%=Color%
 TD align=left%=CorsoStudioId%/TD
 TD align=left%=CorsoStudioName%/TD
 TD align=left%=CorsoStudioFacolta%/TD
 TD align=left%=CorsoStudioCrediti%/TD
 TD align=left
hm:link page=/corsiIA.do
hm:linkparam id=IDCorsoS  name=CorsoStudioId/
hm:linkparam id=IDFacolta  name=IDFacolta/
Vis. Corsi Insegn.
/hm:link
 /TD
 /TR
/mytag:IterS
 
where IDFacolta is an parameter that I get from the request and CorsoStudioId
is a value that I get from my taglibrary (this iterate on a collection that i
pass with the controller). Now I want to know if  is possible use the tag  
html: link of struts with a HashMap, but using an only HashMap and passing 
this between the varied jsp/ action in the request (because I want to pass 
some parameter that it haven't displayed in the url). Before i usying:

%
HashMap mappaold= (HashMap) request.getAttribute ( map);
 // I recover the values from the old HashMap 
%
 
mytag:IterS colors=#FF,#E5E9F5
TR bgcolor=%=Color%
TD align=left%=CorsoStudioId%/TD
TD align=left%=CorsoStudioName%/TD
TD align=left%=CorsoStudioFacolta%/TD
TD align=left%=CorsoStudioCrediti%/TD
TD align=left
%
HashMap mappa = new HashMap();
mappa.putAll(mappaold); 
mappa.put(IDCorsoS,CorsoStudioId);
%  
html:link action=/corsiIA.do name=mappa /
/TD
/TR
/mytag:IterS
 
Here I use more HashMap one for any cycles (es: 100 cycles= 
100HashMap :  ). .I'd like to know if it' s possible to use only one and if
yes how?Or,if this are impossible, how i can pass other parameter from this 
jsp and its controller if i don't put this parameter on the link?
I thank for the help.
p.s. Sorry for my english.
Alessio.

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




? on logic:empty - any hints

2003-01-30 Thread Jörg Maurer
Hi!

I want to test in jsp if user does need to log in, e.g. if user has
already logged in and by back button is calling login.jsp for second
time.

My login.jsp has code :

logic:empty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session

html:form action=/login

/html:form

/logic:empty

logic:notEmpty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session
logic:notEqual name=%= IAppConstants.USER_CONTAINER_KEY%
property=userViewR value=false scope=session
You are already logged in!
/logic:notEqual
/logic:notEmpty

So i test for that bean named UserContainer in session scope, where it
resides when login completes. 

Unfortunatly, if user not logged - it throws 
[ServletException in:/login.jsp] Cannot find bean UserContainer in
scope session'

Reading api docu, I thought logic:empty would test bean for
null(existing or not existing)?

Can any of you help me ?

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




RE: Design Patterns/Examples

2003-01-30 Thread shirishchandra . sakhare
Hi All,
I received quite a few mails asking me for sample code for the code generation 
of DAO layer..I would love to share the same ..But as the code is too tightly 
coupled with some of project classes and directory structure (it has evolved 
over a period of time...) and will not be useful as such,I need to clean it a 
bit first and write some simple ant tasks as well so that the code generation 
can work right out of box for any body.
I plan to do this some this week end or latest by next week.So will send a link 
to the sample code as soon as I am finished with that...

regards,
Shirish

-Original Message-
From: pat.quinn2009 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 4:37 PM
To: Sakhare, Shirishchandra
Subject: RE: Design Patterns/Examples


Hi shirish,

Can you send on your sample code. Cheers for all the detail it really does 
help...

Thanks

Pat






From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Design Patterns/Examples
Date: Wed, 29 Jan 2003 09:48:06 +0100

Hi,
We have used folowing approach..

To access db , we use DAO pattern(refer to Sun's blue prints for more
details).The DAOs return value objects And all calls to the DAO must go 
through
service layer..

So in action classes u get Instance of appropriate service from service 
factory
and call the corresponding method..So all the data base access logic  and
conversion of result set to u r value beans is in service layer.(We have 
used
converter classer for the same..One converter per Value bean...)
Also as service factory is used, u can pretty much change ur servie
implementation with out afecting the struts layer.

So on struts side ,the action clsses are pretty much simple .They just 
delegate
the request.
In action, we get the data from request.And validate the data and if any
validation errors, send back to the user.Each form contains value beans as
thier attributes.So the data from jsps is automatically populated in the 
form
beans and the action just has to cast the form bean to appropiate type and 
call
getBean or beanList as the case may be..

And as u said, the most important part is how we handle conversion of data 
from
primitives to string and vice versa.On form bean, all beans are
StringBeans...So for each ValueBean we have a corresdpondign String 
bean..And
the StringBEan has a method getBean which returns the corresponding 
valueBean
after performing the conversions from String to primitive type.Similarly on
each ValueBEan we have a getStringBEan which performs the conversion from
primitive to String type.And we have a Utility class ParsingUtils which has 
all
the conversion methods...

The most important part is we use CodeGeneration using XSLT to create the 
value
BEans,DAOs,COnverters for value beans and the String beans.And for the code
generation , we use an XML which describes which StroedProc is caled and 
the
field names etc etc.So all this conversion methods (getStringBean and
getBean)are also auto generated.And as we have utility methoda in
PArsingUtils,this is nto at all difficult.So we dont spend any time at all
coding data conversion or data access layer.All we need to do is write jsps 
and
action classes to delegate...

Hope this is not too lengthy or confusing...I know there are some issues 
like
too many Objects are  created(for each bean, a correspondign string bean is
created etc etc..)but we have found a satisfactory performance for our load
tests...

If any body s interrested, i can give sample code for code generation as 
well..

hope this helps,
regards,
Shirish

-Original Message-
From: pat.quinn2009 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 9:21 PM
To: struts-user
Subject: Design Patterns/Examples



Hi Guys,

Any one know of some design patterns or examples i could use with struts. I
want to access a database(Value Objects) allow the user to change the VO
data, perform some business validation and update the database. I’d like
some pointers also when working with form beans and vo object whats the 
best
way to transfer data between them... should i use vo’s as instance variable
instead form bean... if so how will i handle java primitives like double’s
etc..


I'm not looking for the answers to all the above but i'd like to review a
pattern or example which demonstrates the best approach for the above.


I have my own ideas but would like to look over some design
patterns/examples before commencing this work.

Cheers,

Guys






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


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



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



RE: ? on logic:empty - any hints

2003-01-30 Thread Míguel Ángel Mulero Martínez
Use the logic:present

Regards,
Miguel

-Mensaje original-
De: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 30 de enero de 2003 9:32
Para: Struts Users Mailing List (E-mail)
Asunto: ? on logic:empty - any hints

Hi!

I want to test in jsp if user does need to log in, e.g. if user has
already logged in and by back button is calling login.jsp for second
time.

My login.jsp has code :

logic:empty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session

html:form action=/login

/html:form

/logic:empty

logic:notEmpty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session
logic:notEqual name=%= IAppConstants.USER_CONTAINER_KEY%
property=userViewR value=false scope=session
You are already logged in!
/logic:notEqual
/logic:notEmpty

So i test for that bean named UserContainer in session scope, where it
resides when login completes.

Unfortunatly, if user not logged - it throws
[ServletException in:/login.jsp] Cannot find bean UserContainer in
scope session'

Reading api docu, I thought logic:empty would test bean for
null(existing or not existing)?

Can any of you help me ?

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

2003-01-30 Thread shirishchandra . sakhare
Hi,
I am not exactly clear about u r requirement.But we have achieved some thing 
similar in one of my previous project.We had a protal where employees of 
different companies will be logging in and the information about the company 
will be provided in the http header.and we were required to provide company 
specific logo and other things to each user, even though the same web app was 
serving all the requests.
What we had done was that keep the information about users company in 
UserContext object in session and then use the same to dynamicaly generate link 
to company specific logo and conect to company specific database.

But the layout or colours were same for all users.SO about that point I am not 
sure how to do that..

Hope this helps ,
regards,
Shirish

-Original Message-
From: sciz09 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 10:01 PM
To: struts-user
Cc: sciz09
Subject: Tiles Portal


Ive been looking into using struts and tiles for an
upcoming project.  I need to be able to change the
look and feel of the website based on the url the site
was entered from.  For example, if a user enters from
company1.foo.com then show their company colors and
logo. if a user enteres from company2.foo.com then use
different color scheme and logos... and so on.  Is
this something tiles should be used for?  Has anyone
acomplished such a project? Thanks.  Jay.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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]




/ /OREF:CPTF9D2A Session Time-out: Form population fails

2003-01-30 Thread avasey
Hi all

I have a form and Session-scope form bean class that consists of
amongst other fields, a variable length list of data. When the form
bean is created, the list is length zero and when data has been
retrieved and displayed from the backend, the list will contains the
corresponding elements.

The form works great until the User's Session times out and the User
still have the form visible in the browser. When the User submits the
form, the original form is gone so a new instance of the form is
created (I assume) but the population of the form fails as the number
of elements in the list does not match what is currently on the form
being submitted.

The Users always end up sending an error page. Any suggestions please
to solve my messy problem ?

thanks very much
Aisling




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




nested iteration

2003-01-30 Thread Arash Bijanzadeh
Can I use nested iteration on a page?

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




RE: ? on logic:empty - any hints

2003-01-30 Thread Jörg Maurer
THANX SO MUCH? PHUHH? I am really getting a little mad for
getting my project with struts done(more my fault than struts of course
;-) )

Shortly - So what is difference/usage of logic:empty to present(despite
it doesn´t work as described in api).

GREE Jörg

-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:44
To: Struts Users Mailing List
Subject: RE: ? on logic:empty - any hints


Use the logic:present

Regards,
Miguel

-Mensaje original-
De: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 30 de enero de 2003 9:32
Para: Struts Users Mailing List (E-mail)
Asunto: ? on logic:empty - any hints

Hi!

I want to test in jsp if user does need to log in, e.g. if user has
already logged in and by back button is calling login.jsp for second
time.

My login.jsp has code :

logic:empty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session

html:form action=/login

/html:form

/logic:empty

logic:notEmpty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session
logic:notEqual name=%= IAppConstants.USER_CONTAINER_KEY%
property=userViewR value=false scope=session
You are already logged in!
/logic:notEqual
/logic:notEmpty

So i test for that bean named UserContainer in session scope, where it
resides when login completes.

Unfortunatly, if user not logged - it throws
[ServletException in:/login.jsp] Cannot find bean UserContainer in
scope session'

Reading api docu, I thought logic:empty would test bean for
null(existing or not existing)?

Can any of you help me ?

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




Parameters

2003-01-30 Thread modena
Good day..how i can pass other parameter from jsp and its controller if i don't 
put this parameter on the link?(see my previous mail html:link for more 
details)
Example i have:

hm:link page=/corsiIA.do
hm:linkparam id=IDCorsoS  name=CorsoStudioId/
hm:linkparam id=IDFacolta  name=IDFacolta/
 Vis. Corsi Insegn.
/hm:link

It' possible send in the request another parameter that not contained in the 
link(example other than CorsoStudioId and IDFacolta can i pass IDP...?)
I thank for the help.
p.s. Sorry for my english.
Alessio.

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




RE: ? on logic:empty - any hints

2003-01-30 Thread du Plessis, Corneil C
logic:present will work for all types of objects.
logic:empty works on String 

-Original Message-
From: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Sent: 30 January, 2003 10:53
To: Struts Users Mailing List
Subject: RE: ? on logic:empty - any hints


THANX SO MUCH? PHUHH? I am really getting a little mad for
getting my project with struts done(more my fault than struts of course
;-) )

Shortly - So what is difference/usage of logic:empty to present(despite
it doesn´t work as described in api).

GREE Jörg

-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:44
To: Struts Users Mailing List
Subject: RE: ? on logic:empty - any hints


Use the logic:present

Regards,
Miguel

-Mensaje original-
De: Jörg Maurer [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 30 de enero de 2003 9:32
Para: Struts Users Mailing List (E-mail)
Asunto: ? on logic:empty - any hints

Hi!

I want to test in jsp if user does need to log in, e.g. if user has
already logged in and by back button is calling login.jsp for second
time.

My login.jsp has code :

logic:empty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session

html:form action=/login

/html:form

/logic:empty

logic:notEmpty name=%= IAppConstants.USER_CONTAINER_KEY%
scope=session
logic:notEqual name=%= IAppConstants.USER_CONTAINER_KEY%
property=userViewR value=false scope=session
You are already logged in!
/logic:notEqual
/logic:notEmpty

So i test for that bean named UserContainer in session scope, where it
resides when login completes.

Unfortunatly, if user not logged - it throws
[ServletException in:/login.jsp] Cannot find bean UserContainer in
scope session'

Reading api docu, I thought logic:empty would test bean for
null(existing or not existing)?

Can any of you help me ?

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

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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




/ /OREF:CPT17EA9 RE: Tiles Portal

2003-01-30 Thread avasey

We had a small site that had changeable images, colours, page
heading, etc depending upon which URL you logged into the site.

We did it by providing different Resource Bundles/Properties files
for each of the flavours of the site, containing links to images,
different table row colours, whatever you need and using the same
basic pages that just changed depending upon the Resource Bundle
used.

Using the URL/Remote Server that the User was using to access the
site, we set the corresponding Resource Bundle in the Session.This
was done using the Request Processor processPreprocess() method.



   
   
  shirishchandra.sakh  
   
  [EMAIL PROTECTED] To:  
[EMAIL PROTECTED] 
  cc:  
   
  30/01/2003 10:47 AM Subject: RE: Tiles Portal
   
  Please respond to
   
  struts-user  
   
   
   
   
   
   
   
   
   
   
   




Hi,
I am not exactly clear about u r requirement.But we have achieved
some thing
similar in one of my previous project.We had a protal where employees
of
different companies will be logging in and the information about the
company
will be provided in the http header.and we were required to provide
company
specific logo and other things to each user, even though the same web
app was
serving all the requests.
What we had done was that keep the information about users company in

UserContext object in session and then use the same to dynamicaly
generate link
to company specific logo and conect to company specific database.

But the layout or colours were same for all users.SO about that point
I am not
sure how to do that..

Hope this helps ,
regards,
Shirish

-Original Message-
From: sciz09 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 10:01 PM
To: struts-user
Cc: sciz09
Subject: Tiles Portal


Ive been looking into using struts and tiles for an
upcoming project.  I need to be able to change the
look and feel of the website based on the url the site
was entered from.  For example, if a user enters from
company1.foo.com then show their company colors and
logo. if a user enteres from company2.foo.com then use
different color scheme and logos... and so on.  Is
this something tiles should be used for?  Has anyone
acomplished such a project? Thanks.  Jay.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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: / /OREF:CPTF9D2A Session Time-out: Form population fails

2003-01-30 Thread Jörg Maurer
Not sure/not tested - hint level :

if you can use the TRANSACTION token that is activated in form + having
a hidden field in form that sets/get corresponding token,
you might be able to test for that - if new instance of the form is
created, token does not match - route to other command ?!?!?

Please report on this!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:48
To: [EMAIL PROTECTED]
Subject: / /OREF:CPTF9D2A Session Time-out: Form population fails


Hi all

I have a form and Session-scope form bean class that consists of
amongst other fields, a variable length list of data. When the form
bean is created, the list is length zero and when data has been
retrieved and displayed from the backend, the list will contains the
corresponding elements.

The form works great until the User's Session times out and the User
still have the form visible in the browser. When the User submits the
form, the original form is gone so a new instance of the form is
created (I assume) but the population of the form fails as the number
of elements in the list does not match what is currently on the form
being submitted.

The Users always end up sending an error page. Any suggestions please
to solve my messy problem ?

thanks very much
Aisling




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




?OffTopic:copyright:copying text from books for struts-user mail arch

2003-01-30 Thread Jörg Maurer
Yo!

How is policy/law in that and other use groups - I want to copy a
passage from e.g. Husted´s Struts in action to reply/or ask to a
struts user. 

Am i breaking some laws/interests with that? Is there a formal note i
have to include when posting. Is it relative to amount of posting -
number of lines e.g.?

Which law does apply - of my country, the server/company hosting it or
international law?

THANX Jörg

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




/ /OREF:CPT36578 Re: Session Time-out: Form population fails

2003-01-30 Thread avasey

Thanks for your reply. Please excuse my ignorance but the transaction
token in the form that you mentioned in your mail, what exactly is
this ?



   

  joerg.maurer@ucp 

  morgen.com   To:  [EMAIL PROTECTED] 

   cc: 

  30/01/2003 11:12 Subject: RE: / /OREF:CPTF9D2A Session 
Time-out: Form population fails   
  AM   

  Please respond   

  to struts-user   

   

   

   

   

   





Not sure/not tested - hint level :

if you can use the TRANSACTION token that is activated in form +
having
a hidden field in form that sets/get corresponding token,
you might be able to test for that - if new instance of the form is
created, token does not match - route to other command ?!?!?

Please report on this!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:48
To: [EMAIL PROTECTED]
Subject: / /OREF:CPTF9D2A Session Time-out: Form population fails


Hi all

I have a form and Session-scope form bean class that consists of
amongst other fields, a variable length list of data. When the form
bean is created, the list is length zero and when data has been
retrieved and displayed from the backend, the list will contains the
corresponding elements.

The form works great until the User's Session times out and the User
still have the form visible in the browser. When the User submits the
form, the original form is gone so a new instance of the form is
created (I assume) but the population of the form fails as the number
of elements in the list does not match what is currently on the form
being submitted.

The Users always end up sending an error page. Any suggestions please
to solve my messy problem ?

thanks very much
Aisling




-
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: Help!! Getting NT User

2003-01-30 Thread Max Cooper
I think some app servers (WebLogic, others?) allow you to use Windows
network security (domain controller might be the right term?) for web app
security. The users will need to login to your app specfically, but you
might then be able to get some profile info by calling
request.getUserPrincipal() after that.

Basically, you setup the app to use standard container-managed security and
then configure a Realm on the app server that contacts the Windows doamin
controller for security information. When a user authenticates, the realm
creates a Principal object for the user, and the app server makes that
object available to the web app via request.getUserPrincipal(). The spec
just says it has to be a Principal, but it can be a subclass that contains
whatever information the realm implementor/configurator wants it to. I don't
know if you can just configure a few things to easily set this up, but this
is one way in which the functionality you desire could be acheived within
the architectural bounds defined by the servlet spec. The software to do
this may or may not exist in as complete a form as described here. You can
always write your own Realm to do whatever you want if you find that it
hasn't been done to your satisfaction already.

It seems like there would be security problems if this was acheived without
the app server (or at least your app) being connected to the Windows network
security system. I certainly hope my browser is not sending user profile
information to any web site/app that asks for it!

-Max

- Original Message -
From: Ramu, Manjukumar [PRDUS] [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 1:14 PM
Subject: Help!! Getting NT User


 Hello,
 Is there any easy way to get client's NT User from JSP/Servlet
 without using JAAS? My requirement: Once the user access the application
 URL, I want to get the use profile based on NT User name(Assuming that the
 user already authenticated by the NT domain).

 Appreciate your help!!

 Thanks,
 Manju




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




problem parsing actions in struts-config.xml (java.lang.IllegalArgumentException: objectis not an instance of declaring class)

2003-01-30 Thread Brian . O'Hare
Hi,

I am encountering a problem java.lang.IllegalArgumentException: object is
not an instance of declaring class  . It appears that the digester has
problems parsing ANY action that is in the struts-config.xml.

I had this problem before, when I first deployed the struts-example.war.
At the time, I had deployed it on Tomcat 1.1.17.
I eliminated my problem by going back a version of Tomcat to ver. 1.0.6.  I
don't know why that would be different, but although I was curious, I
didn't care too much as I was keen to get started developing using Struts.
However, I am now finding the same problem with my own application, which
was previously working fine.  As a test, I redeployed the
struts-example.war and the problem has again manifested itself.

It has stopped my  work progress and is frustrating me no end.
Surely, some of you have encountered this before ?

I have included below, the stacttrace of the struts-example , but my own
application has the same problem.

I hope someone can shed some light on this,
Brian

register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:C:/Program Files/Apache Tomcat 4.0
/webapps/struts-example/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
'jar:file:C:/Program Files/Apache Tomcat 4.0/webapps/
struts-example/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'jar:file:C:/Program Files/Apache Tomcat 4.0/webapps/
struts-example/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/
struts-config_1_0.dtd')
 Resolving to alternate DTD 'jar:file:C:/Program Files/Apache Tomcat
4.0/webapps/struts-example/WEB-INF/lib/struts.jar!/
org/apache/struts/resources/struts-config_1_0.dtd'
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[logonForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[registrationForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call
org.apache.struts.action.ActionServlet.addFormBean(ActionFormBean[subscriptionForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionForward
Set org.apache.struts.action.ActionForward properties
Call
org.apache.struts.action.ActionServlet.addForward(ActionForward[logoff])
Pop org.apache.struts.action.ActionForward
New org.apache.struts.action.ActionForward
Set org.apache.struts.action.ActionForward properties
Call
org.apache.struts.action.ActionServlet.addForward(ActionForward[logon])
Pop org.apache.struts.action.ActionForward
New org.apache.struts.action.ActionForward
Set org.apache.struts.action.ActionForward properties
Call
org.apache.struts.action.ActionServlet.addForward(ActionForward[success])
Pop org.apache.struts.action.ActionForward
New org.apache.struts.action.ActionMapping
Set org.apache.struts.action.ActionMapping properties
Begin event threw exception
java.lang.IllegalArgumentException: object is not an instance of declaring
class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988)
at
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904)
at
org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
at
org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120)
at
org.apache.struts.digester.Digester.startElement(Digester.java:528)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:393)
at
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:571)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:796)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:75
2)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentS
cannerImpl.java:1454)
at

RE: Help!! Getting NT User

2003-01-30 Thread Murthy D
Hi Manju,
Which App Server you are using?

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:56 PM
To: Struts Users Mailing List
Subject: Re: Help!! Getting NT User


I think some app servers (WebLogic, others?) allow you to use Windows
network security (domain controller might be the right term?) for web app
security. The users will need to login to your app specfically, but you
might then be able to get some profile info by calling
request.getUserPrincipal() after that.

Basically, you setup the app to use standard container-managed security and
then configure a Realm on the app server that contacts the Windows doamin
controller for security information. When a user authenticates, the realm
creates a Principal object for the user, and the app server makes that
object available to the web app via request.getUserPrincipal(). The spec
just says it has to be a Principal, but it can be a subclass that contains
whatever information the realm implementor/configurator wants it to. I don't
know if you can just configure a few things to easily set this up, but this
is one way in which the functionality you desire could be acheived within
the architectural bounds defined by the servlet spec. The software to do
this may or may not exist in as complete a form as described here. You can
always write your own Realm to do whatever you want if you find that it
hasn't been done to your satisfaction already.

It seems like there would be security problems if this was acheived without
the app server (or at least your app) being connected to the Windows network
security system. I certainly hope my browser is not sending user profile
information to any web site/app that asks for it!

-Max

- Original Message -
From: Ramu, Manjukumar [PRDUS] [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 1:14 PM
Subject: Help!! Getting NT User


 Hello,
 Is there any easy way to get client's NT User from JSP/Servlet
 without using JAAS? My requirement: Once the user access the application
 URL, I want to get the use profile based on NT User name(Assuming that the
 user already authenticated by the NT domain).

 Appreciate your help!!

 Thanks,
 Manju




-
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: / /OREF:CPT36578 Re: Session Time-out: Form population fails

2003-01-30 Thread Jörg Maurer
I cite now a passage of book from Mr. Husted et al., Struts in action,
Manning, copyrighted .. I hope i not get into trouble, but help is
more valuable for me than strict law(despite i bought the book and not
going to sell following information).Am i disclaiming in correct
way?!?!?!

I will see...

CITING BEGIN

Using transactional tokens
Duplicate submissions can often be a problem for web applications.
Struts supports
a strategy to prevent duplication submissions using a synchronizing
token.
Using synchronizing tokens is automatic for the Struts html:form tag.
If it sees
that tokens are being used, it automatically includes the appropriate
hidden field.
On the Action side, you can enable transactional tokens by calling
saveToken(request);
anywhere in the Action's perform or execute method. On the return trip,
to have
an Action check if a token is still good, call
boolean valid = isTokenValid(request);
If this method returns false, branch to an error page. If it returns
true, call
resetToken(request);
While participating in a transaction most often occurs with forms, there
are also
applications for hyperlinks and other assets. Accordingly, the Struts
html:link
and html:rewrite tags provide optional support for transactions. To
include the
appropriate token in the link, set the transaction property to true. A
tag like this:
html:link forward=addItem paramName=row paramProperty=itemId
paramId=id transaction=true/
will then generate a hyperlink like this:
a href=/gavel/do/addItem?
id=3017amp;org.apache.struts.taglib.html.TOKEN=72da1d3fdede66c

CITING END


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 10:23
To: [EMAIL PROTECTED]
Subject: / /OREF:CPT36578 Re: Session Time-out: Form population fails



Thanks for your reply. Please excuse my ignorance but the transaction
token in the form that you mentioned in your mail, what exactly is
this ?



 

  joerg.maurer@ucp

  morgen.com   To:
[EMAIL PROTECTED]

   cc:

  30/01/2003 11:12 Subject: RE: /
/OREF:CPTF9D2A Session Time-out: Form population fails

  AM

  Please respond

  to struts-user

 

 

 

 

 





Not sure/not tested - hint level :

if you can use the TRANSACTION token that is activated in form +
having
a hidden field in form that sets/get corresponding token,
you might be able to test for that - if new instance of the form is
created, token does not match - route to other command ?!?!?

Please report on this!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 09:48
To: [EMAIL PROTECTED]
Subject: / /OREF:CPTF9D2A Session Time-out: Form population fails


Hi all

I have a form and Session-scope form bean class that consists of
amongst other fields, a variable length list of data. When the form
bean is created, the list is length zero and when data has been
retrieved and displayed from the backend, the list will contains the
corresponding elements.

The form works great until the User's Session times out and the User
still have the form visible in the browser. When the User submits the
form, the original form is gone so a new instance of the form is
created (I assume) but the population of the form fails as the number
of elements in the list does not match what is currently on the form
being submitted.

The Users always end up sending an error page. Any suggestions please
to solve my messy problem ?

thanks very much
Aisling




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




Parameter and html:link

2003-01-30 Thread modena
Good day, my problem is the following: I use the Eric Fesler's taglib for 
realize dynamic link in this way:
 
 
mytag:IterS colors=#FF,#E5E9F5
 TR bgcolor=%=Color%
 TD align=left%=CorsoStudioId%/TD
 TD align=left%=CorsoStudioName%/TD
 TD align=left%=CorsoStudioFacolta%/TD
 TD align=left%=CorsoStudioCrediti%/TD
 TD align=left
 hm:link page=/corsiIA.do
 hm:linkparam id=IDCorsoS  name=CorsoStudioId/
 hm:linkparam id=IDFacolta  name=IDFacolta/
 Vis. Corsi Insegn.
 /hm:link
 /TD
 /TR
/mytag:IterS
 
where IDFacolta is an parameter that I get from the request and CorsoStudioId
is a value that I get from my taglibrary (this iterate on a collection that i
pass with the controller). Now I want to know if  is possible use the tag  
html: link of struts with a HashMap, but using an only HashMap and passing 
this between the varied jsp/ action in the request (because I want to pass 
some parameter that it haven't displayed in the url). Before i usying:

%
HashMap mappaold= (HashMap) request.getAttribute ( map);
 // I recover the values from the old HashMap 
%
 
mytag:IterS colors=#FF,#E5E9F5
 TR bgcolor=%=Color%
 TD align=left%=CorsoStudioId%/TD
 TD align=left%=CorsoStudioName%/TD
 TD align=left%=CorsoStudioFacolta%/TD
 TD align=left%=CorsoStudioCrediti%/TD
 TD align=left
 %
 HashMap mappa = new HashMap();
 mappa.putAll(mappaold);
 mappa.put(IDCorsoS,CorsoStudioId);
 %
 html:link action=/corsiIA.do name=mappa /
 /TD
 /TR
/mytag:IterS
 
Here I use more HashMap one for any cycles (es: 100 cycles= 
100HashMap :  ). .I'd like to know if it' s possible to use only one and if
yes how?Or,if this are impossible, how i can pass other parameter from this 
jsp and its controller if i don't put this parameter on the link?
I thank for the help.
p.s. Sorry for my english.
Alessio.



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




RE: Passing parameter in a pop up window

2003-01-30 Thread Ritesh Singhal
I want to
 have a link like
 this:
 
 html:link href= paramId=id
 paramName=customerDetails
 paramProperty=customerId

onClick=MM_openBrWindow('AgreementList.do','popup','scrollbars=yes,widt
 h=1000,height=500,left=10,top=100')/html:link
 
 Where my javascript function is:
 
 function MM_openBrWindow(theURL,winName,features) {
 //v2.0
   window.open(theURL,winName,features);
 }
 
 Now the problem is how should I pass the parameter
 id in the popup
 window. Also on clicking on the link, parent window
 should not get
 refreshed.
 
 Regards
 Ritesh

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




/ /OREF:CPT53E85 Re: Session Time-out: Form population fails

2003-01-30 Thread avasey

Hi again. Thank you for the information/citing - very interesting and
something I will investigate further.

Maybe I am overlooking something here but I assume my problem at the
moment is I will never get to my Action to check any token after the
User submits the form.
This is because the actual population of the form bean fails as the
new Session's form bean instance does not match what is on the page.
I suppose I need some sort of check on the page before the form is
submitted and the form bean population occurs.

Or I am totally going about this the wrong way ?

thanks once again.



   

  joerg.maurer@ucp 

  morgen.com   To:  [EMAIL PROTECTED] 

   cc: 

  30/01/2003 11:35 Subject: RE: / /OREF:CPT36578 Re: 
Session Time-out: Form population fails   
  AM   

  Please respond   

  to struts-user   

   

   

   

   

   





I cite now a passage of book from Mr. Husted et al., Struts in
action,
Manning, copyrighted .. I hope i not get into trouble, but help
is
more valuable for me than strict law(despite i bought the book and
not
going to sell following information).Am i disclaiming in correct
way?!?!?!

I will see...

CITING BEGIN

Using transactional tokens
Duplicate submissions can often be a problem for web applications.
Struts supports
a strategy to prevent duplication submissions using a synchronizing
token.
Using synchronizing tokens is automatic for the Struts html:form
tag.
If it sees
that tokens are being used, it automatically includes the appropriate
hidden field.
On the Action side, you can enable transactional tokens by calling
saveToken(request);
anywhere in the Action's perform or execute method. On the return
trip,
to have
an Action check if a token is still good, call
boolean valid = isTokenValid(request);
If this method returns false, branch to an error page. If it returns
true, call
resetToken(request);
While participating in a transaction most often occurs with forms,
there
are also
applications for hyperlinks and other assets. Accordingly, the Struts
html:link
and html:rewrite tags provide optional support for transactions. To
include the
appropriate token in the link, set the transaction property to true.
A
tag like this:
html:link forward=addItem paramName=row paramProperty=itemId
paramId=id transaction=true/
will then generate a hyperlink like this:
a href=/gavel/do/addItem?
id=3017amp;org.apache.struts.taglib.html.TOKEN=72da1d3fdede66c

CITING END


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 10:23
To: [EMAIL PROTECTED]
Subject: / /OREF:CPT36578 Re: Session Time-out: Form population fails



Thanks for your reply. Please excuse my ignorance but the transaction
token in the form that you mentioned in your mail, what exactly is
this ?





  joerg.maurer@ucp

  morgen.com   To:
[EMAIL PROTECTED]

   cc:

  30/01/2003 11:12 Subject: RE: /
/OREF:CPTF9D2A Session Time-out: Form population fails

  AM

  Please respond

  to struts-user















Not sure/not tested - hint level :

if you can use the TRANSACTION token that is activated in form +
having
a hidden field in form that sets/get corresponding token,
you might be able to test for that - if new instance of the form is
created, token does not match - route to other command 

Re: [Friday] Obscure (?) Computer Languages

2003-01-30 Thread alexj
Eiffel is still the best language for me 

- Original Message - 
From: Joel Rees [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 6:20 AM
Subject: [Friday] Obscure (?) Computer Languages


  Hmmm, ok, let's dig into the memory here for the icky stuff:
  
  Forth
 
 Oh, come on. FORTH is the best language there is. Except for the library.
 It needs a better library. ;P
 
  POP-11/POPLOG
 
 (mutters under the breath)
 
  Smalltalk
 
 Don't really know enough about it to say much, but I am under the
 impression that Java owes a lot of its existence to Smalltalk (and to
 FORTH, too, come to think of it).
 
  RPG/400
 
 Now, now, just because you have to play tricks with the declarations to
 get any sort of procedural stuff happening, there's no reason to
 disparage it. It's still a great little way to describe a (certain
 kind of) report. :-/
 
  There are a ton of others, but those are the weirdest.
 
 Interesting that your top four are all what we used to call fourth
 generation languages, and are direct contributors to the
 object-oriented approach to computer languages.
 
 -- 
 Joel Rees [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: [Friday] Obscure (?) Computer Languages

2003-01-30 Thread Nick Sharples

alexj writes:
  Eiffel is still the best language for me 

At Uni we used a functional language called ML and I used to think
that was the coolest language ever.

..Nick

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




log4j problem

2003-01-30 Thread De Cesco, Jonathan
Hi all,
I was using Log4J with struts1.0 with no problem. When I updated to
struts1.1b3, messages from Struts like RequestProcessor Processing a POST
request for path url are logged using my webapp log4j configuration file.
The problem is I don't want struts to log these messages but it keeps using
my log4J configuration once it finds it.
anyone 

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




RE: / /OREF:CPT53E85 Re: Session Time-out: Form population fails

2003-01-30 Thread Jörg Maurer
Last resort from me - Do/can you use/refactor to indexed property like,
where upper bound = index is tested in setter and indexedProp is set
higher/lower ?!?!?!

1. indexed property 

/** Holds value of property indexedProp. */
private int[] indexedProp = int[2000];

  /** Indexed getter for property indexedProp.
   * @param index Index of the property.
   * @return Value of the property at CODEindex/CODE.
   *
   */
  public int getIndexedProp(int index) {
  return this.indexedProp[index];
  }
  
  /** Getter for property indexedProp.
   * @return Value of property indexedProp.
   *
   */
  public int[] getIndexedProp() {
  return this.indexedProp;
  }
  
  /** Indexed setter for property indexedProp.
   * @param index Index of the property.
   * @param indexedProp New value of the property at CODEindex/CODE.
   *
   */
  public void setIndexedProp(int index, int indexedProp) {
  this.indexedProp[index] = indexedProp;
  }
  
  /** Setter for property indexedProp.
   * @param indexedProp New value of property indexedProp.
   *
   */
  public void setIndexedProp(int[] indexedProp) {
  this.indexedProp = indexedProp;
  }

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 10:47
To: [EMAIL PROTECTED]
Subject: / /OREF:CPT53E85 Re: Session Time-out: Form population fails



Hi again. Thank you for the information/citing - very interesting and
something I will investigate further.

Maybe I am overlooking something here but I assume my problem at the
moment is I will never get to my Action to check any token after the
User submits the form.
This is because the actual population of the form bean fails as the
new Session's form bean instance does not match what is on the page.
I suppose I need some sort of check on the page before the form is
submitted and the form bean population occurs.

Or I am totally going about this the wrong way ?

thanks once again.



 

  joerg.maurer@ucp

  morgen.com   To:
[EMAIL PROTECTED]

   cc:

  30/01/2003 11:35 Subject: RE: /
/OREF:CPT36578 Re: Session Time-out: Form population fails

  AM

  Please respond

  to struts-user

 

 

 

 

 





I cite now a passage of book from Mr. Husted et al., Struts in
action,
Manning, copyrighted .. I hope i not get into trouble, but help
is
more valuable for me than strict law(despite i bought the book and
not
going to sell following information).Am i disclaiming in correct
way?!?!?!

I will see...

CITING BEGIN

Using transactional tokens
Duplicate submissions can often be a problem for web applications.
Struts supports
a strategy to prevent duplication submissions using a synchronizing
token.
Using synchronizing tokens is automatic for the Struts html:form
tag.
If it sees
that tokens are being used, it automatically includes the appropriate
hidden field.
On the Action side, you can enable transactional tokens by calling
saveToken(request);
anywhere in the Action's perform or execute method. On the return
trip,
to have
an Action check if a token is still good, call
boolean valid = isTokenValid(request);
If this method returns false, branch to an error page. If it returns
true, call
resetToken(request);
While participating in a transaction most often occurs with forms,
there
are also
applications for hyperlinks and other assets. Accordingly, the Struts
html:link
and html:rewrite tags provide optional support for transactions. To
include the
appropriate token in the link, set the transaction property to true.
A
tag like this:
html:link forward=addItem paramName=row paramProperty=itemId
paramId=id transaction=true/
will then generate a hyperlink like this:
a href=/gavel/do/addItem?
id=3017amp;org.apache.struts.taglib.html.TOKEN=72da1d3fdede66c

CITING END


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 10:23
To: [EMAIL PROTECTED]
Subject: / /OREF:CPT36578 Re: Session Time-out: Form population fails



Thanks for your reply. Please excuse my ignorance but the transaction
token in the form that you mentioned in your mail, what exactly is
this ?





  joerg.maurer@ucp

  morgen.com   To:
[EMAIL PROTECTED]

   cc:

  30/01/2003 11:12 Subject: RE: /
/OREF:CPTF9D2A Session Time-out: Form population fails

  AM

  Please respond

  to struts-user















Not sure/not tested - hint level :

if you can use the TRANSACTION token that is activated in form +
having
a hidden field in form that sets/get corresponding token,
you might be able to test for that - if new instance of the form is
created, token does not match - route to 

/ /OREF:CPT84D9E Re: Session Time-out: Form population fails

2003-01-30 Thread avasey

Hi again

Actually I am using an ArrayList to hold my list of objects so I
don't really have setter/getter methods that deal with arrays and
indexes.

Thanks very much for your suggestions anyway. I think I will look at
ways of stopping the use of old forms with new Sessions.

I suppose it is just a bad combination of dynamic length form fields
and Session-scope on a page that everyone seems to like to leave open
in their browsers and then try and reuse (-:




   

  joerg.maurer@ucp 

  morgen.com   To:  [EMAIL PROTECTED] 

   cc: 

  30/01/2003 12:11 Subject: RE: / /OREF:CPT53E85 Re: 
Session Time-out: Form population fails   
  PM   

  Please respond   

  to struts-user   

   

   

   

   

   





Last resort from me - Do/can you use/refactor to indexed property
like,
where upper bound = index is tested in setter and indexedProp is set
higher/lower ?!?!?!

1. indexed property

/** Holds value of property indexedProp. */
private int[] indexedProp = int[2000];

  /** Indexed getter for property indexedProp.
   * @param index Index of the property.
   * @return Value of the property at CODEindex/CODE.
   *
   */
  public int getIndexedProp(int index) {
  return this.indexedProp[index];
  }

  /** Getter for property indexedProp.
   * @return Value of property indexedProp.
   *
   */
  public int[] getIndexedProp() {
  return this.indexedProp;
  }

  /** Indexed setter for property indexedProp.
   * @param index Index of the property.
   * @param indexedProp New value of the property at
CODEindex/CODE.
   *
   */
  public void setIndexedProp(int index, int indexedProp) {
  this.indexedProp[index] = indexedProp;
  }

  /** Setter for property indexedProp.
   * @param indexedProp New value of property indexedProp.
   *
   */
  public void setIndexedProp(int[] indexedProp) {
  this.indexedProp = indexedProp;
  }

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 30. Jänner 2003 10:47
To: [EMAIL PROTECTED]
Subject: / /OREF:CPT53E85 Re: Session Time-out: Form population fails



Hi again. Thank you for the information/citing - very interesting and
something I will investigate further.

Maybe I am overlooking something here but I assume my problem at the
moment is I will never get to my Action to check any token after the
User submits the form.
This is because the actual population of the form bean fails as the
new Session's form bean instance does not match what is on the page.
I suppose I need some sort of check on the page before the form is
submitted and the form bean population occurs.

Or I am totally going about this the wrong way ?

thanks once again.





  joerg.maurer@ucp

  morgen.com   To:
[EMAIL PROTECTED]

   cc:

  30/01/2003 11:35 Subject: RE: /
/OREF:CPT36578 Re: Session Time-out: Form population fails

  AM

  Please respond

  to struts-user















I cite now a passage of book from Mr. Husted et al., Struts in
action,
Manning, copyrighted .. I hope i not get into trouble, but help
is
more valuable for me than strict law(despite i bought the book and
not
going to sell following information).Am i disclaiming in correct
way?!?!?!

I will see...

CITING BEGIN

Using transactional tokens
Duplicate submissions can often be a problem for 

design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-30 Thread shirishchandra . sakhare
Hi All,
I have a very basic design question about struts action design..We have been 
developing a fairly large and complex web application involving struts and 
struts has proved to be a great help :-))  But after reading the book by Mr. 
Husted et al., Struts in action,I have some basic questions about the way we 
have done our project and the way it is described in the book.
TO quote Mr. Husted...(Section 8.4 Chaining Actions .Note at the end of 
Section8.4.1. Starting fresh..)

Speaking  as a Software architect,chainning actions in any way is not something 
that I like to do.Ideally you should be able to call the business objects from 
any Action where they are needed.Wanting to forward control to another action 
implies that the Business  object my be too tightly coupled.Or it may imply 
that the actions should descend from a common super class with hotspots that 
sub classes should overrideThere are occasions when chainning actions makes 
sense-for example if the other action is being used to render the response in 
lieu of a presentation page.But valid use cases are rare.The best general 
practice is to stay with one-request ,one action regimen.
*


And also after searching the  archives for action chainnign , I found another 
reply from Mr. Husted which says..

Wanting to chain actions is a warning sign that there is too much business 
logic is creeping into the Actions and they are becoming the API, rather than 
an adaptor for the API. (Struts should not *be* your application, it should be 
a gateway *to* your application.)

*


I have a high regard for Mr. Ted Husted and that's why I would like to clarify 
some of my doubts about the design strategy he has advocated in his book from 
the exüperienced users of this list and Mr Husted himself if possible.
I dont understand what is the disadvantage in Chainning actions?HAs it some 
thing to do with performance?I totally agree that the business objects shuld 
not be tightly coupled with actions and should be callable from any where .But 
even after following this principal, most of the time you will end up chainning 
actions if u really want reusable actions.Example can be loging process of a 
user.So the request for loging form a user can result in 2 actions being 
called.1:CheckLogin(which checks user credentials) It forwards control to 
2:getUserAccountList which gets the list of accounts for the user. 

So now the getUserAccountList  action I can call from any where else by passing 
right params and it becomes reusable.But if i had done all of this(check log in 
and then get accunts)in login action, i need to write another action to get 
account for another page.And I am using calls to different 
services(LoginService and AccountService..)which are still reusable from any 
action here..
So the chainning of actions this way has perfectly solved all the 
problems...And instead of this being a rare iuse case, most of the time , this 
is the pattern u will have for any use case.(Update some thing and get some 
data to screen...)So what is the advantage of following  one-request ,one 
action regimen?

Also I didnt understand what he means by (Struts should not *be* your 
application, it should be a gateway *to* your application.)As I see it,the 
service layer handles the business logic .But Ultimately the actions end up 
delegating the requests to service and so doing error handling as well as 
handling flow control(Some thing like if this error, go to page 1, for that 
request go to page 2..)So they are very much part of the application...Infact 
they handle the application flow.Is this right or Am i missing some thing very 
bascic here?
This is important as We have the next phase of development starting next week 
and we are in the process of evaluating our architecture and finding any 
flaws..So any help will be highly appreciated...

Sory for being tooo verbose.But i couldn't have exlained it any other way.

regards,
Shirish

Shirish Sakhare
Application Developer
(CEFS PROJECT)
(CEFS) Corporate Employee Financial Services

UBS AG
Stauffacherstrasse 41
P.O. Box, CH-8004 Zürich
Tel: +41-1-235 56 31
Fax: +41-1-235 54 21
Personal Mail Id:[EMAIL PROTECTED]
 


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




RE: Auto execution of an action on page display

2003-01-30 Thread Quentin.Cope
Small point but I think the restrictions on welcome-file depends on the app server / 
web container that you are using. I've noticed this restriction with jboss/jetty 
myself but 

welcome-file-list
welcome-filewelcome.do/welcome-file
/welcome-file-list

works with exteNd. Not sure if I am getting away with it on this platform or its a bug 
in other platforms.

Quentin

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: 29 January 2003 18:48
To: Struts Users Mailing List
Subject: RE: Auto execution of an action on page display


The welcome page of a web application has to be a physical file, and
not the path to a Struts action, so the common convention for making
sure every real page is fronted by an action is to have the index.jsp
welcome page immediately do a forward (and nothing else) to a main
action.

-Original Message-
From: Howard Roark [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 29, 2003 10:28 AM
To: [EMAIL PROTECTED]
Subject: Auto execution of an action on page display

I'm a newbie to Struts, and would like to know if its
possible for Struts to automatically execute an Action
upon the display of the initial page?  I would like to
avoid having the user click on something to initiate
certain user-specific house-keeping tasks, if
possible.  TIA.

HR

P.S. Initiating this action as part of the Login
action
is not possible, since this application does not
require
the use of a login process.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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]




Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Sowbhagya Valli Suryadevara
HI,

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?

Valli


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




RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Quentin.Cope
Valli

I've done something similar before in an intranet application, outside of struts. I 
had a page that displayed Please Wait and in that page I used 

meta HTTP-EQUIV=Refresh 

specifying the URL of the servlet that took a long time to run. I used a low refresh 
time (0 perhaps) and it seemed to work ok. Check out the meta element in some HTML 
reference. However you are of course wasting time here with all these requests. It 
worked ok on an intranet for me, not sure about an internet app. Perhaps there's a 
better way. Still there's no reason why you couldn't use this technique with struts.

Quentin

-Original Message-
From: Sowbhagya Valli Suryadevara
[mailto:[EMAIL PROTECTED]]
Sent: 30 January 2003 10:57
To: 'Struts Users Mailing List'
Subject: Automatic refresh - IS THIS POSSIBLE? 


HI,

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?

Valli


-
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: get data to Collection

2003-01-30 Thread Kafka
Hello,
 1. write set and get methods in Form bean for a Collection Flag.
I have this methods

 2. In the jsp write the following code
 logic:equal name=NameOfForm property=collectionFlag value=true
 on top of the iterate tag.
I don't understant this code. What does it do?
I used this code, but ineffectibely:

 logic:iterate id=daiktas name=access scope=session indexId=testid

logic:equal name=daiktas property=read value=true

  html:multibox property=read name = daiktas 
bean:write name = daiktas  property=read/
/html:multibox
bean:write  name = daiktas property=read/
bean:write name=testid/
/logic:equal 
 /logic:iterate
Must I set inside Collection or something...?

- Original Message -
From: neelima mahesh [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 12:21 AM
Subject: Re: get data to Collection

 Hi,
  Please try this.
  When u set collection to Form Bean in Action Bean, u can determine the
size of the collection. Depending on the collection size u can set a Flag
value true/false..
 1. write set and get methods in Form bean for a Collection Flag.
 2. In the jsp write the following code
 logic:equal name=NameOfForm property=collectionFlag value=true
 on top of the iterate tag.
 Which solves ur problem
 Thanks
 Mahesh!

  Kafka [EMAIL PROTECTED] wrote:Hello,
 I think, this problem many times was solve here,
 but I don't find particular answer.
 How I can use Form class, if I don't know how many
 are rows? Must I use Collection? Maybe I can see example,
 because I can not find decision.

 Now my jsp:










 Form.class
 private Collection read = new ArrayList();
 //skip

 public void setRead(Collection read)
 {
 this.read.addAll(read);
 }

 public Collection getRead()
 {
 return this.read ;
 }
 public void reset(ActionMapping mapping, HttpServletRequest request) {
 //skip others params
 read.clear();
 }

 but I get error:
 description The server encountered an internal error (Internal Server
Error)
 that prevented it from fulfilling this request.
 exception
 javax.servlet.ServletException: BeanUtils.populate
 at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:988)




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





 -
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now



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




RES: Accessing JSP's under WEB-INF

2003-01-30 Thread Julio Cesar C Neto
Hi david,

I´ve done this, but when he´s try to access the first page (index.jsp)
he says: 

 Configuration error: Cannot perform access control without an
authenticated principal

It´s because of the web.xml file that has the tag welcome-file-list.
How can I fix this?


Julio Cesar

-Mensagem original-
De: David Graham [mailto:[EMAIL PROTECTED]] 
Enviada em: quarta-feira, 29 de janeiro de 2003 18:42
Para: [EMAIL PROTECTED]
Assunto: Re: Accessing JSP's under WEB-INF

For a portable solution, put this in your web.xml file instead:

security-constraint
web-resource-collection

web-resource-nameSecureAllJSPs/web-resource-name
url-pattern*.jsp/url-pattern
/web-resource-collection
auth-constraint
description
Protects all JSP files from direct
access.  Clients
must go through the controller servlet.
/description
role-namenobody/role-name
/auth-constraint
/security-constraint

security-role
descriptionNo one should be put in this
role./description
role-namenobody/role-name
/security-role






From: James Mitchell [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Accessing JSP's under WEB-INF
Date: Wed, 29 Jan 2003 15:52:51 -0500

Aside from the fact that not every container supports it, no.


--
James Mitchell





- Original Message -
From: White, Joshua A (AG, COMM) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 3:04 PM
Subject: RE: Accessing JSP's under WEB-INF


  James,
 
  I couldn't have ask for anything more.
 
  Does anyone know of any performance problems with organizing your
code 
in
  the manner?
 
  Joshua
 
   -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 29, 2003 2:57 PM
  To: Struts Users Mailing List
  Subject: Re: Accessing JSP's under WEB-INF
 
  You can download the struts-example that was modified to demonstrate

this
  from the following URL:
 
  http://www.open-tools.org/struts-atlanta/downloads
 
 
 
  --
  James Mitchell
 
 
 
 
 
  - Original Message -
  From: White, Joshua A (AG, COMM) [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, January 29, 2003 2:51 PM
  Subject: Accessing JSP's under WEB-INF
 
 
   Hello all,
  
   I would like to put my struts related jsp files under the web-inf
  directory
   in a folder called securedocroot so that they have no chance of 
being
   called directly.  The problem is that I do not know how you would
call 
a
   page from this folder.  How would you map these jsp's in the
struts-config
   file?
  
   If you have done this in an existing application, would you mind
positing
   some example code and possible a brief explanation?
  
   Regards,
  
   Joshua
  
  
   This communication, including attachments, is for the exclusive
use of
   addressee and may contain proprietary, confidential or privileged
   information. If you are not the intended recipient, any use,
copying,
   disclosure, dissemination or distribution is strictly prohibited.
If
   you are not the intended recipient, please notify the sender
   immediately by return email and delete this communication and
destroy
all
  copies.
  
  
  
-
   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]


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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003
 


-
To unsubscribe, e-mail: [EMAIL 

Re: get data to Collection

2003-01-30 Thread Kafka
I try this, but ineffectively... I get follow error.
Maybe I can get example, where I can see how implement
Collection and multicheck...

error:
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:988)


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 12:29 AM
Subject: RE: get data to Collection


 public void reset(ActionMapping mapping, HttpServletRequest request) {
 read = new ArrayList();
 //skip others params
 }

 Regards,


 PQ

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

 -Original Message-
 From: Kafka [mailto:[EMAIL PROTECTED]]
 Sent: January 29, 2003 5:02 PM
 To: Struts Users Mailing List
 Subject: get data to Collection

 Hello,
 I think, this problem many times was solve here,
 but I don't find particular answer.
 How I can use Form class, if I don't know how many
 are rows? Must I use Collection? Maybe I can see example,
 because I can not find decision.

 Now my jsp:

 logic:notEmpty name=access 
 logic:iterate id=daiktas name=access scope=session
   html:multibox property=read name = daiktas 
bean:write name = daiktas  property=read/
   /html:multibox
   bean:write  name = daiktas property=read/
 /logic:iterate
 /logic:notEmpty

 Form.class
  private Collection read = new ArrayList();
 //skip

  public void setRead(Collection read)
  {
 this.read.addAll(read);
   }

 public Collection getRead()
 {
 return this.read ;
 }
 public void reset(ActionMapping mapping, HttpServletRequest request) {
 //skip others params
 read.clear();
 }

 but I get error:
 description The server encountered an internal error (Internal Server
Error)
 that prevented it from fulfilling this request.
 exception
 javax.servlet.ServletException: BeanUtils.populate
  at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:988)




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




ServletException: BeanUtils.populate

2003-01-30 Thread Softwareentwicklung Hauschel
Hey all,
i try to call an action from my jsp:

html:form action=/editperson name=showpersonForm
type=de.hauschel.wapen.struts.form.ShowpersonForm
age : html:text property=age/html:errors 
property=age//br
birthday : html:text property=birthday/html:errors
property=birthday//br
...
/html:form

But there is an Error:
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1099)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:798)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
...

root cause

java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
ava:1789)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
ava:1684)
...


Does anybody knows this problem ?
Is there a way to get more information about the error,
usually a debug msg in org.apache.commons.beanutils.PropertyUtils ?

I've set the debug mode to:

init-param
param-namedebug/param-name
param-value5/param-value
/init-param
init-param
param-namedetail/param-name
param-value5/param-value
/init-param

But there is no usefull message ;-(


Fredy


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




after update to Struts 1.1 beta 3 Tomcat is throwing an exception

2003-01-30 Thread Knut Herhold
After update to Struts 1.1 beta 3 Tomcat is throwing an exception.
Can this exception to emanated from an old xml-parser
and how can solve the problem


//**


Jan 30, 2003 11:08:34 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 234 column 14: The content of element type
action must match
(icon?,display-name?,description?,set-property*,forward*).
org.xml.sax.SAXParseException: The content of element type action must
match (icon?,display-name?,description?,set-property*,forward*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2959)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:918)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDocumentFragmentScannerImpl.java:1145)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:988)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
at
org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:944)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3341)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

//**


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




AW: after update to Struts 1.1 beta 3 Tomcat is throwing an exception

2003-01-30 Thread Softwareentwicklung Hauschel
what content is in struts-config.xml at line 234 column 14 ?

Fredy

-Ursprüngliche Nachricht-
Von: Knut Herhold [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 30. Januar 2003 14:02
An: [EMAIL PROTECTED]
Betreff: after update to Struts 1.1 beta 3 Tomcat is throwing an
exception


After update to Struts 1.1 beta 3 Tomcat is throwing an exception.
Can this exception to emanated from an old xml-parser
and how can solve the problem


//**



Jan 30, 2003 11:08:34 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 234 column 14: The content of element type
action must match
(icon?,display-name?,description?,set-property*,forward*).
org.xml.sax.SAXParseException: The content of element type action must
match (icon?,display-name?,description?,set-property*,forward*).
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
3)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36
2)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29
6)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java:2959)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:9
18)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
cumentFragmentScannerImpl.java:1145)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:988)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:333)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:529)
at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:585)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:114
8)
at
org.apache.commons.digester.Digester.parse(Digester.java:1543)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
44)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
4)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3341)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

//**



-
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: log4j problem

2003-01-30 Thread Pani, Gourav
You may want to increase your default console setting from DEBUG to WARN.
That would eliminate a lot of log messages.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:09 AM
To: '[EMAIL PROTECTED]'
Subject: log4j problem


Hi all,
I was using Log4J with struts1.0 with no problem. When I updated to
struts1.1b3, messages from Struts like RequestProcessor Processing a POST
request for path url are logged using my webapp log4j configuration file.
The problem is I don't want struts to log these messages but it keeps using
my log4J configuration once it finds it.
anyone 

-
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: log4j problem

2003-01-30 Thread De Cesco, Jonathan
ok but the real problem is that struts logs an INFO each time a request is
processed. My webapp should handle hundreds of simultaneous clients
therefore my personal webapps logs are not visible enough. But thanks
anyway.


-Message d'origine-
De : Pani, Gourav [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:10
À : 'Struts Users Mailing List'
Objet : RE: log4j problem


You may want to increase your default console setting from DEBUG to WARN.
That would eliminate a lot of log messages.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:09 AM
To: '[EMAIL PROTECTED]'
Subject: log4j problem


Hi all,
I was using Log4J with struts1.0 with no problem. When I updated to
struts1.1b3, messages from Struts like RequestProcessor Processing a POST
request for path url are logged using my webapp log4j configuration file.
The problem is I don't want struts to log these messages but it keeps using
my log4J configuration once it finds it.
anyone 

-
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: log4j problem

2003-01-30 Thread shirishchandra . sakhare
Can you see the originating class for all those struts loggings messages in the 
logged messages?
I mean in log4j ,u can disable the logging per class or package level..And if 
struts is using log4j, then it must be creating those log4j loggers which 
generally have the class name...So may be u can specify that disable logging 
for all loggers of struts classes ..If u can send a few entries from the log 
file, I may be able to help..

regards,
Shirish

-Original Message-
From: jdecesco [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:15 PM
To: struts-user
Cc: jdecesco
Subject: RE: log4j problem


ok but the real problem is that struts logs an INFO each time a request is
processed. My webapp should handle hundreds of simultaneous clients
therefore my personal webapps logs are not visible enough. But thanks
anyway.


-Message d'origine-
De : Pani, Gourav [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:10
À : 'Struts Users Mailing List'
Objet : RE: log4j problem


You may want to increase your default console setting from DEBUG to WARN.
That would eliminate a lot of log messages.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:09 AM
To: '[EMAIL PROTECTED]'
Subject: log4j problem


Hi all,
I was using Log4J with struts1.0 with no problem. When I updated to
struts1.1b3, messages from Struts like RequestProcessor Processing a POST
request for path url are logged using my webapp log4j configuration file.
The problem is I don't want struts to log these messages but it keeps using
my log4J configuration once it finds it.
anyone 

-
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: log4j problem

2003-01-30 Thread De Cesco, Jonathan
Yes I know the originating class that produces logs, it's RequestProcessor.
But I didn't know that log4j could exclude class from the logs. Is it
configurable in the log4j conf file ?
I will look into it, thanks.


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:18
À : [EMAIL PROTECTED]
Objet : RE: log4j problem


Can you see the originating class for all those struts loggings messages in
the 
logged messages?
I mean in log4j ,u can disable the logging per class or package level..And
if 
struts is using log4j, then it must be creating those log4j loggers which 
generally have the class name...So may be u can specify that disable logging

for all loggers of struts classes ..If u can send a few entries from the log

file, I may be able to help..

regards,
Shirish

-Original Message-
From: jdecesco [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:15 PM
To: struts-user
Cc: jdecesco
Subject: RE: log4j problem


ok but the real problem is that struts logs an INFO each time a request is
processed. My webapp should handle hundreds of simultaneous clients
therefore my personal webapps logs are not visible enough. But thanks
anyway.


-Message d'origine-
De : Pani, Gourav [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:10
À : 'Struts Users Mailing List'
Objet : RE: log4j problem


You may want to increase your default console setting from DEBUG to WARN.
That would eliminate a lot of log messages.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:09 AM
To: '[EMAIL PROTECTED]'
Subject: log4j problem


Hi all,
I was using Log4J with struts1.0 with no problem. When I updated to
struts1.1b3, messages from Struts like RequestProcessor Processing a POST
request for path url are logged using my webapp log4j configuration file.
The problem is I don't want struts to log these messages but it keeps using
my log4J configuration once it finds it.
anyone 

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

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

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



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

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




RE: log4j problem

2003-01-30 Thread Pani, Gourav
i was under the impression that you do exclusion by inclusion.  in other
words, if you specify the package you want logged, it excludes everything
else.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 8:22 AM
To: 'Struts Users Mailing List'
Subject: RE: log4j problem


Yes I know the originating class that produces logs, it's RequestProcessor.
But I didn't know that log4j could exclude class from the logs. Is it
configurable in the log4j conf file ?
I will look into it, thanks.


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:18
À : [EMAIL PROTECTED]
Objet : RE: log4j problem


Can you see the originating class for all those struts loggings messages in
the 
logged messages?
I mean in log4j ,u can disable the logging per class or package level..And
if 
struts is using log4j, then it must be creating those log4j loggers which 
generally have the class name...So may be u can specify that disable logging

for all loggers of struts classes ..If u can send a few entries from the log

file, I may be able to help..

regards,
Shirish

-Original Message-
From: jdecesco [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:15 PM
To: struts-user
Cc: jdecesco
Subject: RE: log4j problem


ok but the real problem is that struts logs an INFO each time a request is
processed. My webapp should handle hundreds of simultaneous clients
therefore my personal webapps logs are not visible enough. But thanks
anyway.


-Message d'origine-
De : Pani, Gourav [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:10
À : 'Struts Users Mailing List'
Objet : RE: log4j problem


You may want to increase your default console setting from DEBUG to WARN.
That would eliminate a lot of log messages.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:09 AM
To: '[EMAIL PROTECTED]'
Subject: log4j problem


Hi all,
I was using Log4J with struts1.0 with no problem. When I updated to
struts1.1b3, messages from Struts like RequestProcessor Processing a POST
request for path url are logged using my webapp log4j configuration file.
The problem is I don't want struts to log these messages but it keeps using
my log4J configuration once it finds it.
anyone 

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

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

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



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

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

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




RE: Tiles Portal

2003-01-30 Thread Hue Holleran
Hi Jay,

I've not actually done exactly what you're asking, however it would seem to
me quite straightforward to determine the url that was used to access the
site using:

String cURL = request.getParameter(url);

You could then use string extraction techniques to get the portion of the
URL and I would guess it would be easier to store this in session scope.

I would guess that the colours for the web site could be determined by
loading a specific CSS Style Sheet that would be determined by examining the
value stored in session scope.

The tile templates could be determined by say concatenating a code onto the
template or looking in a directory for all tile templates for that company.
I'm pretty sure this would not work with tile definitions defined in
tiles-defs.xml so you may need to restrict yourself to definitions stored in
JSP files.

Hue.

-Original Message-
From: Jay Andrews [mailto:[EMAIL PROTECTED]]
Sent: 29 January 2003 21:01
To: [EMAIL PROTECTED]
Subject: Tiles Portal


Ive been looking into using struts and tiles for an
upcoming project.  I need to be able to change the
look and feel of the website based on the url the site
was entered from.  For example, if a user enters from
company1.foo.com then show their company colors and
logo. if a user enteres from company2.foo.com then use
different color scheme and logos... and so on.  Is
this something tiles should be used for?  Has anyone
acomplished such a project? Thanks.  Jay.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.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]




[FRIDAY][OT][HUMOUR] A Nigerian letter from George Bush ;-

2003-01-30 Thread Andrew Hill
(Ok. So I know its not Friday for another 2.5 hours yet, but close enough.)

Just thought you would all love a chance at this great opportunity I came
across... ;-

(No Mark. This aint a request for you to post you collection of Nigerian
letters like what you dun last time!)
btw: Is it just me or has everyone else been getting heaps of
(non-humourous) Nigerian letters since they subscribed to the struts list?

snip
FROM: GEORGE WALKER BUSH
DEAR SIR / MADAM,

I AM GEORGE WALKER BUSH, SON OF THE FORMER PRESIDENT OF THE
UNITED STATES OF AMERICA GEORGE HERBERT WALKER BUSH, AND
CURRENTLY SERVING AS PRESIDENT OF THE UNITED STATES OF
AMERICA. THIS LETTER MIGHT SURPRISE YOU BECAUSE WE HAVE NOT
MET NEITHER IN PERSON NOR BY CORRESPONDENCE. I CAME TO KNOW OF YOU IN MY
SEARCH FOR A RELIABLE AND REPUTABLE PERSON TO HANDLE A VERY CONFIDENTIAL
BUSINESS TRANSACTION, WHICH INVOLVES THE TRANSFER OF A HUGE SUM OF MONEY TO
AN ACCOUNT REQUIRING MAXIMUM CONFIDENCE.

I AM WRITING YOU IN ABSOLUTE CONFIDENCE PRIMARILY TO SEEK
YOUR ASSISTANCE IN ACQUIRING OIL FUNDS THAT ARE PRESENTLY
TRAPPED IN THE REPUBLIC OF IRAQ. MY PARTNERS AND I SOLICIT
YOUR ASSISTANCE IN COMPLETING A TRANSACTION BEGUN BY MY
FATHER, WHO HAS LONG BEEN ACTIVELY ENGAGED IN THE EXTRACTION OF PETROLEUM IN
THE UNITED STATES OF AMERICA, AND BRAVELY SERVED HIS COUNTRY AS DIRECTOR OF
THE UNITED STATES CENTRAL INTELLIGENCE AGENCY.

IN THE DECADE OF THE NINETEEN-EIGHTIES, MY FATHER, THEN
VICE-PRESIDENT OF THE UNITED STATES OF AMERICA, SOUGHT TO
WORK WITH THE GOOD OFFICES OF THE PRESIDENT OF THE REPUBLIC
OF IRAQ TO REGAIN LOST OIL REVENUE SOURCES IN THE
NEIGHBORING ISLAMIC REPUBLIC OF IRAN. THIS UNSUCCESSFUL
VENTURE WAS SOON FOLLOWED BY A FALLING OUT WITH HIS IRAQI
PARTNER, WHO SOUGHT TO ACQUIRE ADDITIONAL OIL REVENUE
SOURCES IN THE NEIGHBORING EMIRATE OF KUWAIT, A WHOLLY-OWNED U.S.-BRITISH
SUBSIDIARY.

MY FATHER RE-SECURED THE PETROLEUM ASSETS OF KUWAIT IN 1991
AT A COST OF SIXTY-ONE BILLION U.S. DOLLARS
($61,000,000,000). OUT OF THAT COST, THIRTY-SIX BILLION
DOLLARS ($36,000,000,000) WERE SUPPLIED BY HIS PARTNERS IN
THE KINGDOM OF SAUDI ARABIA AND OTHER PERSIAN GULF
MONARCHIES, AND SIXTEEN BILLION DOLLARS ($16,000,000,000) BY
GERMAN AND JAPANESE PARTNERS. BUT MY FATHER'S FORMER IRAQI BUSINESS PARTNER
REMAINED IN CONTROL OF THE REPUBLIC OF IRAQ AND ITS PETROLEUM RESERVES.

MY FAMILY IS CALLING FOR YOUR URGENT ASSISTANCE IN FUNDING
THE REMOVAL OF THE PRESIDENT OF THE REPUBLIC OF IRAQ AND
ACQUIRING THE PETROLEUM ASSETS OF HIS COUNTRY, AS
COMPENSATION FOR THE COSTS OF REMOVING HIM FROM POWER.
UNFORTUNATELY, OUR PARTNERS FROM 1991 ARE NOT WILLING TO
SHOULDER THE BURDEN OF THIS NEW VENTURE, WHICH IN ITS
UPCOMING PHASE MAY COST THE SUM OF 100 BILLION TO 200
BILLION DOLLARS ($100,000,000,000 - $200,000,000,000), BOTH
IN THE INITIAL ACQUISITION AND IN LONG-TERM MANAGEMENT.

WITHOUT THE FUNDS FROM OUR 1991 PARTNERS, WE WOULD NOT BE
ABLE TO ACQUIRE THE OIL REVENUE TRAPPED WITHIN IRAQ. THAT IS
WHY MY FAMILY AND OUR COLLEAGUES ARE URGENTLY SEEKING YOUR GRACIOUS
ASSISTANCE. OUR DISTINGUISHED COLLEAGUES IN THIS BUSINESS TRANSACTION
INCLUDE THE SITTING VICE-PRESIDENT OF THE UNITED STATES OF AMERICA, RICHARD
CHENEY, WHO IS AN ORIGINAL PARTNER IN THE IRAQ VENTURE AND FORMER HEAD OF
THE HALLIBURTON OIL COMPANY, AND CONDOLEEZA RICE, WHOSE
PROFESSIONAL DEDICATION TO THE VENTURE WAS DEMONSTRATED IN THE NAMING OF A
CHEVRON OIL TANKER AFTER HER.

I WOULD BESEECH YOU TO TRANSFER A SUM EQUALING TEN TO
TWENTY-FIVE PERCENT (10-25 %) OF YOUR YEARLY INCOME TO OUR
ACCOUNT TO AID IN THIS IMPORTANT VENTURE. THE INTERNAL
REVENUE SERVICE OF THE UNITED STATES OF AMERICA WILL
FUNCTION AS OUR TRUSTED INTERMEDIARY. I PROPOSE THAT YOU
MAKE THIS TRANSFER BEFORE THE FIFTEENTH (15TH) OF THE MONTH
OF APRIL.

I KNOW THAT A TRANSACTION OF THIS MAGNITUDE WOULD MAKE
ANYONE APPREHENSIVE AND WORRIED. BUT I AM ASSURING YOU THAT ALL WILL BE WELL
AT THE END OF THE DAY. A BOLD STEP TAKEN SHALL NOT BE REGRETTED, I ASSURE
YOU. PLEASE DO BE INFORMED THAT THIS BUSINESS TRANSACTION IS 100% LEGAL. IF
YOU DO NOT WISH TO CO-OPERATE IN THIS TRANSACTION, PLEASE CONTACT OUR
INTERMEDIARY REPRESENTATIVES TO FURTHER DISCUSS THE MATTER.

I PRAY THAT YOU UNDERSTAND OUR PLIGHT. MY FAMILY AND OUR
COLLEAGUES WILL BE FOREVER GRATEFUL.

SINCERELY WITH WARM REGARDS,

GEORGE WALKER BUSH
/snip


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




RE: log4j problem

2003-01-30 Thread shirishchandra . sakhare
.U can specify log level per logger as well.SO if u want to exclude logging for 
some packages,U specify a higher log level for that..some thing like

log4j.logger.org.apache.struts=ERROR

So for all loggers whose name starts with org.apache.struts , only errors wil 
be logged..For other named hirarchies, it will still not change

-Original Message-
From: gourav.pani [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:24 PM
To: struts-user
Subject: RE: log4j problem


i was under the impression that you do exclusion by inclusion.  in other
words, if you specify the package you want logged, it excludes everything
else.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 8:22 AM
To: 'Struts Users Mailing List'
Subject: RE: log4j problem


Yes I know the originating class that produces logs, it's RequestProcessor.
But I didn't know that log4j could exclude class from the logs. Is it
configurable in the log4j conf file ?
I will look into it, thanks.


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:18
À : [EMAIL PROTECTED]
Objet : RE: log4j problem


Can you see the originating class for all those struts loggings messages in
the 
logged messages?
I mean in log4j ,u can disable the logging per class or package level..And
if 
struts is using log4j, then it must be creating those log4j loggers which 
generally have the class name...So may be u can specify that disable logging

for all loggers of struts classes ..If u can send a few entries from the log

file, I may be able to help..

regards,
Shirish

-Original Message-
From: jdecesco [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:15 PM
To: struts-user
Cc: jdecesco
Subject: RE: log4j problem


ok but the real problem is that struts logs an INFO each time a request is
processed. My webapp should handle hundreds of simultaneous clients
therefore my personal webapps logs are not visible enough. But thanks
anyway.


-Message d'origine-
De : Pani, Gourav [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:10
À : 'Struts Users Mailing List'
Objet : RE: log4j problem


You may want to increase your default console setting from DEBUG to WARN.
That would eliminate a lot of log messages.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:09 AM
To: '[EMAIL PROTECTED]'
Subject: log4j problem


Hi all,
I was using Log4J with struts1.0 with no problem. When I updated to
struts1.1b3, messages from Struts like RequestProcessor Processing a POST
request for path url are logged using my webapp log4j configuration file.
The problem is I don't want struts to log these messages but it keeps using
my log4J configuration once it finds it.
anyone 

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

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

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



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

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

-
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: log4j problem

2003-01-30 Thread De Cesco, Jonathan


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:31
À : [EMAIL PROTECTED]
Objet : RE: log4j problem


.U can specify log level per logger as well.SO if u want to exclude logging
for 
some packages,U specify a higher log level for that..some thing like

log4j.logger.org.apache.struts=ERROR

So for all loggers whose name starts with org.apache.struts , only errors
wil 
be logged..For other named hirarchies, it will still not change

-Original Message-
From: gourav.pani [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:24 PM
To: struts-user
Subject: RE: log4j problem


i was under the impression that you do exclusion by inclusion.  in other
words, if you specify the package you want logged, it excludes everything
else.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 8:22 AM
To: 'Struts Users Mailing List'
Subject: RE: log4j problem


Yes I know the originating class that produces logs, it's RequestProcessor.
But I didn't know that log4j could exclude class from the logs. Is it
configurable in the log4j conf file ?
I will look into it, thanks.


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:18
À : [EMAIL PROTECTED]
Objet : RE: log4j problem


Can you see the originating class for all those struts loggings messages in
the 
logged messages?
I mean in log4j ,u can disable the logging per class or package level..And
if 
struts is using log4j, then it must be creating those log4j loggers which 
generally have the class name...So may be u can specify that disable logging

for all loggers of struts classes ..If u can send a few entries from the log

file, I may be able to help..

regards,
Shirish

-Original Message-
From: jdecesco [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:15 PM
To: struts-user
Cc: jdecesco
Subject: RE: log4j problem


ok but the real problem is that struts logs an INFO each time a request is
processed. My webapp should handle hundreds of simultaneous clients
therefore my personal webapps logs are not visible enough. But thanks
anyway.


-Message d'origine-
De : Pani, Gourav [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:10
À : 'Struts Users Mailing List'
Objet : RE: log4j problem


You may want to increase your default console setting from DEBUG to WARN.
That would eliminate a lot of log messages.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:09 AM
To: '[EMAIL PROTECTED]'
Subject: log4j problem


Hi all,
I was using Log4J with struts1.0 with no problem. When I updated to
struts1.1b3, messages from Struts like RequestProcessor Processing a POST
request for path url are logged using my webapp log4j configuration file.
The problem is I don't want struts to log these messages but it keeps using
my log4J configuration once it finds it.
anyone 

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

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

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



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

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

-
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: log4j problem

2003-01-30 Thread De Cesco, Jonathan
It worked, thank you, my understanding of Log4J was rather limited!!


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:31
À : [EMAIL PROTECTED]
Objet : RE: log4j problem


.U can specify log level per logger as well.SO if u want to exclude logging
for 
some packages,U specify a higher log level for that..some thing like

log4j.logger.org.apache.struts=ERROR

So for all loggers whose name starts with org.apache.struts , only errors
wil 
be logged..For other named hirarchies, it will still not change

-Original Message-
From: gourav.pani [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:24 PM
To: struts-user
Subject: RE: log4j problem


i was under the impression that you do exclusion by inclusion.  in other
words, if you specify the package you want logged, it excludes everything
else.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 8:22 AM
To: 'Struts Users Mailing List'
Subject: RE: log4j problem


Yes I know the originating class that produces logs, it's RequestProcessor.
But I didn't know that log4j could exclude class from the logs. Is it
configurable in the log4j conf file ?
I will look into it, thanks.


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:18
À : [EMAIL PROTECTED]
Objet : RE: log4j problem


Can you see the originating class for all those struts loggings messages in
the 
logged messages?
I mean in log4j ,u can disable the logging per class or package level..And
if 
struts is using log4j, then it must be creating those log4j loggers which 
generally have the class name...So may be u can specify that disable logging

for all loggers of struts classes ..If u can send a few entries from the log

file, I may be able to help..

regards,
Shirish

-Original Message-
From: jdecesco [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 2:15 PM
To: struts-user
Cc: jdecesco
Subject: RE: log4j problem


ok but the real problem is that struts logs an INFO each time a request is
processed. My webapp should handle hundreds of simultaneous clients
therefore my personal webapps logs are not visible enough. But thanks
anyway.


-Message d'origine-
De : Pani, Gourav [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:10
À : 'Struts Users Mailing List'
Objet : RE: log4j problem


You may want to increase your default console setting from DEBUG to WARN.
That would eliminate a lot of log messages.

-Original Message-
From: De Cesco, Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:09 AM
To: '[EMAIL PROTECTED]'
Subject: log4j problem


Hi all,
I was using Log4J with struts1.0 with no problem. When I updated to
struts1.1b3, messages from Struts like RequestProcessor Processing a POST
request for path url are logged using my webapp log4j configuration file.
The problem is I don't want struts to log these messages but it keeps using
my log4J configuration once it finds it.
anyone 

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

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

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



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

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

-
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: How can I retrieve Parameter from Action Bean to JSP ?

2003-01-30 Thread mahesh kagitha

Hi,
  I'm using only struts tags and we are not using JSTL tags for our project. How can I 
retrieve parameter value into JSP for displaying purposes.
Thanks
Mahesh!
 John Espey [EMAIL PROTECTED] wrote:If you just want to output it, you could use the 
JSTL core:out tag,
something like this:
. The form should be available in
the request scope as an attribute with the name specified in your struts
config file.

It doesn't look like the bean:write tag was ported to EL, otherwise you
would be able to use that.



-Original Message-
From: mahesh kagitha [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 29, 2003 9:08 PM
To: [EMAIL PROTECTED]
Subject: How can I retrieve Parameter from Action Bean to JSP ?



Hi,

I have a quick dumb question...please help me out.

I'm setting a parameter recordNumber(assigning String value) in an Action
Bean..to the Form(e.g : myForm.setRecordNumber=gy234). My question here is
to get the parameter value in the JSP(after forwarding). I wanted to display
the above parameter in the JSP 

Any thoughts ...Thanks in Advancemahesh!





-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: log4j problem

2003-01-30 Thread Matthew Meyer
I am having a simmilar problem. I'm useing Struts 1.1b2 
within WTE 3.5. The digester and requestProcessor refuse 
to quit logging not matter what I set the log levels at. 
I'm guessing I'm just not finding the correct 
configuration file, but it's really getting annoying. 

Matt,

On Thu, 30 Jan 2003 11:09:10 +0100
 De Cesco, Jonathan [EMAIL PROTECTED] wrote:
Hi all,
I was using Log4J with struts1.0 with no problem. When I 
updated to
struts1.1b3, messages from Struts like RequestProcessor 
Processing a POST
request for path url are logged using my webapp log4j 
configuration file.
The problem is I don't want struts to log these messages 
but it keeps using
my log4J configuration once it finds it.
anyone 

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


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




I Frames

2003-01-30 Thread vinay singh [EMAIL PROTECTED]
How can we I frames with Struts?I wan't to click on one link and 
display its content in the same page but invisible frame
Vinay


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




[Tiles] Dynamic values for put tag?

2003-01-30 Thread Duane Morin
Hi all,

I'm new to the list, so apologies if I say something silly.

Last night I found myself needing to take a bunch of query parameters from 
an incoming request and map them to tiles:put parameters, like this:

% Enumeration e = request.getParameterNames();
   for (;e.hasMoreElements;) {
String name = (String)e.nextElement();
 %
tiles:put name=%= name % 
   value=%= request.getParameter(name) %/
 % } %

(Let's assume for the moment that this is not a glaring security hole -- 
it is for an intranet app and the number of hostile incoming requests 
should be neglible.)

This doesn't work with tiles as-is because the TLD has rtexpr=false for 
the name attribute of the put tag.  Is there a particular reason for this?  
When I changed it to true, this worked fine.  But now I'm wondering if I 
may have opened up another bug someplace else.

Thanks!  I can go into more detail about why I needed to do this, but this 
is my first post to the group and I decided that an autobiography wasn't 
necessary right at this moment. ;)

Btw, this is with struts 1.1b3.


Duane


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




RE: log4j problem

2003-01-30 Thread De Cesco, Jonathan
With struts1.1b2 I think you need to get another commons-logging.jar first.
If it can help, Struts will use your log4j conf file if it finds it. In this
conf file you need to set specifically org.apache.struts to have a log level
as WARN for example (as shirishchandra sakhare said!).
In your webapp init servlet, you will have something like this:
PropertyConfigurator.configure(path_to_your_log4j_conf_file);

and the conf file could look like this:

# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=INFO, A1
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{dd/MM/yy HH:mm:ss} %-5p %C{1}
%x - %m%n
log4j.logger.org.apache.struts=WARN

hope this helps.



-Message d'origine-
De : Matthew Meyer [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 30 janvier 2003 14:45
À : Struts Users Mailing List
Objet : Re: log4j problem


I am having a simmilar problem. I'm useing Struts 1.1b2 
within WTE 3.5. The digester and requestProcessor refuse 
to quit logging not matter what I set the log levels at. 
I'm guessing I'm just not finding the correct 
configuration file, but it's really getting annoying. 

Matt,

On Thu, 30 Jan 2003 11:09:10 +0100
  De Cesco, Jonathan [EMAIL PROTECTED] wrote:
Hi all,
I was using Log4J with struts1.0 with no problem. When I 
updated to
struts1.1b3, messages from Struts like RequestProcessor 
Processing a POST
request for path url are logged using my webapp log4j 
configuration file.
The problem is I don't want struts to log these messages 
but it keeps using
my log4J configuration once it finds it.
anyone 

-
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: I Frames

2003-01-30 Thread Raible, Matt
Anything you can do with JSP, HTML, Javascript or CSS - you can do with
Struts.  It does not limit you in anyway - it just produces HTML,
JavaScript, etc. dynamically.  But it all ends up being HTML (or XML) in the
end.  To do what you want to do below, you'll simply need to add some fancy
Javascript to make this happen.

 -Original Message-
 From: vinay singh [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 6:45 AM
 To: [EMAIL PROTECTED]
 Subject: I Frames
 
 
 How can we I frames with Struts?I wan't to click on one link and 
 display its content in the same page but invisible frame
 Vinay
 
 
 -
 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: after update to Struts 1.1 beta 3 Tomcat is throwing an exception

2003-01-30 Thread Sri Sankaran
Make sure that your struts-config has the correct DOCTYPE declaration and that the DTD 
is in the appropriate location.  You can look at the sample applications for hints.

Sri

 -Original Message-
 From: Knut Herhold [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 30, 2003 8:02 AM
 To: [EMAIL PROTECTED]
 Subject: after update to Struts 1.1 beta 3 Tomcat is throwing 
 an exception
 
 
 After update to Struts 1.1 beta 3 Tomcat is throwing an 
 exception. Can this exception to emanated from an old 
 xml-parser and how can solve the problem
 
 
 //
 **
 
 
 Jan 30, 2003 11:08:34 AM org.apache.commons.digester.Digester error
 SEVERE: Parse Error at line 234 column 14: The content of 
 element type action must match 
 (icon?,display-name?,description?,set-property*,forward*).
 org.xml.sax.SAXParseException: The content of element type 
 action must match 
 (icon?,display-name?,description?,set-property*,forward*).
 at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcep
 tion(ErrorHandlerWrapper.java:232)
 at
 org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerW
 rapper.java:173)
 at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe
 porter.java:362)
 at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorRe
 porter.java:296)
 at
 org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XM
 LDTDValidator.java:2959)
 at
 org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDVa
 lidator.java:918)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEn
 dElement(XMLDocumentFragmentScannerImpl.java:1145)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndE
 lement(XMLDocumentFragmentScannerImpl.java:988)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
 ContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu
 ment(XMLDocumentFragmentScannerImpl.java:333)
 at
 org.apache.xerces.parsers.StandardParserConfiguration.parse(St
andardParserConfiguration.java:529)
 at
 org.apache.xerces.parsers.StandardParserConfiguration.parse(St
andardParserConfiguration.java:585)
 at 
 org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
 at
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXP
 arser.java:1148)
 at
 org.apache.commons.digester.Digester.parse(Digester.java:1543)
 at
 org.apache.struts.action.ActionServlet.initModuleConfig(Action
 Servlet.java:944)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
 rapper.java:924)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
 java:813)
 at
 org.apache.catalina.core.StandardContext.loadOnStartup(Standar
 dContext.java:3341)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext
 .java:3534)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at
 org.apache.catalina.core.StandardService.start(StandardService
 .java:497)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.j
 ava:2189)
 at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:510)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 //
 **
 
 
 -
 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: I Frames

2003-01-30 Thread Andrew Hill
Can you use the target attribute of the link to name the iframe?
Following experiment worked for me:
html
body
a href=http://www.gridnode.com; target=bobClickMe/abr/
iframe name=bob src=http://jakarta.apache.org/struts/
/body
/html

nb: I only tried it under IE5.

-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 January 2003 21:59
To: 'Struts Users Mailing List'
Subject: RE: I Frames


Anything you can do with JSP, HTML, Javascript or CSS - you can do with
Struts.  It does not limit you in anyway - it just produces HTML,
JavaScript, etc. dynamically.  But it all ends up being HTML (or XML) in the
end.  To do what you want to do below, you'll simply need to add some fancy
Javascript to make this happen.

 -Original Message-
 From: vinay singh [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 6:45 AM
 To: [EMAIL PROTECTED]
 Subject: I Frames


 How can we I frames with Struts?I wan't to click on one link and
 display its content in the same page but invisible frame
 Vinay


 -
 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: nested iteration

2003-01-30 Thread Sri Sankaran
Yes

 -Original Message-
 From: Arash Bijanzadeh [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 30, 2003 3:51 AM
 To: Struts Users Mailing List
 Subject: nested iteration
 
 
 Can I use nested iteration on a page?
 
 -
 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: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Roger Fortier
Check out this article from JavaPro magazine. 

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the archives.




-Original Message-
From: Sowbhagya Valli Suryadevara
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 5:57 AM
To: 'Struts Users Mailing List'
Subject: Automatic refresh - IS THIS POSSIBLE? 

HI,

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message
while
the processing is happening in the background. Then when the processing
is
over the page should come up automatically.

IS THIS POSSIBLE?

Valli


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


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




RE: Problem with checkboxes

2003-01-30 Thread Sri Sankaran
Please look at html-multibox.jsp and related files that are in the 
struts-exercise-taglib application that ships with Struts.

Sri

 -Original Message-
 From: Uday [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 30, 2003 12:47 AM
 To: [EMAIL PROTECTED]
 Subject: Problem with checkboxes
 
 
 Hi All,
 
 I have a list of checkboxes in a table column.
 Depending on some condition while generating jsp i have to 
 select some checkboxes by default. I am using multibox 
 taglibrary of struts. Can any one of tell me how to do it ?
 
 
 
 
 Have a nice day
 
 Regards,
 Uday
 
 
 -
 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][OT][HUMOUR] A Nigerian letter from George Bush ;-

2003-01-30 Thread Mark Galbreath
This couldn't have been written by Dubbya - the grammar and spelling are
correct.

Mark

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 8:30 AM

snip
FROM: GEORGE WALKER BUSH
DEAR SIR / MADAM,

I AM GEORGE WALKER BUSH, SON OF THE FORMER PRESIDENT OF THE UNITED STATES OF
AMERICA GEORGE HERBERT WALKER 
/snip



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




RE: I Frames

2003-01-30 Thread Sri Sankaran
Setting the target attribute to the name of the IFrame will route the results to the 
IFrame.  Of course, the IFrame itself needs to be made visible.  This can, typically, 
be accomplished via the onclick attribute.

Sri

 -Original Message-
 From: vinay singh [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 30, 2003 8:45 AM
 To: [EMAIL PROTECTED]
 Subject: I Frames
 
 
 How can we I frames with Struts?I wan't to click on one link and 
 display its content in the same page but invisible frame
 Vinay
 
 
 -
 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 JSP's under WEB-INF

2003-01-30 Thread Wendy Smoak
 I´ve done this, but when he´s try to access the first page (index.jsp)
 he says: 
 Configuration error: Cannot perform access control without an
 authenticated principal
 It´s because of the web.xml file that has the tag welcome-file-list.
 How can I fix this?

Change the welcome file to index.html and make that page redirect to
wherever you want it to go (welcome.do?).  One of those Click here to
enter, or your browser should send you there in 5 seconds sort of things.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Mark Galbreath
Yes, it's possible.  I've done it with a processing... animated progress
bar (though for some reason it works better in Navigator than IE).  You can
see it after you enter your credit card information at
http://shop.t-mobile.com.  :-)

Mark

PS.  I'll send you the code this weekend if you reply privately with your
credit card number and exp. date.

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 9:21 AM

Check out this article from JavaPro magazine. 

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the archives.

-Original Message-
From: Sowbhagya Valli Suryadevara [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?



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




RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Quentin.Cope
Cool

Much more complete answer than mine but still not a great idea, and has the same 
downsides as the meta tag stuff, unless I am missing the point. The processing 
servlet, the process that takes a long time, is only fired off once the user has 
downloaded the please wait page and executed the java script. Perhaps I am worrying 
over nothing but what would be real nice is to be able to fire off the long job first, 
then display the message, then somehow connect up to the long job. Perhaps you could 
do something with threads to fire off the long job. or maybe I am making this just 
a little too complex!

Quentin

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2003 14:21
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: Automatic refresh - IS THIS POSSIBLE? 


Check out this article from JavaPro magazine. 

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the archives.




-Original Message-
From: Sowbhagya Valli Suryadevara
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 5:57 AM
To: 'Struts Users Mailing List'
Subject: Automatic refresh - IS THIS POSSIBLE? 

HI,

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message
while
the processing is happening in the background. Then when the processing
is
over the page should come up automatically.

IS THIS POSSIBLE?

Valli


-
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: AW: after update to Struts 1.1 beta 3 Tomcat is throwing anexception

2003-01-30 Thread Knut Herhold
thanks !

the error was in the struts-config.xml
but in the old struts 1.0 version the error was not destined.
 

On Thu, 2003-01-30 at 14:01, Softwareentwicklung Hauschel wrote:
 what content is in struts-config.xml at line 234 column 14 ?
 
 Fredy
 
 -Ursprüngliche Nachricht-
 Von: Knut Herhold [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 30. Januar 2003 14:02
 An: [EMAIL PROTECTED]
 Betreff: after update to Struts 1.1 beta 3 Tomcat is throwing an
 exception
 
 
 After update to Struts 1.1 beta 3 Tomcat is throwing an exception.
 Can this exception to emanated from an old xml-parser
 and how can solve the problem
 
 
 //**
 
 
 
 Jan 30, 2003 11:08:34 AM org.apache.commons.digester.Digester error
 SEVERE: Parse Error at line 234 column 14: The content of element type
 action must match
 (icon?,display-name?,description?,set-property*,forward*).
 org.xml.sax.SAXParseException: The content of element type action must
 match (icon?,display-name?,description?,set-property*,forward*).
 at
 org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
 lerWrapper.java:232)
 at
 org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:17
 3)
 at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:36
 2)
 at
 org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:29
 6)
 at
 org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
 java:2959)
 at
 org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:9
 18)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
 cumentFragmentScannerImpl.java:1145)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
 mentFragmentScannerImpl.java:988)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(XMLDocumentFragmentScannerImpl.java:1446)
 at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
 ntFragmentScannerImpl.java:333)
 at
 org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
 nfiguration.java:529)
 at
 org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
 nfiguration.java:585)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
 at
 org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:114
 8)
 at
 org.apache.commons.digester.Digester.parse(Digester.java:1543)
 at
 org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
 44)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92
 4)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
 at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
 3341)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 //**
 
 
 
 -
 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 

RES: Accessing JSP's under WEB-INF

2003-01-30 Thread Julio Cesar C Neto
Yeah, i´ve done something like this, but I was hoping to find another
solution, anyway is a good one. Thank you!

Julio Cesar

-Mensagem original-
De: Wendy Smoak [mailto:[EMAIL PROTECTED]] 
Enviada em: quinta-feira, 30 de janeiro de 2003 11:36
Para: 'Struts Users Mailing List'
Assunto: RE: Accessing JSP's under WEB-INF

 I´ve done this, but when he´s try to access the first page (index.jsp)
 he says: 
 Configuration error: Cannot perform access control without an
 authenticated principal
 It´s because of the web.xml file that has the tag welcome-file-list.
 How can I fix this?

Change the welcome file to index.html and make that page redirect to
wherever you want it to go (welcome.do?).  One of those Click here to
enter, or your browser should send you there in 5 seconds sort of
things.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003
 


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




RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread pqin
Any solution without using JavaScript?

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

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: January 30, 2003 9:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE? 

Yes, it's possible.  I've done it with a processing... animated progress
bar (though for some reason it works better in Navigator than IE).  You can
see it after you enter your credit card information at
http://shop.t-mobile.com.  :-)

Mark

PS.  I'll send you the code this weekend if you reply privately with your
credit card number and exp. date.

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 9:21 AM

Check out this article from JavaPro magazine. 

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the archives.

-Original Message-
From: Sowbhagya Valli Suryadevara [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?



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



Re: Difference between Struts 1.1 and Struts 1.0

2003-01-30 Thread Eric Rizzo
deepak wrote:

Hi,
Is there any web site that lists the differences between Struts 1.1 and Struts 1.0.


I found this article helpful: 
http://www.scioworks.com/camino_doc/manual/strutsIntro/struts1_1.html

HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



java.util.date in edit form

2003-01-30 Thread Softwareentwicklung Hauschel
Hey all,
i've got an edit form, where i have to input a date.
In my Form.java class the matching properties type is java.util.Date.

But there ist an error submitting the form - ServletException:
BeanUtils.populate

If i delete the date Field, the form/action works ;-(

How can i input a date with struts ?

Fredy


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




RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Durham David Cntr 805CSS/SCBE
Maybe you should try to minimize this load time.

Is it possible that you could use persistence instead of querying the db everytime 
someone wants to view this page?

I'm using a Caching API that was(maybe still is) part of Jive forums, I know that 
there are others as well.  Instead of querying the database everytime I need some 
data, I check to see if I already have this data in memory.

If you already have a model, this is easy to do.

-Dave



 -Original Message-
 From: Quentin.Cope [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 8:39 AM
 To: Struts Users Mailing List
 Subject: RE: Automatic refresh - IS THIS POSSIBLE? 
 
 
 Cool
 
 Much more complete answer than mine but still not a great 
 idea, and has the same downsides as the meta tag stuff, 
 unless I am missing the point. The processing servlet, the 
 process that takes a long time, is only fired off once the 
 user has downloaded the please wait page and executed the 
 java script. Perhaps I am worrying over nothing but what 
 would be real nice is to be able to fire off the long job 
 first, then display the message, then somehow connect up to 
 the long job. Perhaps you could do something with threads to 
 fire off the long job. or maybe I am making this just a 
 little too complex!
 
 Quentin
 
 -Original Message-
 From: Roger Fortier [mailto:[EMAIL PROTECTED]]
 Sent: 30 January 2003 14:21
 To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
 Subject: RE: Automatic refresh - IS THIS POSSIBLE? 
 
 
 Check out this article from JavaPro magazine. 
 
 Send Users a Browser Message
 
 http://www.javapro.com
 
 Click Archives, then select the January 2001 issue from the 
 archives.
 
 
 
 
 -Original Message-
 From: Sowbhagya Valli Suryadevara
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 30, 2003 5:57 AM
 To: 'Struts Users Mailing List'
 Subject: Automatic refresh - IS THIS POSSIBLE? 
 
 HI,
 
 We are using the struts  tiles  framework in our project. There is a
 particular request that consumes a lot of time (20 seconds). 
 Instead of
 showing a blank page is it possible to show a Please Wait  message
 while
 the processing is happening in the background. Then when the 
 processing
 is
 over the page should come up automatically.
 
 IS THIS POSSIBLE?
 
 Valli
 
 
 -
 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]




Passing parameter in a pop up window

2003-01-30 Thread Ritesh Singhal
I want to have a link like this:

 html:link href= paramId=id paramName=customerDetails
paramProperty=customerId
onClick=MM_openBrWindow('AgreementList.do','popup','scrollbars=yes,widt
h=1000,height=500,left=10,top=100') /html:link
 
Where my javascript function is:

function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
 
Now the problem is how should I pass the parameter id in the popup
window. Also on clicking on the link, parent window should not get
refreshed. Please help me if you know the solution.
 
Regards
Ritesh

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




RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Durham David Cntr 805CSS/SCBE
Meta tags, as mentioned previously.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 8:56 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Automatic refresh - IS THIS POSSIBLE? 
 
 
 Any solution without using JavaScript?
 
 Regards,
  
  
 PQ
  
 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing
 
 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
 Sent: January 30, 2003 9:37 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Automatic refresh - IS THIS POSSIBLE? 
 
 Yes, it's possible.  I've done it with a processing... 
 animated progress
 bar (though for some reason it works better in Navigator than 
 IE).  You can
 see it after you enter your credit card information at
 http://shop.t-mobile.com.  :-)
 
 Mark
 
 PS.  I'll send you the code this weekend if you reply 
 privately with your
 credit card number and exp. date.
 
 -Original Message-
 From: Roger Fortier [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 30, 2003 9:21 AM
 
 Check out this article from JavaPro magazine. 
 
 Send Users a Browser Message
 
 http://www.javapro.com
 
 Click Archives, then select the January 2001 issue from the 
 archives.
 
 -Original Message-
 From: Sowbhagya Valli Suryadevara 
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?



-
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: java.util.date in edit form

2003-01-30 Thread Pani, Gourav
why don't you make it a String in the form?  then use the
validator-rules.xml and validator.xml to validate if it is a date or not.
that way, if the person enters a bad date format you can redirect to the
page with the error message as well as populate the bad date into the form
as reference for the person using the application.



-Original Message-
From: Softwareentwicklung Hauschel
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:57 AM
To: Struts Users Mailing List
Subject: java.util.date in edit form


Hey all,
i've got an edit form, where i have to input a date.
In my Form.java class the matching properties type is java.util.Date.

But there ist an error submitting the form - ServletException:
BeanUtils.populate

If i delete the date Field, the form/action works ;-(

How can i input a date with struts ?

Fredy


-
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: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Robert Taylor
Just a thought, but couldn't you start your process and place a token in the
session
indicating the process is active but not complete. Map a filter to /* and
have it
check to see if the token indicates the process is complete. If it is, then
the filter
would redirect the user to the Process Complete page/action. You could
even go as far as to
provide a link on each page for checking the status of the process. The link
would just
loop back to the existing page forcing the filter to check the process
status. The link
would only appear if the process token was in the session.

I haven't tried this, but it seems like it would work.

robert

 -Original Message-
 From: Quentin.Cope [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 9:39 AM
 To: Struts Users Mailing List
 Subject: RE: Automatic refresh - IS THIS POSSIBLE?


 Cool

 Much more complete answer than mine but still not a great idea,
 and has the same downsides as the meta tag stuff, unless I am
 missing the point. The processing servlet, the process that
 takes a long time, is only fired off once the user has downloaded
 the please wait page and executed the java script. Perhaps I am
 worrying over nothing but what would be real nice is to be able
 to fire off the long job first, then display the message, then
 somehow connect up to the long job. Perhaps you could do
 something with threads to fire off the long job. or maybe I
 am making this just a little too complex!

 Quentin

 -Original Message-
 From: Roger Fortier [mailto:[EMAIL PROTECTED]]
 Sent: 30 January 2003 14:21
 To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
 Subject: RE: Automatic refresh - IS THIS POSSIBLE?


 Check out this article from JavaPro magazine.

 Send Users a Browser Message

 http://www.javapro.com

 Click Archives, then select the January 2001 issue from the archives.




 -Original Message-
 From: Sowbhagya Valli Suryadevara
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 5:57 AM
 To: 'Struts Users Mailing List'
 Subject: Automatic refresh - IS THIS POSSIBLE?

 HI,

 We are using the struts  tiles  framework in our project. There is a
 particular request that consumes a lot of time (20 seconds). Instead of
 showing a blank page is it possible to show a Please Wait  message
 while
 the processing is happening in the background. Then when the processing
 is
 over the page should come up automatically.

 IS THIS POSSIBLE?

 Valli


 -
 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: java.util.date in edit form

2003-01-30 Thread Ritesh Singhal
Since it's a request parameter it will go as a String in the form bean.
So you must have date field as a String in the form bean. Later on you
can convert that to a Date object by using java.text.SimpleDateFormat
class.

Regards
Ritesh

-Original Message-
From: Softwareentwicklung Hauschel
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 8:27 PM
To: Struts Users Mailing List
Subject: java.util.date in edit form


Hey all,
i've got an edit form, where i have to input a date.
In my Form.java class the matching properties type is java.util.Date.

But there ist an error submitting the form - ServletException:
BeanUtils.populate

If i delete the date Field, the form/action works ;-(

How can i input a date with struts ?

Fredy


-
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: Passing parameter in a pop up window

2003-01-30 Thread Pani, Gourav
Ritesh, 

I struggled with getting this to work for a while and just went ahead and
wrote my own custom taglib.  It works a lot better than using the available
tags.  Besides, you can customize your popup window a lot better if you
wrote your own taglib.

-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 10:03 AM
To: Struts Users Mailing List
Subject: Passing parameter in a pop up window


I want to have a link like this:

 html:link href= paramId=id paramName=customerDetails
paramProperty=customerId
onClick=MM_openBrWindow('AgreementList.do','popup','scrollbars=yes,widt
h=1000,height=500,left=10,top=100') /html:link
 
Where my javascript function is:

function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
 
Now the problem is how should I pass the parameter id in the popup
window. Also on clicking on the link, parent window should not get
refreshed. Please help me if you know the solution.
 
Regards
Ritesh

-
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: java.util.date in edit form

2003-01-30 Thread Jarnot Voytek Contr AU HQ/SC
Your form bean should only deal with Strings.  Convert the string later -
either with BeanUtils or manually.  There have been a number of discussions
about why form beans should only deal with Strings - most reasons having to
do with the issue of invalid input, and the redisplaying thereof.

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: Softwareentwicklung Hauschel
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 8:57 AM
 To: Struts Users Mailing List
 Subject: java.util.date in edit form
 
 
 Hey all,
 i've got an edit form, where i have to input a date.
 In my Form.java class the matching properties type is java.util.Date.
 
 But there ist an error submitting the form - ServletException:
 BeanUtils.populate
 
 If i delete the date Field, the form/action works ;-(
 
 How can i input a date with struts ?
 
 Fredy
 
 
 -
 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: Passing parameter in a pop up window

2003-01-30 Thread Durham David Cntr 805CSS/SCBE
Add the id to url.

something like MM_openBrWindow('AgreementList.do?id=' bean:write name=someID/, 
...);


 -Original Message-
 From: Ritesh Singhal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 9:03 AM
 To: Struts Users Mailing List
 Subject: Passing parameter in a pop up window
 
 
 I want to have a link like this:
 
  html:link href= paramId=id paramName=customerDetails
 paramProperty=customerId
 onClick=MM_openBrWindow('AgreementList.do','popup','scrollbar
 s=yes,widt
 h=1000,height=500,left=10,top=100') /html:link
  
 Where my javascript function is:
 
 function MM_openBrWindow(theURL,winName,features) {
   window.open(theURL,winName,features);
 }
  
 Now the problem is how should I pass the parameter id in the popup
 window. Also on clicking on the link, parent window should not get
 refreshed. Please help me if you know the solution.
  
 Regards
 Ritesh
 
 -
 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]




Parameters

2003-01-30 Thread modena
Good day, my problem is the following: I use the Eric Fesler's taglib for 
realize dynamic link in this way:
 
 
mytag:IterS colors=#FF,#E5E9F5
 TR bgcolor=%=Color%
 TD align=left%=CorsoStudioId%/TD
 TD align=left%=CorsoStudioName%/TD
 TD align=left%=CorsoStudioFacolta%/TD
 TD align=left%=CorsoStudioCrediti%/TD
 TD align=left
 hm:link page=/corsiIA.do
 hm:linkparam id=IDCorsoS  name=CorsoStudioId/
 hm:linkparam id=IDFacolta  name=IDFacolta/
 Vis. Corsi Insegn.
 /hm:link
 /TD
 /TR
/mytag:IterS
 
where IDFacolta is an parameter that I get from the request and CorsoStudioId
is a value that I get from my taglibrary (this iterate on a collection that i
pass with the controller). Now I want to know if  is possible use the tag  
html: link of struts with a HashMap, but using an only HashMap and passing 
this between the varied jsp/ action in the request (because I want to pass 
some parameter that it haven't displayed in the url). Before i usying:

%
HashMap mappaold= (HashMap) request.getAttribute ( map);
 // I recover the values from the old HashMap 
%
 
mytag:IterS colors=#FF,#E5E9F5
 TR bgcolor=%=Color%
 TD align=left%=CorsoStudioId%/TD
 TD align=left%=CorsoStudioName%/TD
 TD align=left%=CorsoStudioFacolta%/TD
 TD align=left%=CorsoStudioCrediti%/TD
 TD align=left
 %
 HashMap mappa = new HashMap();
 mappa.putAll(mappaold);
 mappa.put(IDCorsoS,CorsoStudioId);
 %
 html:link action=/corsiIA.do name=mappa /
 /TD
 /TR
/mytag:IterS
 
Here I use more HashMap one for any cycles (es: 100 cycles= 
100HashMap :  ). .I'd like to know if it' s possible to use only one and if
yes how?Or,if this are impossible, how i can pass other parameter from this 
jsp and its controller if i don't put this parameter on the link?
I thank for the help.
p.s. Sorry for my english.
Alessio.

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




RE: Passing parameter in a pop up window

2003-01-30 Thread John Espey
Why didn't you use the html-EL taglibrary to do it?  It seems like it would
be the simplest way to do it

-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:02 AM
To: 'Struts Users Mailing List'
Subject: RE: Passing parameter in a pop up window


Ritesh,

I struggled with getting this to work for a while and just went ahead and
wrote my own custom taglib.  It works a lot better than using the available
tags.  Besides, you can customize your popup window a lot better if you
wrote your own taglib.

-Original Message-
From: Ritesh Singhal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 10:03 AM
To: Struts Users Mailing List
Subject: Passing parameter in a pop up window


I want to have a link like this:

 html:link href= paramId=id paramName=customerDetails
paramProperty=customerId
onClick=MM_openBrWindow('AgreementList.do','popup','scrollbars=yes,widt
h=1000,height=500,left=10,top=100') /html:link

Where my javascript function is:

function MM_openBrWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}

Now the problem is how should I pass the parameter id in the popup
window. Also on clicking on the link, parent window should not get
refreshed. Please help me if you know the solution.

Regards
Ritesh

-
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: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Mark Galbreath
Not AFAIK.  Sorry.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Automatic refresh - IS THIS POSSIBLE? 


Any solution without using JavaScript?

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

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: January 30, 2003 9:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE? 

Yes, it's possible.  I've done it with a processing... animated progress
bar (though for some reason it works better in Navigator than IE).  You can
see it after you enter your credit card information at
http://shop.t-mobile.com.  :-)

Mark

PS.  I'll send you the code this weekend if you reply privately with your
credit card number and exp. date.

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 9:21 AM

Check out this article from JavaPro magazine. 

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the archives.

-Original Message-
From: Sowbhagya Valli Suryadevara [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?



-
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: Passing parameter in a pop up window

2003-01-30 Thread Jerome Jacobsen
Not sure, but maybe this:
bean:define id=popUpURLhtml:rewrite 
   page=AgreementList.do
   paramName=customerDetails
   paramProperty=customerId//bean:define

a href=
   onClick=MM_openBrWindow('%= popUpURL %','popup','scrollbars=yes,widt
   h=1000,height=500,left=10,top=100')Click Me/a


 -Original Message-
 From: Ritesh Singhal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 10:03 AM
 To: Struts Users Mailing List
 Subject: Passing parameter in a pop up window
 
 
 I want to have a link like this:
 
  html:link href= paramId=id paramName=customerDetails
 paramProperty=customerId
 onClick=MM_openBrWindow('AgreementList.do','popup','scrollbars=yes,widt
 h=1000,height=500,left=10,top=100') /html:link
  
 Where my javascript function is:
 
 function MM_openBrWindow(theURL,winName,features) {
   window.open(theURL,winName,features);
 }
  
 Now the problem is how should I pass the parameter id in the popup
 window. Also on clicking on the link, parent window should not get
 refreshed. Please help me if you know the solution.
  
 Regards
 Ritesh
 
 -
 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][OT][HUMOUR] A Nigerian letter from George Bush ;-

2003-01-30 Thread PILGRIM, Peter, FM
ALOL - This you write this all on your own, Mark

--
Peter Pilgrim,


***
  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB 
Regulated by the Financial Services Authority
***

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




RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Andrew Hill
Can Flash do it? ;-)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 January 2003 23:13
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Not AFAIK.  Sorry.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Any solution without using JavaScript?

Regards,


PQ

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

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: January 30, 2003 9:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?

Yes, it's possible.  I've done it with a processing... animated progress
bar (though for some reason it works better in Navigator than IE).  You can
see it after you enter your credit card information at
http://shop.t-mobile.com.  :-)

Mark

PS.  I'll send you the code this weekend if you reply privately with your
credit card number and exp. date.

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:21 AM

Check out this article from JavaPro magazine.

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the archives.

-Original Message-
From: Sowbhagya Valli Suryadevara [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?



-
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: Passing parameter in a pop up window

2003-01-30 Thread Ritesh Singhal
This will just take it as a string and wont evaluate it. In the final
html link you will see something like

AgreementList.do?id=bean:write name=someID/

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 30, 2003 8:34 PM
To: Struts Users Mailing List
Subject: RE: Passing parameter in a pop up window


Add the id to url.

something like MM_openBrWindow('AgreementList.do?id=' bean:write
name=someID/, ...);


 -Original Message-
 From: Ritesh Singhal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 9:03 AM
 To: Struts Users Mailing List
 Subject: Passing parameter in a pop up window
 
 
 I want to have a link like this:
 
  html:link href= paramId=id paramName=customerDetails 
 paramProperty=customerId 
 onClick=MM_openBrWindow('AgreementList.do','popup','scrollbar
 s=yes,widt
 h=1000,height=500,left=10,top=100') /html:link
  
 Where my javascript function is:
 
 function MM_openBrWindow(theURL,winName,features) {
   window.open(theURL,winName,features);
 }
  
 Now the problem is how should I pass the parameter id in the popup 
 window. Also on clicking on the link, parent window should not get 
 refreshed. Please help me if you know the solution.
  
 Regards
 Ritesh
 
 -
 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]




[OT] RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Pani, Gourav
Flash can launch spacecrafts.  This is chicken feed.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 10:22 AM
To: Struts Users Mailing List
Subject: RE: Automatic refresh - IS THIS POSSIBLE? 


Can Flash do it? ;-)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 January 2003 23:13
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Not AFAIK.  Sorry.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Any solution without using JavaScript?

Regards,


PQ

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

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: January 30, 2003 9:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?

Yes, it's possible.  I've done it with a processing... animated progress
bar (though for some reason it works better in Navigator than IE).  You can
see it after you enter your credit card information at
http://shop.t-mobile.com.  :-)

Mark

PS.  I'll send you the code this weekend if you reply privately with your
credit card number and exp. date.

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:21 AM

Check out this article from JavaPro magazine.

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the archives.

-Original Message-
From: Sowbhagya Valli Suryadevara [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?



-
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: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-30 Thread Greg.Reddin
You've stated it correctly when you said that Actions are your flow controllers.  In 
the case of your login/getAccounts example, you should have a business object that 
handles login, and a business object that gets accounts.  You would then have a login 
action (use case controller) that would use both business objects, assuming the login 
was successful.  You would also have a displayAccounts action (use case controller) 
that uses the accounts business object very similar to the way the login action uses 
it.

So, my understanding is that the Actions you define are your use case controllers.  
They basically give you all the options you have with your application, but the logic 
of the application itself resides in the business objects.  You may have lots of 
actins with some repeated code in a few, or you may be able to define just a few 
parameterized actions that handle all your use cases somewhat generically.

Now, the case you've defined is that the outcome of one use case causes another use 
case to be executed.  While I probably wouldn't check for a login that way, I'm not 
yet convinced that the approach itself is inherently bad.  

BTW, I don't see actions as handling errors so much as responding to them, and 
acting as an adapter layer between your application's error handling and Struts.  You 
should probably have some error-handling mechanism in your business layer and the 
Action classes will interpret what comes out of the business layer and translate it 
into Struts errors.

Greg

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 4:34 AM
 To: [EMAIL PROTECTED]
 Subject: design question about action chainning(As quoted in 
 :Struts in
 action...by Ted Husted et al..)
 
 
 Hi All,
 I have a very basic design question about struts action 
 design..We have been 
 developing a fairly large and complex web application 
 involving struts and 
 struts has proved to be a great help :-))  But after reading 
 the book by Mr. 
 Husted et al., Struts in action,I have some basic questions 
 about the way we 
 have done our project and the way it is described in the book.
 TO quote Mr. Husted...(Section 8.4 Chaining Actions .Note at 
 the end of 
 Section8.4.1. Starting fresh..)
 
 Speaking  as a Software architect,chainning actions in any 
 way is not something 
 that I like to do.Ideally you should be able to call the 
 business objects from 
 any Action where they are needed.Wanting to forward control 
 to another action 
 implies that the Business  object my be too tightly 
 coupled.Or it may imply 
 that the actions should descend from a common super class 
 with hotspots that 
 sub classes should overrideThere are occasions when 
 chainning actions makes 
 sense-for example if the other action is being used to render 
 the response in 
 lieu of a presentation page.But valid use cases are rare.The 
 best general 
 practice is to stay with one-request ,one action regimen.
 *
 
 
 And also after searching the  archives for action chainnign , 
 I found another 
 reply from Mr. Husted which says..
 
 Wanting to chain actions is a warning sign that there is too 
 much business 
 logic is creeping into the Actions and they are becoming the 
 API, rather than 
 an adaptor for the API. (Struts should not *be* your 
 application, it should be 
 a gateway *to* your application.)
 **
 **
 *
 
 
 I have a high regard for Mr. Ted Husted and that's why I 
 would like to clarify 
 some of my doubts about the design strategy he has advocated 
 in his book from 
 the exüperienced users of this list and Mr Husted himself if possible.
 I dont understand what is the disadvantage in Chainning 
 actions?HAs it some 
 thing to do with performance?I totally agree that the 
 business objects shuld 
 not be tightly coupled with actions and should be callable 
 from any where .But 
 even after following this principal, most of the time you 
 will end up chainning 
 actions if u really want reusable actions.Example can be 
 loging process of a 
 user.So the request for loging form a user can result in 2 
 actions being 
 called.1:CheckLogin(which checks user credentials) It 
 forwards control to 
 2:getUserAccountList which gets the list of accounts for the user. 
 
 So now the getUserAccountList  action I can call from any 
 where else by passing 
 right params and it becomes reusable.But if i had done all of 
 this(check log in 
 and then get accunts)in login action, i need to write another 
 action to get 
 account for another page.And I am using calls to different 
 services(LoginService and AccountService..)which are still 
 reusable from any 
 action here..
 So the 

change the scope of message resources used in JSP ?

2003-01-30 Thread Christine Plumejeaud
Hi!

I'm using struts-1.0.2. My question concerns the usage of the
MessageResource.
I've set my own application resource into session scope.
But now, I'd like that all my jsp pages search for resources into the
session scope instead of the application scope (so that each user can
configure which language he wants to use, instead of configuring the langage
in use for the whole application).
When using bean:message key=language.in.used in a jsp page, the resource
will be search into the application scope.
Of course I've tried this command: bean:message key=language.in.used
scope=session,
(my own resources are recorded into the session with the attribute
Actions.MESSAGES_KEY)
but it doesn't work. In fact, the code source code of struts doesn't let us
the choice:
In RequestUtils.java, you set the scope to APPLICATION
 /**
 * Look up and return a message string, based on the specified
parameters.
 *
 * @param pageContext The PageContext associated with this request
 * @param bundle Name of the servlet context attribute for our
 *  message resources bundle
 * @param locale Name of the session attribute for our user's Locale
 * @param key Message key to be looked up and returned
 * @param args Replacement parameters for this message
 *
 * @exception JspException if a lookup error occurs (will have been
 *  saved in the request already)
 */
public static String message(PageContext pageContext, String bundle,
 String locale, String key, Object args[])
throws JspException {

// Look up the requested MessageResources
if (bundle == null)
bundle = Action.MESSAGES_KEY;
MessageResources resources = (MessageResources)
pageContext.getAttribute(bundle, PageContext.APPLICATION_SCOPE);
if (resources == null) {
JspException e = new JspException
(messages.getMessage(message.bundle, bundle));
saveException(pageContext, e);
throw e;
}

// Look up the requested Locale
if (locale == null)
locale = Action.LOCALE_KEY;
Locale userLocale = (Locale)
pageContext.getAttribute(locale, PageContext.SESSION_SCOPE);
if (userLocale == null)
userLocale = defaultLocale;

// Return the requested message
if (args == null)
return (resources.getMessage(userLocale, key));
else
return (resources.getMessage(userLocale, key, args));

}

So my question is: does anyone has any idea to configure a MessageResource
for one HttpSession (session scope) and  not for all the ServletContext
(=application scope)?

Regards,
Christine

Christine Plumejeaud
SA Eloquant
06 17 08 45 97


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




Re: Tiles Portal

2003-01-30 Thread BaTien Duong
Here is 1 way I solve the issue.

1) Have portalDisplay layouts with skins and designs for each company.
2) A centrallized controller PortalDisplayAction acts as a single
gateway, responsible for preliminary processing such as security, etc, plus
dispatching to requested url if all conditions meet.

For each company, you can have different authorized portal services based on
user roles. User enters any company will have its personalized portal with
authorized services. Alternatively, user can have a single point of
personalized entry with authorized services for all activities and touch
points of the market place, where each company plays a part with its own
look and feel and authorized services.

Look at this link:
http://myportal.myb2cb2b.com/com.dbgroups.ppf/model/web/tiles.html

Hope this may help.
BaTien

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 1:47 AM
Subject: RE: Tiles Portal


 Hi,
 I am not exactly clear about u r requirement.But we have achieved some
thing
 similar in one of my previous project.We had a protal where employees of
 different companies will be logging in and the information about the
company
 will be provided in the http header.and we were required to provide
company
 specific logo and other things to each user, even though the same web app
was
 serving all the requests.
 What we had done was that keep the information about users company in
 UserContext object in session and then use the same to dynamicaly generate
link
 to company specific logo and conect to company specific database.

 But the layout or colours were same for all users.SO about that point I am
not
 sure how to do that..

 Hope this helps ,
 regards,
 Shirish

 -Original Message-
 From: sciz09 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 29, 2003 10:01 PM
 To: struts-user
 Cc: sciz09
 Subject: Tiles Portal


 Ive been looking into using struts and tiles for an
 upcoming project.  I need to be able to change the
 look and feel of the website based on the url the site
 was entered from.  For example, if a user enters from
 company1.foo.com then show their company colors and
 logo. if a user enteres from company2.foo.com then use
 different color scheme and logos... and so on.  Is
 this something tiles should be used for?  Has anyone
 acomplished such a project? Thanks.  Jay.

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

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



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



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




RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Hookom, Jacob John
I've done the please wait page for uploads before, I made a div layer that sat on top 
of the page when the submit button was hit.  The layer that poppped up had an option 
to cancel to prevent users from hanging on a bad request.
 
-Jacob

-Original Message- 
From: Pani, Gourav [mailto:[EMAIL PROTECTED]] 
Sent: Thu 1/30/2003 9:21 AM 
To: 'Struts Users Mailing List' 
Cc: 
Subject: [OT] RE: Automatic refresh - IS THIS POSSIBLE? 



Flash can launch spacecrafts.  This is chicken feed.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 10:22 AM
To: Struts Users Mailing List
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Can Flash do it? ;-)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 January 2003 23:13
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Not AFAIK.  Sorry.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Any solution without using JavaScript?

Regards,


PQ

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

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: January 30, 2003 9:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?

Yes, it's possible.  I've done it with a processing... animated progress
bar (though for some reason it works better in Navigator than IE).  You can
see it after you enter your credit card information at
http://shop.t-mobile.com.  :-)

Mark

PS.  I'll send you the code this weekend if you reply privately with your
credit card number and exp. date.

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:21 AM

Check out this article from JavaPro magazine.

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the archives.

-Original Message-
From: Sowbhagya Valli Suryadevara [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead of
showing a blank page is it possible to show a Please Wait  message while
the processing is happening in the background. Then when the processing is
over the page should come up automatically.

IS THIS POSSIBLE?



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



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


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

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





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


RE: Passing parameter in a pop up window

2003-01-30 Thread Durham David Cntr 805CSS/SCBE
Well yeah, outside the html:link was what I was thinking, but that's just one way to 
do it.

 -Original Message-
 From: Ritesh Singhal [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 9:23 AM
 To: Struts Users Mailing List
 Subject: RE: Passing parameter in a pop up window
 
 
 This will just take it as a string and wont evaluate it. In the final
 html link you will see something like
 
 AgreementList.do?id=bean:write name=someID/
 
 -Original Message-
 From: Durham David Cntr 805CSS/SCBE 
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 30, 2003 8:34 PM
 To: Struts Users Mailing List
 Subject: RE: Passing parameter in a pop up window
 
 
 Add the id to url.
 
 something like MM_openBrWindow('AgreementList.do?id=' bean:write
 name=someID/, ...);
 
 
  -Original Message-
  From: Ritesh Singhal [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 30, 2003 9:03 AM
  To: Struts Users Mailing List
  Subject: Passing parameter in a pop up window
  
  
  I want to have a link like this:
  
   html:link href= paramId=id paramName=customerDetails 
  paramProperty=customerId 
  onClick=MM_openBrWindow('AgreementList.do','popup','scrollbar
  s=yes,widt
  h=1000,height=500,left=10,top=100') /html:link
   
  Where my javascript function is:
  
  function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
  }
   
  Now the problem is how should I pass the parameter id in 
 the popup 
  window. Also on clicking on the link, parent window should not get 
  refreshed. Please help me if you know the solution.
   
  Regards
  Ritesh
  
  
 -
  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: Passing parameter in a pop up window

2003-01-30 Thread Gemes Tibor
2003. január 30. 16:22 dátummal Ritesh Singhal ezt írtad:
 This will just take it as a string and wont evaluate it. In the final
 html link you will see something like

 AgreementList.do?id=bean:write name=someID/

False. It will be evaluated as it is supposed. I use this extensively. 

Hth,

Tib

 Add the id to url.
 
 something like MM_openBrWindow('AgreementList.do?id=' bean:write
 name=someID/, ...);



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




RE: Accessing JSP's under WEB-INF

2003-01-30 Thread Kevin Peters
Or you could change the welcome-file to index.do.  This is what we do.  The
only problem is that you'll need a blank file named index.do in your webroot
or you'll get an error.

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:36 AM
To: 'Struts Users Mailing List'
Subject: RE: Accessing JSP's under WEB-INF


 I´ve done this, but when he´s try to access the first page (index.jsp)
 he says: 
 Configuration error: Cannot perform access control without an
 authenticated principal
 It´s because of the web.xml file that has the tag welcome-file-list.
 How can I fix this?

Change the welcome file to index.html and make that page redirect to
wherever you want it to go (welcome.do?).  One of those Click here to
enter, or your browser should send you there in 5 seconds sort of things.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


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



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




Nesting a tiles:insert inside of a tiles:put is returning Illegal to flush within a custom tag

2003-01-30 Thread Jarrod M. Lugo
Hello,

I have a situation that I need to nest a tiles:insert inside of a
tiles:put.  I did this with template tags in the past with no problem.  I
am now getting an Illegal to flush within a custom tag error when I
changed all the template tags to tiles.

I have read about similar problems when nesting a tiles tag inside of an
iteration tag...  So, I hacked it by using tiles for the outer
insert/puts, and a template for the inner insert/puts, but I shouldn't have
to do this, right?  Plus, I may need to use tiles for the inner insert/puts
in the future and it is just ugly to mix and match this stuff...

Any help would greatly be appreciated.  If you need it, I have a small chunk
of code exemplifying what I am trying to do.

Thanks for your help,
Jarrod Lugo


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




RE: Accessing JSP's under WEB-INF

2003-01-30 Thread Durham David Cntr 805CSS/SCBE
That's annoying, is this container specific?

-Dave

 -Original Message-
 From: Kevin Peters [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 9:33 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Accessing JSP's under WEB-INF
 
 
 Or you could change the welcome-file to index.do.  This is 
 what we do.  The
 only problem is that you'll need a blank file named index.do 
 in your webroot
 or you'll get an error.
 
 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 9:36 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Accessing JSP's under WEB-INF
 
 
  I´ve done this, but when he´s try to access the first page 
 (index.jsp)
  he says: 
  Configuration error: Cannot perform access control without an
  authenticated principal
  It´s because of the web.xml file that has the tag 
 welcome-file-list.
  How can I fix this?
 
 Change the welcome file to index.html and make that page redirect to
 wherever you want it to go (welcome.do?).  One of those Click here to
 enter, or your browser should send you there in 5 seconds 
 sort of things.
 
 -- 
 Wendy Smoak
 Applications Systems Analyst, Sr.
 Arizona State University PA Information Resources Management
 
 
 **
 * 
 This electronic mail transmission contains confidential 
 and/or privileged 
 information intended only for the person(s) named.  Any use, 
 distribution, 
 copying or disclosure by another person is strictly prohibited. 
 **
 * 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




Re: RES: Accessing JSP's under WEB-INF

2003-01-30 Thread David Graham
Well, if the url ends in .jsp then the security is working.  I had to write 
a filter to allow people to use urls like:

www.corp.com/account/

Note that you'll have no problem if you do the last url like this:

www.corp.com/account/index.do

The filter looks at the end of the url and if it matches / or index.jsp 
it changes it to end with /index.do and sends a redirect to the new url.

If you can't use filters there is another solution.  Just put an index.jsp 
file in the directory that redirects to index2.jsp.  index2.jsp will be the 
actual index page for that directory.

David






From: Julio Cesar C Neto [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RES: Accessing JSP's under WEB-INF
Date: Thu, 30 Jan 2003 09:50:52 -0300

Hi david,

I´ve done this, but when he´s try to access the first page (index.jsp)
he says:

 Configuration error: Cannot perform access control without an
authenticated principal

It´s because of the web.xml file that has the tag welcome-file-list.
How can I fix this?


Julio Cesar

-Mensagem original-
De: David Graham [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 29 de janeiro de 2003 18:42
Para: [EMAIL PROTECTED]
Assunto: Re: Accessing JSP's under WEB-INF

For a portable solution, put this in your web.xml file instead:

security-constraint
		web-resource-collection

web-resource-nameSecureAllJSPs/web-resource-name
			url-pattern*.jsp/url-pattern
		/web-resource-collection
		auth-constraint
			description
Protects all JSP files from direct
access.  Clients
must go through the controller servlet.
			/description
			role-namenobody/role-name
		/auth-constraint
	/security-constraint

	security-role
		descriptionNo one should be put in this
role./description
		role-namenobody/role-name
/security-role






From: James Mitchell [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Accessing JSP's under WEB-INF
Date: Wed, 29 Jan 2003 15:52:51 -0500

Aside from the fact that not every container supports it, no.


--
James Mitchell





- Original Message -
From: White, Joshua A (AG, COMM) [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, January 29, 2003 3:04 PM
Subject: RE: Accessing JSP's under WEB-INF


  James,
 
  I couldn't have ask for anything more.
 
  Does anyone know of any performance problems with organizing your
code
in
  the manner?
 
  Joshua
 
   -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 29, 2003 2:57 PM
  To: Struts Users Mailing List
  Subject: Re: Accessing JSP's under WEB-INF
 
  You can download the struts-example that was modified to demonstrate

this
  from the following URL:
 
  http://www.open-tools.org/struts-atlanta/downloads
 
 
 
  --
  James Mitchell
 
 
 
 
 
  - Original Message -
  From: White, Joshua A (AG, COMM) [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, January 29, 2003 2:51 PM
  Subject: Accessing JSP's under WEB-INF
 
 
   Hello all,
  
   I would like to put my struts related jsp files under the web-inf
  directory
   in a folder called securedocroot so that they have no chance of
being
   called directly.  The problem is that I do not know how you would
call
a
   page from this folder.  How would you map these jsp's in the
struts-config
   file?
  
   If you have done this in an existing application, would you mind
positing
   some example code and possible a brief explanation?
  
   Regards,
  
   Joshua
  
  
   This communication, including attachments, is for the exclusive
use of
   addressee and may contain proprietary, confidential or privileged
   information. If you are not the intended recipient, any use,
copying,
   disclosure, dissemination or distribution is strictly prohibited.
If
   you are not the intended recipient, please notify the sender
   immediately by return email and delete this communication and
destroy
all
  copies.
  
  
  
-
   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]


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



Re: Accessing JSP's under WEB-INF

2003-01-30 Thread James Mitchell
You _should_ have an index.jsp page that simply forwards to your index.do
action.

Keep it sweet and simple.


--
James Mitchell





- Original Message -
From: Durham David Cntr 805CSS/SCBE [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 10:38 AM
Subject: RE: Accessing JSP's under WEB-INF


That's annoying, is this container specific?

-Dave

 -Original Message-
 From: Kevin Peters [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 9:33 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Accessing JSP's under WEB-INF


 Or you could change the welcome-file to index.do.  This is
 what we do.  The
 only problem is that you'll need a blank file named index.do
 in your webroot
 or you'll get an error.

 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 30, 2003 9:36 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Accessing JSP's under WEB-INF


  I´ve done this, but when he´s try to access the first page
 (index.jsp)
  he says:
  Configuration error: Cannot perform access control without an
  authenticated principal
  It´s because of the web.xml file that has the tag
 welcome-file-list.
  How can I fix this?

 Change the welcome file to index.html and make that page redirect to
 wherever you want it to go (welcome.do?).  One of those Click here to
 enter, or your browser should send you there in 5 seconds
 sort of things.

 --
 Wendy Smoak
 Applications Systems Analyst, Sr.
 Arizona State University PA Information Resources Management


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



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



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




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




RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Brian Lee
You should be able to do this without JavaScript if you use the meta 
refresh tag. Set the url to the page that takes a long time and the refresh 
to 0 (immidiately). Then in your jsp/servlet/whatever that takes a long 
time, do not put any ouput until the long process has completed.

IE/NS shouldn't move the user from the current page to the next until an 
output stream from the web server is sent.

something like this:
meta http-equiv=refresh 
content=0;url=http://whatever.com/myLongAction.do;

BAL

From: Hookom, Jacob John [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE?
Date: Thu, 30 Jan 2003 09:28:03 -0600
I've done the please wait page for uploads before, I made a div layer that 
sat on top of the page when the submit button was hit.  The layer that 
poppped up had an option to cancel to prevent users from hanging on a bad 
request.

-Jacob

	-Original Message-
	From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
	Sent: Thu 1/30/2003 9:21 AM
	To: 'Struts Users Mailing List'
	Cc:
	Subject: [OT] RE: Automatic refresh - IS THIS POSSIBLE?



	Flash can launch spacecrafts.  This is chicken feed.

	-Original Message-
	From: Andrew Hill [mailto:[EMAIL PROTECTED]]
	Sent: Thursday, January 30, 2003 10:22 AM
	To: Struts Users Mailing List
	Subject: RE: Automatic refresh - IS THIS POSSIBLE?


	Can Flash do it? ;-)

	-Original Message-
	From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
	Sent: Thursday, 30 January 2003 23:13
	To: 'Struts Users Mailing List'
	Subject: RE: Automatic refresh - IS THIS POSSIBLE?


	Not AFAIK.  Sorry.

	-Original Message-
	From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
	Sent: Thursday, January 30, 2003 9:56 AM
	To: [EMAIL PROTECTED]
	Subject: RE: Automatic refresh - IS THIS POSSIBLE?


	Any solution without using JavaScript?

	Regards,


	PQ

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

	-Original Message-
	From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
	Sent: January 30, 2003 9:37 AM
	To: 'Struts Users Mailing List'
	Subject: RE: Automatic refresh - IS THIS POSSIBLE?

	Yes, it's possible.  I've done it with a processing... animated progress
	bar (though for some reason it works better in Navigator than IE).  You 
can
	see it after you enter your credit card information at
	http://shop.t-mobile.com.  :-)

	Mark

	PS.  I'll send you the code this weekend if you reply privately with your
	credit card number and exp. date.

	-Original Message-
	From: Roger Fortier [mailto:[EMAIL PROTECTED]]
	Sent: Thursday, January 30, 2003 9:21 AM

	Check out this article from JavaPro magazine.

	Send Users a Browser Message

	http://www.javapro.com

	Click Archives, then select the January 2001 issue from the archives.

	-Original Message-
	From: Sowbhagya Valli Suryadevara 
[mailto:[EMAIL PROTECTED]]
	Sent: Thursday, January 30, 2003 5:57 AM

	We are using the struts  tiles  framework in our project. There is a
	particular request that consumes a lot of time (20 seconds). Instead of
	showing a blank page is it possible to show a Please Wait  message while
	the processing is happening in the background. Then when the processing is
	over the page should come up automatically.

	IS THIS POSSIBLE?



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



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


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

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




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


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


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



RE: struts and weblogic 5.1

2003-01-30 Thread Karr, David
I don't know for certain whether it will work with WL 5.1, but Struts
does not require a servlet 2.3 compliant container.  As it is currently
defined, it can work in a servlet 2.2 container.

-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 29, 2003 8:25 AM
To: Struts Users Mailing List
Subject: struts and weblogic 5.1

Hi everyone,

Quick question here.  Will struts work with weblogic 5.1?  I don't think
it's servlet 2.3 compliant, which would lead me to believe that struts
wouldn't work with it.  Am I mistaken?

TIA,
Jason


-
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: design question about action chainning(As quoted in :Struts in action...by Ted Husted et al..)

2003-01-30 Thread BaTien Duong
We achieve what you describe as a chain of actions for re-use with helper
beans and follow Struts design principal as Ted described. The helper beans
can be ready in cache or service pool for reuse. Look at
http://myportal.myb2cb2b.com/com.dbgroups.ppf/model/web/dao.html

Hope this may help.
BaTien

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 30, 2003 3:34 AM
Subject: design question about action chainning(As quoted in :Struts in
action...by Ted Husted et al..)


 Hi All,
 I have a very basic design question about struts action design..We have
been
 developing a fairly large and complex web application involving struts and
 struts has proved to be a great help :-))  But after reading the book by
Mr.
 Husted et al., Struts in action,I have some basic questions about the
way we
 have done our project and the way it is described in the book.
 TO quote Mr. Husted...(Section 8.4 Chaining Actions .Note at the end of
 Section8.4.1. Starting fresh..)
 
 Speaking  as a Software architect,chainning actions in any way is not
something
 that I like to do.Ideally you should be able to call the business objects
from
 any Action where they are needed.Wanting to forward control to another
action
 implies that the Business  object my be too tightly coupled.Or it may
imply
 that the actions should descend from a common super class with hotspots
that
 sub classes should overrideThere are occasions when chainning actions
makes
 sense-for example if the other action is being used to render the response
in
 lieu of a presentation page.But valid use cases are rare.The best general
 practice is to stay with one-request ,one action regimen.
 *


 And also after searching the  archives for action chainnign , I found
another
 reply from Mr. Husted which says..
 
 Wanting to chain actions is a warning sign that there is too much business
 logic is creeping into the Actions and they are becoming the API, rather
than
 an adaptor for the API. (Struts should not *be* your application, it
should be
 a gateway *to* your application.)



 *


 I have a high regard for Mr. Ted Husted and that's why I would like to
clarify
 some of my doubts about the design strategy he has advocated in his book
from
 the exüperienced users of this list and Mr Husted himself if possible.
 I dont understand what is the disadvantage in Chainning actions?HAs it
some
 thing to do with performance?I totally agree that the business objects
shuld
 not be tightly coupled with actions and should be callable from any where
.But
 even after following this principal, most of the time you will end up
chainning
 actions if u really want reusable actions.Example can be loging process of
a
 user.So the request for loging form a user can result in 2 actions being
 called.1:CheckLogin(which checks user credentials) It forwards control to
 2:getUserAccountList which gets the list of accounts for the user.

 So now the getUserAccountList  action I can call from any where else by
passing
 right params and it becomes reusable.But if i had done all of this(check
log in
 and then get accunts)in login action, i need to write another action to
get
 account for another page.And I am using calls to different
 services(LoginService and AccountService..)which are still reusable from
any
 action here..
 So the chainning of actions this way has perfectly solved all the
 problems...And instead of this being a rare iuse case, most of the time ,
this
 is the pattern u will have for any use case.(Update some thing and get
some
 data to screen...)So what is the advantage of following  one-request ,one
 action regimen?

 Also I didnt understand what he means by (Struts should not *be* your
 application, it should be a gateway *to* your application.)As I see it,the
 service layer handles the business logic .But Ultimately the actions end
up
 delegating the requests to service and so doing error handling as well as
 handling flow control(Some thing like if this error, go to page 1, for
that
 request go to page 2..)So they are very much part of the
application...Infact
 they handle the application flow.Is this right or Am i missing some thing
very
 bascic here?
 This is important as We have the next phase of development starting next
week
 and we are in the process of evaluating our architecture and finding any
 flaws..So any help will be highly appreciated...

 Sory for being tooo verbose.But i couldn't have exlained it any other way.

 regards,
 Shirish
 
 Shirish Sakhare
 Application Developer
 (CEFS PROJECT)
 (CEFS) Corporate Employee Financial Services

 UBS AG
 Stauffacherstrasse 41
 P.O. Box, 

RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Michael C. Clark
Flash can (and probably had) launched the Space Shuttle, and would be
nice to use for exactly what you are trying to do.  If it is an
appropriate UI for you, it is quite good at processing requests
asynchronously using XML.

Just don't use cute animations, and you'll be fine.

 Original Message 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE? 
Date: Thu, 30 Jan 2003 10:21:13 -0500

Flash can launch spacecrafts.  This is chicken feed.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 10:22 AM
To: Struts Users Mailing List
Subject: RE: Automatic refresh - IS THIS POSSIBLE? 


Can Flash do it? ;-)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 January 2003 23:13
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Not AFAIK.  Sorry.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Any solution without using JavaScript?

Regards,


PQ

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

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: January 30, 2003 9:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?

Yes, it's possible.  I've done it with a processing... animated
progress
bar (though for some reason it works better in Navigator than IE). 
You can
see it after you enter your credit card information at
http://shop.t-mobile.com.  :-)

Mark

PS.  I'll send you the code this weekend if you reply privately with
your
credit card number and exp. date.

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:21 AM

Check out this article from JavaPro magazine.

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the
archives.

-Original Message-
From: Sowbhagya Valli Suryadevara
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead
of
showing a blank page is it possible to show a Please Wait  message
while
the processing is happening in the background. Then when the
processing is
over the page should come up automatically.

IS THIS POSSIBLE?



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



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


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



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




RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE?

2003-01-30 Thread Hookom, Jacob John
How would you even go about attaching a listener to the load time?  That's something 
that of course, would need to be presented at the client side and somehow tied into 
the browser?
 
-Jacob

-Original Message- 
From: Michael C. Clark [mailto:[EMAIL PROTECTED]] 
Sent: Thu 1/30/2003 10:13 AM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE? 



Flash can (and probably had) launched the Space Shuttle, and would be
nice to use for exactly what you are trying to do.  If it is an
appropriate UI for you, it is quite good at processing requests
asynchronously using XML.

Just don't use cute animations, and you'll be fine.

 Original Message 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [OT] RE: Automatic refresh - IS THIS POSSIBLE?
Date: Thu, 30 Jan 2003 10:21:13 -0500

Flash can launch spacecrafts.  This is chicken feed.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 10:22 AM
To: Struts Users Mailing List
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Can Flash do it? ;-)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 30 January 2003 23:13
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Not AFAIK.  Sorry.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Automatic refresh - IS THIS POSSIBLE?


Any solution without using JavaScript?

Regards,


PQ

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

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: January 30, 2003 9:37 AM
To: 'Struts Users Mailing List'
Subject: RE: Automatic refresh - IS THIS POSSIBLE?

Yes, it's possible.  I've done it with a processing... animated
progress
bar (though for some reason it works better in Navigator than IE).
You can
see it after you enter your credit card information at
http://shop.t-mobile.com.  :-)

Mark

PS.  I'll send you the code this weekend if you reply privately with
your
credit card number and exp. date.

-Original Message-
From: Roger Fortier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 9:21 AM

Check out this article from JavaPro magazine.

Send Users a Browser Message

http://www.javapro.com

Click Archives, then select the January 2001 issue from the
archives.

-Original Message-
From: Sowbhagya Valli Suryadevara
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 30, 2003 5:57 AM

We are using the struts  tiles  framework in our project. There is a
particular request that consumes a lot of time (20 seconds). Instead
of
showing a blank page is it possible to show a Please Wait  message
while
the processing is happening in the background. Then when the
processing is
over the page should come up automatically.

IS THIS POSSIBLE?



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



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


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



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





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


  1   2   3   >