Where Do I Create Session, Set Attributes in Struts?

2003-10-17 Thread Caroline Jen
I use container-managed form-based authentication to verify users (it works well). Now, I want to create a session and set user's name after users successfully log in: HttpSession session = request.getSession( true ); if ( session.isNew() ) {

Re: SSLExt and Struts Workflow?

2003-10-17 Thread Matthias Bauer
Tim, what you are saying seems pretty reasonable. Even though not having looked at SSLExt, I don't expect any more collisions than the action mapping type and the request processor. When saying that, I am assuming that SSLExt correctly copes with session tracking when switching back and forth

Re: [newbie] how does fmt:setBundle work?

2003-10-17 Thread Christian Martin
thanks!!! sometimes you are not able to see the obvious (code blindness) that problem took me nearly 2 hours --- so much to learn so less time Kris Schneider wrote: code fmt:setBundle basename=ApplicationResources var=ares / fmt:message

struts-el and messages

2003-10-17 Thread Chris Searle
OK, Had the problem with using the html:messages with struts-el from the 1.1RC1 build (NullPointerException) - so I've just upgraded to 1.1 (thought I'd already done so). Now - I get no exception - but I get no message either. The servlet code: ActionErrors errors = new

RE: ArrayIndexOutOfBoundsException after resubmitting form

2003-10-17 Thread shirishchandra.sakhare
May be in the reset you have emptied the list.. Have a look at ListUtils.lazyList..That may solve your problem... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 5:57 PM To: [EMAIL PROTECTED] Subject: ArrayIndexOutOfBoundsException

Re: ArrayIndexOutOfBoundsException after resubmitting form

2003-10-17 Thread Raphaël di Cicco
Here's one thing I do to avoid resubmitting. I put a flag on the user's session to tell whether or not he already has done the transaction : On preparing the form put the flag to true. When submitting, verify that the flag is at true, if so then do the update in the database and put the flag to

Re: Help setting up sslext

2003-10-17 Thread Adam Hardy
On 10/16/2003 05:13 PM Brian McSweeney wrote: a) Change the action-mappings in the struts-config.xml file action-mappings type=org.apache.struts.config.SecureActionConfig b) Change the web.xml file as follows: servlet-nameaction/servlet-name

validation

2003-10-17 Thread [EMAIL PROTECTED]
Question: Is there an easy way to create a dummy field for 'retype pasword' ? And is it possible to validate this retype 'password field' with the validator plugin ? If so how ? Thanks ! - To unsubscribe, e-mail: [EMAIL

Re: struts-el and messages

2003-10-17 Thread Chris Searle
Chris == Chris Searle [EMAIL PROTECTED] writes: Had the problem with using the html:messages with struts-el from the 1.1RC1 build (NullPointerException) - so I've just upgraded to 1.1 (thought I'd already done so). Now - I get no exception - but I get no message either. Got

Re: i18n - Chinese charactor problem

2003-10-17 Thread Adam Hardy
UTF-8 On 10/16/2003 07:25 PM ZYD wrote: Now I use UTF-8 everywhere instead of gb2312, this problem is gone. Thanks for your help. I have another problem, hope can get some advice from you: I used the following url to connect to MySQL:

RE: struts-el and messages

