RE: Multiple Forms per Submits

2004-05-18 Thread David Friedman
Hey James, Why not nest your form beans inside another, main form bean? Then you could access them using dot notation mainBean.thatBean.thisProperty, mainBean.someOtherBean.thatOtherProperty, etc. Regards, David -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Tu

Re: Multiple Forms per Submits

2004-05-18 Thread Michael McGrady
The technical answer to your question, if it is taken literally to be about the client side, is that with HTML you can only have the values of one form on a response page submitted with a request from the client. If you are thinking truly about submitting multiple forms on one page, why not jus

Re: Mulitple Forms per Submits

2004-05-18 Thread James Mitchell
Could you please restate (or at least clarify) your question? I don't think I fully understand what you are asking. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users M

Mulitple Forms per Submits

2004-05-18 Thread [EMAIL PROTECTED]
Is there a clean way to have multiple Forms posted when the user click the Submit buttons ? Basically, instead of extending various Forms to have some code re-use I think it would be much more interresting to have the possibility to post multiple Forms instead of having a Specific form extendi

Setting the locale toa different value thanthe Browser Locale[]

2004-05-18 Thread [EMAIL PROTECTED]
The application we are currently building is bi-lingual : French & English If we are rather please by the Mulilingualism support offered by Struts, we need to allow a (say) German native speaker to choose another language than the default we set (typically choose French instead of English). How

Re: sending emails from a struts app

