Re: Must specify type attribute if name is specified error

2004-10-05 Thread Sebastian Ho
I am using 1.1..will check out bean name. Was that an error, all my codes use the same format and everything works fine.. Sebastian On Tue, 2004-10-05 at 14:50, [EMAIL PROTECTED] wrote: > For the tag html:form, the attribute "name", "type" and "scope" have been > removed from Struts 1.2, they wer

Re: Search engine friendly URLs

2004-10-05 Thread Mark Lowe
There's a filter that does URL rewriting already, urlrewrite , mod_rewrite would be okay but who wants to run mod_jk - apache as his/her development environments. http://tuckey.org/urlrewrite/ The only problem then is generating the links. so rather than you'd use something like..

Is it possible to call a dispatchAction form an Action ?

2004-10-05 Thread ymlaine
Hi, I have a form that is submited to a DispatchAction and work very well. But I would like to reuse this DispatchAction and call it from another Action. Is it possible to do that ? I found nothing that indicate me how to pass the parameter value... Any Idea ? Yves-Marie **

Loosing session while redirecting

2004-10-05 Thread Konstantina Stamopoulou
Hello evelyone, I'm facing the following problem. I try to switch from http to https using tags in the struts-config.xml http://pc:8989/cdn-data-new/tvmode.jsp"/> https://pc:8989/cdn-data-new/tvmode.jsp"/> In the Action class I use : return mapping.findForward("standard"); Ev

customizing reset() and validate() methods

2004-10-05 Thread gilles
Hi, Is it possible to associate several ActionForm or DynaActionForm subclasses to one form of a struts based application ? What I would like is that specific reset() and validate() methods be called for a given form according to values that have been given by users through former forms. Does a

Re: mailreader sample question

2004-10-05 Thread Erik Weber
Sorry, I think you are using a more recent version of Struts than I have. Perhaps someone else can help. Erik Richard wrote: Thanks Erik, I am already at that point now. the link from the web page points to http://localhost:8080/struts-mailreader/EditRegistration.do?action=Edit and at struts-c

Re: Best load testing tool for Java applications

2004-10-05 Thread struts Dude
If I only have 1 machine and I want to approximate best maximum load on struts application on the line I have, what can I do?? Ok, so the result will likely be under estimated ( i.e. less than real maximum load due to same cpu running both application and test) but it's better to under estimate tha

ActionError and JSP display

2004-10-05 Thread Robin Mannering
Hi, Platorm is : Tomcat 5, Struts 1.1 Context: HTML Form submissions and validation. I'm trying to conditionally test for the existince of error messages by their keys. And I'd then like to show the error with HTML formatting around it. Basically, using tags, I'd like to do the same as the fol

Re: ActionError and JSP display

2004-10-05 Thread Jeff Beal
Robin Mannering wrote: Hi, Platorm is : Tomcat 5, Struts 1.1 Context: HTML Form submissions and validation. I'm trying to conditionally test for the existince of error messages by their keys. And I'd then like to show the error with HTML formatting around it. Basically, using tags, I'd like to do

RE: ActionError and JSP display

2004-10-05 Thread Robin Mannering
Hi, I was intending to use , specifying the property for display, but it still doesn't allow me to test for it's existence. What I'd like to do is test if an error exists, then add a new HTML table row and cell into the output containing the error message, otherwise I do not want to create the

textbox format date & i18n date handling

2004-10-05 Thread David Suarez
Multiple related questions: 1) I have a java.util.Date field that needs to be displayed in a textbox. In bean:write there are formatting methods to have the date display using a MM/dd/ for example. however I don't see the same for html:text. I'm sure there's a way I'm not seeing... I trie

Re: problem parsing validation-rules depends="" with jboss

2004-10-05 Thread Rick Reumann
Erik Weber wrote the following on 10/5/2004 1:36 AM: Zoinks, JBoss 3.2.4 (on unix) and 3.2.5 (on win 2000) have been able to parse the default validator-rules.xml (version 1.1, which has several 'depends=""') for me without any problems. However, I did run into some problems with parsing errors

