RE: JavaScript -- use or not use???

2002-01-07 Thread Jesse Alexander (KABS 11)
Hi, make the following your motto: "Everything you validate in JavaScript must be validated again on the server-side." and "Code your app the way it would run also with Javascript off, even though it might result in less comfort for the user, or longer response times (because it must go back to

'Upload' button won't appear for html:file

2002-01-07 Thread Freeman-Nguyen, Cary
I'm trying to use the 'html:file' tag to upload a file, but am having trouble getting the 'Upload' button to appear. The documentation says that the value parameter is the "Value of the label to be placed on this button." Can anyone get this button to appear, or should I just forget it and a

RE: (off topic) Servlet getInitParameter() methods

2002-01-07 Thread Tom Klaasen (TeleRelay)
As I understand it (from the javadoc): The ServletConfig contains configuration of the current servlet, the ServletContext contains configuration for the entire webapp. The "see also" is often used for "something that is like this, which might interest you also". e.g. the javadoc for Map has a "se

Re: (off topic) Servlet getInitParameter() methods

2002-01-07 Thread Thomas Eichberger
ServletConfig and ServletContext are two different things (even if the documentation is not so clear about it all the time) ServletConfig init parameters are valid only for your one servlet ServletContext init parameters are valid for all things / servlets / jsps in your context, i.e. web appl

RE: Iteration logic solution

2002-01-07 Thread Tom Klaasen (TeleRelay)
have a look at logic:iterate ... tomK > -Original Message- > From: Gupta [mailto:[EMAIL PROTECTED]] > Sent: zondag 6 januari 2002 19:21 > To: [EMAIL PROTECTED] > Subject: Iteration logic solution > > > Hi Guys, > I Have little problem with struts iterate tag lib. > My code is below a

Re: Dynamic drop down lists

2002-01-07 Thread Keith Bacon
Hi Michael - this is how I do it - with a special class to manage the options in the list. Mine has hard coded non-internationalized values (terrible really). Sorry about absurdly long names - I wasn't in an abbreviating mood that day! hope it helps - Keith. ==

JSP scriptlet nested inside struts tag.

2002-01-07 Thread Hudayioglu, Fehmi
hello, I know we had some similar questions. But I couldn't make it run. I know we can use scriptlets inside of any struts tag. here is what I wrote: " property="kontofuehrung1data.knelimitregion1" styleClass="N100" /> And I got an error of JSPG0069E: Attribute true has no value

RE: JSP scriptlet nested inside struts tag.

2002-01-07 Thread ltorrence
I don't think you can nest the quote marks. The only way I could get something like that to work was to set the attribute to a boolean variable, either created in a scriptlet or pulled from a bean. <% boolean myBooleanTest = true; %> Lee Torrence -Original Message- From: Hud

Re: JSP scriptlet nested inside struts tag.

2002-01-07 Thread Jin Bal
try using single quotes the readonly attribute and double quotes inside the scriptlet thus- snip - form:text readonly='<%="true" %>' property="kontofuehrung1data.knelimitregion1" styleClass="N100" -snip HTH Jin - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent

AW: JSP scriptlet nested inside struts tag.

2002-01-07 Thread Hudayioglu, Fehmi
:) :) Thanks guys, it is working. :) But still I couldn't believe such a simple solution can solve this. :) -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet am: Monday, January 07, 2002 12:50 PM An: [EMAIL PROTECTED] Betreff: RE: JSP scriptlet nested

Remove startup logging

2002-01-07 Thread Patrick Liardet
Hi I'm running Struts 1.0 on Tomcat 3.2.2, and would like to remove the verbose console output on startup. Is there a simple way on doing this ? I've tried setting web.xml and server.xml values with no success. Here's an example: [java] Pop org.apache.struts.action.ActionMapping [ja

RE: Remove startup logging

2002-01-07 Thread Tom Klaasen (TeleRelay)
You probably missed the right entry in web.xml: detail 0 removes all startup logging (and not "debug"). hth, tomK > -Original Message- > From: Patrick Liardet [mailto:[EMAIL PROTECTED]] > Sent: maandag 7 januari 2002 13:52 > To: 'Struts Users Mailing List' > Sub

iAS 6.0 -- java.lang.IllegalAccessError: org/apache/struts/action/AddDataSourceRule