2004-05-18 Thread Mark Lowe
wouldn't something like this do what you're talking about? try { Transport.send(msg); } catch (Exception e) { ActionMessages errors = new ActionMessages(); errors.add("mail",new ActionMessage("mail.pearshaped.error"); saveErrors(request, errors); } On 18 May 2004,

Re: [Fwd: Faces Struts Tiles]

2004-05-18 Thread Hubert Rabago
There's an old IBM article illustrating this. http://www-106.ibm.com/developerworks/java/library/j-integrate/ Keep in mind this article was written before the final release of JSF. If you're looking for the nightly build of the struts-faces integration library, there's an open bug report concernin

[Fwd: Faces Struts Tiles]

2004-05-18 Thread Joao Araujo
Is anybody using Faces, Struts, and Tiles ? I found an article pointing me to : http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/ Unfortunately, every file on this directory has nothing on it. Can anyone tell me , or provide me a link to integrate struts, tiles, fac

Re: No getter Method for property

2004-05-18 Thread Nicholas L Mohler
Satish, The problen occurs because of the "indexed" getter/setter. if you change the name from getStatus(int Index) to getOneStatus(int index) (or some different name that you like). The problem will be resolved. The indexed getter is used by Struts when your form is submitted. Nick

RE: sending emails from a struts app

2004-05-18 Thread Robert Taylor
Daniel, we have several applications (both web and others) which send email for various reasons. We queue up the email messages in a database and allow a separate process to sift through the queue (every 30 seconds) and send any unsent messages. This way we avoid the threading issue in the appl

Validation question. Disallow < > characters using regex mask

2004-05-18 Thread Eric Dahnke
Hello List, Validation works great! However, we don't want to allow people to enter Style data into our forms. I'm happy to just make < > illegal characters using a regex mask, but the SAX parser won't parse my validation.xml file. Does anyone know how to escape < > characters in the validati

Validation question. Disallow < > characters using regex mask

2004-05-18 Thread Eric Dahnke
Hello List, Validation works great! However, we don't want to allow people to enter Style data into our forms. I'm happy to just make < > illegal characters using a regex mask, but the SAX parser won't parse my validation.xml file. Does anyone know how to escape < > characters in the validati

No getter Method for property

2004-05-18 Thread Satish Satish
Hi, I have tried a lot of stuff but I am still getting the same exception..need help... I am getting the following exception [ServletException in:/jsp/qa/mytc/mytcview.jsp] No getter method for property status of bean testResultForm' javax.servlet.jsp.JspException: No getter method for property st

RE: sending emails from a struts app

2004-05-18 Thread Matthias Wessendorf
daniel, perhaps here are some more ideas for you: http://jakarta.apache.org/commons/sandbox/email/ Cheers, Matze > -Original Message- > From: Daniel Perry [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 18, 2004 6:55 PM > To: Struts Users Mailing List > Subject: RE: sending emails from a

RE: sending emails from a struts app

2004-05-18 Thread Daniel Perry
Right. Have been a little dumb - had some cases where this seemed to be happening. Got some errors in tomcat logs from users clicking stop part way through somthing. On closer inspection it is because the action is outputing a pdf itself directly. Now knowing that the action will always complete

RE: sending emails from a struts app

2004-05-18 Thread Joe Hertz
> This is what i want to acheive. I cant have the user > submitting a request, and then stopping it part way through. This is what you get. The browser simply says, "Do this". And you do. There is no Mechanism for the user to say, "No! Stop! Don't!". You may never get the request if there is a

RE: sending emails from a struts app

2004-05-18 Thread Paul-J Woodward
Simply make your action servlet spawn a thread to perform the action/send the mail atomically. The easiest way is to make your mail sending class extend the Thread class, create a new instance and run it. Paul Global Equity Derivatives

RE: sending emails from a struts app

2004-05-18 Thread Daniel Perry
JavaMail - no problem... found loads of examples. With regards to the canceling of requests, i'm not sure what you're saying - are you saying 1. your code will stop on browser cancels and there's nothing you can do or 2. you're code will always finish running even if the user cancels (tho obviousl

Re: sending emails from a struts app

2004-05-18 Thread James Mitchell
> I need to send out emails from a struts app. > > Any comments on the best way to go about this? Yes, use JavaMail: http://java.sun.com/products/javamail/ http://www.j2eeolympus.com/J2EE/JavaMail/JavaMail.jsp > > As sending mail can be slow, is there an easy way to do this in the > background?

sending emails from a struts app

2004-05-18 Thread Daniel Perry
I need to send out emails from a struts app. Any comments on the best way to go about this? As sending mail can be slow, is there an easy way to do this in the background? What happens if a client cancels a request part way through? is there any way to handle this / ignore cancels? Daniel. --

Re: Validation problem

2004-05-18 Thread None None
ARGH... I found my problem... simple typo in my message resouce file... the html:errors tag just wasn't finding the right key for one of my errors, and thus wasn't displaying anything, making it look like I was only gettiing one. Sorry folks, false alarm :) From: Iván Rodríguez <[EMAIL PROTEC

RE: Struts Validation for just current page

2004-05-18 Thread Morowitz, Michael
Rick, I would suggest having that page submit to another action path that maps to the same Action and Form you need, but with the validate option set to false. This is the tactic that I normally use. It allows you to keep your code base intact, but submit to a customized path. Michael -Ori

Re: Validation problem

2004-05-18 Thread None None
I came across that, but I'm getting the following error: javax.servlet.ServletException: Cannot find bean error in any scope Does the ActionErrors object get set as another name? I'm using Struts 1.1, everything I'm reading seems to agree that it should be named "error"... From: Iván Rodríguez <

Re: Validation problem

2004-05-18 Thread Iván Rodríguez
Try: - Original Message - From: "None None" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 18, 2004 5:32 PM Subject: Validation problem > Hello again... I'm playing with validation for the first time, and I got it > almost working completely, one

Validation problem

2004-05-18 Thread None None
Hello again... I'm playing with validation for the first time, and I got it almost working completely, one remaining problem... In my ActionForm validate() method, I am checking two elements for errors, In my test case, both should be getting flagged as incorrect (and they are, I can see that

RE: R: Struts and JAAS

2004-05-18 Thread Jesse Alexander (KXT)
check in web.xml documentation. There you specify which realm an application will check for user-authorization. Then you have to connect each realm to some java-classes that implement it within JRun... hth Alexander -Original Message- From: Andrea M. [mailto:[EMAIL PROTECTED] Sent: Dien

Re: Validator - not passing params to message

2004-05-18 Thread Henrique VIECILI
Thank you Ivan, now it works fine! - Original Message - From: "Ivan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, May 18, 2004 11:14 AM Subject: Re: Validator - not passing params to message > correction :^) > > 2) > > ---> Password

Re: initialize Collection for html-tags options tag - HOW?

2004-05-18 Thread Lukas Latz
An update: My attempt to forward from action to action failed. These are the mappings for the actions involved. I tried to replace with but somehow the MultiFindNameAction's execute method is apparently called with the ActionFo

R: R: Struts and JAAS

2004-05-18 Thread Andrea M.
Could you provide an example of how to do it? I think if it's a matter of application configuration then the appserver should not make any difference, as long as I use jdk 1.4 and j2ee 1.3 -Messaggio originale- Da: Sean Radford [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004 1

Re: Validator - not passing params to message

2004-05-18 Thread Ivan
correction :^) 2) ---> Password ---> 6 minlength 6 ... > - Original Message - > From: "Henrique VIECILI" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, May 18,

Re: Validator - not passing params to message

2004-05-18 Thread Ivan
1) 2) minlength 6 ... - Original Message - From: "Henrique VIECILI" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, May 18, 2004 3:24 PM Subject: Validator - not passing pa

