Problem with bean:define

2002-10-27 Thread Christian Søhoel
Hi all, When using the bean:define tag as the following error occurs; javax.servlet.jsp.JspException: Define tag can contain only one of name attribute, value attribute, or body content at org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:256) at _grundmodul._lister._personliste.

Re: change locale on form-login-page

2002-10-27 Thread Gemes Tibor
2002. október 26. 19:05 dátummal Craig R. McClanahan ezt írtad: > When Struts sees a request that does not have a Locale in the session > already, it looks at the Accept-Language header included in the request. > In turn, this is set by the language preferences you've selected in your > browser --

Re: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread Derek Lin
James, First of all, if you are using the same action and jsp for your wizards, how are they qualified to be wizards? Perhaps I am not getting what you mean. But a wizard would mean many different jsp's to me. But anyway, that is not very important at this point. I tried what you have suggested.

RE: static pages

2002-10-27 Thread Andrew Hill
Barracuda? -Original Message- From: James Mitchell [mailto:jmitchtx@;telocity.com] Sent: Monday, October 28, 2002 14:39 To: Struts Users Mailing List Subject: RE: static pages Quite the contrary. The users guide, api docs and published materials are littered with hints and how to's for

RE: static pages

2002-10-27 Thread James Mitchell
Quite the contrary. The users guide, api docs and published materials are littered with hints and how to's for getting the best performance out of your app. I'm not here to argue about Struts' performance. Anyone who chooses another framework over Struts either doesn't need Struts or they don't

Using in

2002-10-27 Thread Alok Garg
Hello Everybody, can anybody send me an example of using tag inside tags. Thanking you Alok Garg

RE: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread James Mitchell
Ok, sorry, I didn't see that, although I tend to use the same action (and jsp) for my wizards anyway. So you are saying that you are not sure where the data is lost? One way I might test this: (Assuming you have) Step 1: jsp1 -> fowardaction1 -> jsp2 Step 2: jsp2 -> fowardaction2 -> jsp3

RE: static pages

2002-10-27 Thread Beast
At 11:58 PM 10/27/2002 -0500, you wrote: >That choice is up to you. > >This also depends on what you are serving. Unless your site is using a lot >of graphics with high traffic or your users are downloading large files, I >think the performance drain is minimal. How 'minimal' is it? People even c

Re: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread Derek Lin
James, Please be patient with me. I just want to point out this sentence in that paragraph: "Likewise, the various pages of the same form should all be submitted to the same Action Class." Now, doesn't that say the "same Action Class"? If you still think what I have should work, then maybe somet

Re: Using tag

2002-10-27 Thread Derek Lin
Perhaps my code doesn't really apply to what you are trying to do. I my code, countries is an array of Country objects. A vectory of Country objects will work, too. I am not sure about a vectory of hashmap, though. (But it looks like you are just using hashmap alone. I don't think that will wo

Re: Using tag

2002-10-27 Thread Alok Garg
Hello Derek, Thanks for the reply, I tried using the code sinnpet that u have send, but I am getting the following error:: javax.servlet.jsp.JspException: Cannot create iterator for 1=Beauty at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:448) at org.apache.struts.taglib.

RE: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread James Mitchell
No, it says single ActionForm bean, which you are already doing. ^^ I'm afraid you'll have to do a bit more debugging. Unless you want to step through your code in debug, I would try creating your own ForwardAction with a few print statements to narrow down exactly wher

html:option with iterate

2002-10-27 Thread Amit Badheka
Hi all, I have some code like below, where I am trying to create a select list using form bean property. I am able to create it, but problem comes when I trying to put value for the option. To resolve the problem I defined to vars, which I am bale to use well as I am using categoryNm ,but when

Re: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread Derek Lin
I am using the 1.1beta version(beta1 I guess, are there any changes between beta1 and 2 on this?) Now, I have been doing a little research myself. And I have found a paragraph on http://jakarta.apache.org/struts/userGuide/building_model.html: "Think, for example, of the wizard style user interfa

RE: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread James Mitchell
You would only need hidden fields if you were using request scope for this wizard. >From looking at what you've provided, it appears that it should work just fine. What release or build of struts are you using? BTW, you can remove 'dynamic="true"', as it is no longer required. James Mitchell

Re: Question about Intercepting Filter

2002-10-27 Thread David Graham
You could subclass ActionServlet and insert some behavior before calling the super class method. Alternatively, you could probably put a servlet in front of ActionServlet to act as a filter. Easiest solution is to use a servlet 2.3 container and real filters ;-). David From: Arion Yu <

