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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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,
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
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...
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
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
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
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
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]
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.
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
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.
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:
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
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
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
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
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
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.
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
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:
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
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
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
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
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
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,
46 matches
Mail list logo