Hello Martin and Marco,
Its working perfectly now. Thanks a lot.
Samuel
-Ursprungliche Nachricht-
Von: Martin Naskovski [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 1. Juli 2003 19:52
An: Opoku-Boadu, Samuel; Marco Maier
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: AW: Can I have a nbsp;
hi all,
im new to struts...
can anyone tell me how to set up the development environment for
Eclipse - Struts - Resin - MySQL
Thanks a lot...
Tscuss
:) Seenu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
You must be kidding !!!
Is this a quistion?
-Original Message-
From: Valliappan Ramanathan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 9:54 AM
To: Struts Users Mailing List
Subject: Eclipse - Struts - Resin - MySQL
hi all,
im new to struts...
can anyone tell me how to
:-)
- Original Message -
From: Amjad Shahrour [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 9:07 AM
Subject: RE: Eclipse - Struts - Resin - MySQL
You must be kidding !!!
Is this a quistion?
-Original Message-
From:
Have a look at :http://www.developer.com/java/ent/article.php/2107401
This might help u start with struts.
-Original Message-
From: Valliappan Ramanathan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 4:54 PM
To: Struts Users Mailing List
Subject: Eclipse - Struts - Resin -
Got it running . .. Thx
-Original Message-
From: Panjrath, Charu
Sent: Wednesday, July 02, 2003 2:08 PM
To: Struts Users Mailing List
Subject: Tiles Problem
Hi,
I am trying to create a simple welcome page using tiles. I picked up the code from
'Struts Kick Start' - Chapter 16
Using
Hi Peter!
Thx a lot.. That worked. But why do 2 books not tell me this? Why do
they omit this?
Thx, you saved me :D
Christian
-Ursprüngliche Nachricht-
Von: Peter Smith [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 1. Juli 2003 23:28
An: Struts Users Mailing List
Betreff: Re:
Hi.
I need to present user with list of some items (say, goods) as
textfields and correspondent submit buttons to easy update those values.
In PHP it looks something like that:
?
if (!is_array($items)) {
$items = array(1=aaa, 2=bbb, 3=ccc);
}
if (is_array($save)){
$key =
Dear Struts Users,
We are pleased to announce the release of Scioworks Camino 3 Professional
Edition, a visual tool for Struts application development.
This new edition supports visual modeling for Struts-Tiles, advanced
UML-WAE style Storyboard, Application Model Verifier, Document Generation
I'm pretty new to Struts usage so it might be i'm overlooking an obvious
solution to this. The thing I've been looking at Internationalization issues
concerned with Struts. The thought of being able to change the whole
language of a site simply by changing the locale of the user really appeals
to
Hello,
I used from another class (not Struts) include(request,response) for call Struts
action by path. But after this action, I can't to add something into response, because
response already committed by Struts action with return (null).
How can I resolved this problem?
Regards,
Viatcheslav
Drop the [1] index from your bean:define
Andrew van der Voort wrote:
I am writing a jsp page that displays an unknown number of rows, with each
row containing an unknown nuimber of columns.
So in my form I have defined a Collection (reportRows) that holds the rows.
Each element in reportRows is
Use an iterate taglib tag - there's the standard struts ones or the JSTL
ones. Or even the nested-beans tags. There are many ways to do this.
Check out the Resources section on the struts website for examples or
tutorials.
Adam
Eugen Bushuev wrote:
Hi.
I need to present user with list of some
Hi Adam,
Thanks for the reply.
In my step #2, I always save the dataset in a bean in the session or request.
I never save data in the form bean from an action. If the idea is to save
data in a form bean before showing the form to the user, than I'm probably
doing it all wrong.
Here is an
No I didn't type it manaually. My project doesn't use the commons
logging utility. I use JDK 1.4 Logging API. I did some further
investigation and I found that it was unable to load my servlet so it is
making it unavailable. I will attach my struts-config and web.xml
files. Maybe there is a clue
Hi Adam,
Thanks for your reply.. but I think perhaps the point may be missed...
probably by me, but here goes...
Suppose you have on your jsp a drop down menu... a list of options, perhaps
a list of colors. This list is generated from a database query.
What I do not want to do:
I do not want
Hi all,
I'm trying to display errors on a jsp to which my form returns if the
data submitted is invalid.
My form extends org.apache.struts.validator.ValidatorForm
some fields use the validator form validation, but for custom server
side validation I overwrite the
validate method as follows:
I saw this problem was already posted earlier, but no solution was found.
I've got the same problem but I might be able to supply you with a bit more
information. This is my first ever attempt at using Struts so I can't say if
this problem occurs in 1.0.x since I started with 1.1 right off the
All,
The following is my experience about the subject over the
years and also includes what I learned so far.
What is the best practice for the security checking with
the MVC design pattern? Over the years, I learned that
the Struts developers have been using the following ideas
for the security
Hi Brian,
I had a problem like that when I ommited the following values from my
ApplicationResources file:
errors.header = ul
errors.footer = /ul
errors.prefix = li
errors.suffix =
Once I added them it worked fine.
Regards
IV
from:Brian McSweeney [EMAIL PROTECTED]
date:
Thanks...
Tschuss
:) Seenu
- Original Message -
From: Panjrath, Charu [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 12:44 PM
Subject: RE: Eclipse - Struts - Resin - MySQL
Have a look at
snip
No I didn't type it manaually
/snip
So did you check your commons-logging.properties and make sure your spelling
it correctly...
its: 'apache' not 'apche'!
-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 2 July 2003 17:27
To: Struts
Its recomended that you also pass through an Action before going to a JSP -
this being a setup action as opposed to the one you hit after submitting
from that JSP (though they are often different executes in the same dispatch
action).
Load your stuff into beans there and save it as a request
Thank you so much that was my problem; a stupid typo.
Andrew Hill wrote:
snip>
No I didn't type it manaually
/snip>
So did you check your commons-logging.properties and make
sure your spelling
it correctly...
its: 'apache' not 'apche'!
-Original Message-
From: Natalie D Rassmann
Is there a Sequence diagram of Struts 1.1 around
** Message from InterScan E-Mail VirusWall NT **
** No virus found in attached file noname.htm
No Virus detected in the attached file(s).
* End of message ***
This e-mail and any files
Hi IV,
Thanks for the help. I gave that a go,
Putting the error.stuff into my resource bundle.
I am now getting back the bullet points for each
Error but still cannot see the messages at all!
This seems nuts to me, if I look at the ActionError
constructor, it takes a string as it's parameter
Hi Linus,
As a single textfile is used, when there are several thousand entries it
will become difficult to manage.
this link has details on Resource Bundles inheritance
http://developer.java.sun.com/developer/technicalArticles/Intl/ResourceBundles/
So far I find the Struts framework pretty
Brian,
You want to have the message key in your ActionError and struts will resolve it from
the ApplicationResources file for you. It is not something you manually need to do.
However last time I tried to return a value which was not in the ApplicationResources
file I got an exception thrown
So if I have a requirement to use the Mail API with a web app then I
should perhaps consider
downloading EJBOSS and stateless session beans to compliment tomcat
the struts framework , etc.
[EMAIL PROTECTED] wrote:
On Wed, 2 Jul 2003, objectworlds wrote:
What is incomplete in tomcat ?
Hi,
I have doubt regarding some implementation in Form.
I have a list of ValueObjects, some are editable and some are not editable.
We can implement this, putting this list to a Form or putting this list into
a Session.
Which implementation is best in above two options ?
Thanks Regards,
Hi,
I have a question regarding ActionMapping and Forwards.
I have a url which is configured in struts-config.xml as forward.
From my Action class I can simply forward to this url, but I need to pass a
parameter to this URL.
Is it possible ?
If yes how can we do this?
Thanks in Advance,
yes.
you can do it in the config file if it is just a static parameter or in the
Action Class.
1. forward name=test path=test.jsp?thistest=mytest
2.
ActionForward forward = mapping.findForward(test);
StingBuffer path = new StringBuffer(forward.getPath();
path.append(?thistest=mytest);
return
IV,
You want to have the message key in your ActionError and struts will
resolve it from the ApplicationResources file for you. It is not
something you manually need to do.
That was the problem! Thanks so much! I didn't have the message in my
Resource bundle. Once I put it in, everything worked
OK, should I understand that all your forms are initially blank, without
any text in the boxes? That would explain why I was talking confusingly.
Anyway, you are doing fine NOT storing the select-box-data in the form.
What you are doing seems complicated, although I can't really say. It
Jing Zhou wrote:
All,
The following is my experience about the subject over the
years and also includes what I learned so far.
What is the best practice for the security checking with
the MVC design pattern? Over the years, I learned that
the Struts developers have been using the following ideas
Brian,
Now that the messages are working, one other thing you might want to check is
whether your validator-based validation errors are really being captured. The
first few lines of your validate method look like they just ignore the result of
calling super.validate:
public ActionErrors
Reasons why people should love this list:
1) People solve bugs for you that you didn't even know you had!
Thanks SO much Kris,
I turned off javascript, and yes, I was ignoring the other validation
errors. Your code made it work perfectly.
I really appreciate your help,
Brian
-Original
Seeing as I'm doing so well today, getting my problems solved,
I thought I'd give this one a go.
I am validating some fields automatically using a ValidatorForm.
However, some fields I validate myself by overwriting the validate
method
as follows:
public ActionErrors validate(
I'm pretty new to Struts usage so it might be i'm overlooking
an obvious solution to this. The thing I've been looking at
Internationalization issues concerned with Struts. The thought
of being able to change the whole language of a site simply by
changing the locale of the user really
;-) Glad it helped. Nothing like having billions and billions of other
developers eyeballing your code...
Quoting Brian McSweeney [EMAIL PROTECTED]:
Reasons why people should love this list:
1) People solve bugs for you that you didn't even know you had!
Thanks SO much Kris,
I turned off
Absolutely! Large open-source projects...unbeatable!!
Viva la revolucion!
-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 14:23
To: Struts Users Mailing List
Subject: RE: html:errors/ problems
;-) Glad it helped. Nothing like having billions and
There is a DB driven resource bundle on struts.sf.net.
Sebastien Flacher wrote:
Hi Linus,
As a single textfile is used, when there are several thousand entries it
will become difficult to manage.
this link has details on Resource Bundles inheritance
Did you include the taglib definition on JSP header :
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
Look at generated HTML to see if html:rewrite tag has been fully translated by JSP
compiler.
Nico.
Just signed up to the mailing list a few minutes ago so as you would
probably
I think you need the classes12.jar file from Oracle for the thin client driver. This
needs to be in the classpath for your server and for your application.
Try looking for the download here:
http://otn.oracle.com/sample_code/tech/java/oc4j/htdocs/jcookbook/index.htm
Kim
-Original
i deployed struts application on iWS 6.0 (which has SP1). I deployed it usind
wdeploy. It deployed under
C:\iPlanet\Servers\docs . Now issue is; when i start up iPlanet web server i
get following error message in error log.
01/Jul/2003:15:01:02] info
Yes, the taglib def for html and other tags are in the header and all tags
(html, logic, etc.) work fine everywhere else.
Here's the generated html:
SCRIPT language='javascript'
SRC='/js/overlib_mini.js'
/SCRIPT
SCRIPT language='javascript'
SRC='/js/calendar.js'
/SCRIPT
Also, I noticed
Have a look to :
http://www.mycgiserver.com/~eboudrant/images/requestSequence.gif
http://www.mycgiserver.com/~eboudrant/#uml11
HTH,
José.
-Original Message-
From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 12:11 PM
To: Struts Users Mailing List
Hello all,
I've upgraded to Struts 1.1 and everything compiles, deploys and runs fine. (I'm using
SilverStream4.0) It's when I do a second deploy that I get the following error
message. I then need to restart the server in order to redeploy.
Yes, I have commons-collections.jar in the
You might try a the HTML4/XHTML standard way of writing this:
script type=text/javascript src=/js/overlib_mini.js/script
Notice the all lowercase attributes and the /script is on the same line.
And ype, this is backwards compatible with all browsers to my knowledge.
Matt
-Original
About the syntax error, just change
SCRIPT language='javascript'
SRC='html:rewrite page=/js/overlib_mini.js/'
...
to
SCRIPT language='javascript'
SRC='html:rewrite page=/js/overlib_mini.js/'
...
(no more after language attribute)
About your context, I don't know why it would'nt work.
OK, I think that I've fixed it now.
In tip #9, there is a at the end of the first line leaving what appears
to be an extra at the end of the 2nd line. I originally noticed this
but being fairly new to Struts, I just assumed that it was there for a
reason. However, after getting a syntax error
I am getting this error when I try access my action:
java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource
But I perceived that this class don't exist inside the struts.jar. Where is
this class ? What Can I do to resolve this problem ?
Thanks
Did you upgrade the commons-collections.jar in your appserver directory
to the one from the struts 1.1 install?
Kim Bilida wrote:
Hello all,
I've upgraded to Struts 1.1 and everything compiles, deploys and runs fine. (I'm using SilverStream4.0) It's when I do a second deploy that I get the
Yes indeed. That was the first thing I verified when I got the error.
Plus, the commons-collections has not been modified since Oct 2002!
Kim
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 10:51 AM
To: Struts Users Mailing List
Subject: Re:
Hi !
Are .jsp files physically required on a production server ?
I would prevent any change by my customer and think that reloading=false is not safe
enougth.
I think that .class should be enougth but delete a .jsp file generates an exception
(even with reloading=false in web.xml)..
I want
Assuming that you are using the Struts 1.1 relaese, you need to make sure the
contents of struts-legacy.jar are in your classpath.
db
-Original Message-
From: Ricardo de Souza Moura [mailto:[EMAIL PROTECTED]
Sent: 02 July 2003 15:50
To: [EMAIL PROTECTED]
Subject:
Hi !
Are .jsp files physically required on a production server ?
If you are wanting to use JSPs, then yes.
I would prevent any change by my customer and think that
reloading=false is not safe enougth.
Prevent any changes by the customer to what? The JSPs? The customer can't change the
Here's the message SilverStream is giving me when the deployment fails:
AgoDeploymentException: Upload of deployment data to the server failed.
Archive: CM_kim(CM_kim.war)
com.sssw.srvtools.deploy.AgoDeploymentException: Upload of deployment data to the
server failed.
Two other things that come up on the list a lot are
filters and struts-el.
These require servlet 2.3 and jsp 1.2.
sandeep
--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
On Tue, 1 Jul 2003, objectworlds wrote:
Date: Tue, 01 Jul 2003 21:51:01 +0100
From: objectworlds [EMAIL PROTECTED]
Hi,
1)
I am displaying a list of ValueObjects(which are editable) in a page by setting a
ArrayList to form..
When I submit the form the values are updating into form arraylist variable.
What is the logic behind in updation of list in a from when I submit the form.
2) I am displaying a list
I set up the Validator to do automatic validation with normal action
forms and it worked fine.
Now I'm trying to incorporate dynaforms but I'm not having any luck. I'm
not getting server-side validation carried out.
I see from delving into the source code for struts and commons-validator
did you actually look inside your commons-collections.jar to see that
you have that class in there, and that the jar is definitely on the
class path for silverstream, not just in the WEB-INF/lib where I believe
the server processes can't see it? It may well at the point of unloading
the war
I have a form with a list that is made up of UserMenuItem objects. I want
to allow the user to set various properties of the individual UserMenuItem
objects. The action the form is submitted to would take the list with the
user's input and process it.
To accomplish this, I'm trying to do
i deployed struts application on iWS 6.0 (which has SP1). I deployed it usind
wdeploy. It deployed under
C:\iPlanet\Servers\docs . Now issue is; when i start up iPlanet web server i
get following error message in error log.
01/Jul/2003:15:01:02] info
Hi all,
I know this has been discussed previously, but Id like some user
feedback.
Im going to start writing test cases soon, and Id like to know
peoples experience
using the various frameworks available.
First off, my environment: Im using Struts talking to ejbs (session
façade to
Struts w/ mysql will drop the connection after a while. There's on option
in the data sources config that will make it auto-reconnect when the
connection drops. I had to specify this flag in my app or the connection
would drop after a couple hours and never come back.
data-source
Brian,
I'm currently trying JMeter (also a Jakarta project) and am finding it very useful. It
has the advantage that it is possible to record web sessions and play them back in
testing mode. This eliminates the need for coding of tests.
The tools that extend Junit typically require coding, so
I'm trying to set up struts validation (using the validate() function in the
actionForm) and I'm getting a few problems.
First, as soon as I open the form it shows the validation errors. It doesn't
wait until I fill out the form. Is there a way to prevent this?
Second if I fill out the form
Thanks for your previous answers !
but I must be more precise :
My customer is not a web navigator user but a corporate system administrator in a
factory across the world that must deploy a webapp that my development team gives to
him.
I'll give him a archive file (without .jsp files) and he
Brian McSweeney wrote:
Hi all,
I know this has been discussed previously, but Id like some user
feedback.
Im going to start writing test cases soon, and Id like to know
peoples experience
using the various frameworks available.
First off, my environment: Im using Struts talking to ejbs
Hmm., just realised the name of the form here is actually the action
mapping path. Should I be naming the forms in validation.xml after the
action mappings then rather than the form-beans from struts-config?
Adam Hardy wrote:
I set up the Validator to do automatic validation with normal action
Nathan Ewing wrote:
I'm trying to set up struts validation (using the validate() function in the
actionForm) and I'm getting a few problems.
First, as soon as I open the form it shows the validation errors. It doesn't
wait until I fill out the form. Is there a way to prevent this?
yes sure, you
Dont know if you saw my previous post but your answer is to distribute only
class files. Hence you need to precompile the jsps. By doing this they will
automatically become servlets. ( this does not change how you build your
app ) This way you client cant alter the code even if they wanted to.
I'd like to have at least 2 URL pattern matches in web.xml, say *.do and
/pdf/* then in struts match them up. I got it to work like that, but what
happens is it takes any of the *.do actions and writes the url as
/mywebapp/pdf/whatever.do even though the request was for
/mywebapp/action.do.
I did as you suggested and it doesn't show the validation errors the first time
(although I'm a bit disappointed I have to do 2 separate actions just for the
same thing.
Now if I hit submit I get the nullpointer exception regardless of whether I
fill in the form correctly or not.
Nathan
---
Hello David,
put *.do as the *last* mapping in your web.xml.
***
DE I'd like to have at least 2 URL pattern matches in web.xml, say *.do and
DE /pdf/* then in struts match them up. I got it to work like that, but what
DE happens is
Nathan wrote:
I'm trying to set up struts validation (using the validate() function in
the
actionForm) and I'm getting a few problems.
First, as soon as I open the form it shows the validation errors.
It doesn't wait until I fill out the form. Is there a way to prevent this?
Search the
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 6:16 AM
Subject: Re: MVC, Security, and Redirect
Jing Zhou wrote:
All,
The following is my experience about the subject over the
years and
Actually version 1.1.b3 Maybe I should try the final release.
Nathan
--- Wendy Smoak [EMAIL PROTECTED] wrote:
Nathan wrote:
I'm trying to set up struts validation (using the validate() function in
the
actionForm) and I'm getting a few problems.
First, as soon as I open the form it
This won't work. You can precompile the JSPs and distribute the .class files, but when
the container tries to read the JSP it won't find it and will give a 404 to the user.
Try it.
Basically the only way to do what Arnaud wants is to go with a pure servlet solution:
for every JSP, create a
James / Arnaud,
We do this right now in our production environment and it works great.
When you precompile the jsps they do get converted into servlets.
a xml file is also created that contains mapping from the jsp url to the
servlet. That way when you request
the jsp file it will map it to the
hi i want to generate parameter according to a iterated bean property
Here is my source code and i wan to add a parameter ( shares property
: name) to the link
thanks for any help
and sorry for my poor english :p
%
java.util.HashMap hashmap = new java.util.HashMap();
hashmap.put(method,
I will be out of the office starting July 2, 2003 and will not return until
July 7, 2003.
I will respond to your message when I return. If earlier action is
necessary, please contact my manager, Ken Miller.
-
To
Upgraded, didn't help.
Nathan
--- Nathan Ewing [EMAIL PROTECTED] wrote:
Actually version 1.1.b3 Maybe I should try the final release.
Nathan
--- Wendy Smoak [EMAIL PROTECTED] wrote:
Nathan wrote:
I'm trying to set up struts validation (using the validate() function in
Hello,
I was reading the SSL Extension for Struts HTTP/HTTPS switching document,
it explains about using SecureRequestProcessor, and initialization handled
through Plugin. Also says Please give it a try and let us know what you
think. Download the distribution. Look at the example apps,
Hi! All
Basically I have made the ibatis and struts examples working, and I can
build some simple apps with both. However, I do not really know how to
link both of them together. The current solution (I think is rather
stupid) is to get an instance of the sqlMap by calling the sqlMap =
Arnaud HERITIER [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I believe that it is the 2.0.7 release.
Actually, ORO 2.0.6 is bundled with Struts 1.1.
--
Martin Cooper
Arnaud.
-Message d'origine-
De : Mark McBride [mailto:[EMAIL PROTECTED]
Envoyé : lundi 30 juin
I was putting the MySQL connection info directly into my service class.
So how would I go about grabbing that data-source information? And
I'm guessing it goes somewhere in my struts-config.xml file?
~ Matthew
On Wed, 2003-07-02 at 12:06, Chip Paul wrote:
Struts w/ mysql will drop the
We've started using it here at work, I recompiled it with the struts 1.1
libs and it seems to work pretty well.. its not fully implemented but it is
capable of redirecting you in and out of an HTTPS session. I have heard
there is a bug maintaining a session though when you switch from https back
Cool! So what generates your xml data? XDoclet? If so, where do you put your XDoclet
information?
-= J
-Original Message-
From: Jamie M. Guillemette
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 11:55 AM
To: Struts Users Mailing List
Subject: Re: Are .jsp files
objectworlds [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
So if I have a requirement to use the Mail API with a web app then I
should perhaps consider
downloading EJBOSS and stateless session beans to compliment tomcat
the struts framework , etc.
If, by the Mail API, you
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bPproj/src/war/com/baseBeans/scaFfoldingXpress/base/util/DAOIBaseHelper.java
Andy Cheng wrote:
Hi! All
Basically I have made the ibatis and struts examples working, and I can
build some simple apps with both. However, I do not really
Well I've been setting up struts and for some reason struts is always
rewriting my urls with the session id in it, even though I know for sure
that cookies are enabled.. I know this is pretty vague but does anyone know
what would cause this?
thanks
-David
Im currently using Tomcat as my server. I use the jspc command that comes
with tomcat. If your using another server it probably has an equivilent
command.
If not write back and ill give details on how to run it without tomcat.
as for the xml... it gets generated by the jspc command it self. The
Just curious how others have gone about protecting the resouces within their
webapp.. in our personal setup we would like to control access to every
resource if possible, we have our own custom login page that sets session
variables, and pulls the data from the database.
We can authenticate
If you're using DynaValidatorActionForm, the name attribute of the form element
in validation.xml should be the same as the path attribute of the action element
in struts-config.xml.
Quoting Adam Hardy [EMAIL PROTECTED]:
Hmm., just realised the name of the form here is actually the action
Well I figured out why I was getting a validation error. I was returning a
null error if there were no errors.
Unfortunately now I find my real problem.
My form shows correctly (more or less), but if I hit submit instead of just
popping back up with validation errors it goes to the Action class
Omg I figured it out :)
In my validation, to see if someone had filled in a required field I was
checking to see if the field was null. Because of this whenever the form
displayed the bean would be created with null fields and errors would display.
Then when I hit submit it would make the blank
How about using container managed security with tomcat's realms? It works
great for me.
Here's an example app if you're interested: http://tinyurl.com/fuvq
HTH,
Matt
-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 11:27 AM
To: Struts
JSTL is your friend:
jsp:useBean id=hashmap class=java.util.HashMap/
c:set target=${hashmap} property=method value=supprimeShare/
c:forEach var=shares items=${sharesDocFile}
c:set var=name value=${shares.name}/
c:set var=refFileSyst value=${shares.refFileSyst}/
c:set target=${hashmap}
1 - 100 of 150 matches
Mail list logo