RE: How to disable URL rewriting for session id?

2005-07-04 Thread David G. Friedman
Julian, I just skimmed through cvs and have this idea for you: Edit a copy of the Html Taglib's helper class, org.apache.struts.taglibs.TagUtils, so any methods that would pull in the session variable to append to the new URL don't do that. When it's built, put it under

ActionForm reset() and redirect.

2005-07-04 Thread Ben
Hi My form has some boolean properties and I set them to false in the reset method. The Action that handles the form has redirect attribute as true, i.e if there is an error, it redirects to the same page that has the form with errors. When it redirects with errors, the form retains values for

RE: ActionForm reset() and redirect.

2005-07-04 Thread Nitesh Naveen
Try putting in some logic where ever you are assigning the value... like if it is not set then set it to false... if it is already set don't touch it! HTH Nitesh -Original Message- From: Ben [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 1:05 PM To: Struts Subject: ActionForm

Re: struts - checkbox control

2005-07-04 Thread EROL TEZCAN
Hi , Your example is very clear. It works fine. Thanks a lot Rafael, Erol Rafael Taboada [EMAIL PROTECTED] wrote: Hi, in ur ActionForm define: String[] chkRecords; //with setter and getter In ur jsp define checkbox with a multibox: list: ArrayList that it has all the records in order to

dynamic parameter

2005-07-04 Thread Vijay K Anand
Hi All I want to have attribute page be dynamically loaded from bean:message like tiles:insert page=bean:message key=commont.header/ flush=true / instead of tiles:insert page=/views/common/Header.jsp flush=true / - To

arraylist problem.

2005-07-04 Thread amitava . basak
I have a condition where I have an arraylist(must) containing a bean and i have to display it in my jsp. I cannot use logic:iterate since if the arraylist does not contain the bean, the controls are not displayed at all. (I have approx 40 controls to be displayed ). what is the way out?

Re: arraylist problem.

2005-07-04 Thread Vijay K Anand
Hi You can use size property to check the length of the Arraylist . [EMAIL PROTECTED] wrote: I have a condition where I have an arraylist(must) containing a bean and i have to display it in my jsp. I cannot use logic:iterate since if the arraylist does not contain the bean, the controls are

Re: arraylist problem.

