[ANN] Struts Dialogs project joined Struts Applications project

2005-06-08 Thread Michael Jouravlev
New project homepage: http://struts.sourceforge.net/strutsdialogs/ According to survey http://jmikus.freepolls.com/cgi-bin/polls/001/poll_center.htm , about 60% of Struts developers use form beans for both input and output, that is, as temporary I/O buffer. If I am not mistaken, JSF calls these bu

RE: [Tiles]

2005-06-08 Thread Ray Madigan
I read the paper http://www.browsermedia.com/devcorner/whitepapers/tiles201.jsp which explains how to add attributes into a tile of a definition then it invokes the page. Unfortunatly all I want to do is replace the page that the layout uses to render the layout, without the calling page having

Re: ActionForm::reset method

2005-06-08 Thread Rokibul Islam Khan
hi, if u want to prepopulate the form from form then the proper place is constructor but remember 2nd time u wouldn't get the form populated as to resuse the form actionservelet call the reset method befor resuing any existing form. so u can place same code into the reset method. the best way is

svn Q

2005-06-08 Thread Riyaz Mansoor
have been trying to configure my NetBeans 4.1 to use subversion (SVN) i've downloaded the svn module (beta) but can't seem to figure out how to configure it. the website (http://www.apache.org/dev/version-control.html) does not _seem_ to give how to annonymously check out data. if anybody

Re: [Shale] Validation Server-Side

2005-06-08 Thread Craig McClanahan
On 6/7/05, Mariano Petrakovsky <[EMAIL PROTECTED]> wrote: > If use the tag like this > > message="#{messages['lcrArsNplNode.nplNumberNotMatch']}" > server="true" client="true" /> > > I need implement the server side validation ? or this is inside de shale?

Re: Struts 1.2.7 JAR files different from Commons JAR files

2005-06-08 Thread Woodchuck
--- Leandro_Dorileo/[EMAIL PROTECTED] wrote: > I think (not sure) their versions are different. Take a look at the > dependencies section in the struts release page[1] and see if they > are the > same ;-) > > 1- http://struts.apache.org/userGuide/release-notes.html > > > Dorileo thanks! i re

Re: [Tiles]

2005-06-08 Thread Martin Gainty
Ray: Did you check out this article by Chuck Cavaness? http://www.oreilly.com/catalog/jakarta/chapter/ch14.html Martin- - Original Message - From: "Ray Madigan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, June 08, 2005 8:59 PM Subject: RE: [Tiles] I guess I'm

RE: [Tiles]

2005-06-08 Thread Ray Madigan
I guess I'm not sure about Mike's suggestion. He wrote: use the "navi" is defined in tiles definition file like "header" does. Is this in the layout file? maybe im mixing up which file is which. I have a layout definition that includes the code in my original post. It is called from a jsp th

Re: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids

2005-06-08 Thread Michael Jouravlev
> I don't understand how you managed to get the page with validate-error > not to make an entry in the browser history. I see you've turned off > automatic validation but closer than that I'm not sure. It seems to be > linked to the no-cache stuff but I didn't think the caching had anything > to do

Re: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids

2005-06-08 Thread Adam Hardy
Well I've read it now ;) I see you've based the Action around the Post-Redirect-Get pattern. I use it all the time. It's good. I don't understand how you managed to get the page with validate-error not to make an entry in the browser history. I see you've turned off automatic validation but

RE: [Tiles]

2005-06-08 Thread David G. Friedman
Ray, If Xinsheng [mike] Huang's suggestion about using the JSP ($) dollar sign notation doesn't work, I'd suggest looking at giving your template a tiles controller so you can set the navi attribute to some object and scope. That way the controller can specify the insert automatically before the

Re: Struts 1.2.7 JAR files different from Commons JAR files

2005-06-08 Thread Leandro_Dorileo/ABACO
> i noticed that the Struts 1.2.7 distribution includes many JAR files > with the same name as the Jakarta Commons project JAR files. > however, i discovered that there are real differences between them. > for example, there are a lot more classes in the Struts > commons-fileupload.jar than in th

RE: [Tiles]

2005-06-08 Thread Ray Madigan
I have a fairly simple situation where a set of pages are used throughout the application. Based on a set of crriteria known about the user, I want the page to use a set of common tiles to fill some parts of the page, like the header of the page. Other parts of the page are filled with specific

Struts 1.2.7 JAR files different from Commons JAR files