Missing resources - Struts 1.2.4 + Validator + Multiple Modules

2004-10-05 Thread Akbar Ibrahim
Hi, I have a Struts 1.2.4 application with multiple modules. I am using the Struts Validator plugin to validate my forms. I have defined the Validator plugin in the default Struts config file as well as the module specific struts config file. The validator-rules.xml file is common across all mo

RE: ActionError and JSP display

2004-10-05 Thread Joe Germuska
At 1:45 PM +0100 10/5/04, Robin Mannering wrote: Hi, I was intending to use , specifying the property for display, but it still doesn't allow me to test for it's existence. What I'd like to do is test if an error exists, then add a new HTML table row and cell into the output containing the erro

RE: ActionError and JSP display

2004-10-05 Thread Paul McCulloch
Try: Or something similar. Paul > -Original Message- > From: Robin Mannering [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 05, 2004 1:45 PM > To: Struts Users Mailing List > Subject: RE: ActionError and JSP display > > > Hi, > > > I was intending to use ,

RE: How To Upload Files from Clients' Machine?

2004-10-05 Thread Fogleson, Allen
You can look at the struts example struts-upload.war (I think that is the name in the examples directory) for how to do this. Basically you want to make your form something like this: You will of course need an actionForm and an action class. The action form would have code such as Pu

[validator] dependent field

2004-10-05 Thread Emmanouil Batsis
Consider two fields, type and time. The first mandatory, the second dependent on the value of the first. What I'm trying to do enforce a not null and not empty value for the time field, when the type has a value of 'time'. I've been trying to do this for more than an hour; I was hoping someone

RE: ActionError and JSP display

2004-10-05 Thread Robin Mannering
Thanks for all the help received on this one.. As pointed out by Joe, the tag is conditional, and when supplying the "parameter" atribute I get exactly what I need. For reference, it looks like this: <%-- Display error message keyed under 'usernameError' if it exists --%>

Re: back button

2004-10-05 Thread Jeff Beal
andy wix wrote: Hi, As usual I think I must be missing something fundamental! It would be pretty serious to leave the back functionality - someone could delete a contact, then press back and see the name again. If they subsequently do another delete, there's trouble! I'm thinking this problem i

Re: ActionError and JSP display

2004-10-05 Thread Jeff Beal
Robin Mannering wrote: Thanks for all the help received on this one.. As pointed out by Joe, the tag is conditional, and when supplying the "parameter" atribute I get exactly what I need. For reference, it looks like this: <%-- Display error message keyed under 'usernameError' if it

How to iterate through Validator errors only in JSP?

2004-10-05 Thread Mark Songhurst
Hi This is rather wordy, but a probably a simple question, so please bear with me! All using Struts 1.2 I have an ActionForward execute method which creates and populates an ActionMessages object. The ActionMessage objects that I populate it with are given the property of "violation", and the key

Re: Loosing session while redirecting

2004-10-05 Thread Erik Weber
I don't know any reason why a redirect should be the cause of session "breaking", though I admit I haven't used a redirect from HTTP to HTTPS in the middle of a user's workflow (only at the very beginning -- by using the CONFIDENTIAL transport-guarantee in web.xml). Is your test browser accepti

multiple submit buttons on a form

2004-10-05 Thread struts lover
Hello Everyone, I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as required by LookupDispatchAction. I also want internationaliza

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Lucky you, Struts Lover, this has already been done. See http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions . You can get everything you want without the incredibly heavy load of having LookupDispatchAction create a reverse map of your entire ApplicationResource.properties file

Load-on-startup init servlet

2004-10-05 Thread Denis Avdic
I am trying to set up a start up sequence for my app but I have never set up something like that. Basically I want to initialize some classes with attributes found in my resources file. How would I go about doing this? I set up my web.xml file to load a servlet on startup, but I am not sure how

Re: multiple submit buttons on a form

2004-10-05 Thread struts lover
Thanks Michael very much. I will go through it. If I dont understand anything, will come back :). Thanks again. --- Michael McGrady <[EMAIL PROTECTED]> wrote: > Lucky you, Struts Lover, this has already been done. > See > http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions > . Yo