2003-10-17 Thread Steve Raeburn
The nightly build has a method that allows you to store messages in the session. They are automatically removed after being displayed. Action: protected void saveMessages(HttpSession session, ActionMessages messages) Steve -Original Message- From: Chris Searle [mailto:[EMAIL

Re: struts-el and messages

2003-10-17 Thread Adam Hardy
Chris, This works for me: c:set var=GLOBAL_ERROR %=org.apache.struts.action.ActionErrors.GLOBAL_ERROR % /c:set html:messages id=errorMsgs message=true property=${GLOBAL_ERROR} header=errors.header footer=errors.footer c:out value=${errorMsgs}

Re: struts-el and messages

2003-10-17 Thread Adam Hardy
On 10/17/2003 10:43 AM Chris Searle wrote: Chris == Chris Searle [EMAIL PROTECTED] writes: Had the problem with using the html:messages with struts-el from the 1.1RC1 build (NullPointerException) - so I've just upgraded to 1.1 (thought I'd already done so). Now - I get no

Re: validation

2003-10-17 Thread Adam Hardy
On 10/17/2003 10:12 AM [EMAIL PROTECTED] wrote: Question: Is there an easy way to create a dummy field for 'retype pasword' ? And is it possible to validate this retype 'password field' with the validator plugin ? If so how ? Thanks ! Yes it's easy. Just duplicate the code for the password

Re: validation

2003-10-17 Thread struts
duplication and rename it is not working because then I need to create getter and setter methods. It should be a dummy field and the validator does the work... Idea ? - Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday,

Re: validation

2003-10-17 Thread Adam Hardy
That's what you should do. I suggest it's easier adding the getters and setters than any other solution. Under normal circumstances the form-bean won't cause any disadvantages just because of the extra properties. On 10/17/2003 11:47 AM struts wrote: duplication and rename it is not working

[newbie] JSTL using different ResourceBundles

2003-10-17 Thread Christian Martin
i searched the archive and found a solution to set a LocalizationContext in back-end java code. therefore i don't have to set the bundle in the JSP. code ResourceBundle bundle = ResourceBundle.getBundle(ApplicationResources, locale); LocalizationContext ctx = new LocalizationContext(bundle);

Logic Iterate

2003-10-17 Thread Thakur, Vikram
Hi , Can anyone help me with this iterate Tag ? logic:iterate id=managers name=NewCategoryConfirm property=categoryMangers bean:write name=managers/ /logic:iterate the categoryManagers property returns a Collection os Strings I want to print all

RE: Logic Iterate

2003-10-17 Thread Ramesh Kannery
logic:iterate id=managers name=NewCategoryConfirm property=categoryMangers bean:write name=managers property=fieldname/ /logic:iterate try this -Original Message- From: Thakur, Vikram [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 3:57 PM To:

RE: Logic Iterate

2003-10-17 Thread Thakur, Vikram
No, It does not work. It says , Cannot find bean managers in any scope. Thanks anywayz. -Original Message- From: Ramesh Kannery [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 3:55 PM To: Struts Users Mailing List Subject: RE: Logic Iterate logic:iterate id=managers

RE: Logic Iterate

2003-10-17 Thread Ramesh Kannery
may be ur collection may be empty or null check ur collection object whether its contains anything?? -Original Message- From: Thakur, Vikram [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 4:09 PM To: 'Struts Users Mailing List' Subject: RE: Logic Iterate No, It does not work.

Re: struts-el and messages

2003-10-17 Thread Chris Searle
Steve == Steve Raeburn [EMAIL PROTECTED] writes: The nightly build has a method that allows you to store messages in the session. They are automatically removed after being displayed. Action: protected void saveMessages(HttpSession session, ActionMessages messages)

RE: Logic Iterate

2003-10-17 Thread Khalid Umar
If it is collection of Strings only then you can write the collection on page using bean:write name=managers/ itself. There is No need to provide property attribute. property attribute is required if you have collection of objects. Check the name of Formbean name=NewCategoryConfirm. Should be

Re: Logic Iterate

2003-10-17 Thread Mark Lowe
The id is the name of whatever you want to call each object thats being spat out during the iteration. Have a play with this in a jsp page to get used to the tags. And then you can move the scriptlet out when your a bit more familiar with stuff. % java.util.Map mapOne = new

Re: struts-el and messages

2003-10-17 Thread Chris Searle
Chris == Chris Searle [EMAIL PROTECTED] writes: And the message code JSP: logic:messagesPresent message=true html:messages id=message message=true p class=messagec:out value=${messsge}//p /html:messages /logic:messagesPresent Nothing displays. Sent that a bit

RE: Logic Iterate

2003-10-17 Thread Thakur, Vikram
My Form Bean is configured properly and It does contain values. The only thing that I am not understanding is , why is struts looking for the bean with name as managers. I get this error , Cannot find bean managers in any scope. Thanks, Vikram -Original Message- From: Khalid Umar

RE: Logic Iterate

2003-10-17 Thread Khalid Umar
Probably check if you are setting the collection properly in the formbean. -Original Message- From: Thakur, Vikram [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 4:31 PM To: 'Struts Users Mailing List' Subject: RE: Logic Iterate My Form Bean is configured properly and It

RE: [FRIDAY] Free Dog.....

2003-10-17 Thread Mark Galbreath
Looks prime to me...can it be shipped live? Mark, member, PETA (People for the Eating of Tasty Animals) -Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 7:28 PM To: '[EMAIL PROTECTED]' Subject: [FRIDAY] Free Dog. Hi A mate of mine

RE: [FRIDAY] Free Dog.....

2003-10-17 Thread Mark Galbreath
+1 -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 7:34 PM Ditch the wife Keep the dog.. -M - Original Message - From: Shane Mingins [EMAIL PROTECTED] To: [EMAIL PROTECTED] A mate of mine is looking for a good home for their

upload of large files

2003-10-17 Thread Alessio
Hello everybody, I'm facing a problem that I think all of you know very well. I have to permit the upload of large files, my application interacts with an EJB module that persist the file. I'm currently using struts upload but in this way the file is keeping in memory in a form bean. With large

[FRIDAY] URL O' The Day

2003-10-17 Thread Mark Galbreath
http://www.kmfms.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [newbie] JSTL using different ResourceBundles

2003-10-17 Thread Kris Schneider
One approach you could take would be to create your set of alternate LocalizationContext instances at application startup and store them in application scope: ResourceBundle countriesBundle = ResourceBundle.getBundle(countries, locale); LocalizationContext countriesCtx = new

Re: [newbie] JSTL using different ResourceBundles

2003-10-17 Thread Adam Hardy
On 10/17/2003 12:16 PM Christian Martin wrote: code message-resources parameter=countries / message-resources parameter=states / /code .in struts-config.xml then i want to print out messsages in the jsp. code fmt:message bundle=${countries} key=message.test fmt:message bundle=${states}

Re: [newbie] JSTL using different ResourceBundles

2003-10-17 Thread Adam Hardy
On 10/17/2003 02:17 PM Kris Schneider wrote: One approach you could take would be to create your set of alternate LocalizationContext instances at application startup and store them in application scope: ResourceBundle countriesBundle = ResourceBundle.getBundle(countries, locale);

Looking up the Struts Datasource

2003-10-17 Thread Philipp Röthl
Hi, I've implemented a struts application that uses JavaBeans which perform the whole business logic. These beans access an Oracle DB. The datasource is passed from the action classes to the bean classes as a parameter. Now I have to implement a WebService that does the same as the Struts

RE: Help setting up sslext

2003-10-17 Thread Brian McSweeney
Hi Adam, thanks for the help. I've put in the change in the action-mappings in the struts-config.xml file action-mappings type=org.apache.struts.config.SecureActionConfig but the problem is, ssl doesn't seem to be switching at all. The action runs in https when I say it should, but all other

Re: Looking up the Struts Datasource

2003-10-17 Thread Ben Anderson
It depends on the container as to how you put the datasource into the context. If you're using Tomcat 4.1: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html Then to access the datasource: String dsName = java:comp/env/jdbc/myDS; ctx = new

ActionMessage groups

2003-10-17 Thread Wiebe de Jong
I've notices that ActionError will be deprecated in struts 1.2.1. This may cause me a problem. Having two separate lists (ActionErrors and ActionMessages) is great because of the separation of concerns. I can display the Errors in red and the Messages in green. When there is only one list, how

Re: [FRIDAY] URL O' The Day

2003-10-17 Thread Mark Lowe
Nice link ... Sent to us with.. Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) :o) On Friday, October 17, 2003, at 12:58 PM, Mark Galbreath wrote: http://www.kmfms.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For

HTML:SELECT giving headaches

2003-10-17 Thread Sethi, Mandeep
Hi Everyone I'm working on displaying a collection using HTML:SELECT. I'm our case we have a collection of value objects in session scope ,so for e.g in our case we have a collection of Category in session scope ,Which further has a collection of subCategory and I need to display them in a

Need mailing list

2003-10-17 Thread Wiebe de Jong
Do you have bookmarks for any open source mailing lists written in Java? Wiebe de Jong http://frontierj.blogspot.com -Original Message- From: Koni Roth [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2003 2:15 AM To: Struts Users Mailing List Subject: Re: need calendar (maybe

RE: Need mailing list

2003-10-17 Thread Paananen, Tero
Do you have bookmarks for any open source mailing lists written in Java? http://www.google.com/search?q=Open+Source+Java+%22mailing+list%22 Come'on people... -TPP - To unsubscribe, e-mail:

Re: [FRIDAY] Free Dog.....

2003-10-17 Thread Julie . Huang
where is the picture? Julie Member of HSUS Martin Gainty [EMAIL PROTECTED] 10/16/03 07:33 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: [FRIDAY] Free Dog. Ditch the wife Keep the

RE: Need mailing list

2003-10-17 Thread Wiebe de Jong
Okay, my fault. Let me rephrase the question. Does anybody know of a good mailing list app that is open source and written in Java? Wiebe de Jong http://frontierj.blogspot.com -Original Message- From: Paananen, Tero [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 7:46 AM To:

RE: HTML:SELECT giving headaches

2003-10-17 Thread Michael D. Norman
You could do this a couple of ways (thinking out loud here): 1) Do some preprocessing and build a list of all the objects, but I guess that would only work if your SubCategory class had the same properties for name and ID. 2) Do some preprocessing and add ID/name pairs to a SequenceHashMap

RE: Need mailing list

2003-10-17 Thread Paananen, Tero
Okay, my fault. Let me rephrase the question. Does anybody know of a good mailing list app that is open source and written in Java? www.google.com -TPP - To unsubscribe, e-mail: [EMAIL

RE: [FRIDAY] URL O' The Day

2003-10-17 Thread Mark Galbreath
Yep...glad the irony was not wasted! ;-) -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 10:38 AM Nice link ... Sent to us with.. Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) :o) On Friday, October 17, 2003, at 12:58 PM, Mark

