Re: Problem with Validator it does not reload request attributes

2006-07-20 Thread Kim Brianne Go
Thanks for the suggestions. I tried this and it works if the content of the list boxes are static. But in my case, the values that is being used by this widget is pulled out from the database then forwarded to the jsp page using request.setAttribute. Unfortunately, i dont think it will be

Is there any direct link between model and view in struts..

2006-07-20 Thread sunil.prabhu
Hi , Is there any direct link between model and view in struts Architecture? Thanks and regards Sunil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Is there any direct link between model and view in struts..

2006-07-20 Thread paz . periasamy
Why do you want this ? Struts is based on MVC 2 Pattern. What you talking is MVC 1 Pattern Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, HCL Australia Services Pty. Ltd. Off : +61-3-9618-4085 Mob : +61-0411-354-838 sunil.prabhu [EMAIL PROTECTED] 20/07/2006 07:11 PM

pb using validator it does not work !

2006-07-20 Thread Jeremy Jardin
Hi, I'm trying to use validator plugin in my application, and it does not work at all ! First, I've just add html:errors/ in my jsp. I've written a basic validation.xml file like this : form name=StartSubscriptionForm field property=name depends=required arg0 key=inscription.nom/

About ActionServlet

2006-07-20 Thread sunil.prabhu
Hi there, I am new to struts framework and I have been reading lot of books regarding the same. But I am not able to make it out what exactly is ActionServlet. And what does it containcan any body please provide me with sufficient information or any link which contains the same ThanQ

RE: About ActionServlet

2006-07-20 Thread Emilia Ipate
Hello! The Struts framework is based on the Front Controller pattern. This means that is has a mean class which delegates the main work to aother classes. And this is what ActionServlet does. It is a servlet that based on the user's request and struts-cofig delegates the process of the request

dynamic checkboxes and radio buttons in one group

2006-07-20 Thread Jakub Milkiewicz
Hi I have a problem with dynamic form handling. On a page i want to present a list of questions. For each question you need to make an answer, but answer widgets can be represented as 2 radio buttons or single checkbox. Initially all answer widgets should be blank - checkboxes unchecked, radio

ActionMapping roles attribute

2006-07-20 Thread Vinicius Carvalho
Hello there folks! I was wondering, is it possible to force struts to not check request.isUserInRole() when we provide a roles parameter in our action-mapping declaration? I need to get it's value, but I get redirect to an unauthorized page before my execute() happens. Regards

html:multibox problem

2006-07-20 Thread Vinicius Carvalho
Hello there! I have a multibox on my jsp, that maps to a String[] id; property on my formbean. The problem is, when the user submits it, I get my Array filled, but the first position of the array is filled with a strange [EMAIL PROTECTED] string. Seems that some weird object had it toString()

Re: dynamic checkboxes and radio buttons in one group

2006-07-20 Thread Thomas Joseph
You can try to have an ArrayList/HashMap of HasMaps representing the page/form. Each Hashmap can hold the Question/Answer set. Please refer to Mapped Properties for more info 1. http://struts.apache.org/1.2.9/faqs/indexedprops.html 2.

RE: pb using validator it does not work !

2006-07-20 Thread Yee, Richard K CTR DMDC
What class is your sapinscription.form.StartSubscriptionForm extending? -Richard -Original Message- From: Jeremy Jardin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 3:05 AM To: user@struts.apache.org Subject: pb using validator it does not work ! Hi, I'm trying to use

RE: Problem with Validator it does not reload request attributes

2006-07-20 Thread Yee, Richard K CTR DMDC
There isn't anything that prevents you from accessing a datasource in a FormBean. I don't think you really need to do so however. You can set the input attribute of your action to another action that does the necessary setting up of your view beans instead of setting it to the JSP page itself.

Re: errorStyleClass not working

2006-07-20 Thread fea jabi
Thankyou all for helping me working on this. I have one morequestion on this. have couple of input field in a column of a table. Using indexed properties for the input fields and validating using the same. When the user entered wrong values in more than one input field, the Validator is

Re: pb using validator it does not work !

2006-07-20 Thread Adam Gordon
Jeremy- A couple of things: 1. Not sure what version of Struts you're using, but at least according to http://struts.apache.org/1.2.9/userGuide/building_view.html#validator, the property attribute for the validator should have the value of pathnames and not the path of your action. 2.

Re: Is there any direct link between model and view in struts..

2006-07-20 Thread Michael Jouravlev
On 7/20/06, sunil.prabhu [EMAIL PROTECTED] wrote: Hi , Is there any direct link between model and view in struts Architecture? If you are asking about something like automatically building input forms or output pages based on business object's properties, then no, Struts framework does

RE: pb using validator it does not work !

2006-07-20 Thread Adam Gordon
Jeremy- A couple of things: 1. Not sure what version of Struts you're using, but at least according to http://struts.apache.org/1.2.9/userGuide/building_view.html#validator, the property attribute for the validator should have the value of pathnames and not the path of your action. 2.

Re: pb using validator it does not work !

2006-07-20 Thread Wendy Smoak
On 7/20/06, Jeremy Jardin [EMAIL PROTECTED] wrote: !-- == Validator plugin ==-- plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=/StartSubscription

Re: pb using validator it does not work !

2006-07-20 Thread Martin Gainty
Hello Jeremy and Doctor Yee- -we need to see your validator-rules.xml -need to see your Form declaration in struts-config.xml specifically form-beans form-bean -the validation.xml should have a minimum 2 differing action paths as provided in the example located here

Re: pb using validator it does not work !

2006-07-20 Thread Jeremy Jardin
ValidatorForm ! On 7/20/06, Yee, Richard K CTR DMDC [EMAIL PROTECTED] wrote: What class is your sapinscription.form.StartSubscriptionForm extending? -Richard -Original Message- From: Jeremy Jardin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 3:05 AM To:

Re: pb using validator it does not work !

2006-07-20 Thread Jeremy Jardin
A couple of things: 1. Not sure what version of Struts you're using, but at least according to http://struts.apache.org/1.2.9/userGuide/building_view.html#validator, the property attribute for the validator should have the value of pathnames and not the path of your action. It's ok I had

Re: frames with struts

2006-07-20 Thread Frank W. Zammetti
Sorry, didn't even notice what list this was to when I replied. Frank Ted Husted wrote: The best place to post a question like this is the Struts User list, where there are more people to help and the answers are archived. * http://struts.apache.org/mail.html -Ted. On 7/20/06, zeta [EMAIL

Performance issues Struts+Tiles

2006-07-20 Thread mcmoisei
Hi, I have a rendering issue with Struts+Tiles (1.2.8) I run this app in Weblogic 8.1 and what we see from our performance monitor tool is that the jsp rendering take the most of the time and to get specifically two things we've noticed 1. The more tiles we have the slow the page get ( I have 7

Struts forward and redirect

2006-07-20 Thread Felix Khazin
Hi all, I have a quick question: My struts-config.xml has a forward line such as: forward name=show path=/application.do/ In my controller if I set an attribute such as: Request.setAttribute(test, test string); Return (mapping.findForward(show)); This works fine and I am

Re: dynamic checkboxes and radio buttons in one group

2006-07-20 Thread Jakub Milkiewicz
Hi I think i didn't express clearly in my previous mail. I will try to do it again. In my Configuration file i can have any number of questions, for each question i store question text and some kind of flag to indicate if i should render single checkbox or 2 radio buttons. If i render checkbox

RE: Struts forward and redirect

2006-07-20 Thread George.Dinwiddie
Felix Khazin asked; Hi all, I have a quick question: My struts-config.xml has a forward line such as: forward name=show path=/application.do/ In my controller if I set an attribute such as: Request.setAttribute(test, test string); Return (mapping.findForward(show)); This works fine

Re: About ActionServlet

2006-07-20 Thread David Evans
The API docs can help: http://struts.apache.org/1.x/struts-core/apidocs/index.html more specifically: http://struts.apache.org/1.x/struts-core/apidocs/org/apache/struts/action/ActionServlet.html This link has a brief explanation

Re: FormDef

2006-07-20 Thread Hubert Rabago
(was: Is there any direct link between model and view in struts..) On 7/20/06, Michael Jouravlev [EMAIL PROTECTED] wrote: Another library, FormDef, can build a dynaform based on properties of nested business object Hey Michael, Just thought I'd set the record straight. FormDef does not

Re: Struts forward and redirect

2006-07-20 Thread Jakub Milkiewicz
Hi It is quite easy thing... If you forward, request object is passed to new resource and if you redirect, server sends answer to browser to make a new request to new resource.In a latter, your request object on which you set some attributes is gone - new resource sees new request. I hope that's

Re: Struts forward and redirect

2006-07-20 Thread Jakub Milkiewicz
Hi If it is not still clear for you read: http://organicveggie.wordpress.com/2006/01/24/struts-redirect-wparameters/ 2006/7/20, Jakub Milkiewicz [EMAIL PROTECTED]: Hi It is quite easy thing... If you forward, request object is passed to new resource and if you redirect, server sends answer to

RE: pb using validator it does not work !

2006-07-20 Thread Adam Gordon
Ok, now that you've fixed the first problem, let's try some more debugging. Make sure that your form name in your JSP matches the form name specified in your validation XML - i.e. check spelling AND cAsE. I say to override validate(...) and as long as you call super.validate(...) in that method

RE: Struts forward and redirect

2006-07-20 Thread Adam Gordon
Felix- IIOC, a forward forwards the original request, hence, why you are able to see the attributes you set whereas a redirect sends a new request which means you lose the attributes. I think this question was posted previously in the last week or so, so check the list archives for then. -Adam

RE: Struts forward and redirect

2006-07-20 Thread Felix Khazin
I just found I can use ActionRedirect which solves all my problems: It allows me to redirect and add query string parameters! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 4:46 PM To: user@struts.apache.org Subject: RE: Struts forward

RE: errorStyleClass not working

2006-07-20 Thread David Friedman
Is your problem server side or client side? If you problem is client side then you should read the struts javadocs: http://struts.apache.org/1.2.7/api/org/apache/struts/validator/ValidatorPlug In.html Or the User Guides: http://struts.apache.org/1.x/faqs/validator.html Both of them mention a

Re: Struts forward and redirect

2006-07-20 Thread Jakub Milkiewicz
Hi I think storing these kind of date in a session is not great idea... I really like Refirect after post patterny by Jouravlev where author promotes saving submitted data in temporary storage (for example session) and then use redirect to output action adding some kind of identifier to data

Re: Struts forward and redirect

2006-07-20 Thread Michael Jouravlev
This is a valid technique. I want to comment on the user experience aspect of it. Say, that /application.do displays a form that a user has to fill out. He makes a mistake and you have to redisplay the form by calling /application.do. Will the query paramter be the same? If not, then

Re: FormDef

2006-07-20 Thread Michael Jouravlev
Um, by nested beans I mean a bean which is a property of ActionForm like Employee, not a bean which is a property of a bean which is a property of an ActionForm, like Address. I guess there is a discrepancy in terminology here ;-) What I mean is this (taken from