2005-06-08 Thread Woodchuck
hihi all, i noticed that the Struts 1.2.7 distribution includes many JAR files with the same name as the Jakarta Commons project JAR files. however, i discovered that there are real differences between them. for example, there are a lot more classes in the Struts commons-fileupload.jar than in t

RE: Test whether an application resource is empty

2005-06-08 Thread Chris Loschen
I'm still spinning my wheels on this -- does anyone have any ideas? Quick synopsis: I have localized i18n messages defined in my tiles definitions which are sometimes empty. I need to test that the value associated with a given key is not empty before I proceed with further processing. I can test

RE: [Tiles]

2005-06-08 Thread Ray Madigan
header is defined in the page that implements the layout. I don't every page to add the line to compute this attribute if I don't have to. Thanks -Original Message- From: Xinsheng [mike] Huang [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 1:57 PM To: Struts Users Mailing List

RE: [Tiles]

2005-06-08 Thread David G. Friedman
Ray, What architectural problems prevent you from either using a TilesAction, instead of a regular action, or a tiles controller to look those things up and set them for you so the page doesn't need to be 'that smart?' Regards, David -Original Message- From: Ray Madigan [mailto:[EMAIL PR

Re: [Tiles]

2005-06-08 Thread Xinsheng \[mike\] Huang
use the "navi" is defined in tiles definition file like "header" does. Ray Madigan <[EMAIL PROTECTED]> wrote:I have beat this situation to death without coming up with an answer. I want to create a tile layout that includes a composed tile in the layout definition. Any suggestions would be app

[Tiles]

2005-06-08 Thread Ray Madigan
I have beat this situation to death without coming up with an answer. I want to create a tile layout that includes a composed tile in the layout definition. Any suggestions would be appreciated It needs to look like ** OR ** ** **

RE: Please reply to the mailing list, not to the person

2005-06-08 Thread Leandro_Dorileo/ABACO
Execuse me Wendy if you are she and not he, I've never known anyone called Wendy (Internet troubles);-( Dorileo "David G. Friedman" <[EMAIL PROTECTED]> 08/06/2005 14:19 Favor responder a "Struts Users Mailing List" Para "Struts Users Mailing List" cc Assunto RE: Please reply to the mail

user@struts.apache.org

2005-06-08 Thread Manfred Klug
> If use the tag like this > > message="#{messages['lcrArsNplNode.nplNumberNotMatch']}" > server="true" client="true" /> > > I need implement the server side validation ? or this is inside de shale? All validations can be used on the server side too (if you ha

Re: Nested properties in DynaActionForm

2005-06-08 Thread Laurie Harper
But I set up iterationLength as a HashMap; I thought BeanUtils could handle maps, so it'd do getIterationLength.get("time"). Perhaps I'm mixing up BeanUtils and JSTL semantics. L. Hubert Rabago wrote: Nested properties with DynaActionForms actually require you to nest objects. :) Using a pr

Re: [OT] Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Hubert Rabago
On 6/8/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > > How about... top posting and NOT trimming the previous post? ;) > I'm not sure I've encountered an email app where top posting was not the default. It'll probably be hard to convert entire populations to put their replies at the bottom if th

Re: How to get posted data into a nested object ?

2005-06-08 Thread gdeschen
Hubert Rabago <[EMAIL PROTECTED]> wrote on 08/06/2005 02:15:20 PM: > I would think so. I'm not as familiar with the internals of BeanUtils > as I'd like to be, but since your form is in request scope, that means > it'll create a new instance upon submission. From that, it'll call > getDependent(

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Dave Newton
David G. Friedman wrote: Wendy is my sister's name. If you're expecting her to be a he and not a she, think again. :) I thought something was strange about him. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

RE: Please reply to the mailing list, not to the person