2005-07-04 Thread Vijay K Anand
bean:size [EMAIL PROTECTED] wrote: I have a condition where I have an arraylist(must) containing a bean and i have to display it in my jsp. I cannot use logic:iterate since if the arraylist does not contain the bean, the controls are not displayed at all. (I have approx 40 controls to be

RE: arraylist problem.

2005-07-04 Thread Venkata Krishna V.
Hi Amit, You can use the logic notEmpty operator to check if the array list is null or not. Regards, Venkat -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 04, 2005 3:29 PM To: user@struts.apache.org Subject: arraylist problem. I have a

Re: dynamic parameter

2005-07-04 Thread amitava . basak
If the problem is with the quotes, use tiles:insert page=bean:message key=\commont.header\/ flush=true / vijay, size is of no help!! Amitava Basak ASE(T) Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail

Re: dynamic parameter

2005-07-04 Thread Vijay K Anand
Thanks indeedb basak , any other workaround . Afraid it is not helping my problem [EMAIL PROTECTED] wrote: If the problem is with the quotes, use tiles:insert page=bean:message key=\commont.header\/ flush=true / vijay, size is of no help!! Amitava Basak ASE(T) Tata Consultancy

Re: dynamic parameter

2005-07-04 Thread Wendy Smoak
From: Vijay K Anand [EMAIL PROTECTED] I want to have attribute page be dynamically loaded from bean:message like tiles:insert page=bean:message key=commont.header/ flush=true / Nesting JSP tags like that will not work. The usual workaround is to use expressions. Instead of putting the

log4j log

2005-07-04 Thread Vijay K Anand
Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout

SV: log4j log

2005-07-04 Thread hermod . opstvedt
Hi log4j.rootLogger=ERROR, A2 --- Change this one to Debug, A2 -Opprinnelig melding- Fra: Vijay K Anand [mailto:[EMAIL PROTECTED] Sendt: 4. juli 2005 14:48 Til: user@struts.apache.org Emne: log4j log Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2

AW: log4j log

2005-07-04 Thread Martin Kindler
Where is the path to the log file specified? Something like this: log4j.appender.AccessLog.File=path-to-logfile Martin -Ursprüngliche Nachricht- Von: Vijay K Anand [mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. Juli 2005 14:48 An: user@struts.apache.org Betreff: log4j log Hi

Re: SV: log4j log

2005-07-04 Thread Vijay K Anand
Hi Thanks for replying if i say so , it logs everything that is happening behind I dont want anything except i say explictly by logger.debug(test); [EMAIL PROTECTED] wrote: Hi log4j.rootLogger=ERROR, A2 --- Change this one to Debug, A2 -Opprinnelig melding- Fra: Vijay K Anand

Re: log4j log

2005-07-04 Thread Vijay K Anand
Hi This is the file name i have specified below -- npi_log Vijay K Anand wrote: Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log

AW: log4j log

2005-07-04 Thread Peter . Zoche
Its the filename, but where is it stored on your harddisk? With Win2003 and Tomcat I found my log-file in C:\WINNT\SYSTEM32! Peter -Ursprüngliche Nachricht- Von: Vijay K Anand [mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. Juli 2005 14:58 An: Struts Users Mailing List Betreff: Re: log4j

AW: SV: log4j log

2005-07-04 Thread Gehrer Helmut
Hi, If you just want to log your own messages, you 'll have to declare categories (see 1st line!): log4j.category.HighLevelAction=DEBUG, A2 log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log

Re: AW: log4j log

2005-07-04 Thread Vijay K Anand
file is @ /logs directory but it is empty [EMAIL PROTECTED] wrote: Its the filename, but where is it stored on your harddisk? With Win2003 and Tomcat I found my log-file in C:\WINNT\SYSTEM32! Peter -Ursprüngliche Nachricht- Von: Vijay K Anand [mailto:[EMAIL PROTECTED] Gesendet:

swith to struts-el

2005-07-04 Thread Dewitte Rémi
I'd like to switch all my callic struts tags to struts-el in order to not mix all tags. How do you switch logic.equal to c:if ? For example : logic:equal name=myForm property=sex value=F Thanks again... - To unsubscribe,

Securityfilter persistent login

2005-07-04 Thread Tobias Neumann
Hi Is securityfilter able to autologin users that have enabled their persitent login via cookies? In the moment these users have to push the login button again, although they do not have to enter their username and password. // process any persistent login information, if user is not

Re: swith to struts-el

2005-07-04 Thread Ivan Rodriguez
c:if test=${myForm.sex eq 'F'} Dewitte Rémi escribió: I'd like to switch all my callic struts tags to struts-el in order to not mix all tags. How do you switch logic.equal to c:if ? For example : logic:equal name=myForm property=sex value=F Thanks again...

Re: swith to struts-el

2005-07-04 Thread Dewitte Rémi
Hum, I tried : Unable to find a value for sex in object of class org.apache.struts.validator.LazyValidatorForm using operator . (null) Indeed, it's a DynaBean. Have an idea ? Le Lundi 4 Juillet 2005 16:43, Ivan Rodriguez a écrit : c:if test=${myForm.sex eq 'F'} Dewitte Rémi escribió: I'd

Re: swith to struts-el

2005-07-04 Thread Martin Gainty
are you sure your variable is defined ? for example % boolean b = true; pageContext.setAttribute(b,new Boolean(b)); % c:if test= b is TRUE /c:if Take a look at http://www.caucho.com/resin-3.0/jsp/el.xtp HTH, Martin- - Original Message - From: Dewitte Rémi [EMAIL PROTECTED] To: Struts

Re: swith to struts-el

2005-07-04 Thread Wendy Smoak
From: Dewitte Rémi [EMAIL PROTECTED] Hum, I tried : Unable to find a value for sex in object of class org.apache.struts.validator.LazyValidatorForm using operator . (null) Indeed, it's a DynaBean. http://struts.apache.org/userGuide/building_controller.html#dyna_action_form_classes Try: c:if

Re: IDE Wars (was Struts vs World)

2005-07-04 Thread netsql
Craig McClanahan wrote: to linking to it for entertainment value :-). Can anyone here remember any other case? Even if it's not the first, it is still ridiculous enough to be memorialized :-). Is there a shipping produciton app done w/ UI? C'mon Vic ... you know the answer to that

Re: swith to struts-el

2005-07-04 Thread Ivan Rodriguez
So if it doesnt work for you, try c:if test=${sex eq 'F'} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: swith to struts-el

2005-07-04 Thread Dewitte Rémi
That's it ! Thanks ! Le Lundi 4 Juillet 2005 17:03, Wendy Smoak a écrit : From: Dewitte Rémi [EMAIL PROTECTED] Hum, I tried : Unable to find a value for sex in object of class org.apache.struts.validator.LazyValidatorForm using operator . (null) Indeed, it's a DynaBean.

Re: swith to struts-el

2005-07-04 Thread Dewitte Rémi
I have no error but it doesn't work. Thanks for your answer anyway. Le Lundi 4 Juillet 2005 17:30, Ivan Rodriguez a écrit : So if it doesnt work for you, try c:if test=${sex eq 'F'} - To unsubscribe, e-mail: [EMAIL

Re: Securityfilter persistent login

2005-07-04 Thread Tobias Neumann
PPS: How can I access the servlets context in a securityfilter SecurityRealmInterface implementation? I use the struts HibernatePlugIn, and the hibernate session is stored in the servlets context. So I need to access hibernate this way in my Realm implementation for database verification.

RE: Securityfilter persistent login

2005-07-04 Thread David Erickson
I'd consider changing to an implementation that is Filter based and opens/closes a session on every request... that way you could easily get the current session from the request scope. -David -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Neumann Sent:

Re: log4j log

2005-07-04 Thread Laurie Harper
Vijay K Anand wrote: Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout

Re: Struts vs .NET??? - Real Stats

2005-07-04 Thread Dakota Jack
Actually, this did not help me at all. I understand that differences, etc. I just wondered what you thought, since I thought your conclusions were contrary to the facts. On 7/3/05, Gregory Seidman [EMAIL PROTECTED] wrote: On Sat, Jul 02, 2005 at 11:48:37PM -0700, Dakota Jack wrote: } What is

Re: ActionForm reset() and redirect.

2005-07-04 Thread Michael Jouravlev
On 7/4/05, Ben [EMAIL PROTECTED] wrote: Hi My form has some boolean properties and I set them to false in the reset method. The Action that handles the form has redirect attribute as true, i.e if there is an error, it redirects to the same page that has the form with errors. When it

RE: struts-html.tld

2005-07-04 Thread Amin Mohd Sani
Dear All, When I use tomcat for the below line it can run perfectly. %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % Then I switch to jboss, it complains that it cannot find the file. Any idea what is wrong? TIA. - To

Re: struts-html.tld

2005-07-04 Thread Wendy Smoak
From: Amin Mohd Sani [EMAIL PROTECTED] When I use tomcat for the below line it can run perfectly. %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % Then I switch to jboss, it complains that it cannot find the file. Any idea what is wrong? Assuming a Servlet 2.3 or better container, you

Help: DynaActionForm with indexed property - not updating

2005-07-04 Thread Mark Rehbein
Hi, I've been trying to get the values in my dynaaction form to update. I have a populator Action that creates my TestRow[] object and adds it to the form. The dynaaction also has a simple String property which I also populate. I then forward to my HTML form that has the row fields indexed.

Re: DynaActionForm with indexed property - not updating

2005-07-04 Thread Niall Pemberton
You have named your indexed property in the DynaActionForm rows - but on your jsp you are using a var of row Either change the property defined in the DynaActionForm to row or change your jsp to refer to rows... c:forEach var=rows items=${testForm.map.rows} !-- was using logic:iterator but tried

Marking fields having errors

2005-07-04 Thread Kalra, Ashwani
Hi, Does struts has any facility to show fields having validation error in red color or mark it in some way? Thanks Ashwani -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 05, 2005 3:44 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re:

RE: DynaActionForm with indexed property - not updating

2005-07-04 Thread Mark Rehbein
You are a champion Niall, thanks! I can't believe I overlooked the naming conventions. Thanks again. Mark -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, 5 July 2005 1:42 PM To: Struts Users Mailing List Subject: Re: DynaActionForm with indexed

Re: Marking fields having errors

2005-07-04 Thread Rauf Khan
Hi, In ur application resources file, u can add this errors.header=h3font color=OrangeError List/font/h3ul errors.footer=/ulhr here color = anycolor Regards Khan On 7/5/05, Kalra, Ashwani [EMAIL PROTECTED] wrote: Hi, Does struts has any facility to show fields having validation error

Re: Marking fields having errors

2005-07-04 Thread Wendy Smoak
From: Kalra, Ashwani [EMAIL PROTECTED] I want to highlight the field labels or show some marker text like '!', Not the error messages The form element tags (since 1.2.5) have 'errorKey' 'errorStyle' 'errorStyleClass' and 'errorStyleId' attributes. Some combination of those should do what

RE: Marking fields having errors in struts 1.1

2005-07-04 Thread Kalra, Ashwani
Thanks Wendy, But I am working withd 1.1 , I think I have to customize the tags of 1.1, Or can I use struts 1.2 html tags in 1.1? Has any one faced this situation? -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 05, 2005 9:50 AM To: Struts Users Mailing

architecture of composite action forms - please help

2005-07-04 Thread Rivka Shisman
Hello Friends, I have a transfer object called FatherTO that contains a collection of ChildTO's. Can you please help me with how the relevant ActionForm (i.e. FatherForm ) should look like. How should the reset() validate() methods look like? Should I use the same jsp form for the Father

RE: howto with validator

2005-07-04 Thread Nitesh Naveen
You could do this with validator and indexed properties. When using indexed properties, JavaScript validations doesn't work. However the server side validations does. This should suffice what you need... In case you have some validations that involve business logic, you could add more validations,