Re: how to create a MessageResouces

2004-05-18 Thread Henrique VIECILI
Hi Julio, Since the ApplicationResources.properties is a Property File, you can read it and use the java.util.Properties class to load this properties and the java.text.MessageFormat class to format and display the messages. // this code is to load the ApplicationResources.properties into a Prop

RE: how to create a MessageResouces

2004-05-18 Thread Geeta Ramani
Julio: Look at Riyad Kalla's answer to this question under the thread: Accessing ResourceBundle items from Action class Geeta > -Original Message- > From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 18, 2004 9:42 AM > To: 'Struts Users Mailing List' > Subject: how

R: R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
You can find them at http://www.displaytag.org and http://cewolf.sourceforge.net/ -Messaggio originale- Da: Dean A. Hoover [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004 15.05 A: Struts Users Mailing List Oggetto: Re: R: Struts Taglib recommendations Andrea M. wrote: >Other

Re: FW: code too large for try statement

2004-05-18 Thread Joe Germuska
It just so happens that I just wrote an answer to in response to a different email. At 8:18 AM -0500 5/18/04, Joe Germuska wrote: It works find on Tomcat 5 because JSP 2.0 works around the maximum method-length limitation. Weblogic 8.1 is still J2EE 1.3 (Servlet 2.3/JSP 1.2). I'd suggest usin

Re: struts is giving error on weblogic81

2004-05-18 Thread Joe Germuska
At 3:28 PM +0530 5/18/04, Jignesh Patel wrote: Well, We solved the problem, there is a one file commonspool.jar which is missing. Once we added in war file it worked fine. But then we started getting another error as given below(ie. try block too large), which is because of big size of jsp page. Bu

how to create a MessageResouces

2004-05-18 Thread Julio Cesar De Salvo
What's the best way to create a MessageResource object that loads the ApplicacitonResources.properties outside the struts framework (for eg. In a servlet)? Thanks

R: Filtering ApplicationResources.properties file

2004-05-18 Thread Andrea M.
Ok, then you can filter what comes from your ActionServlet. You don't "filter properties", but requests and response. You tell to the actionservlet that all the requests are from iso-8859-9 forms. In alternative you might convert your file with native2ascii tool I found something that might be of

Validator - not passing params to message

2004-05-18 Thread Henrique VIECILI
Hi, I am testing the commons-validator and I have two questions: 1º) How to generate client side (javascript) validation using the Validator? Do I have to put some special tag? 2º) I put all the messages like 'errors.required' in my app resources properties file, but Validator seems not to be

