show value in array into textbox

2006-07-12 Thread Patil, Sheetal
hi everybody, i am doing an application for an survay. here i have a list of questions and i am getting answer by the users for that questions. to read the answers i create an int array in actionform as int[] answers; and in jsp i write like in action i get the data as answers[0] or answers[1] e

Re: Redirect not working

2006-07-12 Thread Rob Whelan
Right now you are: * preventing direct JSP access... then * telling the browser to access the JSP directly. "Redirect" means it will send an HTTP redirect to the browser, and the browser will try to access the new URL. So I'm not sure what you're trying to do; if you really want a redirect (and t

Re: Redirect not working

2006-07-12 Thread James Woodward
I may be wrong but if all the jsp pages are in the WEB-INF directory and you try to redirect to a .jsp file it's basically the same as loading it directly. I think you have to use a forward to access it. You could probably get around it if you created an action to specifically display the jsp f

Redirect not working

2006-07-12 Thread Pankaj Gupta
Hi All, I have specified redirect="true" in my action forwards but tomcat fails to find the jsp. I have kept all my jsp's in WEB-INF/jsp folder so as to avoid direct jsp access. Please suggest how can I make redirect to work. regards, Pankaj --

Re: Where oh where is my ActionForm?

2006-07-12 Thread Monkeyden
Thanks Wendy, that worked. I ended up replacing the "H" with "home" and "V" with "visiting", which is what they represent. I'm not sure I would have considered that, since worked. The usual... consult the JavaBeans specification for property naming conventions. :) If a property name begins

Struts/Spring/Tiles/StrutsTestCase

2006-07-12 Thread rukka
I have struts application that works with spring. I do have few questions my struts-config.xml looks like this... .. what should I setup controller as: processorClass="org.springframework.web.struts.DelegatingTilesRequestProcessor" nocache="true" locale="true" /> o

Re: Where oh where is my ActionForm?

2006-07-12 Thread Wendy Smoak
On 7/12/06, Monkeyden <[EMAIL PROTECTED]> wrote: No getter method for property: "hPlayer1Team1Name" of bean: " com.foo.web.action.captain.ScoreSubmitForm" ... public String getHPlayer1Team1Name() { return this.hPlayer1Team1Name; The usual... consult the JavaBeans specification for property

Where oh where is my ActionForm?

2006-07-12 Thread Monkeyden
Tomcat 4.1 & Struts 1.2.9 Anyone seen this? I get this message when I try to access properties of my ActionForm, though the form is clearly there, since I can print the values using JSTL: No getter method for property: "hPlayer1Team1Name" of bean: " com.foo.web.action.captain.ScoreSubmitForm"

Re: Continuing after authentication

2006-07-12 Thread netsql
Most people use JAAS/JDBC reals built into app servers like Resin, Tomcat, etc. It's done for you... and bug free. http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html .V James Woodward wrote: Hello everyone, I'm trying to figure out if there is an elegant solution to what I want to do.

Continuing after authentication

2006-07-12 Thread James Woodward
Hello everyone, I'm trying to figure out if there is an elegant solution to what I want to do. The application I am working on allows users to sign up for an account and then enroll themselves into any courses currently being offered. This is the scenario. User Bob visits the site and

Re: Tags in struts

2006-07-12 Thread Maya menon
ok... good thought, looking at Javascripr right now to edit the options in list box.. -Maya Adam Gordon <[EMAIL PROTECTED]> wrote: Maya- Just had a thought...you can set the "style" attribute on the element to say 'style="display: none;"' to hide a row in the list. Additionally,

logic:messagesPresent not working

2006-07-12 Thread fea jabi
have the below in the JSP When debugged the code i.e JSP, I see the RequestAttributes does contain the ActionErrors object and the also the messages in it. But doesn't display t

tomahawk tree2 for clay built up tree structure

2006-07-12 Thread stephan opitz
problem is the structure. if i have an object containing an id and a parentId (which is null, or linking to another object -> the parent one) if i get a list from db how is it possible to build up the structure for the tree2 i tried hashmap or recursive algorithm, but nothing with much success.

Re: Tags in struts

2006-07-12 Thread Adam Gordon
Maya- Just had a thought...you can set the "style" attribute on the element to say 'style="display: none;"' to hide a row in the list. Additionally, it collapses the list so that there's not an empty space. Very cool, IMHO. -Adam Adam Gordon wrote: Maya- If you use validation, you real

Re: Tags in struts

2006-07-12 Thread Adam Gordon
Maya- If you use validation, you really don't want to use the value attribute at all because when the JSP reloads after a failed validation, the struts widget will take it's value from the value attribute you specified and NOT not take it from the bean. This is why I suggested just setting t

Re: taglib nested-el

2006-07-12 Thread Laurent Duparchy
Thanks for the response. Unless I missed something, the taglib "nested" is not just a cooler way to access child beans, or access beans inside, say, collection of collections ; The nested taglib allows *_true recursion_ *within JSPs that is not possible otherwise with struts standard nor

Re: Does validator work with Lookup dispatch action

2006-07-12 Thread mosho
Hi Wendy, As per my requirement, I need to validate only when next button is hit. I can validate manually for server-side validation, it is working. How do I control for clients-side validation? If I include javascript tag in my jsp, it is going to validate even if I hit previous or next button.

Struts Action Multiple Request

2006-07-12 Thread RODRIGUES DE ALMEIDA Thiago
Hi All, I would like to have some "light" for a problem that i have in my app. I need to process multiple request to the same Struts Action: The user has the capability for openning multiple windows (browser) that make a request in the same action for same DB results. My problem is concerning per

RE: Tags in struts

2006-07-12 Thread Maya menon
Yes Adam. Thanks again in the nested:select tag you can add value="", that changes the display in such a way that none of the needed options ar selected. Thanks again. Now, my display is perfect, have to think about how to update options in this list box now using javascript.

RE: Server side validation not working

2006-07-12 Thread Lance
1. Is validate="true"? 2. Or are you explicitly calling ActionForm.validate() in your action? If so you'll have to call Action.saveErrors(). -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: 12 July 2006 14:05 To: Struts Users Mailing List Subject: Re: Server side val

Re: Does validator work with Lookup dispatch action

2006-07-12 Thread Juergen Kopper
Hi, mosho schrieb: I have another question, I was just trying to use LookupDispatchAction. It looks like if I am extending LookupDispatchAction, I don't have to use excute method. Is that right? That's right. I can do all the processing in the respective previous and next methods. Previous

RE: taglib nested-el

2006-07-12 Thread Lance
There is no nested-el. The struts-nested, struts-logic and struts-bean tags are pretty much dead. If you're not already, use the JSTL tags as I'm sure most of the people on this list will tell you. http://java.sun.com/products/jsp/jstl/ -Original Message- From: Laurent Duparchy [mailto:[E

Re: Action names whithout .do

2006-07-12 Thread Bart Busschots
No, I use the pattern of /do/nameOfAction and the struts tags have no problem with that at all. Lance wrote: You might find that the struts tags (eg ) rely on the *.do convention so you may have to manually generate tags etc. -Original Message- From: Akshay Ahooja [mailto:[EMAIL PROTE

Re: Action names whithout .do

2006-07-12 Thread Ted Husted
"www.yyy.com/do/search" is supported, if you'd like to use that. Just use a pattern like /do/* in the web.xml instead of *.do. It's *not* supported by modules, though. -Ted. On 7/12/06, Miguel Galves <[EMAIL PROTECTED]> wrote: I was wondering: is it possible to define call actions without usi

Re: Detection of process complete

2006-07-12 Thread Paul McMahon
Thanks, that's simple and works. I seemed to have jumped in the deep end with all this stuff and I'm on a steep learning curve... On Wednesday 12 July 2006 15:20, Samere, Adam J wrote: > Since you are using Ajax, the returned value is not going to cause the > browser to navigate to a new page. Y

RE: Action names whithout .do

2006-07-12 Thread Lance
You might find that the struts tags (eg ) rely on the *.do convention so you may have to manually generate tags etc. -Original Message- From: Akshay Ahooja [mailto:[EMAIL PROTECTED] Sent: 12 July 2006 15:40 To: Struts Users Mailing List Subject: Re: Action names whithout .do I believe y

RE: Does validator work with Lookup dispatch action

2006-07-12 Thread mosho
I have another question, I was just trying to use LookupDispatchAction. It looks like if I am extending LookupDispatchAction, I don't have to use excute method. Is that right? I can do all the processing in the respective previous and next methods. Previous methods looks like ..for ex: public

RE: Tags in struts

2006-07-12 Thread Adam Gordon
Maya- A. I understand now. You want a list box, not a drop-down list. Drop-down lists require that one, and only one, item be selected. List boxes allow for zero, one, or more options to be selected. Check out the "Dropdown box" section of the Struts Wiki: http://wiki.apache.org/struts/Str

RE: Does validator work with Lookup dispatch action

2006-07-12 Thread mosho
Thanks for all the replies. Wendy, I am using struts 1.1 so I don't think I can use EventDispatchAction. Adam, what is the difference between MappingDispatchAction and LookupDispatchAction. Any advantages over LookupDispatchAction? Also, do you have an example of how to set page attribute and

Re: Detection of process complete

2006-07-12 Thread Martin Gainty
Good Morning Mr McMahon is your execute method of RecoveryProgressAction class returning- return mapping.findForward("success"); Anyone else? M- * This email message and any files transmitted with it contain confidential

Re: Action names whithout .do

2006-07-12 Thread Akshay Ahooja
I believe you would have to change your URL Pattern in Web.XML ex. Change action *.do To: action /search/* It might make more sense to use a more general pattern such as: action /go/* And then you can use /go/search for your

Re: Does validator work with Lookup dispatch action

2006-07-12 Thread Wendy Smoak
On 7/12/06, mosho <[EMAIL PROTECTED]> wrote: I am using struts for my application. I have 3 buttons in my form i.e prev,next,clear. I read few articles and found that Lookup dispatch action will be the best option to use. There's a *much* better option in EventDispatchAction. It's available i

Action names whithout .do

2006-07-12 Thread Miguel Galves
I was wondering: is it possible to define call actions without using the .do in the URL ? Like www.yyy.com/search instead of www.yyy.com/search.do ? If yes, how do I have to configure my web.xml and struts-config.xml files ? []s Miguel -- Miguel Galves - Engenheiro de Computação Já leu meus bl

RE: Does validator work with Lookup dispatch action

2006-07-12 Thread Samere, Adam J
You can set the page attribute on your form validation definition, then use client side script to set the page request parameter based on which button is clicked. You might want to look at MappingDispatchAction as well. -Original Message- From: David Durham [mailto:[EMAIL PROTECTED] Sent

RE: Detection of process complete

2006-07-12 Thread Samere, Adam J
Since you are using Ajax, the returned value is not going to cause the browser to navigate to a new page. You can parse the returned value and manually direct the browser to a new page by setting the document location. // check status of ajax request, parse data If not done ... Do nothing If suc

Re: Does validator work with Lookup dispatch action

2006-07-12 Thread David Durham
mosho wrote: I have few concerns using lookupdispatch action, 1. Will I be able to validate using struts validator? 2. I need to validate only when next button is hit, is that possible? Is there any tutorial avialable for using lookup dispatch action. I've done something similar by explicitly

Does validator work with Lookup dispatch action

2006-07-12 Thread mosho
Hi, I am using struts for my application. I have 3 buttons in my form i.e prev,next,clear. I read few articles and found that Lookup dispatch action will be the best option to use. I have few concerns using lookupdispatch action, 1. Will I be able to validate using struts validator? 2. I need to

Detection of process complete

2006-07-12 Thread Paul McMahon
I am having problems getting an action to detect when an external process is complete. I have a "navigation" action class that kicks off the process and then directs browser to a progress .jsp page. redirect="false" so control stays with the navigation class. The progress .jsp page uses AJAX

RE: bean access in tile def?

2006-07-12 Thread Justin Chin
Dan, That was my exact thoughts. I saw the set bean in the DTD, and was curious why an implementation of get bean wasn't implemented. I'd imagine it is similar in required dev work. I was hoping one of the struts dev folks would chime in on the subject. I will continue to use bean messaging wi

Re: Tags in struts

2006-07-12 Thread Maya menon
Adam, Thanks for the suggestion. I checked with our users, they didnt like the idea of inserting a text in the listbox. They see it as confusing. So, ideally my users lik to have listboxes with No values selected... Any idea how it can be achieved ? Thanks. Adam Gordon <[E

Re: Server side validation not working

2006-07-12 Thread Pankaj Gupta
Yes Samere, Adam J wrote: Did you set the input attribute on your action mapping in struts-config.xml ? -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 8:55 AM To: Struts Users Mailing List Subject: Re: Server side validation not workin

RE: Server side validation not working

2006-07-12 Thread Samere, Adam J
Did you set the input attribute on your action mapping in struts-config.xml ? -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 8:55 AM To: Struts Users Mailing List Subject: Re: Server side validation not working Yes I did. Krishna, Hari wr

Re: Server side validation not working

2006-07-12 Thread Pankaj Gupta
Yes I did. Krishna, Hari wrote: did u put properly in jsp -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 6:13 PM To: Struts Users Mailing List Subject: Server side validation not working Hi All, I am using server side validation in

RE: Server side validation not working

2006-07-12 Thread Krishna, Hari
did u put properly in jsp -Original Message- From: Pankaj Gupta [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 6:13 PM To: Struts Users Mailing List Subject: Server side validation not working Hi All, I am using server side validation in my application. The problem is tha

Server side validation not working

2006-07-12 Thread Pankaj Gupta
Hi All, I am using server side validation in my application. The problem is that when validate() returns an ActionErrors object, the page displayed becomes blank. I have no clue as to why this is happening. There is no javascript error or exception thrown. Pl Help. regards, Pankaj

Re: FW: html:text

2006-07-12 Thread fea jabi
Thankyou very much for your responce. From: Laurie Harper <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: FW: html:text Date: Tue, 11 Jul 2006 17:32:55 -0400 > type="org.apache.struts.validator.DynaValidatorForm" dynamic="true"> >

dynamic attribure use

2006-07-12 Thread Gomathi
Hai, What is the use of dynamic attribute of in struts-config.xml like Kindly Regards gomes

RE: bean access in tile def?

2006-07-12 Thread Dan Langer
What's always got me about this issue is that the following: Use and Set Bean in configuration file It is now possible to use and set beans in the configuration file. Such bean can then be set as a or tag value. This increase and facilitate menu creation. Is listed as 'news' on Cedric's site (h

[OT][ANN] Final Call: JAVAWUG BOF XX / Oracle City of London / 13th July 2006 @ 7pm

2006-07-12 Thread Peter Pilgrim
Hi We are holding our twentieth birds-of-a-feather (BOF 20) of the Java Web Users Group in London, UK. The speakers: Emmanuel, Okyere `` RIFE : The Java EE Petstore Edition'' Emmanuel has been hard at work convert the (in)famous J2EE Petstore

Re: bean access in tile def?

2006-07-12 Thread Antonio Petrelli
Dan Langer ha scritto: Hopefully I'm wrong (both for your sake and mine), but that's the explanation I was given when I asked a similar question. Just for reference: http://www.mail-archive.com/user%40struts.apache.org/msg48310.html ---

RE: bean access in tile def?

2006-07-12 Thread Dan Langer
Justin, I've been working on a similar problem, and based on what I've seen posted here, I don't think it is doable (using definitions). Technically, it seems that in order for what you'd like to do to work, the definitions factory would need to be able to see the scope you're placing that varia

Re: bean access in tile def?

2006-07-12 Thread Antonio Petrelli
Justin Chin ha scritto: Folks, I have a message in a jsp which require a dynamic attribute that I set on a bean from an action class. I want to use that bean within the tiles definition file. Is that possible? No, it's not possible. Anyway, are you sure that you want to put a bean as a