RE: multiple submit buttons on a form

2004-10-05 Thread Durham David R Jr Contr 805 CSPTS/SCE
> http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions Mike, why not link directly to the Struts related stuff from the wiki. Or are you trying to drum up business for your flash skills? ;) - Dave - To unsubscribe,

RE: multiple submit buttons on a form

2004-10-05 Thread DGraham
1. He authored that WIKI and 2. That WIKI now directly links to his homepage, so why make the OP suffer redirection? Dennis "Durham David R Jr Contr 805 CSPTS/SCE" <[EMAIL PROTECTED]> 10/05/2004 10:24 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts U

RE: multiple submit buttons on a form

2004-10-05 Thread struts lover
LOL :)) --- Durham David R Jr Contr 805 CSPTS/SCE <[EMAIL PROTECTED]> wrote: > > > http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions > > Mike, why not link directly to the Struts related > stuff from the wiki. > Or are you trying to drum up business for your flash > skills? ;) >

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Hi, David, that is a good question, which Steve Raeburn once solved by changing the link. The reason is that I may want to change this page without having to go to every place it is linked to do so. Just "decoupling", as they say. In fact, since Steve changed the link, I have changed the pag

RE: multiple submit buttons on a form

2004-10-05 Thread DGraham
Never mind, I misread Davids post. Dennis [EMAIL PROTECTED] 10/05/2004 10:31 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc Subject RE: multiple submit buttons on a form 1. He authored that W

Re: Load-on-startup init servlet

2004-10-05 Thread Varun Garg
MessageResources res = MessageResources.getMessageResources("ApplicationResources"); If you are using the property file name ApplicationResources in the root folder. In the init method of the servlet that you are loading at startup, you can do whatever you want. public void init(ServletC

[OT] RE: multiple submit buttons on a form

2004-10-05 Thread Durham David R Jr Contr 805 CSPTS/SCE
> The reason is that I may want to change this page > without having to go to every place it is linked > to do so. Does that qualify as a "splash" screen? HA HA - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Load-on-startup init servlet

2004-10-05 Thread Denis Avdic
So I can call MessageResources.getMessageResources("blah") in the init() method? Is there an order I have to load the servlets in web.xml in order for that to work? (if I remember correctly, ActionServlet actually loads those resources, right?) On Tue, 5 Oct 2004 07:49:02 -0700 (PDT), Varun Garg

RE: Load-on-startup init servlet

2004-10-05 Thread Hiran.Chaudhuri
Hi, Denis. To get your servlet loaded after the Struts ActionServlet, simply use 2 (assumed that your ActionServlet is loaded with 1=. This simply tells Tomcat to load your servlet after the ActionServlet. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Else

RE: Load-on-startup init servlet

2004-10-05 Thread DGraham
Or, extend ActionServlet and put your code after the call to super.init(): -- public class fooServlet extends ActionServlet{   public fooServlet () {     super();   }   public void init() throws ServletException {     super.init();     // do something here;   } } -- Don't forget to update web.

Re: problem parsing validation-rules depends="" with jboss

2004-10-05 Thread Rick Reumann
I'm still stumped. I stopped server, deleted all temp files, re-deployed, and get the same error with jboss3.2.5 (listed below) What I find odd is if I remove all the rules that have depends="" in them and redploy with the modified validation-rules then everything is fine. Very frustrating. 11

Re: multiple submit buttons on a form

2004-10-05 Thread Rick Reumann
struts lover wrote the following on 10/5/2004 10:12 AM: I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as required by LookupDisp

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
[EMAIL PROTECTED] wrote: 1. He authored that WIKI and 2. That WIKI now directly links to his homepage, so why make the OP suffer redirection? Dennis Because indirection decouples the link and leaves me free to change my site, Dave

Redirecting and getting the original URL

2004-10-05 Thread Jacob Weber
Hello. In my Struts application, I have an action which forwards to a second action. The "redirect" parameter is set to false, so the browser's URL doesn't change. I'd like to get the original URL that the user requested (the one that's in his browser). But request.getServletPath() and the vari

introduce Struts and Tapestry

2004-10-05 Thread WOLips
Hello, I have to introduce and compare between (using Struts and Tapestry) and another Web Application technologies to a customer. I thought maybe anybody can link me to read the most important advantages from using Struts and Tapestry. My duty is not to program with them, its just to tell WHY

RE: input form

2004-10-05 Thread Freddy Villalba A.
Hi, Allen... I have a similar question: when you say create the action form and put it into request scope... I suppose you refer to the same ActionForm that will be used when, say, saving that prepopulated form again (the changes you've made). Right? Then, what I'm not really sure is this: should

Re: problem parsing validation-rules depends="" with jboss

2004-10-05 Thread Erik Weber
Do you have Struts 1.1 around? Can you deploy any of the example webapps from that dist? How about the examples from your dist? Sorry, I know it's not much help. But it looks like ValidatorAction is trying to instantiate a StringTokenizer with a null String, so I was just trying to narrow it do

good book about struts

2004-10-05 Thread Ye, Young
Hi Struters, I am working in a project which use struts. I would like to buy a book about struts. But there are many of them in the market. Can you recommend the one which you think is best? Thanks a lot - To unsubscribe, e-ma

RE: good book about struts

2004-10-05 Thread Robin Mannering
Hi, Can't say which is best as I have only read Struts in Action: Ted Husted. I find it invaluable as a reference and very easy to read ! I recommend it. Nice extra chapters too, especially the chapter on replacing JSPs with Velocity templates Robin -Original Message- From: Ye, Y

RE: good book about struts

2004-10-05 Thread Ricardo Andres Quintero
How much u know about Struts? I read programming Jakarta Struts of chuck Cavaness, OReally. It is a very very nice book if u dont know anything about Struts. On Tue, 5 Oct 2004 16:45:44 +0100, Robin Mannering wrote > Hi, > > Can't say which is best as I have only read Struts in Action: Ted > Hu

Re: back button

2004-10-05 Thread andy wix
Hi, Just for the record the following javascript works (in the body tag of the html page): It's not pretty, but it works. Regards, Andy _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/

Re: good book about struts

2004-10-05 Thread Robert Barksdale
+1 for Ted Husted's Struts in Action On Tue, 5 Oct 2004 10:48:41 -0400, Ricardo Andres Quintero <[EMAIL PROTECTED]> wrote: > How much u know about Struts? > I read programming Jakarta Struts of chuck Cavaness, OReally. > It is a very very nice book if u dont know anything about Struts. > > On Tu

Tiles inheritance

2004-10-05 Thread Wylie van den Akker
Can anyone explain to me strait how tiles inheritance model actually works? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: input form

2004-10-05 Thread Wendy Smoak
From: "Freddy Villalba A." <[EMAIL PROTECTED]> > I have a similar question: when you say create the action form and put it > into request scope... I suppose you refer to the same ActionForm that will > be used when, say, saving that prepopulated form again (the changes you've > made). Struts will

RE: input form

2004-10-05 Thread Fogleson, Allen
Freddy, You want to use the formName that you gave in the struts-config.xml in general. Here is a short example. Assume TestForm is an actionform named "testForm" in the struts-config.xml. In the action class you would do something like this public Actionforward execute(...) { . . .

RE: input form

2004-10-05 Thread Fogleson, Allen
Wendy, True enough, the original question though revolved around prepopulating the form from the DB before getting to the view of the submitting page so that initial page would have data pre-populated. :) Al -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday,

JSPC and struts problem

2004-10-05 Thread David Gagnon
Hi all, I'm trying to compile JSP from my webapp and run into this Null Pointer problem. It's seem that MessageResources.java can't be loaded has is (need to be loaded in the webapp environment) I'm running Struts 1.1. I'm pretty sure this should work .. do I need to update my struts version?

RE: Tiles inheritance

2004-10-05 Thread Fogleson, Allen
Honestly pretty much like regular OO inheritance. If you define values in the "subclassed" tile then they replace the ones in the parent, if you do not then the parents value is used. Al -Original Message- From: Wylie van den Akker [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2

RE: input form

2004-10-05 Thread Robin Mannering
Hi All, Just chewing over this problem myself since it was brought up. The solution is here I believe, yet to implement it but I'm sure it'll work. http://struts.apache.org/faqs/newbie.html#prepopulate Hope this helps, not sure if it repeats what has been said already. Robin -Original M

RE: input form

2004-10-05 Thread Freddy Villalba A.
Thanx Allen! Your explanations is clear enough. -Mensaje original- De: Fogleson, Allen [mailto:[EMAIL PROTECTED] Enviado el: martes, 05 de octubre de 2004 18:30 Para: 'Struts Users Mailing List' Asunto: RE: input form Freddy, You want to use the formName that you gave in the struts-con

RE: input form

2004-10-05 Thread Robin Mannering
Hi All, Just tried it out as defined in the struts link below and it works a treat... You don't need to instantiate an instance of the form, as this has already been done for you by the Struts framework before the Action is reached, and you don't need to set the form as a request attribute. My

Re: [OT] RE: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Durham David R Jr Contr 805 CSPTS/SCE wrote: The reason is that I may want to change this page without having to go to every place it is linked to do so. Does that qualify as a "splash" screen? HA HA - Dave Well, you live and learn, Dave. I had never heard of "splash screens" before. LOL

Servlet action is not available.

2004-10-05 Thread WOLips
hi, i have struts.jar in "myStrutsApp1\WEB-INF\lib" and even in "tomcat\bin" the code is an example from the net, which i thing it must run. but i still get this error : HTTP Status 404 - Servlet action is not available type Status report message Ser

Re: Servlet action is not available.

2004-10-05 Thread Ricardo Andres Quintero
Did u configure the servlet controller in your app web.xml? On Tue, 5 Oct 2004 19:16:24 +0200, WOLips wrote > hi, > i have struts.jar in "myStrutsApp1\WEB-INF\lib" > and even in "tomcat\bin" > > the code is an example from the net, which i thing it must run. > > but i still get this error : > --

Re: Servlet action is not available.

2004-10-05 Thread Ricardo Andres Quintero
Did u configure the servlet controller in your app web.xml? On Tue, 5 Oct 2004 19:16:24 +0200, WOLips wrote > hi, > i have struts.jar in "myStrutsApp1\WEB-INF\lib" > and even in "tomcat\bin" > > the code is an example from the net, which i thing it must run. > > but i still get this error : > --

Validation in Struts for Required fields

2004-10-05 Thread Priya Jotwani
Hi , I have a JSP Page where I have two dropdowns displaying default values. Before submitting that page, the user should select something from these two dropdowns and if he doesn't selects, there should be an error message displayed on the top saying "This field is required". This is what I a

Re: Servlet action is not available.

2004-10-05 Thread WOLips
thank you for answer. i addes these jars to "myStrutsApp1\WEB-INF\lib" and it worked. commons-beanutils.jar commons-collections.jar commons-digester.jar commons-fileupload.jar commons-logging.jar commons-validator.jar jakarta-oro.jar struts.jar Sako. - Original Message - From: "Ric

Re: Validation in Struts for Required fields

2004-10-05 Thread Erik Weber
In your JSP, where are your selects? Are you using html:select tags to produce them? Erik Priya Jotwani wrote: Hi , I have a JSP Page where I have two dropdowns displaying default values. Before submitting that page, the user should select something from these two dropdowns and if he doesn't sel

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Rick Reumann wrote: struts lover wrote the following on 10/5/2004 10:12 AM: I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as requ

Re: Redirecting and getting the original URL

2004-10-05 Thread Craig McClanahan
On a Servlet 2.4 container (such as Tomcat 5.x), the server will store the "original" path-related information as a set of request attributes with well known names: javax.servlet.forward.request_uri javax.servlet.forward.context_path javax.servlet.forward.servlet_path javax.servlet.forward

Re: Servlet action is not available.

2004-10-05 Thread Rick Reumann
WOLips wrote the following on 10/5/2004 1:16 PM: but i still get this error : HTTP Status 404 - Servlet action is not available type Status report message Servlet action is not available description The requested resource (Servlet action is not available

Re: Servlet action is not available.

2004-10-05 Thread Ricardo Andres Quintero
u should kick him!! thats terrible i dont know how we can live with this... On Tue, 05 Oct 2004 13:46:20 -0400, Rick Reumann wrote > WOLips wrote the following on 10/5/2004 1:16 PM: > > > but i still get this error : > > > > HTTP Status 404 - Servlet a

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
struts lover wrote: Hello Everyone, I have this problem. I have several submit buttons on a form and I am using a modified version of LookupDispatchAction class. Is there any way for the buttons to have the same name instead of having separate names as required by LookupDispatchAction. I also w

Re: Servlet action is not available.

2004-10-05 Thread Rick Reumann
Ricardo Andres Quintero wrote the following on 10/5/2004 12:47 PM: u should kick him!! thats terrible i dont know how we can live with this... I must be missing the joke:)... live with 'what' ? -- Rick - To unsubscribe, e-mail: [EM

RE: textbox format date & i18n date handling

2004-10-05 Thread David Suarez
I guess this got kicked back for some reason. Please see below: Multiple related questions: 1) I have a java.util.Date field that needs to be displayed in a textbox. In bean:write there are formatting methods to have the date display using a MM/dd/ for example. however I don't see the sam

RE: textbox format date & i18n date handling

2004-10-05 Thread Slattery, Tim - BLS
> 1) I have a java.util.Date field that needs to be displayed > in a textbox. IMHO the way to do this is to have a read/write property in your bean that delivers and accepts a string. Both can use SimpleDateFormat class to convert between the string and the underling Date class. -- Tim Slatte

RE: textbox format date & i18n date handling

2004-10-05 Thread Hiran.Chaudhuri
Hi, Tim. This is right. But also make sure the locale dependent date parsing is done in the action class then, since - I'm not sure whether the validator package can cover localized dateformats - only the controller classes know about the user's locale and therefore the dateformat that should be

Re: multiple submit buttons on a form

2004-10-05 Thread Rick Reumann
Michael McGrady wrote the following on 10/5/2004 1:40 PM: He cannot use a basic DispatchAction, Rick, since he wants to use multiple buttons. He needs multiple buttons with the same value. Since the value of the name parameter in the HTML is completely decoupled from all of my solutions, he is

Re: Servlet action is not available.

2004-10-05 Thread WOLips
- Original Message - From: "Rick Reumann" <[EMAIL PROTECTED]> To: "struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, October 05, 2004 7:46 PM Subject: Re: Servlet action is not available. > WOLips wrote the following on 10/5/2004 1:16 PM: > > > but i still get this error : >

Re: Validation in Struts for Required fields

2004-10-05 Thread Erik Weber
Somehow we lost the list on a couple of posts. OK, so, these are the things I assume you have checked so far: 1) you have an html:select tag with property = "reportType", and the default option's value is "" 2) your ActionForm extends one of the proper types (such as ValidatorForm) and has the pr

Re: multiple submit buttons on a form

2004-10-05 Thread Michael McGrady
Rick Reumann wrote: Michael McGrady wrote the following on 10/5/2004 1:40 PM: He cannot use a basic DispatchAction, Rick, since he wants to use multiple buttons. He needs multiple buttons with the same value. Since the value of the name parameter in the HTML is completely decoupled from all of

Internationalize Submit Button

2004-10-05 Thread Zoltan Vekony
Hi, I would like build a Struts-form like this: ... I have the following entries in properties file: search.for=Search for: search.for.title=Search for book title Question: Is is possible to setup the submit button like: valueKey="search.submit" (analogous title/titleKey) to have

Re: Servlet action is not available.

2004-10-05 Thread Rick Reumann
WOLips wrote the following on 10/5/2004 2:20 PM: First, please try to remember not to reply to a message in a thread and change the subject (it will screw up how a lot of e-mail clients sort threaded e-mails). i do this for months, how can you recognize this? I believe it works on the fact that d

RE: textbox format date & i18n date handling

2004-10-05 Thread David Suarez
Thanks for the quick responses! Is there anything more generic that can be done? Till now I have been setting the fields directly into the "real" bean classes so to do the below I would need to replicate the properties on the form and then move them over to the real bean classes afterwards (wh

RE: textbox format date & i18n date handling

2004-10-05 Thread bmf5
I don't have time for a long response but have you considered the fmt:formatDate tag of JSTL? "David Suarez" <[EMAIL PROTECTED]

Internationalize Submit Button

2004-10-05 Thread David Suarez
Nesting the tag works for submit. I was hoping this would work for html:text as well but it doesn't unfortunately. This is a sample of what it looks like for i18n submit: Regards...djsuarez Date: Tue, 05 Oct

Re: textbox format date & i18n date handling

2004-10-05 Thread Hubert Rabago
Hi David, If you need this functionality in several forms and several fields, you may want to evaluate using FormDef for this. http://formdef.dev.java.net Among the sample applications is locale.war which shows you a form that includes date and currency fields with formats that change depending

RE: textbox format date & i18n date handling

2004-10-05 Thread David Suarez
I am using 0% JSTL right now so I can't introduce it now on this project unfortunately, too last minute. I guess the equivalent would be to write it out using the struts bean:write and manually write the INPUT html. Thanks for the feedback...djsuarez -Original Message- From: [EMAIL

Enhancement requests

2004-10-05 Thread David Suarez
How does one go about requesting an enhancement to Struts? For my particular problem today it seems like Struts could handle all the dirty work for me if it used a version of bean utils that could be registered "per request". Struts could then set the Locale and then populate all of the fields

Re: tag

2004-10-05 Thread Addy Kapur
Yes it is. On Tue, 5 Oct 2004 10:47:17 +1000, Yakov Belov <[EMAIL PROTECTED]> wrote: > I presume it is the struts tag for the standard html : > > > > - Original Message - > From: "Phani" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, October 05, 2004 10:36 AM > Subject

Re: Enhancement requests

2004-10-05 Thread Hubert Rabago
http://issues.apache.org/bugzilla/ On Tue, 5 Oct 2004 14:21:50 -0500, David Suarez <[EMAIL PROTECTED]> wrote: > How does one go about requesting an enhancement to Struts? > > For my particular problem today it seems like Struts could handle all > the dirty work for me if it used a version of bea

Re: Enhancement requests

2004-10-05 Thread Joe Germuska
At 2:23 PM -0500 10/5/04, Hubert Rabago wrote: http://issues.apache.org/bugzilla/ Actually, in general, I think it's better to have some discussion on the lists before filing bugs or enhancement requests, unless the issue is very clear. In this case, I'm not sure which dirty work David is sugges

Application.Resources file visibility

2004-10-05 Thread El Toro
All, I'm upgrading an existing struts application. The application extends the TilesRequestProcessor->RequestProcessor and overrides the processRoles() method. Part of the enhancements I am trying to build requires me to pull some values from the application resource file. I'm using the inherit

Re: Validator

2004-10-05 Thread Vinicius Carvalho
David G. Friedman wrote: I haven't used the validator in a while but I have a 3 questions for you: 1. If, as you say, the Javascript tag isn't being enclosed in .. tags, then you need to verify that your validation file is loaded AND that you have the correct form name in your . I've had that prob

Array? ArrayList? or .....?

2004-10-05 Thread Caroline Jen
I am creating check boxes in a JSP. I am showing the HTML code to make it simple to illustrate my question. code: Check As Many As You Wish John Doe Jane Doe // followed by tens of thousands of tags I have t

Re: Validation in Struts for Required fields

2004-10-05 Thread Caroline Jen
To add to the list: 5. the validator-rules.xml and validation.xml must be in the AppName/WEB-INF directory. 6. Make sure that there is a proper version of the commons-validator.jar file. 7. there is in the .jsp to turn on the validation and to show warning messages in red 8. validation plug-in

Re: Array? ArrayList? or .....?

2004-10-05 Thread Wendy Smoak
From: "Caroline Jen" <[EMAIL PROTECTED]> > I have to get all the "e-mail addresses" of those who > are selected (if a client puts a check mark in the > check box). Therefore, I cannot predict ahead of time > how many e-mail addresses will be read by my web > application (servlet) after the form is

Re: Array? ArrayList? or .....?

2004-10-05 Thread Jeff Beal
http://struts.apache.org/faqs/newbie.html#multiple talks briefly about doing this. It doesn't discuss the issue of arrays vs. ArrayList, but the example is using arrays, so I assume that's the recommended approach. Also, and just an FYI, the HTML you've included is invalid. INPUT elements are

menu doesnot working

2004-10-05 Thread aha_swaha
hi folks, i have got a problem in struts, i have used for a simple tree menu design and defined the but the output doesnot come instead it throws the expection like [ServletException in:/Rendering/sampleNavigation.jsp] Cannot find bean sampleNavigation in any scope' could you pls gimme a solu

Internationalizing a Struts project

2004-10-05 Thread Hiran.Chaudhuri
Hi there. I'm working on i18n of a Struts based project. All references I find about this topic deal with using messages depending on the user's locale. Has anyone ever experienced problems with national special characters (such as currency symbols for sterling or euro? Hiran ---

global forwards in module config files

2004-10-05 Thread Peter Werno
Hello, I am just in the course of moving from 1.0.x to 1.2 and the new version should make heavy use of the modules that came with 1.1. Now here is my problem: I want to store a global forward in any module's config file named "moduleHome" where "module" would be replaced with the actual module n

FormFile Casting problem

2004-10-05 Thread john cho
Hi, I did read in File using StrutsForm bean and put that into the HashMap. Now, when I try to get it out of the hashMap with like, 1. FormFile file = (FormFile)uploadForm.get("uploadedFile") 2. HashMap map = new HashMap(2); 3. map.put("uploadedFile", file); 4. FormFile file = (FormFile)has

validating inputs using struts

2004-10-05 Thread yacout dadoun
Hi, I'm using jsp/jstl in my pages, and i'd like to validate the inputs using the struts validator. I have configured the application.properties file, the struts-config.xml, created a form bean (testForm.java) that extends the validatorForm and a form action (testAction.java)and even configured

Re: Search engine friendly URLs

2004-10-05 Thread Mark Lowe
I was talking bollocks (now i've tried it) works.. Ideally in a tag file like this,, /WEB-INF/tags/cleanLink.tag <%@ tag isELIgnored="false" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %> <%@ taglib uri="http

  1   2   >