Hello,
My app has a form which content is generated dynamicly with the help of
an iterate tag.
The form displayed is fine, the fields in the repeated lines have all
the same name, which is correct and easy to handle with servlet.
How can I handle this fields in my xForm / xAction classes? How
Hello Geeta,
I've solved the problem, still don't really understand the reason.
I've defined a global forward for the input of my reluctant form, and
now, in case of validation error, I am forwarded to the desired page,
not to the blank one.
Thanks for you help.
Samuel
--
Hello Nicholas,
Ok, thank you very much for the explanation, it makes the things a bit
clearer and less magical to me.
I have two questions:
-Why making that difference once for all? I mean, why not just accept
everything here (page, action, forward)?
-Where is a good and complete documentation
Hello there,
I am able to create a html select with struts when the collection to
display in the options tag is a collection stored in the session or
request and to use the selected value for my form. Fine.
But now I have a Form representing a bean. This form has an attribute of
type ArrayList.
Hello Henrique,
Thanks for your answer.
Your solution suppose I maintain two lists of objects, one for the
labels and one for the values.
Is it not possible to give a list of object, and to use the object
properties for the value and for the label?
Samuel
---
Hello,
I am using a form displaying properties from a bean. One property of
this bean is the unique id from db: id.
The bean as a property which is a list of other beans (call it items),
which ones has the property of the unique id from db too: id.
In my form, I want to know which user is shown,
Hello,
I am using a form displaying properties from a bean. One property of
this bean is named aProperty.
The bean as another property which is a list of other beans (call it
items), which one of the item has the property named aProperty too.
In my form, I want to know which user is shown, so I u
Hello,
I am using an Action which puts some data in the request scope. That's
just fine to display the data in the (exactly one) next jsp page (let's
call it target.jsp).
I am submiting a form in target.jsp which should do some action an show
again the target.jsp page.
How can I tell my page
Hello,
I am trying to use server side validation. I validate my form data in
the validate method of the form. When there is a validation error the
application shows me a blank page, and not the form again.
I guess I have an error in the action mapping configuration in
struts-config, I am not s
Hello,
I am using an Action which puts some data in the request scope. That's
just fine to display the data in the next jsp page (let's
call it target.jsp).
I am submiting a form in target.jsp which should do some action an show
again the target.jsp page.
When I show again the target.jsp page, the
Hello Geeta,
Thanks again for your answer.
Geeta Ramani wrote:
The "input" field is the path to the jsp where your form resides, something like:
input="/myDir/myForm.jsp"
If the page is under /web (root of the application), then a "/page.jsp"
is ok?
Why in the login example there is only a in
Hello Geeta,
Thanks.
Geeta Ramani wrote:
You will have to put the data again in the request
> scope in your second action..
It means I'll have to process it again, and put again in the request?
So a session variable may be more apropriate?
Samuel
---
Hello Geeta,
"login" must have been defined as a global-forward ..?
You are right, I am quite new here, I did no notice.
No reason. So just take it out..:)
Ok, it's gone.
But I still get an empty page when I make a validation error :-(
The validation code is going thru, maybe another hint?
Sam
Good Morning Geeta,
Geeta Ramani wrote:
Hmm.. Ok, look at the source code of the page you get.. anything there?
No so much, right?
I used to work, then I probably change _something_
Sincerly
Samuel
--- andinasoft SA - Software y Consulting ---
Mariano Aguilera 276 y Almagro - Quito, Ecu
Hello,
I have a JSP page with a element. According to the user
selection, a bean is filled with apropiate data, and should be displayed
in a jps page.
My jsp page looks like:
...
When I select an entry from the select and press the button, the action
Hello there,
The link:
http://project:8080/start.do
shows me the page configured in struts-config.xml:
This form contains a tag which looks like that in the
generated html page:
If I press the submit button, the page shown is:
http://project:8080/start.do?category=4 ...
and not, like I would ex
Hello Abhi,
request.setAttribute("lstCountry", v)
So the bean with you list is "lstCountry".
JSP:
Explanation:
-storeTo is the bean where to store the result
-storeToProperty is the property of the bean storeTo where to store the
result
-lstCountry: your bean with the collect
Hello there,
I'vesolved it like this, using the bean tag inside the html src tag:
Sincerly
Samuel
--- andinasoft SA - Software y Consulting ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18 Cel. +593 9 946 4046
- http://www.andinasoft.com -
-
Hello Abhi,
I am sorry, which one is the storeToBean and storeToProperty with
reference to my example?
I can't say, cause your example show me only the code in the JSP.
Think about where do you want to store the object selected in your
option. I assume it is in a bean in which you'll store the
Hello,
I had an error in my jsp page, there still was a lost tag before
my tag.
Samuel
--- andinasoft SA - Software y Consulting ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18 Cel. +593 9 946 4046
- http://www.andinasoft.com -
--
Hello there,
The problem using multiple actions for one form is solved :-)
I followed exactly the instructions in the API reference for the class
org.apache.struts.actions.LookupDispatchAction (like explained in the
newbie faq), and everything is fine.
Sincerly
Samuel
--- andinasoft SA - Soft
Hello Craig,
Indeed, the recommended pattern today is for you to acquire your
DataSource instances from the JNDI naming context
Thanks for your advise. I was the way I handled it before using struts,
so I will continue that way.
Sincerly
Samuel
--- andinasoft SA - Software y Consulting ---
Ma
Samuel Rochas
--- andinasoft SA - Software y Consulting ---
Mariano Aguilera 276 y Almagro - Quito, Ecuador
Tel. +593 2 290 55 18 Cel. +593 9 946 4046
- http://www.andinasoft.com -
-
To unsubscribe, e-mail
Hi Hubert,
Hubert Rabago wrote:
You can use an empty dyna form:
Great, that is doing the job.
I was afraid I needed to create the corresponding class too, but
since the declaration is needed only in the struts-config.xml, that's fine.
Thanks a lot.
Samuel
--- andinasoft SA - Software y Consulti
24 matches
Mail list logo