Re: directly addressing maps in jsp-file

2006-04-12 Thread Vinit Sharma
Hi, JSTL can help you here. Suppose key comes from bean item: I can use this key to access the bean property as: Hope it works :) HTH, On 4/12/06, Andreas Hartmann <[EMAIL PROTECTED]> wrote: > > Hello all, > > I've got some problems accessing arrays and maps in the jsp-file. > > In the Ac

Re: creating html:text-forms on the fly

2006-04-12 Thread Rick Reumann
Andreas Hartmann wrote: Hello, I've got a lot of html:text forms, which are created on the fly - therefore I don't know during programming, which getter and setter-methods will be needed. I assume, it works by using arrays. More than likely you really don't need or want to dynamica

RE: [shale] Tiles integration with RI

2006-04-12 Thread Dick Starr
Hubert, I see you got your answer, but I am curious about your comment. Could you please tell me where it is required in standalone-tiles. I am trying to get standalone-tiles working, but am getting a JspException error (Can't insert page 'Test' : Illegal to flush within a custom tag) on my "lay

Re: Struts 1.2.9

2006-04-12 Thread Niall Pemberton
On 4/12/06, Asad Habib <[EMAIL PROTECTED]> wrote: > Does Struts 1.2.9 come bundled with the latest version of the validator? No it includes Validator 1.1.4 - thr latest version of Validator is 1.3.0 http://jakarta.apache.org/commons/validator/downloads.html http://jakarta.apache.org/commons/valid

Struts 1.2.9

2006-04-12 Thread Asad Habib
Does Struts 1.2.9 come bundled with the latest version of the validator? - Asad - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

directly addressing maps in jsp-file

2006-04-12 Thread Andreas Hartmann
Hello all, I've got some problems accessing arrays and maps in the jsp-file. In the Action class, the following objects are defined: Hashtable hash = new Hashtable(); ArrayList > list = new ArrayList >(); hash.put("key","value"); hash.put("key1","value1"); list.add(hash); rq.setAttribute("ha

creating html:text-forms on the fly

2006-04-12 Thread Andreas Hartmann
Hello, I've got a lot of html:text forms, which are created on the fly - therefore I don't know during programming, which getter and setter-methods will be needed. I assume, it works by using arrays. In the ActionForm: ArrayList value=new ArrayList(); public String getValue(int id)

Re: [URGEN] Validation in Action and using redirection to view result page :(

2006-04-12 Thread Michael Jouravlev
If you used one action to accept user input like processRegForm.do, and another to display the page like showRegForm.do, you could logically separate input and output phases. See this for some insights: http://wiki.apache.org/struts/DataEntryForm Michael. On 4/11/06, Pham Anh Tuan <[EMAIL PROTECT

Re: jsp:include or tile

2006-04-12 Thread Antonio Petrelli
Raghuveer ha scritto: hi Greg, How about performance issue if we go for tiles for application that has 50 jsp's and that works 24 X 7 with minimum 4 users hitting site at same time ? What I can say is "try and check it out!" ;-) Anyway, through the performance perspective, Tiles is not so dif

Re: [shale] Tiles integration with RI

2006-04-12 Thread Hubert Rabago
I thought it would have to be something like that. Thanks, Gary. Hubert On 4/11/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > I've not made time to check out the shale tiles plugin but I know that the RI > and Myfaces do handle the viewid differently. This is a bug in the RI. > Myfaces will

Validation shows multiple alert boxes

2006-04-12 Thread Koni Roth
I have two client side validation rules (required and maxlength). When submitting the form all fields are validated correctly. The only thing bothers my customer is that the errors are displayed in two seperate javascript alert boxes. Is there a way to show ALL validation errors in one single ale

Re: Email Validation for .info Domain Qualifier

2006-04-12 Thread Jeff Deskins
Yes, I also later found it mentioned on the Struts wiki that you can upgrade to the latest version of Validator. I had just assumed that the latest Struts also contained the latest Validator without checking it out. (You know what they say when you assume) I did bring in the latest Validator 1.3

Re: Properties

2006-04-12 Thread Nicolas De Loof
http://struts.apache.org/struts-doc-1.2.7/faqs/struts-el.html EL-tags are similar to standard ones, but without functions that JSTL supports, like the / tag for example. Neil Meyer a écrit : Ok, I'm still working with the standard ones as well. I also use a include page where all my librar

Re: Reg: use of Application Resources

2006-04-12 Thread Niall Pemberton
On 4/10/06, Shasirekha Engala <[EMAIL PROTECTED]> wrote: > I am thankful to you for the reply.Can I get some more information regarding > the topic and if possible an example. Which site I have to refer for this? http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section6 Niall

RE: How to make work Log4j with Struts?

2006-04-12 Thread George.Dinwiddie
I don't see anything wrong, right off the bat, with your log4j.properties file. Where in the startup log are you seeing the "No appenders" warning? Could it be that something else is starting up log4j prior to your application being loaded, and there's not log4j.properties on the classpath at tha

RE: Properties

2006-04-12 Thread Neil Meyer
Ok, I'm still working with the standard ones as well. I also use a include page where all my libraries are declared. Is there a place where I can find a list of the differences between the standard and the EL taglibs? Neil -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTE

Re: Email Validation for .info Domain Qualifier

2006-04-12 Thread Niall Pemberton
On 4/6/06, Jeff Deskins <[EMAIL PROTECTED]> wrote: > A user kept getting an email validation error when entering his email > address (ex: [EMAIL PROTECTED]) on one of our sites that uses Struts. > Apparently, the Struts email validation doesn't like the 4 character domain > qualifier (.info in this

Re: Properties

2006-04-12 Thread Nicolas De Loof
I'm using a single "taglibs" JSP that has all taglibs includes headers. I don't use "-el" suffix for EL taglibs as I only use EL tags (not standard ones). <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %> <%@ taglib ur

Re: How to make work Log4j with Struts?

2006-04-12 Thread starki78
Thank you I also find a good link that helped me! Cheers! Starki http://www.mobilefish.com/developer/log4j/log4j_quickguide_log4jproperties.html -- Initial Header --- >From : "Adam Hardy" [EMAIL PROTECTED] To : "Struts Users Mailing List" user@struts.apache.org Cc

RE: Properties

2006-04-12 Thread Neil Meyer
Thanks Nico, It worked perfectly with the EL tags. Neil -Original Message- From: Nicolas De Loof [mailto:[EMAIL PROTECTED] Sent: 12 April 2006 01:44 PM To: Struts Users Mailing List Subject: Re: Properties Using struts-EL tags : Nico. Kjersti Berg a écrit : > On 12/04/06, Neil

RE: Properties

2006-04-12 Thread Neil Meyer
Hi All, It worked the following way. I tried the same with the but it did not work so the EL works fine. Thanks for all your help. Regards Neil Meyer -Original Message- From: Kjersti Berg [mailto:[EMAIL PROTECTED] Sent: 12 April 2006 12:54 PM To: Struts Users Mailing List Subject:

Re: How to make work Log4j with Struts?

2006-04-12 Thread Adam Hardy
Hi Starki, try this: log4j.logger.org=WARN log4j.logger.org.apache.struts=info ALternatively check out the short manual at jakarta, it will give you a concise run-down of what to do. Adam starki78 on 12/04/06 08:49, wrote: Hi I'm programming Struts by using JDeveloper. When I start the w

Re: [URGEN] Validation in Action and using redirection to view result page :(

2006-04-12 Thread Adam Hardy
Hi bowlkhin, the approach that I used is this: I have a JSP tile which just contains the HTML for errors and messages display. I put a scriptlet in this tile after the errors and messages tags. The scriptlet removes the error or message from the session. Hope that helps. Adam Pham Anh Tua

Re: Properties

2006-04-12 Thread Nicolas De Loof
Using struts-EL tags : Nico. Kjersti Berg a écrit : On 12/04/06, Neil Meyer <[EMAIL PROTECTED]> wrote: Hi, Would like to know why the following doesn't work can anybody explain it please. I have a text box on a page this text box is readonly when the readonly property is set to tru

Re: Properties

2006-04-12 Thread Kjersti Berg
On 12/04/06, Neil Meyer <[EMAIL PROTECTED]> wrote: > Hi, > > Would like to know why the following doesn't work can anybody explain it > please. > > I have a text box on a page this text box is readonly when the readonly > property is set to true. > > > readonly=" name='form' property='readOnly'/>

Properties

2006-04-12 Thread Neil Meyer
Hi, Would like to know why the following doesn't work can anybody explain it please. I have a text box on a page this text box is readonly when the readonly property is set to true. " /> Regards Neil Meyer - To unsubscri

How to make work Log4j with Struts?

2006-04-12 Thread starki78
Hi I'm programming Struts by using JDeveloper. When I start the web-application I always get: 06/04/12 09:36:37 log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). 06/04/12 09:36:37 log4j:WARN Please initialize the log4j system properly. The reas

RE: Multiple text box

2006-04-12 Thread Neil Meyer
Hi Rick, I figured it out thanks. I just had to change lines to prop4 and it worked. Regards Neil Meyer -Original Message- From: Neil Meyer [mailto:[EMAIL PROTECTED] Sent: 12 April 2006 08:38 AM To: Struts Users Mailing List Subject: RE: Multiple text box Hi Rick, Let me explain what

RE: indexed property validation error:java.lang.reflect.InvocationTargetException

2006-04-12 Thread Michael TALLET
Hello Carl, 1) it works with a sessionScope ActionForm because it keeps the first one you populate at hand in the DisplayAction 2) with requestScope you have to create your object by hand public LabelValueBean getLabelValue(int index) { if (listOfItems == null) { listOf