David G. Friedman wrote:
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 WEB-IN
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,
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
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
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 wha
I want to highlight the field labels or show some marker text like '!',
Not the error messages
-Original Message-
From: Rauf Khan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 05, 2005 9:43 AM
To: Struts Users Mailing List
Subject: Re: Marking fields having errors
Hi,
In ur application
Hi,
In ur application resources file, u can add this
errors.header=Error List
errors.footer=
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 in
> red color or mark it in
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 propert
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: St
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"...
Author:
Pick from known affiliations
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.
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,
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.
---
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
I didn't ask how Mono runs on Apple, did I?
On 7/3/05, Gregory Seidman <[EMAIL PROTECTED]> wrote:
> On Sat, Jul 02, 2005 at 11:34:44PM -0700, Dakota Jack wrote:
> } And how does C# run on Apple? LOL
>
> See http://www.mono-project.com/
>
> --Greg
>
>
>
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
Hey all,
I have a problem in my web application. It usually throws a
NoClassDefFoundError about the bean:define tag. This only happens when
Tomcat was newly started. Reloading the frame immediately fixes the
problem. So I am not sure why this happens. The Stacktrace is:
--snip--
javax.servlet.Se
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
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: Mo
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 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
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For addit
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 DynaBe
So if it doesnt work for you, try
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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 questi
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
Tr
are you sure your variable is defined ?
for example
<%
boolean b = true;
pageContext.setAttribute("b",new Boolean(b));
%>
b is TRUE
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 Users
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 :
>
>
> Dewitte Rémi escribió:
> >I'd like to switch all my
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 :
Thanks again...
-
To unsubscribe, e-mail: [EMAIL PROTECTE
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
alr
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 :
Thanks again...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hello everybody !
I have some howto questions related to validator.
I'd like to do some checks on my form :
1) in a multibox question, i'd like to check at least 2 are checked and at
most 4.
2) I have a mapped property, I'd like to check every mymap(key) is answered.
3) I have a form property o
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: Mon
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
log4
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 l
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
log4j.appender.A2.a
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
Where is the path to the log file specified?
Something like this:
log4j.appender.AccessLog.File=
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
> Here
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
log4j.appender.A2=o
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
log4j.appender.A2.layo
From: "Vijay K Anand" <[EMAIL PROTECTED]>
I want to have attribute page be dynamically loaded from bean:message like
" flush="true" />
Nesting JSP tags like that will not work. The usual workaround is to use
expressions.
Instead of putting the information in ApplicationResources.properties
Thanks indeedb basak , any other workaround . Afraid it is not helping
my problem
[EMAIL PROTECTED] wrote:
If the problem is with the quotes,
use
" flush="true"
/>
vijay, size is of no help!!
Amitava Basak
ASE(T)
Tata Consultancy Services Limited
Mailto: [EMAIL PROTECTED]
Website: ht
If the problem is with the quotes,
use
" 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 message and/or attachments to
it may contain conf
Hi Amit,
You can use the 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 condition where
[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 displayed ).
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
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?
Am
Hi All
I want to have attribute page be dynamically loaded from bean:message
like
" flush="true" />
instead of
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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 rese
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 oth
50 matches
Mail list logo