Re: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread David Graham
That sounds like a solution but I haven't used dyna beans. Also, I always put my beans in the request so I never worry about the reset method. All you have to do to find out when it's called is to put a System.out.println() in reset and hit the page a few times. David From: "Derek Lin"

Re: Using tag

2002-10-27 Thread Derek Lin
Here is my select population code: UNITED STATES -- Derek - Original Message - From: "Alok Garg" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, October 27, 2002 8:31 PM Subject: Using tag Hello, I am facing a pr

Re: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread Derek Lin
I am using the org.apache.struts.validator.DynaValidatorForm. You mean the reset method is called every time an action is invoked? If that is true. I would have to extend the DynaValidatorForm to write my own actionform, correct? -- Derek - Original Message - From: "David Graham" <[EM

RE: static pages

2002-10-27 Thread James Mitchell
That choice is up to you. This also depends on what you are serving. Unless your site is using a lot of graphics with high traffic or your users are downloading large files, I think the performance drain is minimal. James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org "

Re: [JSTL] c:out and DynaBeanClass

2002-10-27 Thread David M. Karr
> "Dipakkumar" == Dipakkumar Parmar writes: Dipakkumar> Hello, Dipakkumar> Obviously c:out tag doesn't work with DynaBeanClass and we haven't converted Dipakkumar> bean:write to use EL syntax. In this we do need to convert bean:write to Dipakkumar> use EL syntax. If you ca

Re: static pages

2002-10-27 Thread Beast
At 10:02 AM 10/26/2002 -0700, Craig R. McClanahan wrote: > > >On Sat, 26 Oct 2002, Beast wrote: >> Hello, >> >> Just examine the struts-example, Is it advisable using struts to handle >> static pages also? what is the advantage? > >Struts does not handle static pages at all -- that's up to your ser

RE: Question about Intercepting Filter

2002-10-27 Thread Andrew Hill
Dont think servlet 2.2 supports filters right? You best bet in that case is to override ActionServlet (for struts 1.02) or the RequestProcessor (for struts 1.1). Take a look at the source code and javadocs to see what methods you need to override for the functionality you are after. (Nb: you will o

Question about Intercepting Filter

2002-10-27 Thread Arion Yu
Hi all, What should be the best approach to implement the "Intercepting Filter" (from Core J2EE Patterns) for Struts 1.0.2 running in Servlet 2.2 Container? Thanks Arion -- To unsubscribe, e-mail: For additional commands, e-mail:

[JSTL] c:out and DynaBeanClass

2002-10-27 Thread Parmar, Dipakkumar
Hello, Obviously c:out tag doesn't work with DynaBeanClass and we haven't converted bean:write to use EL syntax. In this we do need to convert bean:write to use EL syntax. Deepak -- To unsubscribe, e-mail: For additional commands, e-mail:

Using tag

2002-10-27 Thread Alok Garg
Hello, I am facing a problem using tag. The case: 1) I have a Hashtable map which contain an Id (java.lang.Integer) as the Key and Description (String) as the value. 2) I have to iterate this Hashtable and display the values in a select box. Please guide me with the above problem Thanks Alok

RE: static pages

2002-10-27 Thread Todd Pierce
What do you mean by static pages? The concept of "Static" and "active" pages is an anachronism if you're using templates for page layout(which you really should) and applicationResources properties for "static" text (ditto). -T -Original Message- From: Beast [mailto:beast@;setuid.com] S

[OT] ModalDialog Window.

2002-10-27 Thread Divakar Satyanarayan
Hi, I have a modal window . On selecting some option the data needs to be reloaded into the window from database. But when I try to reload the page it opens a new window. Has anyone come across this before.Your suggestion to tackle this issue will be of great help.. Thanks & Regards, Divakar

Re: Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread David Graham
Your values might be getting reset by your reset method. David From: "Derek Lin" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Problem with multiple html(jsp) pages sharing one form (actionform) Date: Sun, 27 Oct 2002 18:57:17 -0

Problem with multiple html(jsp) pages sharing one form (actionform)

2002-10-27 Thread Derek Lin
I find this paragraph from the "programming struts" book: "You don't have to declare an ActionForm for every HTML form in your application. The same ActionForm can be associated with one or more action mappings. This means that they can be shared across multiple HTML forms. For example, if you h

VerifyError creating action bean in tomcat4 (not tomcat 3.3)

2002-10-27 Thread Steinar Bang
Platform: Intel PIII, RedHat 7.2, apache 1.3.20, ajp1.3 tomcat 4.1.12, BlackDown Java SDK 1.3.1, Struts 1.1-b2 When I run with tomcat 3.3 my webapp run as expected, but when I try it with tomcat 4.1.12, I get a VerifyError when creating one of the webapp's Action beans. The er