2002-01-07 Thread Cutrell, George
Platform: iAS 6.0 SP4 on Solaris 8 I get the following exception when I enable versioning in iAS 6.0 SP4. With versioning enabled, I cannot use Struts. Simply disabling seems to avoid this and Struts and iAS 6.0 seem to behave OK together. This is troubling because to have JSPs automatically

Use of frames in Struts

2002-01-07 Thread Charles Tse
Hi, When I use frames, I have to specify the src, which are the URI's of JSP files. But, this take away the flow control from the Struts controller. I need to have resizeable frames and don't have the time to move to Tiles because I will then have to use Tomcat 3.3 and stuff. What should I do?

RE: Use of frames in Struts

2002-01-07 Thread Vaughan Jackson
Hi, You can specify action URIs like this in the frame src: HTH, Vaughan. > -Original Message- > From: Charles Tse [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 07, 2002 10:57 AM > To: Struts Users Mailing List > Subject: Use of frames in Struts > > > Hi, > > When I use frames

Form Date Validation - how to?

2002-01-07 Thread Bill Pfeiffer
Is there a recommended method for performing normal date validation of struts form date property? It seems like I am doing a lot of work that may already be done (parsing date text, catching exception in multiple places, maintaining both text and date properties, etc). Thanks in advance for

Scaffold Error - Cannot find message Resource Key

2002-01-07 Thread Matt Raible
I'm getting the following familiar error when running the scaffold sample on Tomcat 4.0.1: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE I can build and dist from the nightly build. Cannot run the "tests" task, b/c I get the following e

A suggestion for Product-quality Code

2002-01-07 Thread Frank Lawlor
Now that Struts has passed its 1.0 birthday I would like to suggest something that I think would help the many users it is attracting. When I have lead development groups I have explained one of the differences between a prototype and a product as "programming for more that the narrow path". Wh

RE: custom tags: IBM 1.3 JDK vs SUN 1.3 JDK -- SOLVED

2002-01-07 Thread ltorrence
In case anybody else runs into this, it's evidently a bug in the SUN 1.3 JDK. http://groups.google.com/groups?th=dd4229956bceb2f4&rnum=1 Lee -Original Message- From: Torrence, Lee Sent: Sunday, January 06, 2002 10:38 AM To: 'Struts Users Mailing List' Subject: custom tags: IBM 1.3 JD

Using 2 different actions from one form without java script methods help

2002-01-07 Thread Gupta
Hi, I have a doubt, How to write a form that has 2 buttons corresponding to 2 different action controllers with out using JavaScript method implementation. TAI GUPTHA -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Using 2 different actions from one form without java script methods help

2002-01-07 Thread Tom Klaasen (TeleRelay)
This has just been answered by Ted Husted -- check the archives (time: 20020106T1652) hth, tomK > -Original Message- > From: Gupta [mailto:[EMAIL PROTECTED]] > Sent: maandag 7 januari 2002 17:56 > To: Struts Users Mailing List > Subject: Using 2 different actions from one form without j

Re: A suggestion for Product-quality Code

2002-01-07 Thread Pete Carapetyan
One possible route to skirting the problems you correctly outline, and many others, is to use a framework which implements Struts, such as, but not limited to, the Expresso framework, where much of the plumbing is done for you. Taking this one step further, using a code generator, such as, but ce

Struts logic tag lib question

2002-01-07 Thread Gupta
Hi, To check if an object is null or not in MVC2 model I followed below code, Object obj1= new Object(); if(obj1==null){ //do some }else{ //do some } How do i exactly use logic tag lib in above case.I tried with empty/notEmpty and present/notPresent tags but I got

options tag & internationalization

2002-01-07 Thread Tettoni, Laurent
Hi, Could anybody advise a DESIGN PATTERN for implementing internationalized (when using a Collection) that would use internally (or similar) mechanism ? Use case: - draw content for a combo box (names and values) from a database => options names here expressed as generic, lang

Re: A suggestion for Product-quality Code

2002-01-07 Thread Steve A Drake
+1 -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Need info for Struts Presentation

2002-01-07 Thread Sandra Cann
You might have a look at the following document for ideas for your presentation material to your engineering staff as it is a technical presentation that discusses the Struts/Expresso architecture. The pdf slide show can be found at: http://www.jcorporate.com/econtent/Content.do?state=resource&res

RE: JSTL (standard taglib) Early Access 3

2002-01-07 Thread Sills, David
I realize that this has not been commented on, but as I was reading from old messages, I came across this one and thought I might ask a design question. It seems to me that there are two different kinds of information, and that each kind of information should properly be handled in its own, approp

struts-user@jakarta.apache.org

2002-01-07 Thread Jenkins, David
Hi all, First let me say that I know absolutely nothing about HTML. However that doesn't deter me. I'm trying to create a wizard framework in struts, you know the sort where the are a number of pages linked by "next' and 'back' buttons. So I have these buttons on my forms and need the action bean

iplanet

2002-01-07 Thread Yan Zhu
just wondering if anyone has experiences with using struts on iplanet web server 6.0 sp1? thanks yan -- To unsubscribe, e-mail: For additional commands, e-mail:

Frames and Tokens For Out of Order Request Detection (Reload,Bac k/Forward).

2002-01-07 Thread Vaughan Jackson
Hi, Has anyone looked into the area of using (transaction) tokens to detect out of order requests, for web apps that use frames? We have previously developed a web app that relied on the Struts token generation mechanism to detect out of order requests. This meant that we could intercept duplic

RE: options tag & internationalization

2002-01-07 Thread Luke Studley
Laurent I came across this very issue yesterday, this is how I solved it (probably straying too much from design into implementation): I couldn't find a way to easily (or quickly) access the internals of the messages class so I created my own. Each varying option set (e.g. coutries, states, per

Re: A suggestion for Product-quality Code

2002-01-07 Thread David Morris
Frank, Your logging suggestion makes sense to me, I have hit every one of these myself at least once. I hadn't thought of them as bugs, but I it may be helpful to add them to the Apache Software Foundation Bug Database so that they can acted on or rejected. I will try to do the same. The URL

Generic JSP

2002-01-07 Thread Sidhartha Jain
Hi All, I need to develop a Generic JSP using struts framework.I would explain you my problem. We have few links on page that represents the Objects corresponding to which we already have some classes built. We also have tables in the database corressponding to each and every class and colu

Re: Link Edit/Delete

2002-01-07 Thread Antoine Gibson
Thanks Ted, Would you recommand for each JSP call to have an associated PreJspAction that forwards control to that JSP? Cheers, Antoine - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, January 06, 2002 5:41 A

Re: Page reload problem

2002-01-07 Thread Mark Woon
David Bolsover wrote: > I think I need a mechanism to force a reload of Frame1 when Frame2 is > updated with welcomeback.jsp but I am unsure how to do this. > > Any help? One solution would be to use Javascript in Frame2 to reload Frame1. -Mark -- To unsubscribe, e-mail:

Access to localized messages to build an href

2002-01-07 Thread Jim Tomlinson
I'm trying to get access to the MessageResources object that, according to the docs, is an application scope bean. I need to build an href in this manner: + "/refend.html"%>">Click here Of course, this doesn't work (with single quotes, either, as suggested for a similar problem on this lis

Class loader question

2002-01-07 Thread David Morris
Group, With Struts Nightly build and Tomcat 4.0.1: Why does struts have to be in the WEB-INF directory structure? I can see that the root of this requirement is the class loader. Now that I am experimenting with the nightly Struts 1.1 build I also have to put the Commons jars in the WEB-INF d

Simple HTML form tag issue related to NAME attribute

2002-01-07 Thread Dennis_Sharpe
I have some old HTML code that I am placing into the Struts framework. The HTML code relies on the NAME attribute in form elements in order to run Javascript validation. If I try to use the NAME attribute with the tag, for instance, Struts is trying to use that for the attribute name of the bea

Coding a grid-like editable form using Struts

2002-01-07 Thread Nitish . Naharas
Hi, I am new to Struts.

RE: Struts Validator Load Failure

2002-01-07 Thread Robert D. Morse
Same problem as described using: RH Linux 7.2 07-jan Struts and Torque 06-Jan Tomcat 4 If someone comes up with a working combination, I'd be interested in hearing it. In the meantime back to Struts 1.0. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sun

RE: Struts Validator Load Failure

2002-01-07 Thread David Morris
You might check that the commons jar files are in the same directory as struts.jar. I assume WEB-INF/lib. David Morris >>> [EMAIL PROTECTED] 01/07/02 05:34PM >>> Same problem as described using: RH Linux 7.2 07-jan Struts and Torque 06-Jan Tomcat 4 If someone comes up with a working combinati

RE: Struts Validator Load Failure

2002-01-07 Thread Robert D. Morse
Yes, they are there. Same problem. -Original Message- From: David Morris [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 4:46 PM To: [EMAIL PROTECTED] Subject: RE: Struts Validator Load Failure You might check that the commons jar files are in the same directory as struts.jar

Re: Questions on Actions

2002-01-07 Thread Mark Woon
I must be missing something. I want to do something like this: print header.jsp print a.jsp or b.jsp print footer.jsp If an Action can only forward to another action, it can't both print header.jsp and decide whether to pass control over to a.jsp or b.sjp, can it? Ted Husted wrote: > There

Re: Questions on Actions

2002-01-07 Thread Robert Parker
If you look at the template taglib, you can setup a template jsp which always includes the header, footer, and a body section. Hence you don't need to worry about the header and footer, just the main content in the body section. Thus your action doesn't need to be concernered with header or footer

Re: Questions on Actions

2002-01-07 Thread Nitish . Naharas
Mark, I am a newbie. But, maybe this will help. 1. The "control jsp" decides beforehand whether "a.jsp" or "b.jsp" will be printed and saves this value in session. 2. Forwards to "print header.jsp" which after printing forwards back to your initial "control jsp". 3. "Control.jsp" calls the "

RE: JSTL (standard taglib) Early Access 3

2002-01-07 Thread Michael Mok
We got around this by retrieving the lists from the database and store them in the application scope. We created a servlet that preloads all the lists. In each JSP, you can use the STRUTS tags to assess the lists from the application scope and hence use them in your form. This only works assumin

Re: Questions on Actions

2002-01-07 Thread Mark Woon
Robert Parker wrote: > If you look at the template taglib, you can setup a template jsp which > always includes the header, footer, and a body section. Hence you don't need > to worry about the header and footer, just the main content in the body > section. Thus your action doesn't need to be con

Re: Questions on Actions

2002-01-07 Thread Mark Woon
[EMAIL PROTECTED] wrote: > 1. The "control jsp" decides beforehand whether "a.jsp" or "b.jsp" will be > printed and saves this value in session. > 2. Forwards to "print header.jsp" which after printing forwards back to > your initial "control jsp". Exactly. How do I accomplish this step? I s

Re: Questions on Actions

2002-01-07 Thread Robert Parker
- Original Message - From: "Mark Woon" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 1:19 PM Subject: Re: Questions on Actions [snip] > > You're basically saying I don't need to use Struts. And you're right, I already > have eve

Re: Questions on Actions

2002-01-07 Thread Robert Parker
- Original Message - From: "Mark Woon" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 1:21 PM Subject: Re: Questions on Actions > [EMAIL PROTECTED] wrote: > > > 1. The "control jsp" decides beforehand whether "a.jsp" or "b.jsp" w

Re: JavaScript -- use or not use???

2002-01-07 Thread Manuel Martin
Hello, On Sun, 6 Jan 2002 17:24:08 -0600 "George White" <[EMAIL PROTECTED]> wrote: > This isn't exactly a struts question but I have seen comments about JavaScript >often enough I was hoping someone could answer this very general question. > The people I work use struts but are avoiding JavaSc

A new article on view component organization with Struts and Tiles

2002-01-07 Thread Malani, Prakash
Hi, How are you doing? My article on view component organization with Struts and Tiles is published in JavaWorld: http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html? Here is the summary: Every Web application developer must organize view components, such as header, body, and f

perform() action is getting passed the same forminstance when accessed by two clients at the same time.

2002-01-07 Thread nowyang
Hi All, I am hoping someone might be able to shed some light on this. 1) Suppose two users log in to the server 2) Each user/client gets a web page that will call an action after either client does a submit causing the action to be called 3) Suppose the two clients submit the page at the same tim

Re: Cannot find ActionMappings or ActionFormBeans collectionPROBLEM.

2002-01-07 Thread Freek Segers
Hi, As you can see in the Root Cause exception the form tag is being processed when the exception occurs. So there's probably some typo in one of your form tag attributes. Freek on 03-01-2002 21:40 you wrote: > Root Cause: > javax.servlet.jsp.JspException: Cannot find ActionMappings or > Acti

Re: Simple HTML form tag issue related to NAME attribute

2002-01-07 Thread Freek Segers
Hi, If you want Struts to handle the field and populate and store its value in some Form bean, you can use the property attribute: This tells Struts that it should store and retrieve the value of the text field using the property 'myProperty' in the Form bean. Because you leave out the n