2005-06-08 Thread David G. Friedman
Wendy is my sister's name. If you're expecting her to be a he and not a she, think again. :) -David, a man with a SISTER named Wendy. LOL -Original Message- From: Abdullah Jibaly [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 2:16 PM To: Struts Users Mailing List Subject: RE: Pl

RE: Please reply to the mailing list, not to the person

2005-06-08 Thread Abdullah Jibaly
I'm pretty sure it's Mrs/Ms Smoak since Wendy is usually a female name (please correct me if I'm wrong Wendy) :) -Abdullah -Original Message- From: Leandro_Dorileo/[EMAIL PROTECTED] [mailto:Leandro_Dorileo/[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 12:57 PM To: user@struts.apache.o

Re: How to get posted data into a nested object ?

2005-06-08 Thread Hubert Rabago
I would think so. I'm not as familiar with the internals of BeanUtils as I'd like to be, but since your form is in request scope, that means it'll create a new instance upon submission. From that, it'll call getDependent(). If that returns null, I'm not sure what BeanUtils would do. I'd bet it'

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Leandro_Dorileo/ABACO
Agreed to everything, but perhaps we can think more about what Mr. Smoak said "get more personal replies", personal replies are good because you can see in your mailbox that there is a reply especially to you and that would be good you read that (it's only my opinion and I even do that), but we

Re: [OT] Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Woodchuck
hehe, i see your point. but i'm generally neutral on the top posting issue. it's nice because everything can be found in one post, esp. if you haven't been following and just jumped in to the latest post. but if you have been following the thread, then it's unnecessary. some threads take on a l

Test whether an application resource is empty

2005-06-08 Thread Chris Loschen
Hi all, I'm using struts 1.1. I have localized application resources keys defined in my tiles definition file. In my JSP, I use the tiles attribute and then display the localized message using the key. However, in some cases, the localized value is empty: there is no value for that particular lo

RE: access session object

2005-06-08 Thread David G. Friedman
According to their front page, tomcat 5.5.9 supporst the 2.4 servlet spec and the 2.0 JSP spec. http://jakarta.apache.org/tomcat/ See the little chart halfway down the first page. -David -Original Message- From: Tony Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 1:03 PM

Re: access session object

2005-06-08 Thread Tony Smith
Thanks you the post. I need to access fields in the object stored in sessioin. I was thinking about using the . Any way, does tomcat 5.0 supports 2.4 servlet specs? --- atta-ur rehman <[EMAIL PROTECTED]> wrote: > if you're running servlet container that supports > 2.4 servlet specs > and yo

RE: AW: No action instance for path /Admin could be created

2005-06-08 Thread David G. Friedman
Shailesh, I had a whole set of questions written down before I saw the REAL problem. Prepare yourself, it's one of those "DUH!" answers because it was a simple typing mistake. You listed your action like this: Your forwards should use PATH, not TYPE. There is no java class

Re: [OT] Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Wendy Smoak
woodchuck wrote: > while we're on the subject of mailing list rules/etiquette/pet peeves: How about... top posting and NOT trimming the previous post? ;) At least trim your posts. Please, do it for the archives if nothing else. There are so many posts that have the previous two, three, and more

Re: Highly dynamic forms

2005-06-08 Thread gdeschen
The section I was refering you to is the Hand Cranking the lazy List in the Action Form. This is a small section squeezed in between lazy list information. This does not require any other class but the ActionForm. All that is needed is to add code to grow the list and to get the proper objects ba

[OT] Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Woodchuck
while we're on the subject of mailing list rules/etiquette/pet peeves: i despise ppl who purposely post messages that are future dated so they remain at the top of your inbox messages list. this is the worst offense imho. i promptly delete these without hesitation. woodchuck --- Michael Joura

Re: Highly dynamic forms

2005-06-08 Thread Stéphane Zuckerman
[EMAIL PROTECTED] a écrit : http://wiki.apache.org/struts/StrutsCatalogLazyList Look at the section: Hand Cranking lazy List in the ActionForm. This is possible with the version you are currently using. Actually, the LazyValidatorForm class only exists since struts 1.2.6, that is why I was ask

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Michael Jouravlev
On 6/8/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > In a matter of a few minutes, I suddenly got three offline messages > with follow up questions. I usually don't mind, though each time I > reply to such messages, I include the text below. In this case, I > thought I'd share these thoughts wit

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Hubert Rabago
Yes, that happens with gmail users. Usually though, the first reply shows *both* struts list and the gmail address, and if I reply to that and they reply back, then it's just the gmail address. With the three I refer to, they all just went to me. If you three are reading this, btw, I'm still fin

Re: validation -- best practices

2005-06-08 Thread Dave Newton
Suzanne Rizzo wrote: I don't know if this is a good practice or not, but my app uses two entries in struts-config. One with validate="true" and one with validate="false". I 've never actually used the validate="true" in my code; I have an action superclass that checks for the request typ

RE: validation -- best practices

2005-06-08 Thread Suzanne Rizzo
I don't know if this is a good practice or not, but my app uses two entries in struts-config. One with validate="true" and one with validate="false". When linking to the page for the first time, I link to the action with the validation turned off. When submitting the form, I submit to the ac

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Dave Newton
Wendy Smoak wrote: Hubert, when I reply to one of your messages, the 'To:' line comes up with both the Struts list _and_ you personally. It happens (to me) with several people on the list, but not everyone. I don't know if it's something on my end, or something in the messages you're sending,

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Wendy Smoak
From: "Hubert Rabago" <[EMAIL PROTECTED]> > In a matter of a few minutes, I suddenly got three offline messages > with follow up questions. I usually don't mind, though each time I > reply to such messages, I include the text below. In this case, I > thought I'd share these thoughts with the rest

Re: Please reply to the mailing list, not to the person

2005-06-08 Thread Dave Newton
Minor additions : Hubert Rabago wrote: 1) People on the list help each other out voluntarily. So thank the people that help you, even if they help you off-line. If they help you a LOT, thank them even more, especially for off-topic or RTFM/STFW answers, even MORE especially if you ask a lot

Re: How do I use JAAS(JbossSX) in Struts?

2005-06-08 Thread Adam Hardy
It does protect it! As your error message showed. The struts protection centres around the container's security. Struts calls request.getRoles() (or similar) to find out if you are in that role. Since you do not have that URL in your web.xml constraints, the container doesn't force you to log

Please reply to the mailing list, not to the person

2005-06-08 Thread Hubert Rabago
In a matter of a few minutes, I suddenly got three offline messages with follow up questions. I usually don't mind, though each time I reply to such messages, I include the text below. In this case, I thought I'd share these thoughts with the rest of the list. - - - - There are very good reason

Re: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids

2005-06-08 Thread Michael Jouravlev
Adam, did you manage to read the full description DialogAction? ;-) I know, I know, that the first paragraph is very generic, but that is what the action does. Can you suggest some better wording? I would appreciate if you tried the examples, especially the one called Login Control. I guess I sho

RE: Howto put current users into the application context?

2005-06-08 Thread Nils Liebelt
That's not the problem. Where do you get your ApplicationContext map from? Clearly not from SessionBindingEvent. So stick another Observer pattern to notify your application context?!? Regards, Nils -Original Message- From: delbd [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 20

RE: Howto put current users into the application context?

2005-06-08 Thread Nils Liebelt
That's not the problem. Where do you get your ApplicationContext map from? Clearly not from SessionBindingEvent. So stick another Observer pattern to notify your application context?!? Regards, Nils -Original Message- From: delbd [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 20

Re: ActionForm::reset method

2005-06-08 Thread Janek Ziniewicz
So where is the proper place to prepopulate fields? [I know I am a noob] On 6/8/05, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Yes. Is this causing a problem for you? Please note that reset() is > not where you should be prepopulating fields. As it says in the > javadoc: > > "In practice, the

Re: ActionForm::reset method

2005-06-08 Thread Hubert Rabago
Yes. Is this causing a problem for you? Please note that reset() is not where you should be prepopulating fields. As it says in the javadoc: "In practice, the only properties that need to be reset are those which represent checkboxes on a session-scoped form." ... and ... "You mainly need to

Re: Sorry I deleted replies by accident. How do you dynamically set one of the options in a select as selected

2005-06-08 Thread Hubert Rabago
To do this, prepopulate an instance of the form bean that the form will be using, and set the value of the select field to the value of the option you want selected. Hubert On 6/8/05, Harland, David <[EMAIL PROTECTED]> wrote: > Sorry I deleted replies by accident > > I have created an array

Re: DynaActionForm / BeanUtils usage issue

2005-06-08 Thread Hubert Rabago
As you've seen, the dynaClass is required before you use a DynaActionForm. The dynaClass is what tells BeanUtils what properties your DynaActionForm has. To create a DynaActionForm with the DynaClass initialized, call formBeanConfig.createActionForm(). You can get a formBeanConfig instance throu

Re: Nested properties in DynaActionForm

2005-06-08 Thread Hubert Rabago
Nested properties with DynaActionForms actually require you to nest objects. :) Using a property name like "iterationLength.time" would be like saying "getIterationLength().getTime()", and this is what BeanUtils would try to do. Hubert On 6/7/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > I'm p

