My apologies if this is not specifically struts related, but wasn't too
sure.
Running Sun One with Struts 1.1
I was basically attempting to create a jsp that forwarded onto my global
error action in the advent of an exception not being caught.
Have the following:
--- error.jsp ---
<[EMAIL PROT
Richard,
see this bug-ticket:
http://issues.apache.org/bugzilla/show_bug.cgi?id=28668
Ted Husted had uploaded a nightly_build from March,29
cheers,
Matthias
> -Original Message-
> From: Richard Hightower [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 11, 2004 8:45 AM
> To: Struts Users
Hi All,
I was wondering if is it be possible to serialize a FormFile object within an
ActionForm (i.e. the FormFile object is being put on the Session)? If so, how would
one go about doing this?
Thanks much for your help!
Octavia
Congrats, booyah, on your find.
Someone asked me to post when I finally decided on a mouse. I got a
Microsoft Intellimouse V4.0A (wired:USB). I like it so far but I am having
trouble deciding whether to use 2 or 3 fingers on top.
3 seems to get a little cramped but with 2, I end up having the fin
At 5:09 PM -0700 5/10/04, Abhishek Khandelwal wrote:
I am getting this error when I try to do ant dist on the source code of
the struts framework.
Anyone has any idea what might the error be??? I have correctly set path
for servlet-api.jar and jsp-api.jar
---
I read the article but IMO the arguments he makes don't stand up - and I
believe two of the six points are wrong.
I've posted a reply to his blog going into detail.
Niall
On Tuesday, May 11, 2004 12:20 AM Eric Noel wrote..
>
> i asked something like this before and matthias provided a useful
> o
Joe,
Servlet 2.2 is tomcat 3.0
This is pretty old version.
Are you sure that it wont even build on tomcat 4.0 , Servlet 2.3??
Abhishek
On Mon, 2004-05-10 at 18:27, Joe Germuska wrote:
> At 5:09 PM -0700 5/10/04, Abhishek Khandelwal wrote:
> >I am getting this error when I try to do ant dist on
Platform websphere/struts 1.0 (updating to 1.1 out of question)
Question: Are there any draw backs of declaring multiple controller
servlets in one web app ??
I've heard that it is not recommended because they will share the
same servlet context which will cause problems ???
Whoever
At 6:43 PM -0700 5/10/04, Abhishek Khandelwal wrote:
Joe,
Servlet 2.2 is tomcat 3.0
This is pretty old version.
Are you sure that it wont even build on tomcat 4.0 , Servlet 2.3??
No, actually I'm sure that it *will* build on Servlet 2.3. But if
all you want is a jar, does it really matter? Stru
Thats what I was wondering,
I just need a jar, and I had servel-api.jar which happens to be Servlet
4.0
Where do I get Servelt 2.3?
Abhishek
On Mon, 2004-05-10 at 19:29, Joe Germuska wrote:
> At 6:43 PM -0700 5/10/04, Abhishek Khandelwal wrote:
> >Joe,
> >
> >Servlet 2.2 is tomcat 3.0
> >This is
The zip files from May 03 to May 10 are empty.
Has Struts-Faces been moved?
The empty zip files are at:
http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/
Rick Hightower
Developer
Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm
Struts/J2EE consulting --
http://www
HI James,
It would be great if you can share this information with all.
Kulkarni.
. -Original Message-
. From: James Mitchell [mailto:[EMAIL PROTECTED]
. Sent: Monday, May 10, 2004 5:15 PM
. To: Struts Users Mailing List
. Subject: Re: BaseDispacthAction?
.
.
. I'll send it to you d
At 7:32 PM -0700 5/10/04, Abhishek Khandelwal wrote:
Thats what I was wondering,
I just need a jar, and I had servel-api.jar which happens to be Servlet
4.0
Where do I get Servelt 2.3?
I would usually get it from http://www.ibiblio.org/maven/servletapi/jars/
Joe
--
Joe Germuska
[EMAIL
But after some hours it starts
giving problems but at the same time dummy site works fine
What sort of problems? The server catches fire? That sounds like
overheating. You probably want to use a bigger ventilation fan, and keep a
fire extinguisher handy. Make sure the transformer in the power su
Hi!
I want to implement https on my application. It seems that you have done
just that.
It would be nice if you could state stepwise how you achieved the same.
Your help is highly appreciated.
Thanks in advance,
*Richie*
\
bOOyah wrote:
Jesse Alexander (KXT) wrote:
use a certificate. validatio
ok , thanks !
Birendar Singh Waldiya
as as <[EMAIL PROTECTED]>
11-05-04 01:32 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
Struts Users Mailing List
<[EMAIL PROTECTED]>
cc
Subject
Re: Reports In Struts
Frame work
did u try jfree.org
have a
So you mean to say that there should not be any class variable used?
But even though there are more then one thread executing execute method then?
There is a possibility that for one thread 2 parameters will be filled and for
other thread remaing 3. So all parameters are having different values f
Ah yes, perhaps I should read up on the docs ;)
I was (incorrectly) remembering from a custom tag on a recent project.
Sorry for the confusion!
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
http://www.EdgeTechServices.net/
678.910.8017
AIM: jmitchtx
- Original
Very off-topic this one, but I'm wondering if anyone has any good
techniques for preventing a web app from working beyond a certain time?
I'm thinking of the situation where demo or Beta versions of the app
are distributed in the field and you want limit how long they will
continue to work.
O
Hi All,
We are facing one strange problem, our server hangs after every 2-3 days. The
reason behind it, is it tomcat creates unwanted java processes.
>From my side I haven't implemented anything special except adding
"synchronized (this) {" line in execute method so that I can avoid
concurrent
How to set tomcat so that it says
how many processes and memory occupied by the tomcat at perticular moment.
--
Jignesh Patel
Project Leader
Bang Software Technolgy Pvt. Ltd.
(E) [EMAIL PROTECTED]
(T) 091 484 3942132
B-4, Smar
Jignesh:
Trust me on this, you *don't* want to avoid concurrent requests: Struts takes care of
that bit for you. As long as the variables in the execute method of your action
classes are all method variables and you stay away from class variables, you will be
ok. Really. :)
As for why your to
Jingesh,
See my last post, you don't need to synchronize and it will just slow
down your app (NOTE: Do not make use of non-final class variables in
Actions and you will be fine)
Jignesh Patel wrote:
Hi All,
We are facing one strange problem, our server hangs after every 2-3 days. The
reason be
use a certificate. validation of valid-timerange is almost free.
If your demo requires that the computer it runs on must be connected to the
internet, you can use the certificate to connect to your own server. Then the
time-range check is done on YOUR server and you can be sure that no
clock-twea
Hello,
there is a form, which is included in all three templates. It sets the
sort-order for my results. The Problem is, when i change this order i
would like to be forwarded to the page where the form has been submitted.
You could pass the name of the forwarding as a hidden field into the
form. T
There are two concepts you have to understand: thread-safe and reentrant.
A method is reentrant, if many threads can enter the method as the same
time without conflicting. For that you only have to act on parameters
and local variables. Threads only share the data- and the code-segment
of an ap
Do not use class variables at all. A FINAL class variable may point to a
hashmap so the variable cannot point to another hashmap once initialized
but its contents can still be modified. So just use method level
variables.
-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Sent
Hallo,
I'm using the struts file upload with Struts Version 1.1.
If I try to upload big files there is a performance problem. For a file of
40Mb the upload needs about 20 minutes before the action is executed. I need
the file upload for storing big files > 1Gb in the database. The storing in
the
You need to store 1GB files in a database? Yea, so good luck with that ;)
On Monday 10 May 2004 08:07 am, Ralf Alt wrote:
> Hallo,
>
> I'm using the struts file upload with Struts Version 1.1.
>
> If I try to upload big files there is a performance problem. For a file of
> 40Mb the upload needs ab
If its an upload what speeds do you get using ftp as a comparison ?
Sure once its uploaded saving to the db may not be very long, slowest
part is always going to be the network.
On 10 May 2004, at 17:07, Ralf Alt wrote:
Hallo,
I'm using the struts file upload with Struts Version 1.1.
If I try
Ahh, good point. I was thinking of Strings or ints in my head, but yes you are
right; probably best to just not use them.
On Monday 10 May 2004 08:33 am, MARU, SOHIL (SBCSI) wrote:
> Do not use class variables at all. A FINAL class variable may point to a
> hashmap so the variable cannot point to
Yeah, FTP is the way to go here... anyone that would have to deal with 1GB
files would have to be intelligent enough to run an FTP client vs. needing
to develop a web interface for them.
-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 11:12 AM
To:
Hi,
When I click on any link in hotmail for eg:
http://www.ibm.com/developerworks/library/gr-deploy/?ca=dnt-518
it returns a link of :
http://64.4.10.250/cgi-bin/linkrd?_lang=EN&lah=ae631915d602a748b1166d582f832584&lat=1084205724&hm___action=http%3a%2f%2fwww%2eibm%2ecom%2fdeveloperworks%2flibrary
Anyone know whether
public void setValue(String value) {
this.value = value.intern();
}
sets the this.value to a pooled String? I am trying to avoid a separate
call to intern() after setting the value. Thanks.
Michael McGrady
LEGAL NOTICE
Hi all ,
Seen an example like this in the kick start struts book but when I try I
get an
"cannot create iterator for this collection"
In the action class, employee beans are added to an ArrayList which
added to the request object
ArrayListemployees = getEmployees();
request.setAtt
IIRC interning of Strings has been implied String behavior since the Java 1.2
VM.
For example:
String one = "ham";
String two = "ham";
if(one == two)
System.out.println("Same!");
will print 'Same'.
-Riyad
On Monday 10 May 2004 09:30 am, Michael McGrady wrote:
> Anyone know whether
>
>
I've tried to use the 'collection' arg in the iterate tag and never had it
work (with array, collection, or anything) and always have to use 'name'. I'm
not sure why, but yes it seems to work fine.
On Monday 10 May 2004 09:31 am, Jimmy Coyne wrote:
> Hi all ,
>
> Seen an example like this in the
Ralf,
What is the speed of your connection? What is the
speed of the client's connection? How fast is your
server? What is the load on the server? You need to
consider those questions before pinning the problem on
the Struts file upload.
Regards,
Richard
--- Ralf Alt <[EMAIL PROTECTED]> wrote:
>
I apologize if this is the wrong place to ask, but I am
having trouble solving this problem. I have written
a custom JSP tag for use in a struts 1.1 application
I am implementing. I have a domain object called
Series which has a method getCategoryIds that
returns a HashSet of Integers. A Series obj
Jacob,
I agree with you. I do not think this is a struts issue. Java is not a
good tool for large file uploading.
We run into the similar issue before. We built a web interface (Java app)
to let users upload files through our web sites. The function performance
decreased with the growth of fi
Hi,
I keep seeing people mention JSP EL in their posts. That's from JSP 2.0
spec. Question is: how many servers support that? Just looked up
Weblogic 8.1 and it doesn't support it. I know Tomcat 5.x supports it...
Are there a lot of people using JSP 2.0 out there?
Thanks.
Yaakov Chaikin
Softwar
There is a package called edtFTPj that allows you to perform FTP actions
using java classes. The location is at:
http://www.enterprisedt.com/downloads/ftp.html
It may or may not help you, but might be worth a shot.
Daniel
-Original Message-
From: Kathy Zhou [mailto:[EMAIL PROTECTED]
> I keep seeing people mention JSP EL in their posts. That's
> from JSP 2.0 spec. Question is: how many servers support
> that? Just looked up Weblogic 8.1 and it doesn't support it.
> I know Tomcat 5.x supports it...
>
> Are there a lot of people using JSP 2.0 out there?
I use a Weblogic cont
Hi,
It would appear the http redirect header is not set when struts does a
redirect as dictated by a forward element with redirect attribute true.
Can someone comment on this?
Thanks
Martin
Hi, Any example I can learn from regarding select statement from ibatis
which creates lists / paginated list and displaying using struts
logic:iterate ?
Iws
Hi,
I get an exception from tomcat 5.0.19 in the that the html-tag is not
balanced at the following code:
...the useframes- bean triggers when it is present to use frames at t
Anyone know whether
public void setValue(String value) {
this.value = value.intern();
}
sets the this.value to a pooled String? I am trying to avoid a separate
call to intern() after setting the value. Thanks.
Michael McGrady
LEGAL NOTICE
This electronic mail transmission and any accompan
Daniel,
Thanks for your info. I will try.
What I am currently doing is to use uploadBean. It provides a progressive
bar on the screen during file uploading, so that users can visualize the
uploading process. UploadBean could be download from
http://www.javazoom.net/jzservlets/uploadbean/uploadbea
Daniel,
Thanks for your info. I will try.
What I am currently doing is to use uploadBean. It provides a progressive
bar on the screen during file uploading, so that users can visualize the
uploading process. UploadBean could be download from
http://www.javazoom.net/jzservlets/uploadbean/upload
I can only speak for myself, and yes, I run ServletExec 5.0
which is compliant with Servlet 2.4 and JSP 2.0. specifications.
For more information on ServletExec:
http://www.newatlanta.com/products/servletexec/index.jsp
You can download a free development copy here.
http://www.newatlanta.com/c/pr
I am just wondering, how concurrent request will be handled by single Action
class. Because for many form objects(as there are thousands of clients) there
are only one action class.
--
Jignesh Patel
Project Leader
Bang Software T
Hello,
I think, but i hope that somebody could answer better, that the servlet
container will instantiate a new Servlet, and accompanying Action
classes, if this is needed. As far as i know, in J2EE, this is the
servlet container who is responsible for forking new threads for the
clients on-de
Based on the JDK1.3 JavaDocs this would seem to be correct.
However, it has always seemed to me to be bad style to try to force values
to be interned in this way as you're working around the JVM--perhaps as some
kind of theoried performance improvement?
Think twice before relying on a function
Yes, somebody did indeed answer better.. Please see Manfred Wolff's earlier response
in this thread. :)
> -Original Message-
> From: Ludovic Maitre [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 9:08 AM
> To: Struts Users Mailing List
> Subject: Re: concurrency in struts
>
>
> H
Steve,
Have you looked at the DispatchAction? There's a "usering a workflow
form" section in the Professional Jakarta Struts book talking about
this subject.
-Kevich
--- In [EMAIL PROTECTED], Steven Nakhla <[EMAIL PROTECTED]> wrote:
> Is there a way within Struts to reset all of the ActionForm
Hi,
We are facing crtical problem for our site,our site works fine on local
system, even it works fine on the server also. But after some hours it starts
giving problems but at the same time dummy site works fine. We are not able
to figur out any technical reason. For your infomation we are usi
heres a code i have written for submitting the value clicked from one jsp to another
but it always return the null value.Please help me out with this i have to submit the
project on Sunday don't have much time.reply ASAP!
thanks
<%
int Value=1;
String query="select * from euser ";
Ok, so in my continuing effort to learn Struts by writing a file manager
app, things are going very well. But, now I find myself at another
stumbling block...
Is there any easy way to implement a file download in Struts WHEN THE TARGET
FILE COULD BE ANYWHERE IN THE FILE SYSTEM? It doesn't see
Hi,
I have an add form and an edit form. I thought I configured both the same style but my
edit works well while my add form comes back empty when an error occurs and
findforward("error") forward it back to the add form. Of course I'd like to have
user's input displayed. Both editsaveAction an
The "waiting time" as you call it is the time taken to upload the file
from the client to the server.
Actions start to execute after the whole request is sent to the
server... And the uploaded file is part of this request.
Simone
-
Simone Chiaretta
www.piyosailing.com/S
An
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
Because you can't have "overlapping" elements like you have in your
example. It is not well-formed.
> -Original Message-
> From: Oliver Pfau [mailto:[EMAIL PROTECTED]
>
> Hi,
>
> I get an exception from tomcat 5.0.19 in the that the
> html-tag is not balanced at the following code:
>
Well, if there is an easier answer I'd love to hear it, but in the mean time
I figured out how to do it, and it actually wasn't as hard as I had thought
(partially because I did something smiilar some time back, so it was really
just hacking some previous code). Here's what I would up doing...
Hi,
I have an add form and an edit form. I thought I configured both the same style but my
edit works well while my add form comes back empty when an error occurs and
findforward("error") forward it back to the add form. Of course I'd like to have
user's input displayed. Both editSaveAction an
Kevich: make sure you don't have a "redirect=true" in your add configuration in
struts-config file. If that looks ok, post the relevant portions of the
struts-config.xml and someone could maybe spot the problem..
Regards,
Geeta
> -Original Message-
> From: Kevich Gan [mailto:[EMAIL PROT
Hi,
I am trying to build struts from the source code.
In build.properties, there is a property
struts-legacy.jar=contrib/struts-legacy/dist/struts-legacy.jar
There was no struts-legacy.jar along with distribution.
I thought, may be it generated automatically.
But when I run ant dist, it fails
Hi!
I'm a newbie to Struts, and I know this is probably a very basic
question, but I'm getting REALLY confused with all the books and
documentation I have read. So, I'm asking some guidance here... I don't
need all the details, but I need some help to start.
I'm trying to make a page that,
Thanks Sven, I am now doing it with DateValidator class in validator
package. It works.
Shrihas.
--- In [EMAIL PROTECTED], Sven Kiesewetter <[EMAIL PROTECTED]> wrote:
> I think, you have to implement your own validator. Let is inherent
from
> the original validator and overwrite the appropiate
I have been using the sercurityfilter by Max Cooper.
I wanted to know the best way to incorporate SSL into the picture.
What is the best way to ensure that the login page and submission
action is encrypted?
Nathan
-
To unsubs
Well, I myself have just started out with struts and tiles too, but I'm
going to take a crack at your question...
I don't really see why you have two page titles. You are setting a page
title for the menu area of the page and the support area of the page,
but you are still talking about only 1 pa
Check out the sweet, sweet display tag library:
http://displaytag.sourceforge.net/
Miguel Arroz <[EMAIL PROTECTED]>
05/10/2004 03:03 PM
Please respond to "Struts Users Mailing List"
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc:
Subject:Displayin
Configure your server to only accept requests in an SSL port.
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 2:49 PM
To: Struts Users Mailing List
Subject: LIL OT sercurityfilter question
I have been using the sercurityfilter by Max Cooper.
I
did u try jfree.org
have a look at jchart.org also
[EMAIL PROTECTED] wrote:
Hi,
I want to implement reporting in struts framework , the reports are like select and
display query, i dont have any idea how to implement then in this framwork specially ,
the action class for report , i have code
How much of a performance loss would this be?
On May 10, 2004, at 1:53 PM, Hookom, Jacob wrote:
Configure your server to only accept requests in an SSL port.
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 2:49 PM
To: Struts Users Mailing List
S
jfreechart *rocks*!! (http://www.jfree.org/jfreechart/)
> -Original Message-
> From: as as [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 4:02 PM
> To: Struts Users Mailing List
> Subject: Re: Reports In Struts Frame work
>
>
> did u try jfree.org
> have a look at jchart.org also
Hi All,
I was wondering if is it be possible to serialize a FormFile object within an
ActionForm (i.e. the FormFile object is being put on the Session)? If so, how would
one go about doing this?
Thanks much for your help!
Octavia
Hi there,
Is there any news on when the offical 1.2.0 struts will be released or has
it reached Alpha yet? Thanks.
-Betty
-Original Message-
From: nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 12:34 AM
To: Struts Users Mailing List
Subject: Re: [ANNOUNCE] St
we are using cewolf, a set of tags based on jfreechart. Very nice, you
just have to implement the models behind the tags and then create all
kind of charts you may need. AFor cewolf and jefreechart on Linux you
need an XServer or something like xvfb (XVirtualFrameBuffer), if no
XWindow install
Hi.
You could implement a FormFileWrapper, geting a FormFile in Constructor.
Then you may copy all fields except InputStream (which makes in fact no
sense, because it is definetly lost after e.g. restart of App) and let
the wrapper implement Serializable. The wrapper can now be stored into
you
Enough to take it into consideration. SSL (encryption) is expensive especially
on heavy traffic sites.
On Monday 10 May 2004 01:04 pm, Nathan Maves wrote:
> How much of a performance loss would this be?
>
> On May 10, 2004, at 1:53 PM, Hookom, Jacob wrote:
> > Configure your server to only accept
Thanks, Axel. So would the FormFileWrapper just be another class which
houses the Struts FormFile class? What fields should I be copying...I'm
confused by your point. Is there any sample code available?
Besides the method mentioned above, are there other alternatives to approach
the problem? T
If you ONLY need a few pages to be SSL, then you might want to look at the
http headers of the incoming request.
-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 4:14 PM
To: Struts Users Mailing List
Subject: Re: LIL OT sercurityfilter question
En
Geeta,
Thanks for the reply!
I got it working just now. It was the add.jsp. I did not have the scope="request" in
the form tag. I thought that was the default. Now it's working, but I am still vague
on why it didn't work in the first place.
- Kevich
Geeta Ramani <[EMAIL PROTECTED]> wrote:
Josh Cronemeyer wrote:
Well, I myself have just started out with struts and tiles too, but I'm
going to take a crack at your question...
I don't really see why you have two page titles. You are setting a page
title for the menu area of the page and the support area of the page,
but you are still
Hi Octavia,
you are right, "wrapper" doesn't really meet the thing, because i
wouldn't let the FormFileWrapper delegate to the methods of a
FormFile-Member but copy the byte [] etc. FormFile is an Interface and
no class, otherwise you could extend FormFile and make the the
InputStream transient
On 5/8/2004 2:03 AM, Zhang, Larry (L.) wrote:
When using DynaValidatorForm, you just put the fields in the struts configuration xml file, and you don't need a formbean to set all the fields manually, which in turn saves your developing time. I am asking in struts community, is there any reason/enc
On 5/8/2004 4:58 PM, Murali Ravipudi wrote:
What is the best way to define different actions for the same form with
struts?
I did something like this:
==
==
In jsp,
Add User
Edit User
Delete
I am getting this error when I try to do ant dist on the source code of
the struts framework.
Anyone has any idea what might the error be??? I have correctly set path
for servlet-api.jar and jsp-api.jar
-
jakarta-struts-1.1-
Hi,
I have a Problem with the a -tag () The first time the client push the link,
it works correctly and the ein.do action is startet, but the second
time( when the key has the same value) the ein.do action doesn't
start to work and the browser shows the old side . What can I do? I
want the ein.do
Set following in your jsp:
This will force explorer to reload the page each time. And don't set the "check the
page" setting to never.
> -Ursprüngliche Nachricht-
> Von: Claudia Woestheinrich [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 10. Mai 2004 10:25
> An: [EMAIL PROTECTED]
> B
udah ketemu caranya mas ?
mungkin ini bisa ngebantu (kalo aku gak salah nangkep masalahnya) gak pake
c:url ato html:link sih...tp kalo ini di klik parameter nya kebawa, dan
url-nya kebawa..
- Original Message -
From: "Budi Rostiarso" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday
> udah ketemu caranya mas ?
> mungkin ini bisa ngebantu (kalo aku gak salah nangkep masalahnya) gak pake
> c:url ato html:link sih...tp kalo ini di klik parameter nya kebawa, dan
> url-nya kebawa..
>
Qing wen, nin shuo de shi na guo yu yan?
Xuemin
--
I'll send it to you directly.
--
James Mitchell
- Original Message -
From: "Erez Efrati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Sunday, May 09, 2004 8:00 AM
Subject: RE: BaseDispacthAction?
> Hi James, could you please be more specific about
Hi, i have a Struts form with a submit and a cancel button.
Something strange occurred.
It is that when user click on html:cancel button, "execute"
method of Action is executed.
I could solve it by coding :
ActionForward forward=null;
if (this.isCancelled(request))
return forward;
It work
You should read up on the docs. This is by design. If cancel is clicked,
the page will still be submitted, but your form bean will NOT be populated.
You can then check for isCancelled() in your action.
This gives you 2 immediate advantages (and probably more, but these jump out
at me)
a) you ca
I believe this is incorrect. The form should still be populated, but the
"validation" is skipped.
Niall
- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, May 10, 2004 1:01 PM
Subject: Re: Why cancel throw Act
Hi :
I have a date field and it is not a required field. If
somebody enters the value then It has to be valid date though. How should I do
it? I have removed required flag in my validation.xml but it still says
required.
My validation.xml entry looks like
You are right. The form is populated, but the validation is skipped.
Your action has now to check Action#isCanceled. I think some of the
higher Action implementations do this.
Sven
Niall Pemberton wrote:
I believe this is incorrect. The form should still be populated, but the
"validation" is s
On Monday 10 May 2004 17:21, Jignesh Patel wrote:
I am just wondering, how concurrent request will be handled by single
Action class. Because for many form objects(as there are thousands of
browser running with jsp forms) and there is only one action class.
--
Jignesh Patel
Project Leader
I have not created custom validator classes, but maybe something in your
custom validator class (and/or its methods) is amiss. Perhaps compare your
class with the Struts source of the standard validator classes? Sounds
like you are creating a new ActionErrors object where it might not be
necess
1 - 100 of 108 matches
Mail list logo