RE: [FRIDAY] Free Dog.....

2003-10-17 Thread Chen, Gin
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

for the Apple-biters

2003-10-17 Thread Mark Galbreath
...just ran across this URL and thought I'd pass it along FWIW: http://developer.apple.com/internet/java/struts.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Need mailing list

2003-10-17 Thread Mark Galbreath
Write your own http://www.mscs.mu.edu/~aricke/Ent2002/Assignment3/listing3-3.html -Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 11:03 AM Okay, my fault. Let me rephrase the question. Does anybody know of a good mailing list app that

RE: [FRIDAY] Free Dog.....

2003-10-17 Thread Mark Galbreath
oh man! that's cold! ru related to Andrew? -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 11:53 AM How did you get a picture of Mark? -Tim -Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] Sent: Thursday, October

Re: SSLExt and Struts Workflow?

2003-10-17 Thread Tim Shadel
Thanks Matthias, I'm almost positive, the SSL/non-SSL session tracking is taken care in SSLExt of by URL rewriting as necessary. I'll keep an eye out for that as I test out my work. I'll let you know off-list if I have any questions. Thanks! Tim Matthias Bauer wrote: Tim, what you are

Re: [FRIDAY] Free Dog.....

2003-10-17 Thread Barry Volpe
I've seen some freaky shht but that's freaky!! - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 17, 2003 9:02 AM Subject: RE: [FRIDAY] Free Dog. oh man! that's cold! ru related to Andrew?

