the values
username and password from.
SB
Chen, Gin wrote:
One approach, you can define as many form-beans as you want iteratations.
Ex:
form-bean name=LoginForm_1
type=com.oreilly.struts.storefront.security.LoginForm
/form-bean
form-bean name=LoginForm_2
type
It's impossible.. You can't.. Don't even look into BeanUtils.copyProperties
cause it won't help at all.
For individual properties PropertyUtils.copyProperty doesn't work either..
Its all a rouse.
-Tim
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday,
Simplest way is to have a String[] as your property.
html:select property=stringarrayproperty multiple=true
-Tim
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 6:02 PM
To: Struts Users Mailing List
Subject: how to collect the values from
Forms
Nathan
On Oct 27, 2003, at 4:09 PM, Chen, Gin wrote:
Simplest way is to have a String[] as your property.
html:select property=stringarrayproperty multiple=true
-Tim
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 6:02 PM
One approach, you can define as many form-beans as you want iteratations.
Ex:
form-bean name=LoginForm_1
type=com.oreilly.struts.storefront.security.LoginForm
/form-bean
form-bean name=LoginForm_2
type=com.oreilly.struts.storefront.security.LoginForm
/form-bean
.
.
.
form-bean name=LoginForm_n
That's what the DAO design pattern will do for you.
Look at Hibernate or iBatis or any other DAO project or implement your own
using JDBC.
-Tim
-Original Message-
From: Rajat Pandit [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 1:36 PM
To: [EMAIL PROTECTED]
Subject: Db usage
First off.. What version of Struts are you using?
This appears to be an older version as type/name are deprecated.
You should be have setting those in the struts-config.
Also make sure your action matches the action path in your struts-config.
-Tim
-Original Message-
From: Jim Kennedy
trouble with html:form tag - Using 1.1
1.1
Jim Kennedy
IT Consultant
Mobile Phone: 813-503-1484
-
- Original Message -
From: Chen, Gin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, October 24, 2003
-
- Original Message -
From: Chen, Gin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, October 24, 2003 1:58 PM
Subject: RE: Having trouble with html:form tag - Using 1.1
1.1 doesn't have the type and name anymore.
Try to take that out and then show us
Here's another way that I can think of:
I'm assuming you will have 2 actions (one for add and one for edit) or a
single action that uses a lookupdispatch add/edit handling.
In either case don't have validate=true in your struts-config but rather
do the validation from your action method:
public
-
- Original Message -
From: Chen, Gin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, October 24, 2003 3:32 PM
Subject: RE: Having trouble with html:form tag - Using 1.1
Don't know if this will do anything but change
html:form action=pmregister
To
html:form
1) What do you mean by test the link from the web page? Does that mean you
have a a href=blah.do somewhere on the page?
If so what does that link look like and how did you create it.
2) What does your web.xml look like?
-Tim
-Original Message-
From: David Liles [mailto:[EMAIL PROTECTED]
This is where JSTL would be a perfect fix:
bean:define id=theNumber name=searchStats property=topHits
scope=request/
logic:greaterThan name=bean_name property=property_name
value=theNumber
...
/logic:greaterThan
Doesn't make sense but can be done with:
c:if
You need a second logic:iterate (actually you should consider using JSTL
forEach but I guess that's just my preference :))
Keep in mind that I'm not testing this so you have to check the syntax etc.
logic:iterate id=myIterate name=map
tdbean:write name=myIterate property=key//td
This is a simple HTTP issue.
When you did the mouseover I'm assuming that you have javascript that
changes the img using something like:
Img.src = 'http://blah/something.gif'
That will end up as a network call to get that resource and since the globe
and status bar only shows the status of the
What's the exact error that it gives you?
-Tim
-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 2:45 PM
To: Struts Users Mailing List
Subject: html-el:form action=${param.type}
Hi,
In my example
type=ViewResults
and the following
Unfortunately Dev, it would seem from Imran's post, that if your not of
Indian decent then your not qualified to answer technology questions. Since
I'm not part of their IITs or IISCs I can't do any high level research :-/
-Tim
-Original Message-
From: Dev [mailto:[EMAIL PROTECTED]
I'm not sure I understand this question but wouldn't you just implement some
comparators?
Then based on the sort option selected you can call something like:
Collections.sort(list, comparator)?
As for the search just have a java module to search thru the collection.
I'm not quite sure how what
I'm assuming you want to have the action process form elements that were in
the applet.
A very simple way to do this of course is to just append name=value
parameters from your applet into the link to the Struts Action.
That way the struts action can handle the request the same way that it
handles
Well I see that your already part of it but for other people with the same
question the JSTL list is actually the taglib list.
http://jakarta.apache.org/site/mail2.html
Scroll down to taglibs.
-Tim
-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23,
kinds of ideas,
then it'll be great.
Thanks for your help.
Dinh Nguyen
--- In [EMAIL PROTECTED], Chen, Gin [EMAIL PROTECTED] wrote:
I'm not sure I understand this question but wouldn't you just
implement some
comparators?
Then based on the sort option selected you can call
I'm not sure what you mean by this.
What exactly are you trying to do?
-Original Message-
From: José Fortunato H. Tomás [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 10:07 AM
To: Struts Users Mailing List
Subject: Any one Controller example for Tiles Definition?
Hi!
Has
That's a pretty broad question. Almost like saying How does Struts work?
Have you looked through the User Guide online already?
Have you perused the source yet?
If you have done both and you have a specific question then please let us
know.
-Tim
-Original Message-
From: Abhijeet Mahalkar
RTFM:
http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_act
ion_form_classes
If need be, you can extend the DynaActionForm to add custom validate and
reset methods you might need. Simply specify your subclass in the
struts-config instead. However, you cannot mix
Remove initial=
Then in your jsp do:
c:forEach var=blah items=${myFormBean.map.city}
c:out value=${blah}/
/c:forEach
-Tim
-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 1:14 PM
To: Struts Users Mailing List
Subject: DynaForms and
Specify error-page in your web.xml instead
-Tim
-Original Message-
From: Yan Zhu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 1:41 PM
To: Struts Users Mailing List
Subject: Re: exception handler
I tried to configure that in struts.config, but the exceptions thrown
out by
How did you get a picture of Mark?
-Tim
-Original Message-
From: Shane Mingins [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 7:30 PM
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] Free Dog.
Ok so no attachments :-(
http://fattyco.org/~beck/stephen/Free_Dog.jpg
From the initial look of it.. It is not having a problem with finding
/tiles/CoolMenu.jsp but rather having a problem with code within
CoolMenu.jsp page. (Not that the exception is ServletException in
/tiles/CoolMenu.jsp not within the page that included it).
-Tim
-Original Message-
From:
Shhh Larry.. What I do on my private time is my own business.
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 1:50 PM
To: [EMAIL PROTECTED]
Subject: RE: struts/tiles switch from windows to Linux
Yep, Tim's right.
Search your app for
The most stupid (note the grammer Larry ;) thing for a mammal to say is:
Yes Dear.. That dress *does* make you look fat
-Tim
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: Re: IMPORTANT: how to
Another way is to implement the reset method.
This will allow you to initialize all your checkboxes to the unchecked
value.
-Tim
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 12:42 PM
To: Struts Users Mailing List
Subject: RE:
:
Chen, Gin wrote:
Since JSF is *supposed* to replace Struts, so to speak,
This statement is *not* a correct understanding of what is happening!
Anyone who claims that doesn't get it.
You should absolutely, positively plan on evaluating the use of
JavaServer Faces components instead
I'm assuming that he meant create a new property that is not already defined
in the struts-config.
In which case I think your reply would fail with an property not found type
exception. :-/
One way around this is to have a Hashmap within the hashmapped dynaform.
That will allow you to do something
3:41 PM
To: Struts Users Mailing List
Subject: Re: DynaActionForms
I do not believe that you can do dynamically add fields to a DynaForm, as
the
config is frozen at app startup. Might work with an internal HashMap
though.
On Mon, Oct 13, 2003 at 03:31:32PM -0400, Chen, Gin wrote:
I'm assuming
Not status.index you need to add a var='foo' and do:
c:out value='${foo}'/
Also, If you want 11-20 you should have begin as 11 not 10.
-Tim
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 2:54 PM
To: Struts Users Mailing List
Subject:
functionality.
-Tim
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 2:41 PM
To: Struts Users Mailing List
Subject: Re: JavaServer Faces
Chen, Gin wrote:
Since JSF is *supposed* to replace Struts, so to speak,
This statement
If I culod sepll this mghit mkae snese.
-Teem
-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 3:09 PM
To: 'Struts Users Mailing List'
Subject: RE: JavaServer Faces
See.. Anyone reason that this should be kept public is to correct our
#2 any chance I get.
+1 on Wendy's validation comments too. Custom validation couldn't be easier
in a dynaform
-Tim
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 12:57 PM
To: Struts Users Mailing List
Subject: RE: [POLL] ActionFrom vs
You'll love Xdoclet.
Unfortunately it doesn't provide anything more than a merge point for
DynaForms but still very very cool.
Try a simple struts app using it (I think there's an example one on the
site).
-Tim
-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent:
feedback
about it.
On Tue, Sep 30, 2003 at 02:06:11PM -0400, Chen, Gin wrote:
You'll love Xdoclet.
Unfortunately it doesn't provide anything more than a merge point for
DynaForms but still very very cool.
Try a simple struts app using it (I think there's an example one on the
site).
-Tim
But if your adding a new button then you will have to add the new code for
it anyways.
So would this help? If it was something that would allow you to not have to
redeploy then it might make sense but really we are just talking about one
more line of code ;)
-Tim
-Original Message-
From:
One way to do this is to make your values a combination of value/label.
You can do something like:
html-el:option value='${foo.label}|${foo.value}'/
Another way is just to have a lookup utility class to look up labels from
values after the submit.
Ie. LookupUtil.getLabel( value );
Like
The path should be context relative (starting with /)
According to the Servlet Spec:
The location element contains the location of the resource in the web
application relative to the root of the web application. The value of
the location must have a leading '/'.
Used in: error-page
-Tim
This has to do with your validation xml.
You should have an arg0 and an arg1 that represent {0} and {1} in your
message respectively.
Check how you have it defined.
-Tim
-Original Message-
From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 4:11 PM
To:
Ahh.. Interesting.. But doesn't that stop the welcome-file too?
-Tim
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 3:51 PM
To: Struts Users Mailing List
Subject: RE: How-to hide JSPs in WEB-INF (OT?)
-Original Message-
From:
According to the Struts DTD:
pathThe module-relative or context-relative path to the
resources
that is encapsulated by the logical name of this
ActionForward.
If the path is to be considered context-relative when
used in
a
I'm not sure where in your scenario the error was supposed to occur.
I would suggest just right clicking on the blank page and see what the src
holds.
If you change the last line to:
ActionForward valForward = mapping.findForward(Constants.VALID);
servlet.log(Forwarding to: +
You can easily replicate the same calendar via a taglib or straight
dhtml/javascript.
We have a very similar calendar that we use for most of our projects.
It wont take that long either if that's all the functionality you need.
-Tim
-Original Message-
From: David G Friedman [mailto:[EMAIL
I use session.removeAttribute
-Tim
-Original Message-
From: Timo Neumann [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 4:07 AM
To: Struts Users Mailing List
Subject: How to remove DynaForm from session the struts way?
Hi guys!
How would I remove a DynaValidatorForm from
Okay.. Done.. Now what's step 2?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 12:03 PM
To: Struts Users Mailing List
Subject: Re: log4j setup
Step 1. RTFM
Viral_Thakkar [EMAIL PROTECTED] on 09/24/2003 09:23:22 AM
Please
Doh.. Leave it to James to ruin a joke.
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 1:19 PM
To: Struts Users Mailing List
Subject: Re: log4j setup
Step 2. http://www.catb.org/~esr/faqs/smart-questions.html#before
--
James
Struts-config.xml: message-resources parameter=ApplicationResources/
http://jakarta.apache.org/struts/userGuide/configuration.html#resources_conf
ig
-Tim
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:22 PM
To: [EMAIL PROTECTED]
Have u tried the Struts config style?
I noticed that you are using the old style of init-param
Look at my earlier response.
-Tim
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:54 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Why not just add it to a Collection of Strings?
-Tim
-Original Message-
From: Varun Garg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:19 PM
To: [EMAIL PROTECTED]
Subject: RE: LabelValueBean - 3 fields?
I created a StringsClass with upto 10 variables.
package
This has to do with your web.xml.
Make sure that you have all the taglibs imported and defined.
-Tim
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 5:57 PM
To: Struts Users Mailing List
Subject: Re: ApplicationResource.properties
I
/
/struts-config
Anything amiss?
Thanks,
-M
- Original Message -
From: Chen, Gin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:57 PM
Subject: RE: ApplicationResources.properties
Have u tried the Struts config style?
I noticed
You can set this up as different forms that submit to the same action
(different action definitions if you like).
Now each of the forms will have their own validation in your validation.xml.
It's early and I haven't had my coffee so let me know if that makes sense.
-Tim
-Original
Do it using Javascript instead.
button onclick=window.close()
Close
/button
Server's cant send a message to the client to close a browser window.
Another way is to send a response of that javascript or redirect to another
window that has that in a javascript head.
-Tim
-Original
The more struts tutorials the merrier.
Have a look at http://jakarta.apache.org/struts/resources/tutorials.html
It lists a bunch of Struts tutorials that you can reference in making your
own.
-Tim
-Original Message-
From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED]
Sent: Friday,
I'm assuming it's a configuration issue with your AXIS implementation.
But rather then get into that... why not just create a interim bean that
will store the data then BeanUtil.copyProperties it back to the ActionForm?
-Tim
-Original Message-
From: António Santos [mailto:[EMAIL
Offer them kool aid.
It will make them feel better.
Write 'Struts Good' in the bottom of the cups though.
Now they associate the good taste of kool aid with Struts!
-Tim
-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 4:09 PM
To:
That doesnt look very Y3K compliant :-P
If you have complex logic then best thing to do is to create a custom date
validator.
The code would be really simple and will catch cases where people might
enter in:
19/39/1000
Btw.. why not just use the date validator? It will handle exactly that
format
I didn't get it.. can you try it again?
-Original Message-
From: Stephan [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 4:26 PM
To: [EMAIL PROTECTED]
Subject: [OT] Test
Sorry I have not been able to send!
I thought those were spiders
-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 12:10 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] Some flash fun
Distract him with some tasty ants. Mmmm. Ants.
Adam Hardy [EMAIL PROTECTED]
pady this has been discussed many many times before in this list.
please search the archives.
-Original Message-
From: Pady Srinivasan [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 1:58 PM
To: [EMAIL PROTECTED]
Subject: Combining struts and JSTL tags...
I am using the
There's a way to do this using html:messages instead of html:errors.
Convert your code to (untested so please check syntax if you get an error):
html-el:messages id=foo property=fieldSample${count}
brc:out value=${foo}/
/html-el:messages
Optionally you can define a resource property in your
BeanUtils
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 1:22 PM
To: 'Struts Users Mailing List'
Subject: Copying DynaActionForm to Map DTO
Hi all,
I am using both DynaActionForm and a DTO that is implemented as a
HashMap.
What is the
Just use the BeanUtils.copyProperties as I mentioned before.
Very quick and easy.
-Tim
-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Copying DynaActionForm to Map DTO
True, but using
or c:out or a ton of other ways.. if you just RTFM.
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:05 AM
To: Struts Users Mailing List
Subject: RE: How can i simply show a form property as a simple text
or bean:message/
if bitmap_form is a dynaform it'll be the same construct but with map
c:out value=${bitmap_form.map.FORMER_FILE_SRC}/
make sure that you have a getFORMER_FILE_SRC() method.
on the off-note, you might think about renaming your attributes to more
java-centric naming conventions.
-Tim
Maybe there's just a perverted bunch of male programmers?
There's not many females in our industry.
And judging from the GPA (GAP?) requirements.. they want the dumb blonde
variety.
- Tim
-Original Message-
From: Brian Lee [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 11:01 AM
This question reminds me of an old virus.
You can have file IO that creates a simple java class file with a method
taking in as many parameters as you wanted to then invoke javac to rebuild
it. Performance-wise it worked great for the virus but probably not a viable
option for you ;)
Here's a way to get it using straight JSTL:
fmt:bundle basename=ApplicationResources
fmt:message var=foo key=label.foo/
/fmt:bundle
c:out value=${foo}/
-Tim
-Original Message-
From: Eric W Hauser [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 12:05 PM
To: [EMAIL PROTECTED]
URIs are just unique identifiers.. most times they don't even match to real
URLs (hence the http://tempuri standard). Therefore, the server will never
have a reason to look anywhere else but in your configs for it.
-Tim
-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED]
Sent:
You dont even need that.
Just straight JSTL would do:
c:set var=name value=value scope=session/
-Tim
-Original Message-
From: Dirk Behrendt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: AW: Convert scriptlets into Tags
Hello!
I found a
just replace the bean:write with your fmt:formatDate like so:
logic:iterate id=employee name=listOfEmployees
fmt:formatDate value=${employee.birthdate} pattern=-MM-dd HH:mm
/
/logic:iterate
-Tim
-Original Message-
From: Riaan Oberholzer [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
Do you really want to use the same keyboard/mouse as someone that had just
used the 'loo'.
-Tim
-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 11:55 AM
To: 'Struts Users Mailing List'
Subject: [OT] How can Java compete?
Going where no
Everyone take a deep breath and think of bunny rabbits.
Cute little bunnies
()()
('.')
()()
Hmm.. I'm getting hungry now.
-Tim
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:50 AM
To: 'Struts Users Mailing List'
Subject: RE: JSTL
You can make it simpler by using JSTL:
jsp:useBean id='fCurrentDate' class='java.util.Date'/
fmt:formatDate var='currentYear' value='${currentDate}' pattern=''/
You should ask these type of questions to the JSTL list.
It's a very good list and will be more helpful than asking a JSTL question
Ask the JSTL list.
My guess is that because JSTL is just a reference implementation of the Java
specs.
Eitherway you can get a great reference to it here:
http://www.manning.com/bayern/appendixA.pdf
-Tim
-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
While I haven't tried it yet.
Have you looked into writing a custom MessageResourcesConfig or
PropertyMessageResourcesFactory?
You can easily pass one into your config
http://jakarta.apache.org/struts/userGuide/configuration.html#resources_conf
ig
From there you can implement your own
try this:
c:forEach var=person items=${findpersonresults}
tr
tdc:out value=${person.map.seq}//td
tdc:out value=${person.map.name}//td
/tr
/c:forEach
-Tim
-Original Message-
From: jack beany [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 10:38
:)
-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 12:07 PM
To: 'Struts Users Mailing List'
Subject: [OT] RE: JSTL ot struts taglibs?
Everyone take a deep breath and think of bunny rabbits.
Cute little bunnies
()()
('.')
()()
Hmm.. I'm getting hungry now
Send an email to [EMAIL PROTECTED] (it'll auto reply).
There's a way to request messages. You can use that.
BTW, the full archives for this list is HUGE. It might make more sense to
just browse it online.
http://marc.theaimsgroup.com/?l=struts-userr=1w=2
-Tim
-Original Message-
From:
That should be all that you need to do.
It will automatically be called before each submitted action, not before the
display of the JSP.
Make sure that you included the correct method (match signature etc).
-Tim
-Original Message-
From: guruprasad jakka
To: [EMAIL PROTECTED]
Sent:
I'm confused. The car was a BMW. What does that have to do with Mercedes
Benz?
-Tim
-Original Message-
From: Jing Zhou [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 5:11 PM
To: Struts Users Mailing List
Subject: Re: [Friday] TV Commercial
Thanks! It should be brakes.
Have fun.
Either way would work.
The controller you need to extend is actually the RequestProcessor
(TilesRequestProcessor if your using Struts/Tiles)
Check the archives for more information (archives are accessible from the
jakarta site)
-Tim
-Original Message-
From: Balaji R [mailto:[EMAIL
use jstl:
logic:iterate id=people name=employees indexId=index
c:if test=${index%2==0}
tr class='Even'
/c:if
c:if test=${index%2==1}
tr class='Odd'
/c:if
...
/logic:iterate
Of course you can use a c:choose if you like and several other options but
Show us how your saving the errors and how your accessing them in the JSP.
If you can dig up the logs with your exact errors that would be very
helpful.
-Tim
-Original Message-
From: Canning, Chuck [mailto:[EMAIL PROTECTED]
Sent: Monday, July 21, 2003 1:28 PM
To: '[EMAIL PROTECTED]'
Remember that JSTL and struts are not the same.
Therefore, JSTL tags cant auto pick up the current element that a Struts tag
is looking at.
You should have:
nested:iterate id=foo property=lineItems
!--
FS: c:out value=${foo.fulfillmentStatus}/
SO: c:out value=${foo.sampleOrigin}/
--
c:if
No this is not in 1.1 at all.
-Tim
-Original Message-
From: otisg [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 10:27 AM
To: [EMAIL PROTECTED]
Subject: validwhen released?
Hello,
I would like to use validwhen validation rule, but I am unsure
whether the recently released
Try without leading /
-Original Message-
From: sriram [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 9:42 AM
To: 'Struts Users Mailing List'
Subject: WARNING: invalid welcome file
Hi,
This may be slightly out of topic..but I need some suggestions in this
regard. Probably
Or:
c:out escapeXml=false value=div
style='visibility:${editDeForm.initialPrecVisiblity}'/
Or: (better suited for a boolean)
c:choose
c:when test=${editDeForm.initialPrecVisiblity == 'hidden'}
div style=visibility:hidden
/c:when
c:otherwise
div style=visibility:blah
That's a matter of preference and application server capabilities.
I prefer to keep them all in the same layout.jsp but I'm using jboss-3.2.0
with jetty and it doesn't support it that way.
From what I know, only JRun currently supports that option. (Correct me if
I'm wrong someone).
Once you find
html:submit property=Submit value=Continue
onclick=javascript:confirmSubmit()/
should be
html:submit property=Submit value=Continue onclick=javascript:return
confirmSubmit()/
-Tim
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 3:28 PM
To:
yuk how about a much cleaner way using jstl?
fmt:bundle basename=ApplicationResources
fmt:message var=foo key=bar/
/fmt:bundle
c:out value=${foo}/
Where ApplicationResources is the the name without .properties suffix.
-Tim
-Original Message-
From: Raible, Matt [mailto:[EMAIL
Just use html:hidden property=blah write=true
that will take care of retaining them as well as display them for you so
that you dont need another html:write
-Tim
-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 10:56 AM
To: Struts Users
Dinner
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:41 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] What do you call a deer without eyes?
Brian ?
On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:
Blinded deer
logic iterate
was very great
for looping collections
with no quelm
but now there's jstl
and forEach can take the helm
The Struts team
suggests with gleam
http://jakarta.apache.org/struts/userGuide/dev_logic.html
http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate
I gave this on the Struts irc channel once:
c:set var=currentFormName
value=${requestScope['org.apache.struts.action.mapping.instance'].name}/
Then access the form using the name.
c:out value=${request.attribute[currentFormName].blah} /
Hope that works for you.
I think someone had a shorter
1 - 100 of 256 matches
Mail list logo