Pre-populated option values of a select not got on Submit

2006-11-30 Thread Sridhar Raman
I have a select/option in my JSP like this: html:select size=3 styleClass=menu styleId=catsel property=category multiple=yes html:options collection=catSelList labelProperty=displayName property=id/ /html:select I have also defined the bean for catSelList: bean:define id='catSelList'

RE: problem in formbean

2006-11-30 Thread Saeed, Rada
Is this value a long or int, or whatever numeric value, And u r trying to enter characters in it then validation fails ? Cuz if so the Struts won't be able to populate the long with the string value U entered and in this case it'll keep it's old numeric value. In case of validating numeric

RE: Validator without Struts

2006-11-30 Thread Saeed, Rada
U can use the nn-validation.js, have a look : http://www.siteexperts.com/tips/functions/ts21/page10.asp -Original Message- From: Jim Reynolds [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 12:22 AM To: user@struts.apache.org Subject: Validator without Struts Hello, I have

RE: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Tarek Nabil
Craig and Mark, Thanks a lot for pointing out the Preparable interface. I think that solves a major problem with Struts 1. I'm yet to experiment heavily with WW/Struts 2, but I feel like the Interceptor concept is a very powerful approach, though a bit dangerous if not well controlled. Craig,

VALIDATION

2006-11-30 Thread Juan Espinosa
hi to all, im having some problems with validation i have an action named RegisterCustomer with three methods and an object RegisterCustomer implements ModelDriven Customer customer = null; getModel showCustomerRegistrationView registerCustomer I want to know if

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-30 Thread Thomas Thomas
I could just use this : ** tiles-defs.xml ** definition name=.base page=/layout/base.jsp /definition ** base.jsp ** body id=base_body div id=base_header [EMAIL PROTECTED] page=incl/header.jsp % /div div id=base_info jsp:include page=incl/info.jsp.jsp/ /div

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-30 Thread Antonio Petrelli
Thomas Thomas ha scritto: I could just use this : ** tiles-defs.xml ** definition name=.base page=/layout/base.jsp /definition ** base.jsp ** body id=base_body div id=base_header [EMAIL PROTECTED] page=incl/header.jsp % /div div id=base_info jsp:include

RE: Struts, AJAX, JSP, and JavaScript question