Re: App-level globals

2004-05-18 Thread None None
I actually went the plug-in route, that seems to work very nicely. Is there any benefit of a ContextListener vs. a plug-in? The only obvious one that comes to mind is that a plug-in is Struts-specific, so your tied to that framework, but that seems a pretty smalll consideration since there's p

Re: Help with using declarative error handling

2004-05-18 Thread Frank Burns
Joe, You be da man! Thanks. Frank - Original Message - From: "Joe Germuska" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, May 18, 2004 1:56 PM Subject: Re: Help with using declarative error handling > At 1:58 AM +0100 5/18/04, Frank Burns wrote:

Re: Struts Validation for just current page

2004-05-18 Thread Susan Bradeen
"Adams, Richard K" <[EMAIL PROTECTED]> wrote on 05/18/2004 08:34:16 AM: > I am running Struts 1.1 on Tomcat 4.1.24. How can I use the > validator to use just the current page, and not all pages <= current > page. I am using Tiles with a tab structure so each Tile is it's > own page number. W

Struts 1.1 + jakarta common uploads 1 getting empty list although it is multi-part agreed

2004-05-18 Thread Ayoub, Ashraf A
I'm using Struts 1.1, and trying to use the commons file upload version 1 package (from http://jakarta.apache.org/commons/fileupload/index.html ) to handle file upload request in my application, yet I seemed to always get an empty List from the parseRequest function of the org.apache.commons.fileu

Re: Help with using declarative error handling

2004-05-18 Thread Joe Germuska
At 1:58 AM +0100 5/18/04, Frank Burns wrote: This seems simple enough. So why doesn't it work? Because the default ExceptionHandler class saves its own error messages into the request under the same key that Action.saveErrors() uses, overwriting the reference to the errors that you saved. http:/

Re: R: Struts Taglib recommendations

2004-05-18 Thread Dean A. Hoover
Andrea M. wrote: Other taglibs that might be of interest for you are Displaytag for automatic generation of html tables, with paging and sorting CeWolf: for charts generation Jakarta String: for string manipulation etc There are many more to be used.. those are the ones I've been using most so far

Re: Filtering ApplicationResources.properties file

2004-05-18 Thread Ramil Mirhasanov
Andrea, Content type of the pages is ok it is iso-8859-9, but when i use tag to display my errors, some characters are not properly displayed. Maybe there is a way to filter the strut tags to accept requests in given character encoding?? or must I somehow filter the encoding of .properties file??

initialize Collection for html-tags options tag - HOW?

2004-05-18 Thread Lukas Latz
Hi list I'm trying to use the options tag and am stuck with this problem: I hold all 'Model' information in a single model object in the HttpSession. Initialization for the Collection used by the , held in an ActionForm, must come from there (first time the view that uses that form is displayed).

FW: code too large for try statement