RE: for the Apple-biters

2003-10-17 Thread Nguyen, Hien
I'm actually writing my struts application using Eclipse + Tomcat on my PowerBook 17 and Safari for the pages. Its sweet! -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 11:57 AM To: struts-wankers Subject: for the Apple-biters ...just

JSTL evaluate problems

2003-10-17 Thread struts
JSTL is not nesting appropriately. Here is an example of what I am doing: c:set var=person value=${requestScope.personForm}/ c:set var=nestedProp value=name.firstName/ c:out value=${person[nestedProp]}/ The error that I am getting is: Unable to find a value for name.firstName in object of class

struts-config.xml data-source

2003-10-17 Thread Fabio Oliveira
Hello all, I've just configured the sample data-source tag in the Blank application in order to point to an Oracle Database, using the thin driver; and I've noticed that it's opened two connections as specified in the minCount property. I wonder whether this two connections are pooled ? Can

How to retrieve messages from default bundle?

2003-10-17 Thread Barry Volpe
Hi, Want to expose a message in my action: In my action I have: throw new Exception(I have an error); want to use message resource: message.error=I have an error (in applcation.properties) throw new Exception(message.error); (I know this doesn't work directly) Not sure how to set this

RE: for the Apple-biters

2003-10-17 Thread Mark Galbreath
Sure wish I could afford a G5 PowerBook!! -Original Message- From: Nguyen, Hien [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 12:12 PM I'm actually writing my struts application using Eclipse + Tomcat on my PowerBook 17 and Safari for the pages. Its sweet! -Original

RE: for the Apple-biters

2003-10-17 Thread Andy Engle
Mark Galbreath [EMAIL PROTECTED] wrote: Sure wish I could afford a G5 PowerBook!! Me too. Hopefully my side work will pick up and I could pick one up. You have to have the right tool for the job! Andy - To unsubscribe,

Re: How to retrieve messages from default bundle?

2003-10-17 Thread Kris Schneider
Something like this should work: MessageResources resources = getResources(request); String msg = resources.getMessage(message.error); throw new Exception(msg); Quoting Barry Volpe [EMAIL PROTECTED]: Hi, Want to expose a message in my action: In my action I have: throw new Exception(I

RE: HTML:SELECT giving headaches - you need OPTGROUP

2003-10-17 Thread Richard Mixon (qwest)
I believe that what you really are wanting to do is use the OPTGROUP tag within HTML's select tag. This allows you to create a two level indented list of categories and subcategories in a select list. Unfortunately Struts does not directly support this. I asked about this a couple of months ago

Re: How to retrieve messages from default bundle?

2003-10-17 Thread Barry Volpe
Works thanks! - Original Message - From: Kris Schneider [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 17, 2003 10:19 AM Subject: Re: How to retrieve messages from default bundle? Something like this should work: MessageResources resources =

Re: JSTL evaluate problems

2003-10-17 Thread Kris Schneider
Are you just trying to shorthand this: c:out value=${person.name.firstName}/ In other words, person.getName().getFirstName(). Quoting [EMAIL PROTECTED]: JSTL is not nesting appropriately. Here is an example of what I am doing: c:set var=person value=${requestScope.personForm}/ c:set

Upload a multipart post file to an action, but have a servlet pro cess it?

2003-10-17 Thread Rustad, Aaron
I have a Servlet that accepts a multipart/form-data POST request and extracts the file from it using the commons FileUpload API. I wrote this servlet to allow automated clients to upload data files to my server. Now, I have a requirement to allow users to manually upload files via a web page. To

Re: JSTL evaluate problems

2003-10-17 Thread struts
No. The variable that is actually nestedProp is populated dynamically. Most of the time it is just a single property name, but from time to time, it needs to be nested. Carl Quoting Kris Schneider [EMAIL PROTECTED]: Are you just trying to shorthand this: c:out

RE: for the Apple-biters

2003-10-17 Thread Nguyen, Hien
You're gonna have to wait for a while before Apple can squeeze a G5 to a PB. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 12:59 PM To: Struts Users Mailing List Subject: RE: for the Apple-biters Sure wish I could afford a G5

HTML encoding of text returned from a bean

2003-10-17 Thread Chadha, Deepak \(BLM\)
Hi, I have some UI customization that is done based on some data. In order to implement it in a generic, reusable fashion, I am trying to generate the HTML text (including struts tags) in a bean (called FETList below). Scenario1 shown below works. However, Scenario2 is what I am trying to

AW: Looking up the Struts Datasource

2003-10-17 Thread Philipp Rthl
Ben, thanks for your answer. But the DS I would like to get is the Struts DS. The one I defined in the struts-config.xml. When I do the naming lookup as you described I get javax.naming.NameNotFoundException: Name jdbc is not bound in this Context Philipp -Ursprngliche

Re: JSTL evaluate problems

2003-10-17 Thread Ben Anderson
this should work: c:set var=person value=${requestScope.personForm}/ c:set var=_name value=name/ c:set var=_firstName value=firstName/ c:out value=${person[_name][_firstName]}/ From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

RE: HTML encoding of text returned from a bean

2003-10-17 Thread Michael D. Norman
Scenario 1 works because the JSP parser understands it needs to parse the tags. However, Scenario 2 is simply returning text that will be written to the response. There is no way that I know of to force a container to read dynamically-generated JSP without spitting it out into a JSP file and

Re: JSTL evaluate problems

2003-10-17 Thread struts
It doesn't come in seperated. It comes in name.firstName. Quoting Ben Anderson [EMAIL PROTECTED]: this should work: c:set var=person value=${requestScope.personForm}/ c:set var=_name value=name/ c:set var=_firstName value=firstName/ c:out value=${person[_name][_firstName]}/ From:

Re: JSTL evaluate problems

2003-10-17 Thread Kris Schneider
Then I don't see how to make it work with JSTL. So, nestedProp is a scoped variable containing the nested property you want to access, right? Does this work for you: jsp:useBean id=nestedProp type=java.lang.String/ bean:write name=personForm property=%= nestedProp %/ Unfortunately, I don't think

Re: display struts tag in Deamveaver design view

2003-10-17 Thread Christian Bollmeyer
Am Donnerstag, 16. Oktober 2003 21:07 schrieb Rong Yu: Hi, I have been using struts for our project, but our web design teem is complaining about not being able to see struts tag in Deamveaver(MX) design view. So they can not do such simple things as adding items to a combobox using design

Re: AW: Looking up the Struts Datasource

2003-10-17 Thread Ben Anderson
you've tried the configuration detailed in the struts faqs? http://jakarta.apache.org/struts/faqs/database.html public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws

Re: JSTL evaluate problems

2003-10-17 Thread struts
Kris, Thanks for your tip. You lead me to the answer. Here is what works: c:set var=person value=${requestScope.personForm}/ c:set var=nestedProp value=name.firstName/ c:set var=val value=${nestedProp} property=${person} / Now, we can all stand around and scratch our heads and say Duh! Why

Re: JSTL evaluate problems

2003-10-17 Thread struts
Never mind... that didn't fix it either. property is a property of target, which is another object. Carl Quoting [EMAIL PROTECTED]: Kris, Thanks for your tip. You lead me to the answer. Here is what works: c:set var=person value=${requestScope.personForm}/ c:set var=nestedProp

Re: JSTL evaluate problems

2003-10-17 Thread Kris Schneider
Here's a quick test page that emulates what it sounds like you want to do. The bean:write seems to work fine. %@ page contentType=text/plain % %@ taglib prefix=bean uri=http://jakarta.apache.org/struts/tags-bean; % %@ taglib prefix=curi=http://java.sun.com/jstl/core; % jsp:useBean id=person

Re: tiles-defs.xml and dynamic page titles: how to do?

2003-10-17 Thread Kirk Wylie
Have you thought about putting the customer name into request scope in your actions and using some type of expression (perhaps using struts-el or JSTL) to write out the title? So, for example, you'd have something roughly (forgive the fact that I'm not doing it in el): % pageTitle =

Re: JSTL evaluate problems

2003-10-17 Thread struts
Thank you Kris! Quoting Kris Schneider [EMAIL PROTECTED]: Here's a quick test page that emulates what it sounds like you want to do. The bean:write seems to work fine. %@ page contentType=text/plain % %@ taglib prefix=bean uri=http://jakarta.apache.org/struts/tags-bean; % %@ taglib

Localization with Struts/Tiles and URLs

2003-10-17 Thread Ruth, Brice
Greetings, all. I'm looking for some guidance on how best to go about a requirement I have from our marketing as far as URL naming goes. We're developing an international (localized) site and we have a requirement that the URLs look something like this: domain/us/whatever domain/fr/whatever

Writing content to ServletOutputStream from Struts Action

2003-10-17 Thread Pingili, Madhupal
Finally, my Struts application is running in production environment. But, 2 exceptions getting logged in log files everyday. I want to get rid of them. 1. GetDocumentContentAction: * Exception:null com.ibm.servlet.engine.srt.WriteBeyondContentLengthException at

Re: [FRIDAY] Free Dog..... (going further OT!)

2003-10-17 Thread Andy Engle
Sorry to diverge from the already off-topic topic, but this one couldn't go without being shared: It's really hot in the room we work in today. We've been trying to cool it down in here, but I just heard from a co-worker of mine (who heard it from our boss) that the heating and air conditioning

org.apache.action.struts.*

2003-10-17 Thread Martin Gainty
Which jar contains org.apache.struts.action.* Many Thanks, -Martin

Re: tiles-defs.xml and dynamic page titles: how to do?

2003-10-17 Thread Kris Schneider
I've never used Tiles, but one approach would be to put the title in a properties file: parcelsTitle=Consignment Note for {0} Then set up a Tiles attribute to hold the key for the title message. I guess it would look something like: definition name=tiles.customer.title.parcels

Re: org.apache.action.struts.*

2003-10-17 Thread Ruth, Brice
struts.jar Martin Gainty wrote: Which jar contains org.apache.struts.action.* Many Thanks, -Martin -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: HTML encoding of text returned from a bean

2003-10-17 Thread Martin Gainty
Added .\WEB-INF\lib\struts.jar to classpath and that worked .. Thanks, -M - Original Message - From: Michael D. Norman [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, October 17, 2003 2:15 PM Subject: RE: HTML encoding of text returned from a bean

repopulating options of html:select when validation fails

2003-10-17 Thread Marc Dugger
Can anyone offer a crafty method of reloading a dynamic collection of html:options into the request scope in case form validation fails and the controller must forward to the 'input' of the action mapping? Thanks. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system

RE: ActionMessage groups

2003-10-17 Thread Wendy Smoak
Wiebe de Jong [mailto:[EMAIL PROTECTED] wrote: I've notices that ActionError will be deprecated in struts 1.2.1. This may cause me a problem. Having two separate lists (ActionErrors and ActionMessages) is great because of the separation of concerns. I can display the Errors in red and the

Re: org.apache.action.struts.*

2003-10-17 Thread Andy Engle
Ruth, Brice [EMAIL PROTECTED] wrote: struts.jar Martin Gainty wrote: Which jar contains org.apache.struts.action.* Another tip: Sometimes I use WinZip to look at jar files, which will show you all the classes and paths of those classes that are wrapped up in a jar file. Also, you can do

Re: [FRIDAY] Free Dog..... (going further OT!)

2003-10-17 Thread Martin Gainty
Have to do what all people in Southern Climates do when it gets hot ..Take off ! (You are really going to have to so something about that Northern work ethic) Cub Fans arent the only people that are disappointed the Sox got hammered last nite.. -M - Original Message - From: Andy Engle

RE: HTML:SELECT giving headaches

2003-10-17 Thread Sethi, Mandeep
Hi I eventually ended up using the logic:iterate tag and it worked ,thx For anyone who faced similar error ,my code was html:select property=availableList size=18 multiple=true logic:iterate id=categoryAvailableList name=availableFieldList option value=bean:write name=categoryAvailableList

Re: org.apache.action.struts.*

2003-10-17 Thread Ruth, Brice
And even more convenient is the way that you can use Eclipse to show all the packages/classes/etc. when you add a library to a project. ;) Andy Engle wrote: Ruth, Brice [EMAIL PROTECTED] wrote: struts.jar Martin Gainty wrote: Which jar contains org.apache.struts.action.*

Re: [FRIDAY] Free Dog..... (going further OT!)

2003-10-17 Thread Andy Engle
You wrote: Have to do what all people in Southern Climates do when it gets hot ..Take off ! (You are really going to have to so something about that Northern work ethic) Yeah... I need to get out of here. Enough for one day. Cub Fans arent the only people that are disappointed the Sox got

O.T. Windward Studios offers free award-winning game for trying Windward Reports

2003-10-17 Thread David Thielen
The Offer Enemy Nations is one of the highest rated award winning Real-Time Strategy games ever created. And you can get a copy for free just by trying Windward Reports. The Game Meet interesting people on the Internet, then build big tanks and show the bastards who's boss! The Battle for the

Re: org.apache.action.struts.*

2003-10-17 Thread Martin Gainty
Thanks for the great advice.. -M - Original Message - From: Ruth, Brice [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 17, 2003 4:39 PM Subject: Re: org.apache.action.struts.* And even more convenient is the way that you can use Eclipse to show

RE: repopulating options of html:select when validation fails

2003-10-17 Thread Wendy Smoak
Can anyone offer a crafty method of reloading a dynamic collection of html:options into the request scope in case form validation fails and the controller must forward to the 'input' of the action mapping? Thanks. Is putting them in session scope totally out of the question? I think a bit

Re: [FRIDAY] Free Dog..... (going further OT!)

2003-10-17 Thread Greg Reddin
Andy Engle wrote: It's already bad enough that the Cubs lost. +1. I have never wanted a team to win a baseball game so much in my life. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Using fmt:message with struts

2003-10-17 Thread Barry Volpe
Hi, Want to replace: bean:message key=view.title / with fmt:message key=view.title / I put: %@ taglib uri=http://java.sun.com/jstl/fmt; prefix=fmt % in my jsp. All I get is ???view.title??? What am I missing? Thanks, Barry

RE: Using fmt:message with struts

2003-10-17 Thread Wendy Smoak
Barry Volpe wrote: Want to replace: bean:message key=view.title / with fmt:message key=view.title / I put: %@ taglib uri=http://java.sun.com/jstl/fmt; prefix=fmt % in my jsp. All I get is ???view.title??? What am I missing? I know this one! (Having asked the same thing earlier in the

AW: AW: Looking up the Struts Datasource

2003-10-17 Thread Philipp Rthl
That's not really what I would like to do. public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { SomeBean myBean = new SomeBean(); } public

  1   2   >