Jim,
request attributes are only available for the duration of the request which
is typically until the JSP is processed on the server. If you need the
variable to last for multiple pages, you should use session scope. You can
only set parameters after the user has pressed a button. You can either
Hi,
I have two pages that share the same form (kind of).
In the first page, I have to show only two fields of the form and they
are required fields.
In the second page I have to show those two fields in addition to 6
other fields which are required.
1) If I make these two as different forms,
Hi!
Why is it that the validwhen validator does not support map-backed
ActionForms ?
Which choices do I have to perform this kind of validation on an
map-backed ActionForm?
(using another kind of form is not the answer I want :)
--
Saludos,
Martin I. Levi
Centre Tecnològic de Transferenciènc
I having been trying to convert existing pages from
extending ActionForm to DynaActionForm so that I dont
have to provide the set and get. I am having problems
with the optionsCollection trying to get the iterator.
The correct values are being obtained from the
database and store via the LabelVal
Hi,
I am facing a weird problem while using Form based authentication in a strtus
project.
By adding the security constraint and Form tag in my web.xml , I am able to
force every user to come to a login page.
THe login pag has an action of "j_security_check" . It authenticates the user
fine an
Hi Amit Gupta
For DB connections u can create your own class i.e with respect to DAO Pattern
where in this class is dedicated to only manipuation of database. so in the
action class u can get the connections by calling connection method in own
class which gives connection and even u can send da
Hi,
I've been trying to google this error for a while now, but havent found
a solution to it.
My directory structure is as follows :
$CATALINA_HOME/webapps/myapp/WEB-INF/classes/myapp/
My web.xml, struts-config.xml and JSP file look like this :
http://www.simplyrender.com/Files.html
please let me
Finally I had time to isolate the issue. The thing is that if you define
global action mapping in and use multiple config files
(all in one module) the actions in config files that are processed later
will keep global setting from previous config file (unless you overwrite
the global setting).
Mo
I have faced this problem too.
I tried to get back the previous form from the session and combine
all the field that you need. This logic will happen when validator
is finding an error and it do dynamically. So That is suitable for
all the cases in the App.
The logic I'm using is simple. It i
Hi,
This is the other problem I have faced before.
I have tried "Combine the form from first.jsp and second.jsp":
I try to save the form in the session beofore the end of the Execute
() at the frist submition. Get it back when submit from second.jsp
then combine the fields which you want. But y
displaying the message in jsp != it can read in the Validator
I also encountered this problem before.
Cliff
--- In [EMAIL PROTECTED], "elisegev1" <[EMAIL PROTECTED]> wrote:
>
> I am learning how to use Struts and have encountered the following
> problem. I have a form bean defined as 'DynaAc
Ok, Ive managed to get hold of my printout of the JSTL spec (didnt have
it last night). The tags "xml" attribute can point at either a
string or a reader. I think you could probably just get a reader in a
scriptlet (or write a simple custom tag to do it), refer to it from the
, and another sc
1) In my action class I put a list (statusList) into the request.
2) In the associated JSP, I read through the bean (statusList) and
display the data in a drop down box (the way you suggested):
3) When I go to validate(with the framework), and fail, I get Posted
back to the inputting .jsp, b
It is available for the duration of the HTTP request.
That may be more than one page if you are forwarding (server-side)
but if you are not it is more or less equivalent to a page.
The 4 scopes are
page, request, session, application
so if you want to keep something for longer
you probably want to
From: "Daniel Kies" <[EMAIL PROTECTED]>
> in JSP to show the list in a drop down:
>
>
> property="statusType"/>"> property="statusType" />
>
>
Why are you not using the and (or
) tags? You don't have to iterate over the
collection, the framework will do it for you.
Example:
I set an attribute as follows...
public class AdsRespAction extends Action {
public ActionForward execute(
ActionMapping mapping,
ActionForm Form,
HttpServletRequest request,
HttpServletResponse response)
throws
Wendy - I don't want to use the session for storage because of
scalability and memory constraints.
I have read and understand the point that as long as I have the field
defined in the DynaActionForm that the data will be in the request
when I need it after validation fails.
-How do you get a list
Jack,
I assume you're saying that I need to remove the
execute method from the class.
Rudi
--- Dakota Jack <[EMAIL PROTECTED]> wrote:
> Haven't you completely overridden the execute method
> making the
> extension of DispatchAction irrelevant?
>
> Jack
>
>
> On Thu, 30 Dec 2004 03:56:17 -080
Andrew Hill wrote:
parse an xml file from the local filesystem
Yes, this is correct. It seems to want to do this over HTTP. Local paths
do not seem to work, unless I am missing something, which is entirely
possible.
The users local filesystem, or the servers?
In the former case no (you would
From: "Daniel Kies" <[EMAIL PROTECTED]>
> Can you offer a decent way of
> searching through the archives?
I like http://www.mail-archive.com. Put 'struts' in the box on the first
page, then choose the user list.
Why are you dismissing session scope?
--
Wendy Smoak
--
You probably want something like this:
JSP:
FormBean:
public class MyForm extends ValidatorForm{
private String [] fooName = {"","","","","",""};
private String [] barText = {"","","","","",""};
private String [] bazText = {"",
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] Behalf Of Partho
> Sent: Thursday, December 30, 2004 10:28 AM
> To: user@struts.apache.org
> Subject: read html tags from database and display
>
>
> I need display html tags on the screen such as text fields, radio
> buttons e
If you use Struts-EL you can use and use
EL syntax for arg0, arg1, etc. The syntax in the .properties file
is still '{0}', etc. But I think that is best for flexibility
and robustness. Otherwise the property file has to assume a bean
with a certain name will exist and name changes would have to
I need display html tags on the screen such as text fields, radio
buttons etc by reading them from the database.
Is there any way that the text fields/radio buttons can be created
dynamically, in struts framework, by reading the list from the database
and without having to hard code the getter
Haven't you completely overridden the execute method making the
extension of DispatchAction irrelevant?
Jack
On Thu, 30 Dec 2004 03:56:17 -0800 (PST), Rudi Doku <[EMAIL PROTECTED]> wrote:
> Hi Anders,
>
> Thanks for your reply.
>
> I'm not sure how to define the mapping in the
> struts-config.
parse an xml file from the local filesystem
The users local filesystem, or the servers?
In the former case no (you would need to get them to uplaod it first).
In the later case (which I guess is what you mean as it has a leading
/)... not sure. :-(
"We want to stand upon our own feet and look
Can you suggest a good way of doing this?
There 36,000 threads by subject, starting with ", Author, Date and
Thread. I do not personally archive or save all these emails. I have
researched through google and looked around a bunch but couldn't find
what I needed. I have also looked through severa
You are right! It was the key against the name.
Thank you so much.
Nadia
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 30, 2004 11:20 AM
To: Struts Users Mailing List
Subject: Re: html:options won't get preselected!
From: "Nadia Kunkov" <[EMAIL P
This has been asked multiple times on the list and heavily discussed. check the
list archives for details.
> -Original Message-
> From: Daniel Kies [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 30, 2004 9:55 AM
> To: user@struts.apache.org
> Subject: Validation Post-Back help
>
>
Greetings. I am using the Validation Framework and I am having
problems when the validator is finding an error. When the post-back
kicks back to the input page, it is not finding the data that was
previously found in the request. In order for the data to be
available when kicked back to the call
> -Original Message-
> From: Nathan Coast [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 29, 2004 7:01 PM
> To: Struts Users Mailing List
> Subject: Re: message resources in db
>
>
> >
> > Then you have the apparent fact that by doing so you are
> now outside the Java provided
From: "dsarris" <[EMAIL PROTECTED]>
> I am trying to use the tag with the
> tag.
> Do I have to put the collection property inside the form bean of the
> form that contains the ?
The docs say if you leave off the 'name' attribute, the framework will look
to the enclosing form bean. So use 'name
From: "Nadia Kunkov" <[EMAIL PROTECTED]>
>
>
>
Struts will pre-select the item when the 'country' property of the form
matches the countryID of the option.
What is the exact value of the 'country' property of the form? I'm betting
you've got 'Canada' when you need 'CAN'.
--
Wendy Smoa
Hi,
I have a form that my action prepopulates and that works fine. For example:
Country is FormBean property that is populated from the database by my action.
This is all good but I want the user to be able to change the country so I need
a dropdown list.
Here is what I have:
Hi,
I am new to using the JSTL x tags and I was wondering if there was a way
to parse an xml file from the local filesystem without having to go
through HTTP first. I'd like to be able to do something like this:
Is there a way to do this?
Thanks for your help!
--
Seth Milder
Department of
Thanks, I'll try to clean up and see about swap space. I'll let you know.
Thanks for the advice.
Nadia
-Original Message-
From: Jay Chandran [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 30, 2004 9:33 AM
To: Struts Users Mailing List
Subject: Re: struts and Tomcat4.0.4
Hi,
What is
Finally I had time to isolate the issue. The thing is that if you define global
action mapping in and use multiple config files (all in one
module) the actions in config files that are processed later will keep global
setting from previous config file (unless you overwrite the global setting).
wellsfargo.com> writes:
>
> With the new version of Struts, we are getting a NullPointerException
whenever custom rules are being run
> because they are expecting a parameter list of:
>
> Object Bean,
> ValidatorAction va,
> Field field,
> ActionErrors errors,
> org.apache.commons.validator.V
Hi,
What is ur systems configuration ? Does it have enough free space ? What
about swap space ? How much swap have you allocated at the
time of installing OS ? Do delete the files in temporary directory and also
clean up the log files.
This may help.
Regards,
jAY.
- Original Message
Thanks,
Connections were a part of my problem actually. But that got fixed and now the
system hangs after I make changes to JSPs multiple times.
Any ideas why is that?
Thanks for your help.
NK
-Original Message-
From: Jay Chandran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29,
Name is used for associating the action with a form defintion, and input
is used when validation fails to redirect back to the form.
The rest looks ok to me, but I might be missing something.
Anders,
Rudi Doku wrote:
Hi Anders,
Thanks for your reply.
I'm not sure how to define the mapping in the
Hello,
I'm using struts 1.2.4 upload feature
I have created an upload jsp page that is customized according to some
parameters from a form bean (the form bean is also used to store the file
object).
Http Request ---> populateFormAction
JSP page --> submitUploadAction
The form bean is po
Hi Anders,
Thanks for your reply.
I'm not sure how to define the mapping in the
struts-config.xml. My DispatchAction class looks like
this:
public class PostAction extends
org.apache.struts.actions.DispatchAction {
public ActionForward execute(ActionMapping mapping,
Use the html:link tag with an action attribute.
(action="MyDispatchActionMapping?cmd=myMethod" should do it)
You can also use a normal html href if you absolutley wanted to.
Anders,
There's also no problem
Rudi Doku wrote:
Hello,
I'm a struts newbvie!
I have created a class that extends DispatchA
Hi,
I just want to share my experience with you.
I want struggling with web application for 5 days. It was working in local but
not virtual hosting server.
Just few minutes before I came to know reason behind my problem.
1) I compiled classes with JDK 1.5 and server had jdk 1
Hello,
I'm a struts newbvie!
I have created a class that extends DispatchAction to
perform some CRUD.
Can I use an html link to invoke an action, or does it
always have to be from a form?
Regards,
Rudi
__
Do you Yahoo!?
Yahoo! Mail
The Apache MyFaces Team is happy to announce
the availability of a RenderKit for WML.
The RenderKit could currently only found at CVS.
The next release contains this facility. MyFaces
also provides an example web app for demonstrating
WML RenderKit.
Special THANKS to Jirí Žaloudek. He contributed
Thanks the trick with the empty dynaform solved my problem.
IMHO there is room for improvement here
The 'unwrap' is no problem in my case since the action handles the whole
request
and the forwarded-to JSP has no business tinkering with the request.
Thanks,
tomy
On Thu, 30 Dec 2004 11:35:57 +080
I want to display bean data on JSP which has vectors as one element.
I have advertisement with multiple headers (max 3) and each headers has
multiple details llines.
My Main Advertisement databean 'AdvertFormDataBean' consists of the date of
advertisement and arraylist for headers. I know the
Hi...
I've just migrated to 1.2.6 and noted two minor issues:
1. I have many "production" apps using LookupDispatchAction with logic in
the "unspecified" event that's important to simplify URLs in a few
cases...but this event isn't working in 1.2.6 anymore.
2. And I couldn't make the new errorSt
Hi,
I am trying to use the tag with the
tag. The documentation states that the
optionscollection tag retrieves ithe collection from the bean that is
specified using the name property.
My question is the following:
Do I have to put the collection property inside the form bean of the
form that co
51 matches
Mail list logo