2004-05-18 Thread Rahul Mohan
Hi, havent got a soln to this problem so fari am posting this again hoping somebody would help me out one more fact is that i cannot modify the jsp as such as it is being generated by a tool thanks rahul -Original Message- From: Rahul Mohan [mailto:[EMAI

R: Filtering ApplicationResources.properties file

2004-05-18 Thread Andrea M.
Ramil I don't think you need to filter your properties You display your errormessages thru your jsps, so Having iso-8850-9 encoding set in your jsps should be enough -Messaggio originale- Da: Ramil Mirhasanov [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004 14.40 A: Struts Users

Re: Filtering ApplicationResources.properties file

2004-05-18 Thread Ramil Mirhasanov
Andrea, I need that error messages are displayed properly in iso-8859-9 encoding, as all my classes and jsps. My error messages are stored in ApplicationResources.properties file. I will be gratefull if you help! Ramil - Original Message - From: "Andrea M." <[EMAIL PROTECTED]> To: "'Struts

Struts Validation for just current page

2004-05-18 Thread Adams, Richard K
I am running Struts 1.1 on Tomcat 4.1.24. How can I use the validator to use just the current page, and not all pages <= current page. I am using Tiles with a tab structure so each Tile is it's own page number. When I select a tab, I just want the validation to work on just the current page,

R: Filtering ApplicationResources.properties file

2004-05-18 Thread Andrea M.
Hi Ramil I don't quite understand what you are trying to achieve Why should you want to filter properties? -Messaggio originale- Da: Ramil Mirhasanov [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004 12.46 A: Struts Users Mailing List Oggetto: Filtering ApplicationResources.prop

Re: code too large for try statement

2004-05-18 Thread Susan Bradeen
"Rahul Mohan" <[EMAIL PROTECTED]> wrote on 05/18/2004 01:36:19 AM: > > Hi, > > I have a JSP page with Struts and JSTL tags. It is > pretty big with about > 15 conrols and a *LOT* of JSTL tags. When I try host the page in Weblogic8.1 > i get the following compile error: > >win

R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
Why that? I use currently Struts + JSTL Actually the only struts taglib I use is html or html-el What have "using the mvc" and "build 3 tier" to do with using struts taglib vs JSTL??? -Messaggio originale- Da: Rosenberg, Leon [mailto:[EMAIL PROTECTED] Inviato: martedì 18 maggio 2004 14.0

AW: Struts Taglib recommendations

2004-05-18 Thread Rosenberg, Leon
That depends. If you want to use the mvc from struts then use struts taglibs. If you build a 3 tier use struts taglibs. If you want manageable jsps use struts taglibs. Otherwise use jstl or struts-el. :-) Leon > -Ursprüngliche Nachricht- > Von: Linus Nikander [mailto:[EMAIL PROTECTED] >

Class path in Oracle 9Ias

2004-05-18 Thread Vijay.Nair
Hello All, I want to set up the class path to one of my property files on the disk on Oracle 9ias. Any idea how this can be done using OC4j Thanks, VJ, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
Hi As somebody else suggested JSTL may be what you want One of the most used implementation is jakarta's one (standard taglib) There are 2 versions: Standard 1.0 that works with JSP 1.2 and servlet 2.3 Standard 1.1 that works with JSP 2.0 and servlet 2.4 I've replaced almost all of struts taglibs

Re: Server side validation

2004-05-18 Thread Nicholas L Mohler
Hi Samuel, I'm not sure why the input couldn't accept pages and forwards within one application. That's probably a good question for the major contributors to the framework. For the struts-config.xml file Ted Husted's book, "Struts in Action", is a good reference that I have used . The boo

RE: Struts Taglib recommendations

2004-05-18 Thread Daniel Perry
My advice (from experience) would be to go with jstl. just one value attribute instead of name and property: name="beana" property="beanb.beanc" ...becomes... value="${beana.beanb.beanc}" The choose tag with multiple whens makes jsps a lot less messy. No longer need to make complicated nestings o

Filtering ApplicationResources.properties file

2004-05-18 Thread Ramil Mirhasanov
Hi, I want to ask you, how is it possible to create mapping for filter and *.properties?? So that character encoding filter would apply for ApplicationResources.properties file. I have allready done filtering for Actions, by modifiying web.xml: Set Character Encoding action My

Re: Struts Taglib recommendations

2004-05-18 Thread Linus Nikander
Point taken ;) >From what I know right now we'll be using taglibs mostly to iterate and display collections of beans. There might be some logical branching ( equals, bigger than, smaller than ) involved. I've used the struts taglibs extensively but find some parts of it, beans nested several level

Re: struts is giving error on weblogic81

2004-05-18 Thread Jignesh Patel
Well, We solved the problem, there is a one file commonspool.jar which is missing. Once we added in war file it worked fine. But then we started getting another error as given below(ie. try block too large), which is because of big size of jsp page. But which works absolutely fine on tomcat. We

RE: Struts Taglib recommendations

2004-05-18 Thread Daniel Perry
I started out using struts-logic, struts-html, struts-bean, but i have recently found JSTL1.1 to be a nicer alternative. So, i generally use JSTL core (with JSTL formatting, and JSTL functions where necessary) and struts-html-el for actionforms, etc. Daniel. -Original Message- From: Andr

Re: R: Struts and JAAS

2004-05-18 Thread Sean Radford
Never used jrun but on the other app servers I have used (and prefer jboss) you can independently configure each app as to which JAAS realm to use. So, sorry don't think I can be of more help. Anyone else out there know jrun? Sean On Tue, 2004-05-18 at 10:18, Andrea M. wrote: > Yes > I need app

R: Struts Taglib recommendations

2004-05-18 Thread Andrea M.
That's a pretty vague question There's plenty of taglib out there Please specify what you are looking for, cause I don't think you'll find people here writing you a comprehensive list of all of the taglibs existent :) Andrea -Messaggio originale- Da: news [mailto:[EMAIL PROTECTED] Per co

R: Struts and JAAS

2004-05-18 Thread Andrea M.
Yes I need application A using module 1 And application B using module 2 I need isolation, so A cannot access m2 and B cannot access m1 In Jrun actually I can configure jaas modules for users and roles, but that's server instance wide. I'm pretty new to JAAS, and I don't know if I have to find a wa

RE: JSTL 1.1 EL not working :(

2004-05-18 Thread Daniel Perry
My web.xml is version 2.4. This was one of the first things i changed to try and fix the problems! So, why do i need to set the struts taglibs, but not the jstl ones? Where does it find these taglibs otherwise? As i'm now referencing jstl core as: http://java.sun.com/jsp/jstl/core does this me

Struts Taglib recommendations

2004-05-18 Thread Linus Nikander
Has anyone made a comparison of the various taglibs out there that can be used with struts ? I'm about to start working on a project and have been asked to evaluate our options. Which taglib (or combinations of different taglibs) do you use when developing ? What are the advantages of one over anot

Re: Struts and JAAS

2004-05-18 Thread Sean Radford
Each application just logs into a different JAAS realm (each of these has its own stack of login modules, but sounds like you only need one per realm). Hope that guides you a little. regards, Sean On Tue, 2004-05-18 at 09:22, Andrea M. wrote: > Hello all > I've got a dilemma trying to implemen

Struts and JAAS

2004-05-18 Thread Andrea M.
Hello all I've got a dilemma trying to implement JAAS in my struts applications. This is the problem: I have more applications running in the same instance of the appserver (jrun 4 in my case, but I think the same thing is applicable to the others). Each application has its own database with its o

Re: Session Timeout

2004-05-18 Thread Jignesh Patel
I don't know whether struts is having any readymade classes or not. But what your are trying to create is fairely simple create a listener which listens session expiration event by extending class HttpSessionListener. In the sessionDestroyed method, do the operation which you want. -Jignesh

RE: Session Timeout

2004-05-18 Thread Joe Hertz
If I don't miss my guess, it sounds like you want to do what declarative security would do for you. Any protected page gets redirected to a login form. After successfully logging in, the user is redirected to where he wanted to go in the first place. This isn't struts specific, but it does work w

Re: Session attributes lost when open a popup window

2004-05-18 Thread Harjot Narula
Hi I see no reason of losing the session while opening a JSP in a new pop up window. Try this test2 or window.open("/test2.jsp","test2"); I am pretty sure that no session variables are lost while opening a JSP in a pop up window. Harjot - Original Message - From: "grati_a_lozano" <[

Session Timeout

2004-05-18 Thread Harjot Narula
Hi I am using struts framework in an application. When any JSP times out, we cache the parameters and the request and then forward the request to login page. After authentication, the cached request and parameters are used and the control is redirected to the original request. We are using websp