RE: Help: ActionError - html:errors / does not expand the {0} placeholder

2003-02-23 Thread Steve Armstrong
Hi, No guarantee, but try doubling your single quote. The java.text.FormatMessage Javadoc associated with JDK 1.3 says: In strings, single quotes can be used to quote the { (curly brace) if necessary. A real single quote is represented by ''. Cheers, -Steve -Original Message- From: w

RE: where to place form validation logic

2003-02-23 Thread Kola Oyedeji
Thats what i thought however reading the Wrox beginning JSP books, it states on page 578 that it is recommended to do the validation in the action class I just wondered if the community agreed with this statement Kola -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED]

[ANNOUNCEMENT] Struts 1.1 Release Candidate 1 released

2003-02-23 Thread Martin Cooper
The Struts team is proud to announce the release of Struts 1.1 Release Candidate 1. This release includes some new functionality, as well as fixes for a number of bugs which were reported against earlier versions. The Struts Team believes that this release is ready for prime time, hence its

help with installing a simple web app

2003-02-23 Thread bobd
Hi, Obviously I'm a newbie... I've successfully deployed the struts-example by placing its .war in /webapps (the machine is Redhat Linux 7.3, using Tomcat servlet container). Now I'm trying to deploy my own app, but serious obstacles have popped up. The app is compiled and configured correctly

Re: Help: ActionError - html:errors / does not expandthe{0}placeholder

2003-02-23 Thread Jeff Kyser
Will, The *only* reason for my last note was to tell you *why* you didn't find a validation.xml file on your system. As to the part about spout off about how much you know, well, that's just too funny. I may even have to save that e-mail :) have a good one, -jeff On Saturday, February 22, 2003,

RE: Help: ActionError - html:errors / does not expand the {0} placeholder