2006-11-30 Thread Dave Newton
From: Chris Pratt [mailto:[EMAIL PROTECTED] eval() evaluates JavaScript, not XML or HTML. Well, in FF, apparently it evaluates XML to some degree, huh? Dave On 11/29/06, Dave Newton [EMAIL PROTECTED] wrote: From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] (interestingly, in IE I get a

Re: Struts Tiles, Lose of Performance ? :-(

2006-11-30 Thread Thomas Thomas
But u suggested me to use the [EMAIL PROTECTED] ... % if I want to add static jsp content. Well then it's in contradiction with what u say ! I understand that tiles:insert attribute... let u fill the attributes but why do u suggest me then to use [EMAIL PROTECTED] ... % ? This attribute will

Re: VALIDATION

2006-11-30 Thread Ed Griebel
The easiest way to do this is to turn off automatic validation in your struts-config.xml and manually call validation in your desired methods. Something like: ActionMessages errors = form.validate(mapping, request); if ( errors != null errors.size() 0 ) { LOG.warn(Errors detected!!);

RE: VALIDATION

2006-11-30 Thread Juan Espinosa
Im using struts2, doing in this way works in struts2 In struts2 i have the object mapping and form?? -Mensaje original- De: Ed Griebel [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 30 de Noviembre de 2006 10:51 a.m. Para: Struts Users Mailing List Asunto: Re: VALIDATION The easiest

Re: problem in formbean

2006-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 prkumar, prkumar_1234 wrote: 1) in jsp iam displaying values from javabean in textboxes.(i can change these values) 2) when i submit with modified values , iam doing validation in formbean. 3) When validatio fails i formbean returning to same

Re: Last Page Regenration

2006-11-30 Thread pavan kumar
Hi, Can i know how to unregister from this site On 11/9/06, Balwinder [EMAIL PROTECTED] wrote: Hi All !! I have a situation in my application, i want to implement a functionality that does, if a user accidentally close his browser window, on his next request(in new window) to

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Ted Husted
Action Chaining First, we usually define action chaining as creating a move action by having a copy action forward to a delete action. Simply going from one action to another isn't a classic example of harmful chaining. The key point is whether only one action resolves the business use case.

Re: VALIDATION

2006-11-30 Thread Ed Griebel
Sorry, I assumed you were using S1, I don't know how for s2. On 11/30/06, Juan Espinosa [EMAIL PROTECTED] wrote: Im using struts2, doing in this way works in struts2 In struts2 i have the object mapping and form?? -Mensaje original- De: Ed Griebel [mailto:[EMAIL PROTECTED] Enviado

RE: VALIDATION

2006-11-30 Thread Juan Espinosa
I want to know if could use validation in this way, telling validation to be used only in the medthod registercustomer and the results for this method validationOk - result registrationView validationFail - result registrationEnd I dont want to use the methods input and success, also in this

RE: VALIDATION

2006-11-30 Thread Juan Espinosa
In struts 2 if i have validation enabled an i call an action Customer!registerCustomer.action, te validation get executed, and if its fails what results uses, and if the validation passwhat it does...execute the action called maybe... -Mensaje original- De: Ed Griebel [mailto:[EMAIL

RE: VALIDATION

2006-11-30 Thread Dave Newton
From: Juan Espinosa [mailto:[EMAIL PROTECTED] Im using struts2, doing in this way works in struts2 In struts2 i have the object mapping and form?? Struts2 is rather different, but you can still do your validation in your actions if you really want to (or do additional business-logic

RE: Last Page Regenration

2006-11-30 Thread Dave Newton
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Generally this is at the bottom of all messages. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Parameters not being set on Action in Struts 2

2006-11-30 Thread Ted Husted
I dropped in the JARS from the the 2.0.1 showcase, and it seemd to work just fine. You might want to try deploying it on another workstation there. -Ted. On 11/29/06, Tarek Nabil [EMAIL PROTECTED] wrote: Thanks Ted. I sent the WAR file and zip file containing the source of the action to

RE: VALIDATION

2006-11-30 Thread Juan Espinosa
I want to use the validation framework, but i cant it get work well Now i have the actions to register a user, i want that before registering get validated...but i cant... -Mensaje original- De: Dave Newton [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 30 de Noviembre de 2006 11:49 a.m.

ActionErrors and ActionMessages not working.

2006-11-30 Thread Tamilselvan Radha Krishnan
Hi, I'm using struts 1.2 version and currently held up in a minor issue but I could not figure out what i'm missing. In the code snippet below, From Action class I'm adding an ActionErrors to display an Error message in the JSP. In JSP I've a message Tag with logic:messagesPresent property=error

Re: Newbie question about using beans in html:link tags

2006-11-30 Thread priya
My search returns multiple rows (as seen in the for loop).. How can I possibly have a session when I dont know what link the user is going to click? On 11/29/06, Asthana, Rahul [EMAIL PROTECTED] wrote: Priya, As a short term solution you can create a new tag,as in myLibrary:link which derives

RE: Newbie question about using beans in html:link tags

2006-11-30 Thread Asthana, Rahul
Pass AccountId(?) to the next Action and then retrieve the AccountInfo object again based on that id.Now, you can pass it to the jsp for display and put it in session if you so desire. -Original Message- From: priya [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 11:05 AM

Re: Validator Framework problem

2006-11-30 Thread Thomas Thomas
Nobody can help me ? No-one has *Any* idea ?

Re: Validator Framework problem

2006-11-30 Thread Niall Pemberton
On 11/28/06, Thomas Thomas [EMAIL PROTECTED] wrote: Hi, since I added a constraint for the length with minlength, I have the following errror : 28-nov.-2006 21:31:33 org.apache.struts.validator.DynaValidatorForm validate GRAVE: org.apache.struts.util.StrutsValidator

Are There Struts 2 Books?

2006-11-30 Thread Caroline Jen
Are there books available on Struts 2? or any newer versions of Struts? Thanks for the information in advance. Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com

RE: Are There Struts 2 Books?

2006-11-30 Thread Dave Newton
From: Caroline Jen [mailto:[EMAIL PROTECTED] Are there books available on Struts 2? WebWork in Action Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Are There Struts 2 Books?

2006-11-30 Thread Wendy Smoak
On 11/30/06, Caroline Jen [EMAIL PROTECTED] wrote: Are there books available on Struts 2? or any newer versions of Struts? The WebWork in Action book is the only thing I'm aware of at the moment. For Struts 1, a second edition of James Holmes' Struts, The Complete Reference will be out

[s2] 1130 nightly java 1.4 FilterDispatcher startup error

2006-11-30 Thread Dave Newton
Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.FilterDispatcher. java.lang.NoSuchMethodError: java.lang.ThreadLocal.remove()V I used the nightly core/api run through retro. I'm guessing I have some funky versioning going on. Also, should I be using the xwork beta

Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Edward Song
Hi all, I have a form stored within the session and am trying to dump some of the Form values in the presentation using JSTL. Specifically something like Country : c:out value=${sessionScope.SubscriptionProcessForm.country}/ The form's name is SubscriptionProcessForm and the value to be

Re: Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Wendy Smoak
On 11/30/06, Edward Song [EMAIL PROTECTED] wrote: I have a form stored within the session and am trying to dump some of the Form values in the presentation using JSTL. Specifically something like Country : c:out value=${sessionScope.SubscriptionProcessForm.country}/ See 4.3.1 on

RE: Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Edward Song
Thank you Wendy For all, In JSP pages using the Struts Taglib, attributes of DynaActionForm objects can be referenced just like ordinary ActionForm objects. Wherever a Struts tag refers to a property, the tags will automatically use the DynaActionForm properties just like those of a conventional

Re: Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Wendy Smoak
On 11/30/06, Edward Song [EMAIL PROTECTED] wrote: In JSP pages using the Struts Taglib, attributes of DynaActionForm objects can be referenced just like ordinary ActionForm objects. Wherever a Struts tag refers to a property, the tags will automatically use the DynaActionForm properties just

RE: Retrieving DynaValidatorForm values with JSTL

2006-11-30 Thread Edward Song
Wendy you're right! c:out value=${SubscriptionProcessForm.map.country}/ Thanks. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 2:51 PM To: Struts Users Mailing List Subject: Re: Retrieving DynaValidatorForm values with JSTL On

Struts 2 - sample appl

2006-11-30 Thread walidito
Hi, I'm new to struts 2 and I face few problems. I need a link where I can download a simple example application with a form and few form's valdation actions/jsp etc thank you Walid -- View this message in context: http://www.nabble.com/Struts-2---sample-appl-tf2733969.html#a7626825 Sent

Struts 2 and passing data using interceptors

2006-11-30 Thread fahlen
Hi. I'm new to Struts and have a question regarding how data is passed from an Action (in Struts 2) to the JSP which one is redirected to after the action is executed. Reading the documentation on Struts 2, I've found that using the Scope Interceptor one can specify Action properties to be bound

How to get a dynaform in the Action class ?

2006-11-30 Thread Thomas Thomas
Hi, I have the following DynaValidatorForm : form-bean name=loginForm type= org.apache.struts.validator.DynaValidatorForm form-property name=login type=java.lang.String / form-property name=password type=java.lang.String / /form-bean action

Re: How to get a dynaform in the Action class ?

2006-11-30 Thread Wendy Smoak
On 11/30/06, Thomas Thomas [EMAIL PROTECTED] wrote: I have the following DynaValidatorForm : .. How am I supposed to get the parameters of this Form bean in the Action class ? Section 4.3.1 is popular today. :) http://struts.apache.org/1.x/userGuide/building_controller.html DynaActionForms

Re: How to get a dynaform in the Action class ?

2006-11-30 Thread Thomas Thomas
Wendy, thank u for your support. I don't know if I need to choose an ActionForm or DynaActionForm for the login page. When do u choose to make it a DynaActionForm ? What's the advantage of it.

struts 2 newbie question

2006-11-30 Thread walidito
Hello, I'm working through the official struts 2 tutorial (http://struts.apache.org/2.x/docs/validating-input.html ...) and I don't understand this stuff : in struts.xml action name=Login_* method={1} class=tutorial.Login the tutorial says : The method={1} attribute is replaced with

Re: Are There Struts 2 Books?

2006-11-30 Thread Simon Chappell
On 11/30/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 11/30/06, Caroline Jen [EMAIL PROTECTED] wrote: Are there books available on Struts 2? or any newer versions of Struts? The WebWork in Action book is the only thing I'm aware of at the moment. For Struts 1, a second edition of James

Re: Are There Struts 2 Books?

2006-11-30 Thread Wendy Smoak
On 11/30/06, Simon Chappell [EMAIL PROTECTED] wrote: For Struts 1, a second edition of James Holmes' Struts, The Complete Reference will be out soon. Do you know which version of classic will that cover? It's up to date for Struts 1.3.5.

Re: Struts, AJAX, JSP, and JavaScript question

2006-11-30 Thread Martin Gainty
Hi Adam- Could you post your JSP? in particular could we see XMLHttpRequest.OnReadyStateChange AND the javascript function which is the receptor for the Asynchronous call Thanks, M This e-mail communication and any attachments may contain confidential and privileged information for the use of

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread Don Brown
If you only need request-scoped data, you don't need to bother with the ScopeInterceptor or even the ServletRequestAware interface. Simply define a getter on your action that returns the object in question, then access it via your JSP via JSP EL (JSP 2.0), a JSTL expression, or a Struts 2

Re: Struts 2 - sample appl

2006-11-30 Thread Don Brown
Download the example apps from the Struts download site: http://struts.apache.org/download.cgi#struts201 Don On 11/30/06, walidito [EMAIL PROTECTED] wrote: Hi, I'm new to struts 2 and I face few problems. I need a link where I can download a simple example application with a form and few

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Michael Jouravlev
On 11/28/06, Tarek Nabil [EMAIL PROTECTED] wrote: Hi, One of the problems with Struts was that if you had a page that requires some setup and this page submits to an Action, then you would not be able to set validate to true on that action because if validation problems occur then Struts will

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Michael Jouravlev
On 11/29/06, Yujun Liang [EMAIL PROTECTED] wrote: To solve the action chaining problem, I wrote a subclass of RequestProcessor. In the subclass, override some templates method. In the last method of process(), I set a flag in request, and I check for this flag in some methods and if the flag is

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Hubert Rabago
If not this specific implementation, an otherwise clean way to handle view preprocessing after a validation failure. It can build on the action-forward-specific command chain, but a solution that's more tightly integrated with action objects should be considered as well. Hubert On 11/30/06,

Re: Does Struts 2 solve the action chaining problem?

2006-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tarek, Tarek Nabil wrote: Christopher, I really wonder if the Struts you're talking about is the one I've using for years now!! The Struts I know sucks big time when it comes to action chaining. I'm afraid I don't understand how defining two

Re: struts 2 newbie question

2006-11-30 Thread Mark Menard
On 11/30/06 4:40 PM, walidito [EMAIL PROTECTED] wrote: Quick caveat, I haven't used the methodology, but I might start now. and I don't understand this stuff : in struts.xml action name=Login_* method={1} class=tutorial.Login the tutorial says : The method={1} attribute is replaced with

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread Mark Menard
On 11/30/06 5:29 PM, Don Brown [EMAIL PROTECTED] wrote: If you only need request-scoped data, you don't need to bother with the ScopeInterceptor or even the ServletRequestAware interface. Simply define a getter on your action that returns the object in question, then access it via your JSP

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, Mark Menard wrote: public String getDataRetrievedFromSessionBean () { return this.dataRetrievedFromSessionBean; } Sorry for poking my nose in, but wouldn't this be horrendously non-threadsafe? Since I know virtually nothing about

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread James Mitchell
What makes it not thread safe? If you are thinking in terms of s1, then yes, but s2 actions are not reused and can therefore keep state as you normally would have had to put in a s1 formbean. On 11/30/06, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash:

Re: Struts 2 and passing data using interceptors

2006-11-30 Thread Mark Menard
On 11/30/06 7:45 PM, Christopher Schultz [EMAIL PROTECTED] wrote: Mark Menard wrote: public String getDataRetrievedFromSessionBean () { return this.dataRetrievedFromSessionBean; } Sorry for poking my nose in, but wouldn't this be horrendously non-threadsafe? No problem. If your

Re: problem in formbean

2006-11-30 Thread thamizh arasu
Hi Prem, At the time of landing the page, you are showing some values. That values are taken from DB. Once error coming you are redirecting to the same page. but with the error value. This is your problem right? this can be easily solved. you are showing the values taken from formbean. At

Re: How to set %@ page session=false %, globally?

2006-11-30 Thread Bryce Nesbitt
Thanks for the tip. I do that but I still get jsessionid's in the URL: WEB-INF/tiles-defs.xml tiles-definitions definition name=.site path=/jsp/common/layouts/mainLayout.jsp ... jsp/common/layouts/mainLayout.jsp: !-- DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN

Re: s2 image submit button and methods

2006-11-30 Thread Don Brown
Thanks for bringing this up. I created a ticket and have fixed the issue: http://issues.apache.org/struts/browse/WW-1532 The problem is complicated by the fact that IE doesn't submit the button name in addition to the .x and .y. All cases should be properly handled now. Don On 11/28/06, Ing.

Re: STRUTS2 and AJAX

2006-11-30 Thread Don Brown
On 11/20/06, Juan Espinosa [EMAIL PROTECTED] wrote: I dont understand when you say in the latest trunk, (i have to improve my english) did it mean in the next version. Yes, the next version will be 2.0.2 Plugins - i have a question ! sitemesh has a plugin like spring ?? Yes. Don Thanks

Re: [s2] Ajax template tutorial?

2006-11-30 Thread Don Brown
Not at the moment. Take a look at the showcase example application, which demonstrates all the ajax tags. Don On 11/16/06, wolverine my [EMAIL PROTECTED] wrote: Hi! Any idea if there is any good Struts 2's Ajax tutorial that is similar to the Bootstrap step-by-step tutorial?

Re: Libraries problems

2006-11-30 Thread Don Brown
If you are using 2.0.1 or later, you need to include the struts2-sitemesh plugin. Don On 10/31/06, Mariano Stampella [EMAIL PROTECTED] wrote: Hi, I am using actually this libraries: !-- Struts 2 -- dependency groupIdorg.apache.struts/groupId artifactIdstruts2-core/artifactId

Re: [s2] Error setting 'dojo.transport'

2006-11-30 Thread Don Brown
Well, you should only see that error when your logs have debug enabled. You could clean it out via an interceptor, if you really wanted to. Don On 11/7/06, Oleg Galkin [EMAIL PROTECTED] wrote: When I use the div ajax tag the exception Error setting expr 'dojo.transport' with value '...'