Re: Howto put current users into the application context?

2005-06-08 Thread delbd
Le Mercredi 8 Juin 2005 15:44, Nils Liebelt a écrit : > Hi all, > > I want to show list of currently logged in users. Now in my idea this is > something which should belong into application context. Putting it in there > Is not too difficult. I do it in my extended ActionServlet. But how do I > get

RE: help needed with RowSetDynaClass

2005-06-08 Thread McDonnell, Colm (MLIM)
If you knew the underlying data type associated with each of the ((DynaProperty)col).getName() calls in your example then you could create the input type appropriate to that data type. So, you would also need to expose the underlying datatypes to the JSP so that it could conditionally create the ap

Howto put current users into the application context?

2005-06-08 Thread Nils Liebelt
Hi all, I want to show list of currently logged in users. Now in my idea this is something which should belong into application context. Putting it in there Is not too difficult. I do it in my extended ActionServlet. But how do I get it outta there? What listeners do I use in order to get notifie

Howto put current users into the application context?

2005-06-08 Thread Nils Liebelt
Hi all, I want to show list of currently logged in users. Now in my idea this is something which should belong into application context. Putting it in there Is not too difficult. I do it in my extended ActionServlet. But how do I get it outta there? What listeners do I use in order to get notifie

Re: Error messages in login page doesn't show up