2003-02-23 Thread Robert Taylor
Please stop sending emails with 'Return receipt requested'. Its rather annoying. robert -Original Message- From: w i l l i a m b o y d [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 2:36 AM To: Struts Users Mailing List Subject: Re: Help: ActionError - html:errors / does

[ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-23 Thread Arron Bates
Avid Nesters, (you know who you are, no need to lie to yourself) Tomcat 4.1.18 is now on the radar!... The nested tags internals have been re-written primarily to fix the problem with them not working in the new tomcat 4.1.18 jasper engine. It also allows them to be a little more flexible

Re: help with installing a simple web app

2003-02-23 Thread Rick Reumann
On Sun, Feb 23,'03 (02:49 AM GMT-0800), bobd wrote: I first tried creating a .war and placing it in the webapps directory (same problem), now I've copied the entire app directory to webapps. I added a Context... element to server.xml under the Tomcat conf directory as well. First look

seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread Jörg Maurer
Hi strut-users! Since this post i have been using massively e.g. bean:define id=parameterForm name=ParameterForm type=ParameterForm/ in my jsp´s to grab the reference to the current FormBean like e.g. html:form action=/parameter ... bean:define id=parameterForm name=ParameterForm

Re: Using Map in ActionForm (ValidatorForm)

2003-02-23 Thread Ken Boss
Brandon-- Thanks for confirming that the approach can actually work. Turns out the root of my problem was in fact the line that declares the Map in the form bean, which needs to be something like private Map map = new HashMap(); rather than private Map map = null; The other problem was a

RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-23 Thread Sri Sankaran
Arron: Still having the problem reported in bug # 16916. Following is the test configuration: OS: Windows XP Professional Container: Tomcat 4.1.18 Struts: 1.1b3 + km-nested-v2.jar You can confirm with a simple application in support of the JSP: % taglib uri=/tags/struts-nested

Re: [OT]What is the best method to set default values of a form?

2003-02-23 Thread Geeta Ramani
Hmm.. maybe I missed something but last I checked poking fun at our president was quintessentially American.. :) Geeta Michael C. Lee Jr. wrote: Once again, leave your anti-American political bullshit off the struts email list please. Michael Lee - Original Message - From: James

RE: [OT] What's your IQ?

2003-02-23 Thread James Mitchell
Alexandre, I'm also a Veteran of the United States Army. I don't think anyone here appreciates these kinds of comments on a list that has ABSOLUTELY NOTHING to do with Politics. So, let's all get back to more serious topics, like bashing Microsoft or chatting about Beer :) -- James Mitchell

RE: help with installing a simple web app

2003-02-23 Thread James Mitchell
Have you checked the log files? -- James Mitchell Software Engineer/Struts Evangelist Beer is the reason we get up each afternoon. Ray McNeill -Original Message- From: bobd [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 5:50 AM To: [EMAIL PROTECTED] Subject:

Re: html-el:image Im stuck, final stage of prototype development - please

2003-02-23 Thread Ray Madigan
I really need some help here. Is it that the tag is to long, too complicated, any help in figuring this out would help. I started with this tag that works: input type=button value=c:out value='${foo.name}'/ onclick= switcher ( 'html-el:rewrite page=/${foo.name}/.do?action=main',

RE: [OT] What's your IQ?

2003-02-23 Thread Clement, Stephen
Ok! Everyone step slowly away from their TVs, telephones, faxes and computers and go for a long walk! (save energy and turn them off too!) You're all suffering from too much information, most of which is nonsense! Steve - sometimes i think that everyone in the world is an idiot except you and

RE: seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread John Espey
maybe I'm missing something, but if you use an EL tag (like the core:if or core:choose or logic-el:equals) you wouldn't need to do any scriptlet or casting. c:if test=${parameterForm.structure_changeable eq 1} /c:if as far as the constants, i'm not sure I follow. Hope this helps though...

RE: [OT] What's your IQ?

2003-02-23 Thread Ray Madigan
I'll go for the Microsoft bashing - it is only 8:16 - a little too early for a beer. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Behalf Of James Mitchell Sent: Sunday, February 23, 2003 8:13 AM To: 'Struts Users Mailing List' Subject: RE: [OT] What's your IQ?

struts installation

2003-02-23 Thread Dani
Hello. My name is Dani (and sorry for my poor English). I've just installed struts but, may I have to install Xerces, Xalan and Ant? The documentation refeers to those and I've installed them but I don't know what they are used for and if they are necesary to install struts. Thank you (for

RE: seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread Jörg Maurer
Hi John, thanks for answering - you might be right on the issue I should use a EL tag instead of scriplet. What i am basically interested in : When processing a jsp using a html:form tag, i guess html:form brings the current form bean object into some scope accessible to my jsp - but under what

RE: seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread John Espey
EL will take care of the type for you, I'm not sure about in the scriplet It will be made available inside the html:form tag by the name specified in struts-config.xml, I would switch it to lower case there. Then you shouldn't need the bean:define tag. -Original Message- From: Jörg

RE: seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread John Espey
actually, scratch what i just said about not needing the bean:define tag, you would need it because the html:form tag will not make the form available as a scripting variable. That's why I'd use the EL, since it will not need to create a scripting variable. -Original Message- From:

RE: seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread Brandon Goodin
if you are using jstl you can access your form-bean like such if your form-bean is in the requestScope (specified in the struts-config.xml). c:out value=${requestScope.myFormBean.aProperty}/ * requestScope = scope the bean has been placed in by the ActionServlet (specified in the

RE: seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread Jörg Maurer
Okay, thanks for clarifying this. As this is my first struts project and also first time using jsp with a framework like this, I feel a little uncomfortable about all this new tags. However, now sure wanting to use JSTL, i just downloaded the jstl reference impl from struts taglib group, where

sub-applications

2003-02-23 Thread Stephen Smithstone
Ive come to a problem in my struts apps now ive decided i want to test out the sub-applications so far ive done this webapp/ module1/ WEB-INF/ struts-config.xml struts-module1.xml index.jsp now in my web.xml file ive speicifed

RE: html-el:image Im stuck, final stage of prototype development - please

2003-02-23 Thread Ray Madigan
I am starting to get an inferiority complex - lol. I have tried a million and a half things. And it seems to boil down to having the html:rewrite in the argument to the javascript that is in the onclick handler. If I hard code the references it works like a champ. html-el:image

Validator: How to define that a field is mandatory when an otheris not empty?

2003-02-23 Thread Zsolt Koppany
Hi, how can I define that a field is mandatory when an other is not empty but only in that case? -- Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Quarantine message

2003-02-23 Thread Ray Madigan
I got a message quarantine notice today from this list. All I did was respond to a message that had the four letter word that starts with F and isn't four in it. The message I responded to should have been quarantined and this would have not happened. So I guess - whats the point? Thanks Ray

Re: Quarantine message

2003-02-23 Thread Robert S. Sfeir
actually this list didn't quarantine anything, just that some servers out there did - servers for other people on this list-, and therefore you got a message from that server saying that you should be ashamed of yourself. On Sunday, Feb 23, 2003, at 15:16 US/Eastern, Ray Madigan wrote: I got

RE: Validator: How to define that a field is mandatory when an otheris not empty?

2003-02-23 Thread James Turner
See the requiredif validation in Struts 1.1 James -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 3:01 PM To: struts mail list Subject: Validator: How to define that a field is mandatory when an otheris not empty? Hi, how

RE: Quarantine message

2003-02-23 Thread Ray Madigan
Yep - upon further examination - I see. Thanks -Original Message- From: Robert S. Sfeir [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 12:29 PM To: Struts Users Mailing List Subject: Re: Quarantine message actually this list didn't quarantine anything, just that some servers

RE: [ANNOUNCEMENT] Struts 1.1 Release Candidate 1 released

2003-02-23 Thread James Turner
I'd like to take a second to thank Martin publically for all the (relatively thankless) work he does putting together the releases. Without him slaving over a hot terminal, we'd never get these puppies out the door. James - To

RE: [ANNOUNCEMENT] Struts 1.1 Release Candidate 1 released

2003-02-23 Thread Swish
Thank You Martin!! :) James Turner [EMAIL PROTECTED] wrote:I'd like to take a second to thank Martin publically for all the (relatively thankless) work he does putting together the releases. Without him slaving over a hot terminal, we'd never get these puppies out the door. James

Validator GenericValidator

2003-02-23 Thread Brandon Goodin
I want to use the static GenericValidator methods directly within some action classes. Is there any problems with this? Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws

Image and Img Tag issue

2003-02-23 Thread Ray Madigan
I am using Image and Img tags to display images for my application. Is it correct that html:img registers an image in document.images[] and html:image doesn't. If you want to implement a button with mouseover event switching the image - this makes it difficult. Thanks Ray Madigan

RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-23 Thread Sri Sankaran
Never mind... I had updated the WEB-INF/lib of ap-1 and tested ap-2 My test app works with the new nested jar in place. However I am still having problems with the real application; I will take a closer look at it 'morrow and keep you posted. Sri -Original Message- From: Sri

RE: [OT] What's your IQ?

2003-02-23 Thread Sri Sankaran
Too early for *beer*? Is that possible? -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 11:17 AM To: Struts Users Mailing List Subject: RE: [OT] What's your IQ? I'll go for the Microsoft bashing - it is only 8:16 - a little too early

RE: [OT] What's your IQ?

2003-02-23 Thread Ray Madigan
Not any more! But Microsoft bashing is so much fun! -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 3:23 PM To: Struts Users Mailing List Subject: RE: [OT] What's your IQ? Too early for *beer*? Is that possible? -Original

RE: html select problem, help me please

2003-02-23 Thread Sri Sankaran
What is the error? -Original Message- From: Buics [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 10:08 PM To: Struts Users Mailing List Subject: html select problem, help me please I have a collection named code1data, in logic:iterate it works fine, but when I apply this to

RE: [ANN?] New Nested Tags -or- Nesters, lend me your containers...

2003-02-23 Thread Arron Bates
You had me going there for a bit. Even made another test war to do exactly what your snippet prescribed, but as long as it's working. Hope the other app turns out to be not my issue too... :P Waitin for the word... Arron. Never mind... I had updated the WEB-INF/lib of ap-1 and tested

RE: [OT] What's your IQ?

2003-02-23 Thread Brandon Goodin
I just bought a microsoft wireless optical mouse. :-S Am i bad? ;-) I wanted logitech... but, alas, costco had M$ wireless-optical for $29.99 vs. logitech optical-with wire for $29.99. Can you blame me? Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406)

RE: html select problem, help me please

2003-02-23 Thread Ray Madigan
How did you get the collection in your jsp page. Did you create it there, or did you bring it in from your ActionForm. If you would create a get/set on your FormBean and place it in the FormBean in your Action object, then you can get it from the form bean with the collection attribute in

Re: html select problem, help me please

2003-02-23 Thread Buics
Here's where I got my collection. jsp:useBean id=stockbean class=chemical.ChStocknoBean scope=session/ jsp:useBean id=code1mst class=codemst.Code1mstBean scope=session/ jsp:useBean id=code2mst class=codemst.Code2mstBean scope=session/ % String stockno = request.getParameter(chemical.stockno);

Re: html select problem, help me please

2003-02-23 Thread Buics
This is the error message C:\tomcat\jakarta-tomcat-4.1.18\work\Standalone\localhost\ntep\chemical\chmain_jsp.java:422: setCollection(java.lang.String) in org.apache.struts.taglib.html.OptionsTag cannot be applied to (java.util.Collection)

RE: html select problem, help me please

2003-02-23 Thread Ray Madigan
This is what i told youthe other day. The collection in the Option tag has to be the name of an attribute in the request or session. In the Action object make a call like: session.setAttribute ( code1data, code1data ); where code1data is the collection. Then the collection will work correctly

html:select multiple problems

2003-02-23 Thread Ian Hunter
RGH I would give one of my legs right now for a working example of an html:select multiple=true usage that populates an array in an ActionForm. Help? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

handoff to ActionServlet question

2003-02-23 Thread Dan Allen
I am currently working on porting the Struts concept to PHP (can I cry on your shoulder now?) My hopes are to do a more complete job than phrame. On to my question. The way I see it, ActionServlet is only initialized when the url-pattern matches that specified in the web.xml file. So in the

Re: handoff to ActionServlet question

2003-02-23 Thread David Graham
The example app breaks the rule that all jsps should be fronted by an action. You should never access a jsp directly through a url. The action sets up all the data for the jsp and places it into the request or session. It seems like a lot of work to implement this in PHP when it's already

RE: html:select multiple problems

2003-02-23 Thread Jörg Maurer
I will choose your left leg cause i am a kind man and hint you to the your_jakarta-struts-1.1-b3-src_dir\web\exercise-taglib\html-select.jsp. -Original Message- From: Ian Hunter [mailto:[EMAIL PROTECTED] Sent: Montag, 24. Februar 2003 03:20 To: Struts Users Mailing List Subject:

Re: html:select multiple problems

2003-02-23 Thread David Graham
Does your form class have public String[] getMyArray()... public void setMyArray(String[] a)... and does your jsp have html:select property=myArray multiple=true ? David RGH I would give one of my legs right now for a working example of an html:select multiple=true usage that

Re: seeking shortcut name of current FormBean inside every html:from

2003-02-23 Thread Kris Schneider
Just a comment that this type of approach hard-codes two pieces of information that are defined in struts-config.xml: the form's scope and its attribute name. If those change in your configuration, you also have to change them in your JSP. The bean:struts tag allows you to access that

Re: html:select multiple problems

2003-02-23 Thread Ian Hunter
I'm using 1.0.2 but I'll look at the examples for 1.1, thanks! - Original Message - From: Jörg Maurer [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, February 23, 2003 9:40 PM Subject: RE: html:select multiple problems I will choose your left leg cause i

Re: handoff to ActionServlet question

2003-02-23 Thread Dan Allen
It seems like a lot of work to implement this in PHP when it's already done in Java. To each their own I guess :-). Several reasons. 1. PHP is more available right now on webhosts, namely my webhost. 2. Call it an exercise. 3. PHP needs a good framework, so I am stepping forward. 4. PHP

Re: html:select multiple problems

2003-02-23 Thread Ian Hunter
Yes. In fact, since I just tested it again, it won't even work with non-multiple... I have hosed something. Wah. Here: (I used to have just String[] get/setters but Tomcat whined about reflection, so I did this:) (JSP) html:select property=ids multiple=true html:options property=ids/

Re: handoff to ActionServlet question

2003-02-23 Thread David Graham
5. To each his own. I would really not care to discuss why any further, so as not to get off topic. We all love a good flame war like Java vs. PHP ;-). Okay, I can work with that. But in the case of the example (either the ones provided or the one in Struts Kick Start) how are the message

Cache problem

2003-02-23 Thread Mohan Radhakrishnan
Hi, I'm facing the following problem with the cache. This is my javascript. menu.addMenuItem(TCP vs. UDP vs. ICMP,location='generic.action?report=21'); 1. This calls GenericAction and puts the report parameter in the session and forwards to a JSP that displays some descriptive text.

RE: Cache problem

2003-02-23 Thread Mohan Radhakrishnan
Hi, An addendum to this problem. What other cache are there apart from the browser cache. Tomcat server cache ? Ways to disable it ? Our application has stopped dead in its tracks. Thanks, Mohan -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: html:select multiple problems

2003-02-23 Thread Ian Hunter
OK. Let me narrow down my question somewhat. In Struts 1.0.2, what method in an ActionForm is called after an input JSP containing an html:select multiple=true property=ids tag, assuming the property ids is a String[]? Does it look like public void setIds(Object[] ids) or public void

handoff to ActionServlet question

2003-02-23 Thread Dan Allen
The ActionServlet loads the properties file into a MessageResources object on startup and stores it under a ServletContext key (Globals.MESSAGES_KEY). So I guess my question is, when a *.jsp file is requested, at what point does the ActionServlet reliquish control to the view when it realizes

Tiles... When to use?

2003-02-23 Thread Amit Keshav Kulkarni
Hi I have a web application in which I need to have a header, a menu and body section for the pages. Now, AFAIK, I can achieve the same functionality with HTML Frames, JSP Includes and Tiles. So what are the pros and cons of using each? When should I go for Tiles? Thanks in Advance. Amit

RE: [OT] What's your IQ?

2003-02-23 Thread Andrew Hill
Do you have stairs in your house? -Original Message- From: alexj [mailto:[EMAIL PROTECTED] Sent: Sunday, 23 February 2003 06:35 To: Struts Users Mailing List Subject: Re: [OT] What's your IQ? What can I said, American people think they know all the truth about how to manage the world.

Re: handoff to ActionServlet question

2003-02-23 Thread David Graham
Struts only gets invoked when the container sees a request for a url mapped to the ActionServlet. *.jsp is usually mapped to a container specific jsp interpreter/compiler. You can see this in Tomcat's default web.xml file. David The ActionServlet loads the properties file into a

Re: html select problem, help me please

2003-02-23 Thread Buics
thank you ray, it works .. --buics Ray Madigan wrote: This is what i told youthe other day. The collection in the Option tag has to be the name of an attribute in the request or session. In the Action object make a call like: session.setAttribute ( code1data, code1data ); where

Best way to write html:select

2003-02-23 Thread Chetan Sahasrabudhe
Hi, I have a requirement to populate my html:select list through DB entries. The list will be appearing on multiple forms with respect to different form beans. My problem is, when I define the collection bean for individual html:select, I want to write a separate class for populating the

Re: (like Rick post) Arguments why make web app and not desktop one

2003-02-23 Thread Buics
-Deployment alexj wrote: Like the Rick post I need arguments for the project I developp for my school : Why I choose to developp a web application and not a desktop app. (my school sucks so much when you purpose something they don't know I need to perform the best arguments). Rigth now

Number of logic:equal ... in JSP

2003-02-23 Thread Jean-Baptiste Onofré
Hello all, i'have a strange Exception in a JSP view. This JSP include a lot of logic:equal ... testing tag (around 10). This JSP raise a exception with this message : Illegal target jump or branch When i delete one of the logic:equal ... or logic:present ..., i works fine. Is the

RE: (like Rick post) Arguments why make web app and not desktop one

2003-02-23 Thread Andrew Hill
+1 Ease of deployment is a *** big *** issue these days, especially for enterprise applications where there could be hundreds or event thousands+ of users. Doing the UI with a desktop application - for example using Swing - has many advantages in terms of what you can implement as regards

Re: handoff to ActionServlet question

2003-02-23 Thread Peng Tuck Kwok
Dan Allen wrote: So I guess my question is, when a *.jsp file is requested, at what point does the ActionServlet reliquish control to the view when it realizes this is not a *.do and no Action is associated with it? Hey Dan, doesn't the *.do bit get handled by the servlet mapping bit in web.xml ?

RE: Validator: How to define that a field is mandatory when anotheris not empty?

2003-02-23 Thread Zsolt Koppany
Thank you James, I have read the documentation, and I'm sorry but I still don't understand how to define the rule that a field for example firstname is required if for example lastname is not empty. Can somebody provide me an example please? I just don't understand the examples in the

Barbara A Morris/BAM/CC01/INEEL/US is out of the office.

2003-02-23 Thread BAM
I will be out of the office starting 02/22/2003 and will not return until 03/03/2003. I will respond to your message when I return. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL