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
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]
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
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/
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
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
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
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
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()
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.
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
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.
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
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.
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
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.
On 7/20/06, Jeremy Jardin [EMAIL PROTECTED] wrote:
!-- == Validator plugin
==--
plug-in className=org.apache.struts.validator.ValidatorPlugIn
set-property
property=/StartSubscription
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
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:
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
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
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
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
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
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
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
(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
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
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
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
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
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
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
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
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
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
36 matches
Mail list logo