2005-06-08 Thread Ian van der Neut
I solved it, removing redirect="true" from the action-mapping tag in struts-config.xml solved it. Ian. On 6/8/05, Ian van der Neut <[EMAIL PROTECTED]> wrote: > Hello all, > > I have a little problem with displaying an "Invalid login" message on > my login page. I am using tomcat 5.0.28 and strut

Problem with logic:iterate Tag

2005-06-08 Thread Deepak Srivatava
I am populating following simple List in action class and putting that in form class. private List getSystemTableList(ConfWizardBean confwizbean, HttpSession session){ ArrayList outerList = new ArrayList(); for (int i = 0; i < 2; i++) {

help needed with RowSetDynaClass

2005-06-08 Thread Javier Santos Martin-Moreno
Hello all, I am writing a jsp that retrieves a row of a table in my database and allows the user to modify the fields using a form. For example, if I have the following table in my database: NAME GENDER John Male Ann Female and the following code in my action class ... RowSetDynaClass rowSe

Re: Best Place for config values

2005-06-08 Thread Frank W. Zammetti
I agree, my stratagey is a separate XML config file. I've also gotten in the habit of using Digester to read it. Makes life easier. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, June 8, 2005 8:44 am, Leandro_Dorileo/[EMAIL PROTECT

Jim Coble/Libraries/Provost/Academic/Univ/Duke is out of the office.

2005-06-08 Thread Jim Coble
I will be out of the office starting 06/08/2005 and will not return until 06/13/2005. I will respond to your message when I return. If you need assistance on CIT-related matters in the meantime, you can email [EMAIL PROTECTED] or call 919-660-5806.

Re: validation -- best practices

2005-06-08 Thread Martin Gainty
Peter- I assume you have redirected your forms submittal to your customised Validator? e.g. tag displays "onSubmit=return validateMyForm(this)" Martin- - Original Message - From: "Peter Maas" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, June 08, 2005 8:28 AM

Re: Best Place for config values

2005-06-08 Thread Leandro_Dorileo/ABACO
>Whats the best place / access method to storing and retriving config attributes like administrator email addresses >and directories to store uploaded files in a multi-tiered webapp, web.xml? Resources file? Both servlets and non >servlets need to access these values. Opinions greatly apprec

Re: Error Handling Strategy

2005-06-08 Thread Leandro_Dorileo/ABACO
>In my new application design I am employeeing this strategy and using >custom ExceptionHandler classes to catch, log, and redirect the user >to the appropriate pages. In my Exception classes, instead of a >non-localized string as the exception message, I use a message key >which I can then retrie

Re: Pb with html:link

2005-06-08 Thread JM Tinghir
> > Do try with the attribute flush to true. You got it! Thanks a lot, I was going mad for such a little problem. Jean-Marie > JM Tinghir <[EMAIL PROTECTED]> > 08/06/2005 08:02 AM > Please respond to > "Struts Users Mailing List" > > To > Struts Users Mailing List > cc > > Subject > Re: Pb

Re: How do I use JAAS(JbossSX) in Struts?

2005-06-08 Thread marc
No /HelpDesk/bruger/* in web.xml should not protect /DB/home. But roles="admin" in when the user has the admin role, should protect it. Should't ?? Marc Adam Hardy wrote: I don't know! It's not clear what you want. Let me turn the question round: in your web.xml why do you think that pro

RE: validation -- best practices

2005-06-08 Thread Peter Maas
I also perform client side validation, however what I don't want is validation BEFORE the user actually got a change to enter data... which is what happens now... On Wed, 2005-06-08 at 07:45 -0400, Kalyanasundaram, Arun Sakthi (Cognizant) wrote: > Hi Peter, > > The validation that is basically p

Re: Pb with html:link

2005-06-08 Thread gdeschen
Just as a double check Jean Marie. You need to have the taglibs in both the resultat.jsp and the headerRecherche.jsp. This is how I do my include: Do try with the attribute flush to true. - Glenn JM Tinghir <[EMAIL PROTECTED]> 08/06/2005 08:02 AM Please respond to "Struts Users Mailing Lis

Re: How to get posted data into a nested object ?

2005-06-08 Thread gdeschen
Is this the only way to do it ? I have always never coded anything additional in the getter/setter methods. - Glenn Hubert Rabago <[EMAIL PROTECTED]> 07/06/2005 05:42 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: How to get posted data into

Re: Pb with html:link

2005-06-08 Thread JM Tinghir
Yes I did. I have a in it that works correctly. Jean-Marie Tinghir 2005/6/8, Chris Loschen <[EMAIL PROTECTED]>: > Did you include a taglib reference in headerRecherche.jsp? Something > like this: > > <%@ page language="java"%> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > <%@

RE: Pb with html:link

2005-06-08 Thread Chris Loschen
Did you include a taglib reference in headerRecherche.jsp? Something like this: <%@ page language="java"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> In this case,

Re: How to get posted data into a nested object ?

2005-06-08 Thread gdeschen
Thanks for the warning ! Not all of the properties are shown to the user. The date gets formatted based on a locale. I will certainly look into the FormDef. - Glenn Hubert Rabago <[EMAIL PROTECTED]> 07/06/2005 05:43 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing

Failed Validation Prolbem

2005-06-08 Thread Bing Qiao
Hello, I have been puzzled by this problem for a while. I inherited a Struts application which regularly sets collections as request attributes and accesses them in jsps. I tried to add Validation to this app using Validator framework and let the jsp be reloaded if something goes wrong. Two thi

RE: validation -- best practices

2005-06-08 Thread Kalyanasundaram, Arun Sakthi \(Cognizant\)
Hi Peter, The validation that is basically performed in the approach you have specified is client side validation. Please elaborate more why you want to make a server hit before the data is validated and corrected in Client side itself. Thanks and Regards, Arun Sakthi -Original Message-

Sorry I deleted replies by accident. How do you dynamically set one of the options in a select as selected

2005-06-08 Thread Harland, David
Sorry I deleted replies by accident I have created an array several namevalue objects and put them in the request object for the html:options to use. How do I flag one of those options to be selected. Many thanks Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents o

validation -- best practices

2005-06-08 Thread Peter Maas
I have a question about the validation in struts. Imagine that we have: - jsp page containing the form to be validated - formbean extending from ValidatorForm - action to be executed on submit - validation rules using the validation plugin If we put the 'validate' attribute to true in the struts

How do you dynamically set one of the options in a select as selected

2005-06-08 Thread Harland, David
I have created an array several namevalue objects and put them in the request object for the html:options to use. How do I flag one of those options to be selected. Many thanks Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are conf

Re: AW: No action instance for path /Admin could be created

2005-06-08 Thread shailesh agarwal
Yes, It extends org.apache.struts.Action class. I am putting files that I have used: struts-config.xml http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";>

ActionForm::reset method

2005-06-08 Thread Janek Ziniewicz
My app contains a few forms. Each form has one ActionForm and one Action class associated. Each time page with form is displayed I see that ActionForm::reset method is displayed. After submitting I can see that reset method is launched again, and right after that ActionForm::execute. Is it proper

Error messages in login page doesn't show up

2005-06-08 Thread Ian van der Neut
Hello all, I have a little problem with displaying an "Invalid login" message on my login page. I am using tomcat 5.0.28 and struts 1.2.4 I have a login.jsp that looks like this: In my ActionForm, the validate method looks like this: public ActionErr

AW: No action instance for path /Admin could be created

2005-06-08 Thread Struts
Did you check, that your own Action extends the org.apache.struts.action.Action class? HTH John -Ursprüngliche Nachricht- Von: shailesh agarwal [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 8. Juni 2005 12:25 An: user@struts.apache.org Betreff: No action instance for path /Admin could be

Re: How do you write a regular expression for allowing single quotes in a word

2005-06-08 Thread Nandan
\' should work Thanks Guru - As dark as the inside of a needle -Brodsky - Original Message - From: "Harland, David" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 08, 2005 1:07 PM Subject: How do you write a regular expression for allowing single quotes in a word How

No action instance for path /Admin could be created

2005-06-08 Thread shailesh agarwal
type Status report message No action instance for path /Admin could be created description The server encountered an internal error (No action instance for path /Admin could be created) that prevented it from fulfilling this request. i am facing these problem I have properly configured stru

Re: How do I use JAAS(JbossSX) in Struts?

2005-06-08 Thread Adam Hardy
I don't know! It's not clear what you want. Let me turn the question round: in your web.xml why do you think that protecting /HelpDesk/bruger/* should also protect /DB/home? Adam PS: as an OO developer, your action class's name "ToDBAction" makes me writhe in agony - hoping I'm not being p

How do you write a regular expression for allowing single quotes in a word

2005-06-08 Thread Harland, David
How do you write a regular expression for allowing single quotes in a word eg. O'reilly Many thanks Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are confidential to the intended recipient. They may not be disclosed to or used by

Re: Question about property files

2005-06-08 Thread Rutger Heijmerikx
It also works as follows; I have an entry within the struts config file that looks like; And within the package "com.mycompany.resources" i have the resource files; ApplicationResources.properties ApplicationResources_nl.properties This works for me but i know that the application's classpath

Re: How do I use JAAS(JbossSX) in Struts?

2005-06-08 Thread marc
Sorry the late reply, had some problems with me mail server. Yeah I got the . Why do I need Shouldn't this /HelpDesk/bruger/* in me web.xml, just restrict me to all under this? Marc Vance Karimi wrote: I'm presuming you also have

Re: How do I use JAAS(JbossSX) in Struts?

2005-06-08 Thread marc
Sorry the late reply, had som problems with me mailserver last night. * Why do I need the /DB/home url in web.xml. Is't this enough /HelpDesk/bruger/* in the ? Marc Adam Hardy wrote: You need to put that /DB/home url pattern

Re: access session object

2005-06-08 Thread atta-ur rehman
if you're running servlet container that supports 2.4 servlet specs and you web app is also configured to be of version 2.4, thru element in your xml: ${myobject} in your JSP should print it. in scriptlets: <%=session.getAttribute("myobject")%> should work. "session" is reference to current s

Re: [ANNOUNCEMENT] Struts Dialogs: DispatchAction on steroids

2005-06-08 Thread Adam Hardy
Michael, I too like Jack concentrated on SelectAction, purely because it was first in the text. Looking at your description of DialogAction, I read the first paragraph about DialogAction and didn't feel it was worth reading further - having read about SelectAction (on the basis of your name)

RE: How do you dynamically create a select with one of the options selected

2005-06-08 Thread Abhinav Bhatnagar
Dave, You can use the select and options tags provided in the struts-html taglib Example : Regards, Abhinav -Original Message- From: Harland, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 1:22 PM To: user@struts.apache.org Subject: How do you dynamically cr

How do you dynamically create a select with one of the options selected

2005-06-08 Thread Harland, David
How do you dynamically create a select with options for example from a DB and flag one of the options to be selected. The only way I can think of is to write my own tag. Regards Dave. This e mail is from DLA Piper Rudnick Gray Cary UK LLP. The contents of this email and any attachments are con

Pb with html:link

2005-06-08 Thread JM Tinghir
Hello, I have a JSP (resultat.jsp) in which there's : Suppression This is working perfectly. This JSP includes another one : This is still working perfectly. But when I put the html:link in the headerRecherche.jsp , I get a NullPointerException... And this is not working perfectl

RE: Question about property files

2005-06-08 Thread McDonnell, Colm (MLIM)
The properties file should be in the application's classpath, typically under WEB-INF/classes -Original Message- From: Paul Goepfert [mailto:[EMAIL PROTECTED] Sent: 08 June 2005 07:03 To: user@struts.apache.org Subject: Question about property files Just a quick question, I have writte