Re: LookupDispatchAction and getParameter

2003-05-29 Thread Gregory F. March

On May 27, 2003, "Gregory F. March" <[EMAIL PROTECTED]>  wrote:

 |I have a form with multiple submit buttons.  I'm trying to set up a
 |LookupDispatchAction.  It seems that
 |
 |request.getParameter(mapping.getParameter())
 |
 |is always returning null so I can't get to my actions.


Arg.  I'm really sorry - I had a typo in the struts-config.xml file
that was causing my grief.

For anyone interested, I had the following:

 
parameter="action"
 

Note the extra > after the foo.  The reason is that I copied that
action from another action that had some forwards in it.

Nothing like spending 12 hours chasing down a ">". :-)

Thanks anyway,

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] RE: [ANN] Barracuda 1.2.0 Released!

2003-05-29 Thread Mark Galbreath
Actually, this one was 2001 Mad Fish shiraz (US$15) from south-western
Australia, but one the whole, Aussie wines are very good.  I'll keep an eye
out for the Kurtz, though!

My favorite wines are the cabernets from the California Russian Valley, but
I can't find any around Baltimore, so the Aussie wines are a suitable
substitute.

And no, I will not drink a French or German wine (now), though I miss a good
St. Emelion or Rhine.

-Original Message-
From: Josh Rayls [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 8:07 AM
To: 'Struts Users Mailing List'
Subject: [OT] RE: [ANN] Barracuda 1.2.0 Released!


I don't suppose it was Kurtz Shiraz from the Barossa Valley, was it?
(Although McCrea is pretty good as well!) That is most certainly one of my
favorite Aussie wines.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:38 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [ANN] Barracuda 1.2.0 Released!


I thought you were pulling a gig in London - you are in Sydney?  whatever,
I've noticed over the past year you and me seem to be to only ones working
late nights and weekends (those slackers!).  Anyway, I just ran into a bug I
cannot solve after so many hours and a bottle of good Aussie wine (a quite
tasty Shiraz).  So good-night (morning?) to all, and to all, a day without
bugs.

I am close to comatoseall I see is 



l8r d00ds
mark

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 1:19 AM
To: Struts
Subject: RE: [ANN] Barracuda 1.2.0 Released!


Hehe, the only way you would ever catch me awake at such an ungodly hour is
if I hadnt gone home the night before.

Its 1pm here mate, and for once Ive had a decent rest having had to take a
sicky yesterday and having taken the weekend off too. (Sure beats the
previous weekend where I did 26 hours straight at the office)

Reckon I might even be sneaking off home early (8pm) today. :-)

So... what times it over there? Guess you would have done what? 18 , 19
hours straight so far?

;-)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 May 2003 13:05
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [ANN] Barracuda 1.2.0 Released!


What the hell are you doing at keyboard at what must be 0600 London time?

:-)

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:02 AM
To: Struts Users Mailing List
Subject: RE: [ANN] Barracuda 1.2.0 Released!


+1

-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 May 2003 12:05
To: 'Struts Users Mailing List'
Subject: RE: [ANN] Barracuda 1.2.0 Released!


I think you are being too strict... give him a break.

His title is clear, just delete it if you are not interested...

Regards,
Daniel


-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 28 May, 2003 1:09 AM
To: [EMAIL PROTECTED]
Subject: Re: [ANN] Barracuda 1.2.0 Released!


>I normally wouldn't post this type of info to the Struts list, but
>since a number of you have asked to be kept abreast of Barracuda 
>develpments, I figured I would let you know that the long awaited 
>stable release of Barracuda 1.2.0 is finally here!

IMO, people interested in Barracuda developments should subscribe to
whatever mailing list you publish.  This really has nothing to do with
Struts and, at best, should be posted as [OT].

Thanks,
David


>
>You can download it at:
>http://barracudamvc.org/downloads/
>
>A lot has changed since the 1.1.1 release.  Barracuda moved to
>http://www.barracudamvc.org , the source has been refactored, there now 
>exist two contrib packages with reusable code and example webapps to 
>show off their functionality, numerous bugs have been fixed, quite a 
>few new features have been added and many features improved, and 
>deployment of Barracuda and BarracudaDiscRack is now incredibly 
>simplified.
>
>See the most important changes here...
>http://barracudamvc.org/Barracuda/docs/changes.html#1_2_0_Release_Notes
>and here... http://barracudamvc.org/BarracudaDiscRack/docs/changes.html
>
>For a more detailed explanation of the changes, see
>http://barracudamvc.org/Barracuda/javadocs/org/enhydra/barracuda/A_Chan
>ges_
H
>istory.html
>
>For information on building and deploying Barracuda, see...
>http://barracudamvc.org/Barracuda/docs/build_deploy.html
>
>And, of course, don't forget to try out the new contrib apps.  See...
>http://barracudamvc.org/Barracuda/docs/contrib_package.html
>
>All this information, and more, is available at:
>http://barracudamvc.org/Barracuda/index.html
>and here... http://barracudamvc.org/BarracudaDiscRack/docs/index.html
>
>
>Thanks to everyone on the BarraucdaMVC team for all your hard work and
>thanks to all the users who continue to utilize this great project! Oh, 
>and special thanks to those who donated hosti

Conditional Form Action

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Hey everyone,

I'm trying to use the same JSP to update two similar but different types of
data.
The form is the same for both, but I want to use a different action mapping
for each.

I tried this:








Some Form stuff here...



This doesn't work, which isn't a huge surprise.  What the proper "struts
way" of doing this?

Thanx.

- Keith

www.buffalo.edu/~kkamholz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: LookupDispatchAction and getParameter

2003-05-29 Thread Eric Miles
--- In [EMAIL PROTECTED], "Gregory F. March" <[EMAIL PROTECTED]> wrote:
> 
> On May 28, 2003, "Eric Miles" <[EMAIL PROTECTED]>  wrote:
> 
>  |or try getParameter("action") in your execute method.  The URL 
for the
>  |request looks like "http://...?action=doSave"; internally.
> 
> Hmm... I printed out request.getParameter("action"), and the value 
is
> always the label of the submit button, i.e. "Save", 
not "create.save"
> (the application resource file looks like "create.save=Save").
> 

This is the way it's supposed to work, then the "Save" is used as the 
key in looking up the method to call from getKeyMethodMap(), which 
resolves to "doSave", which is passed the mapping, form, request and 
response objects.

I would comment out the execute method and put some debug statements 
in doSave() and see if I get to that point.  You should.  I'm new at 
this also, so bear with me!

Also, plug in the following lines to handle the default (you may need 
only 1 of these lines) in your getKeyMethodMap():

  map.put(null, "doSave");
  map.put("", "doSave");


> However, I also printed out the value of mapping.getParameter() and 
it
> is always null.
> 
> Again, any help is greatly appreciated.
> 
> Thanks...
> 
> /greg
> 
> 
> --
> Gregory F. March-=-http://www.gfm.net:81/~march-=-
AIM:GfmNet
> 
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Issues with Struts and IE 6 SP 1 upgrades?

2003-05-29 Thread Xu Cheng
The first thing I would do is to find out where the problem lies - at server 
end or client end. There could be many possible causes.

Personally I have been using IE 6.1 SP1 with Struts (Tomcat) for some time and 
I did not encounter problems. But I am using it in an intranet.

On Tuesday 27 May 2003 23:46, Viggio, Alex wrote:
> Yes, our app is returning pure HTML (no client-side Javascript). We're
> setting up a time to troubleshoot the logs.
>
> - Alex
>
> -Original Message-
> From: Xu Cheng [mailto:[EMAIL PROTECTED]
> Sent: Saturday, May 24, 2003 8:43 AM
> To: Struts Users Mailing List
> Subject: Re: Issues with Struts and IE 6 SP 1 upgrades?
>
>
> Did you see anything unusual in your server side log file? What is your
> application returning to clients? Pure HTML pages?
>
> On Saturday 24 May 2003 04:58, Viggio, Alex wrote:
> > We've had a client installing a new Windows 2000 image on various
>
> desktops,
>
> > and those PCs can no longer access our Struts-based extranet web app.
> > They are offsite and a different company, so I haven't been able to fully
> > diagnose their setup via the established communication channels. The
> > following are new components in this image:
> >
> > - Microsoft Windows 2000 Service Pack 3
> > - Microsoft Office Pro 2000 SR1a Service Pack 3
> > - Microsoft Internet Explorer v6.0 Service Pack 1
> > - Symantec Norton AntiVirus v7.61 build 42a
> > - Microsoft NetMeeting v3.01
> > - Microsoft .NET Framework 1.0.3705 (New)
> >
> > I thought it was a problem with their IE setup, but they downloaded and
> > installed Netscape and claim to be seeing the same problem. They can
> > login (which exercises JSPs and Struts Action), but then they experience
> > browser hangs at random places inside of the web app.
> >
> > Any suggestions on debugging this since I can't get onsite (i.e. new
> > proxy settings, etc.)? I've never had to troubleshoot this type of
> > problem
>
> beyond
>
> > checking if the web user had their browser cookies enabled (they claim
>
> this
>
> > is correct) and our IT/network folks haven't come up with anything yet.
>
> I'm
>
> > betting its a proxy issue.
> >
> > A google of their new IE version number (v6.0.2800.1106c0) did pull up a
> > Cisco bug (#CSCea02310) at
>
> http://www.cisco.com/en/US/products/sw/cscowork/ps150/prod_release_note0918
>
> >6 a008014b21a.html with dynamic web app functionality (a calendar).
> >
> > - Alex
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Weirdness...

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Hey everyone,

I have a  tag commented out in a JSP.  However, when I go
to that page, it says:
[ServletException in:Edit.jsp] No such tag equal in the tag library imported
with prefix logic' 

Shouldn't the tag be ignored?  I also don't know why it can't find the equal
tag, but errors from a commented section are even weirder.

Does anyone have any clue what's going on?

- Keith

www.buffalo.edu/~kkamholz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts In A Distributed\Clustered Environment.

2003-05-29 Thread Arron Bates
Struts is the least of your teams performance concerns. It would do you good
service to simply take Struts as heling you organise servlets & jsp's and go
chasing bigger problems like persistence and selection of architecture & app
server. Struts doesn't change the Servlet model. It doesn't change the
approach to servlet threading. Servlets are singletons, so are Actions, for
all the same good reasons. Struts just helps you keep a tidy house on the
interface tier. Trust us when we say that all the stuff to worry about happens
out the back.

These bigger picture things are better asked to forums like...

http://www.theserverside.com

...you'll even get opinions of those using Struts to front large applications.
You can even get opinions down to the design pattern level. TheServerSide.com
itself runs on a cluster of app servers from four different vendors. I'm
pretty sure TheServerSide is exactly what you're looking for.


Arron.


> Hi,
> 
> Has anybody successfully managed to use Struts in a distributed\clustered
> environment? If so with what setup? And did you have any Struts related
> difficulties?
> 
> Thanks,
> 
> Tin
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Weirdness...

2003-05-29 Thread Ian Hunter
What kind of comment are you using,  or <%-- JSP --%>

As far as why logic:equal isn't being found, post your JSP...

- Original Message -
From: "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 10:13 AM
Subject: Weirdness...


> Hey everyone,
>
> I have a  tag commented out in a JSP.  However, when I go
> to that page, it says:
> [ServletException in:Edit.jsp] No such tag equal in the tag library
imported
> with prefix logic'
>
> Shouldn't the tag be ignored?  I also don't know why it can't find the
equal
> tag, but errors from a commented section are even weirder.
>
> Does anyone have any clue what's going on?
>
> - Keith
>
> www.buffalo.edu/~kkamholz
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Weirdness...

2003-05-29 Thread Kandi Potter
I've been warned by another developer to not just comment the tags but to totally 
change them by removing spaces when I want to comment one out.   

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:13 AM
To: '[EMAIL PROTECTED]'
Subject: Weirdness...


Hey everyone,

I have a  tag commented out in a JSP.  However, when I go
to that page, it says:
[ServletException in:Edit.jsp] No such tag equal in the tag library imported
with prefix logic' 

Shouldn't the tag be ignored?  I also don't know why it can't find the equal
tag, but errors from a commented section are even weirder.

Does anyone have any clue what's going on?

- Keith

www.buffalo.edu/~kkamholz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



iterate tag question

2003-05-29 Thread Per Lovdinger

Hi there,
I'm Struts newie and have a question about the iterate
tag.
When I'm creating an ArrayList with 2 objects. For
some reason only one show up.
What am I doing wrong ?
I've attached the jsp page.
thanks in advance


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com<%@ page contentType="text/html;charset=UTF-8" language="java" import=diffent 
classes..." %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
   
   <% 
   ArrayList users = new ArrayList();
   UserProfile user1 = new UserProfile("First1","Last1");
   users.add(user1);
   UserProfile user2 = new UserProfile("First2","Last2");
   users.add(user2);   
   request.setAttribute("usersAttrib",users);
   %> 
  
   
First nameLast Name
   

 
 
  
  
   
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Howto forward bean from one action to another in the request scope?

2003-05-29 Thread Iain Sanderson
One solution is to persist the data bean in the session scope. I've just 
done this by giving the bean a unique name by appending the sessionId and 
sending it back into the session scope, as well as sending a clone of the 
bean into the request scope to be used by View A.

The follow-on action, Action B, looks for this unique bean name in the 
session, and passes it on to helper beans that extract new data using it 
from the Model. Action B then removes the bean from the session scope.

Appending the sessionId solves the synchronization issue, but not the 
memory problem - these  beans could accumulate in the session scope if the 
Action removing them isn't called. 

It works, but isn't clean. Can anyone suggest something better?


Iain.




"Iain Sanderson" <[EMAIL PROTECTED]>
05/28/2003 07:11 AM
Please respond to "Struts Users Mailing List"
 
To: [EMAIL PROTECTED]
cc: 
Subject:Howto forward bean from one action to another in 
the request scope?


 I have a  struts app in which I use an action (say action A) to pass a 
bean (Bean A) containing data from the Model  as an attribute  in the 
request scope to a View ( JSP A).
JSP A contains a Form that initiates Action B ( simply a Submit button) 
and thus  on to View B(JSP B) after some more interaction with the Model.
What I would like to do is re-use Bean A in Action B, as it contains data 
pertinent to Action B, and I don't want to query the model again for the 
same data.
How can I do this keeping the data bean A in the request scope? I know I 
can achieve this by placing Bean A in  the session scope, but this will 
accumulate memory and cause potential synchronization problems accross 
multiple users.

The real life scenario is this- Action A is selecting Patient cases from a 

database corresponding to a date range, and displaying the Case list  data 

(Bean A) in a table (JSP A) . The next task is to display all the pharmacy 

bills for the set of cases defined in Bean A and shown in JSP A.  So I 
would like to pass Bean A to the next Action B, which would forward the 
caselist  to a helper bean,  which in turn  would query the Model for all 
the drugs used for all the patients defined in Bean A. The end result is a 

list of pharmacy Bills (View B) which would print out  as all the bills 
for patients in a date range defined by the selection started by Action A.

Any help gratefully received.


RE: Weirdness...

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Actually, I just fixed the issue.  Stupid typo in my code, sorry...

I'm sure you all know how that is.

- Keith

www.buffalo.edu/~kkamholz

-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:20 AM
To: Struts Users Mailing List
Subject: Re: Weirdness...


What kind of comment are you using,  or <%-- JSP --%>

As far as why logic:equal isn't being found, post your JSP...

- Original Message -
From: "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 10:13 AM
Subject: Weirdness...


> Hey everyone,
>
> I have a  tag commented out in a JSP.  However, when I go
> to that page, it says:
> [ServletException in:Edit.jsp] No such tag equal in the tag library
imported
> with prefix logic'
>
> Shouldn't the tag be ignored?  I also don't know why it can't find the
equal
> tag, but errors from a commented section are even weirder.
>
> Does anyone have any clue what's going on?
>
> - Keith
>
> www.buffalo.edu/~kkamholz
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to change label on a button

2003-05-29 Thread harm
Hi all,

I would like to change the label: 'browse' on the button to some other 
text. Currently I'm using:



As you can see, I would like a button which displays the label 'some other 
text'.

But, unfortunatly this seems not to work.

Can anybody please help, or give me some directions?


Many thanks,

Harm de Laat
Informatiefabriek
The Netherlands




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Weirdness...

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Really?  I wonder why that is

- Keith

www.buffalo.edu/~kkamholz

-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:22 AM
To: Struts Users Mailing List
Subject: RE: Weirdness...


I've been warned by another developer to not just comment the tags but to
totally change them by removing spaces when I want to comment one out.   

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:13 AM
To: '[EMAIL PROTECTED]'
Subject: Weirdness...


Hey everyone,

I have a  tag commented out in a JSP.  However, when I go
to that page, it says:
[ServletException in:Edit.jsp] No such tag equal in the tag library imported
with prefix logic' 

Shouldn't the tag be ignored?  I also don't know why it can't find the equal
tag, but errors from a commented section are even weirder.

Does anyone have any clue what's going on?

- Keith

www.buffalo.edu/~kkamholz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Possible Validator Bug

2003-05-29 Thread Denis Avdic
Dontcha hate that?

Raible, Matt wrote:

Try changing methodparams to methodParams...

-Original Message-
From: Brown, Melonie S. - Contractor
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 7:46 AM
To: '[EMAIL PROTECTED]'
Subject: Possible Validator Bug
I created a custom validator and thought that I had everything configured
properly, but couldn't get it to work.  Since I was using an "older" version
of Struts (December/January), I downloaded the latest nightly build. 

I then started getting the following error:
ERROR Date = 2003-05-28 09:35:46,489 [Thread-5]
org.apache.commons.validator.Validator Line = 471 - reflection:
foo.SecurePasswordValidator.validateComplexPassword()
java.lang.NoSuchMethodException:
foo.SecurePasswordValidator.validateComplexPassword()
at java.lang.Class.getMethod0(Class.java:1756)
at java.lang.Class.getMethod(Class.java:963)
at
org.apache.commons.validator.Validator.executeValidationMethod(Validator.jav
a:448)
at
org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:3
71)
at
org.apache.commons.validator.Validator.validateField(Validator.java:616)
at
org.apache.commons.validator.Validator.validate(Validator.java:696)
at
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:152)
It is correct that I do not have a validateComplexPassword() - 

I have validateComplexPassword(Object bean,
   ValidatorAction va,
   Field field,
   ActionErrors errors,
   HttpServletRequest request)
In my validator rules, I specified the following.  


classname="foo.SecurePasswordValidator"
method="validateComplexPassword"
methodparams="java.lang.Object,
  org.apache.commons.validator.ValidatorAction,
  org.apache.commons.validator.Field,
  org.apache.struts.action.ActionErrors,
  javax.servlet.http.HttpServletRequest" 
msg="errors.changepasswordnotfollowrules">


I added a method with no parameters for test purposes, and that's the method
that gets called during validation.
Why would the method with no parameters be called when I specifically set
parameters?  Is this a bug or feature? 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


SwitchAction example

2003-05-29 Thread Vineet Bhatia
Hi Struts guru's!!

Is there an example for SwitchAction somewhere?

TIA,
Vineet


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I dont understand whats wrong with this.

2003-05-29 Thread Abhinav (Cognizant)
For my form validation failure, I have specified another action as Input.
When I submit to /result/view, the validation fails, I change one of my form-bean 
attribute in validate method itself.
It then goes to /login
and the validate method is again called. I find that the form-bean attribue has not 
changed.
Why is this happening?



   








** 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 transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not 
the 
intended recipient, please contact the sender by reply e-mail and destroy all copies 
of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and 
may be unlawful.

  Visit us at http://www.cognizant.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: iterate tag question

2003-05-29 Thread Vinay Mhapankar

Is the "/" at the end there in real code?
   

If yes then remove it... and try.

Thanks.

-Vinay



-Original Message-
From: Per Lovdinger [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 8:00 PM
To: [EMAIL PROTECTED]
Subject: iterate tag question


Hi there,
I'm Struts newie and have a question about the iterate
tag.
When I'm creating an ArrayList with 2 objects. For
some reason only one show up.
What am I doing wrong ?
I've attached the jsp page.
thanks in advance


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003
 
  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.483 / Virus Database: 279 - Release Date: 5/19/2003
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SwitchAction example

2003-05-29 Thread James Mitchell
Yes:

http://sourceforge.net/projects/struts

Look for "Module Switching Examples"


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org



- Original Message - 
From: "Vineet Bhatia" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 10:51 AM
Subject: SwitchAction example


> Hi Struts guru's!!
> 
> Is there an example for SwitchAction somewhere?
> 
> TIA,
> Vineet
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Weirdness...

2003-05-29 Thread Kandi Potter
He didn't say..but when I had some trouble with my code, he warned me about my 
method of commenting

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:43 AM
To: 'Struts Users Mailing List'
Subject: RE: Weirdness...


Really?  I wonder why that is

- Keith

www.buffalo.edu/~kkamholz

-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:22 AM
To: Struts Users Mailing List
Subject: RE: Weirdness...


I've been warned by another developer to not just comment the tags but to
totally change them by removing spaces when I want to comment one out.   

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 10:13 AM
To: '[EMAIL PROTECTED]'
Subject: Weirdness...


Hey everyone,

I have a  tag commented out in a JSP.  However, when I go
to that page, it says:
[ServletException in:Edit.jsp] No such tag equal in the tag library imported
with prefix logic' 

Shouldn't the tag be ignored?  I also don't know why it can't find the equal
tag, but errors from a commented section are even weirder.

Does anyone have any clue what's going on?

- Keith

www.buffalo.edu/~kkamholz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to change label on a button

2003-05-29 Thread Kruse, Matt
> I would like to change the label: 'browse' on the button to 
> some other text.

Unfortunately, you can't. This is a limitation of HTML, not Struts.
There are some really, really funks tricks with DHTML and hidden form
fields, etc, which can simulate this, but trust me, you don't want to use
them.

The file input element is under the control of the OS, and you can't even
have much control over the style and appearance of the browse button.

Matt Kruse



Ordering of tags

2003-05-29 Thread Paul Curren
Hi there,

I'm using the nightly build from 25th of this month. My problem relates 
to how a number of different tags are interacting.

So first, my page has the tag


I can then later in my page do

and this works.
However, if I try and do similar after or before the above tag using the 
javascript tag e.g.


the page attribute has the value "stepNumber" instead of what stepNumber 
evaluates to. This is what I think is happening anyway. The exact error is -

registrationWizard$jsp.java:305: Incompatible type for method. Can't 
convert java.lang.String to int.
_jspx_th_html_javascript_0.setPage( stepNumber );

Can anyone explain the problem to me - i'm pretty vague on how the 
different types of tags are processed by the compiler.

Cheers,

Paul C

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Struts In A Distributed\Clustered Environment.

2003-05-29 Thread Paananen, Tero
> Has anybody successfully managed to use Struts in a 
> distributed\clustered environment? If so with what
> setup? And did you have any Struts related difficulties?

I've worked on applications using Struts that get
deployed in clustered environment.

You don't need to do anything special for Struts
itself. The servers you're using for persistance are
another matter.

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[design] Action classes and EJB

2003-05-29 Thread ruben
Hi, 
The action classes are thread-safe, ie, it's not recommended to have
attribute on the classes (and the best way to pass the attribute is by
the stack), but if I use EJB, or any type of business delegate, have I
create a different object every time that I call a different method?
(because the object are internal to the method). Is this a good approach
or for example if I using a DispatchAction, I could install a reference
to the EJB  on the session (like on the disconnected interfaces of
.NET), and retrieve when I do another work on other methods?
Thanks 


Forwarding to another action

2003-05-29 Thread Abhinav (Cognizant)

For my form validation failure, I have specified another action as Input.
When I submit to /result/view, the validation fails, I change one of my form-bean 
attribute in validate method itself.
It then goes to /login
and the validate method is again called. I find that the form-bean attribue has not 
changed.
Why is this happening?



 







** 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 transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not 
the 
intended recipient, please contact the sender by reply e-mail and destroy all copies 
of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and 
may be unlawful.

  Visit us at http://www.cognizant.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

ActionForm and missing fields in html:form

2003-05-29 Thread Benoit Voisin
I have general question on which I did not find an answer in the FAQ/Google.
I seems quite a vital feature, so I believe I have missed something.
 
If the JSP does NOT contain any  or  tag for a field
that is referenced in the ActionForm, the ActionForm.field will be be left
untouched by Struts when the form is submitted. If this ActionForm.field's
value was modified in the reset or by a double use of the same ActionForm
object (see below), this field will contain a bad value that might end up in
the database.
 
In more details, from what I understand:
 * If I clear this field in the ActionForm.reset, the Action will use this
empty value to erase the previous value in the database.
 * If I don't clear this field in the ActionForm.reset, it will remain in
the ActionForm (if I remember well Struts creates one ActionForm instance
per session) and not be erased. But if the user opens two Netscape windows
(using the same session) editing different items, the field's value might
get exchanged : 
 -  User opens the edit window on itemA => ActionForm.unreferencedField
= "a"
 -  User opens the edit window on itemB => ActionForm.unreferencedField
= "b"
 -  User saves itemA => ActionForm.unreferencedField is left with
previous value : "b" which is saved into itemA database row... Really not
nice.
 
So my question: what's wrong in my setup ? What did I miss, or what can I do
to avoid this issue ?
 
 
Thanks in advance,
Benoit


Validation file never seems to be parsed...

2003-05-29 Thread Matthew Watson
Hi, 

I'm trying to use the struts validation framework. I've installed the
example struts-validator WAR into tomcat and the examples seem to work fine.


On startup various debug messages get spat out during the parsing of the
validator-rules.xml and validation.xml files.

Like so...

INFO: Add Global Constant: phone,^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$
May 28, 2003 4:25:49 PM org.apache.commons.validator.ValidatorResources
addConstantParam
INFO: Add Global Constant: zip,^\d{5}\d*$

...etc etc

Ok. Now when I try and set up some basic validation under my own context I
don't get any debug information and no validation seems to happen at all.

I've followed through all of the instructions and have extended
ValidationForm as per the instructions. I'm using the 1.1 RC1 release of
struts and have also downloaded the latest version of the
commons-validator.jar. 

This is the output I get...

May 28, 2003 4:25:46 PM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from
'/WEB-INF/config/validator-rules.xml'
May 28, 2003 4:25:46 PM org.apache.struts.validator.ValidatorPlugIn
initResources
INFO: Loading validation rules file from '/WEB-INF/config/validation.xml'
May 28, 2003 4:25:48 PM org.apache.struts.util.PropertyMessageResources


The debug level and detail levels are set to 3 as per the struts validation
example struts-config.xml...

Any help on this would be most appreciated as I've virtually finished the
application I'm working on apart from the validation...

thanks in advance,
Matt.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Repost: Global request parameter filtering

2003-05-29 Thread Mike Whittaker
Sorry to be a pain
~~
Say for instance you want to filter for all the ' " \ characters in request
parameters
either removing them, or escaping them.

Either way if you do it before the action form gets them, then on
prepopulation of form fields the user will see these alterations (not
desirable).
If you do it after you decide the form won't be returned then:

a) It becomes difficult because you have just form bean method calls to get
the parameters something like filter(getMyString()) becomes a pain and open
to missing out the filtering with potentially disastorous consequences!

b) If you decided to somehow globally alter a session scoped form then again
you have prepopulation alterations.

I have seen that RequestProcessor may offer hope, I'd like to know the order
that these RP methods are called.

I realise that I could use BeanUtils and make a DynaBean copy of a form
bean, filtering the parameters during the copy.  Just seems overkill, and
yet another object in the request.

Any pointers?
How do you filter your sql sensitive characters?

--
Mike W


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



error

2003-05-29 Thread Anand M S
here is the code, I have FELLOW_HEADER in session, it gives the following 
error

[ServletException in:/jsp/fellow/declare_tenure_plans_step_1_1_tile.jsp] 
Define tag can contain only one of name attribute, value attribute, or body 
content'

I'm using JRun4.0




 





Thanks,
Anand
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: URL missing .do

2003-05-29 Thread Craig R. McClanahan


On Wed, 28 May 2003, Marcel Overdijk wrote:

> Date: Wed, 28 May 2003 09:06:56 +0200
> From: Marcel Overdijk <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: URL missing .do
>
> Steve,
>
> Could this also be the same for my problem:
> I have developed a webapp on Tomcat 4.0.3 and works fine.
> After deploying it at my provider (also Tomcat 4.0.3) my
>  aren't working
>
>  type ="org.apache.struts.actions.ForwardAction"
> parameter="page.trends"/>
>
> Or
>  type ="org.apache.struts.actions.ForwardAction"
> parameter="/test.jsp"/>
>
> www.myhost.org/trends.do
> Or
> www.myhost.org/test.do
> Wont'work A Page Not Found error.
>
> But at my pc I use http://localhost:8080/myapp/test.do and the action
> mappings works fine
>

Many ISPs who run Tomcat configure it to run behind Apache.  This works
fine for Struts-based applicaitons, as long as you remember to configure
Apache to forward all "*.do" requests for your webapp to Tomcat --
otherwise, Apache tries to serve them as static files and (of course) will
not find corresponding files.

You might ask your ISP's admin staff to make sure that the "*.do"
forwarding pattern has been set up.

>
>
>
> Met vriendelijke groet,
>
>
> Marcel Overdijk
>

Craig

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



"No input attribute for mapping path" - what does this mean?

2003-05-29 Thread Catherine Morgan
Sometimes when I hit a submit button to forward to another page I get an
HTTP 500 error with the following error message:
No input attribute for mapping path ...

The path in the error message is configured in struts-config, and I'm sure
the struts-config is OK because sometimes it does work.
I can't work out what is causing this error. I have done a web search for
the text but couldn't find an explanation of what it means.
Can anyone tell me what this error message means so I can work out what is
causing it?

Thanks,
Catharine

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ordering of tags

2003-05-29 Thread Paul Curren
I found a work around for this - I don't understand the problem though 
so anyone else does i'd love to be enlightened :-)

The work around is prior to the html:javascript tag, insert some java like -

<%
   Integer temp = new Integer(stepNumber);
   int temp2 = temp.intValue();
%>
Then use temp2 within the page attribute of the html:javascript tag e.g.

Nasty hack I reckon but gets me going in the mean time.

Paul C

Paul Curren wrote:

Hi there,

I'm using the nightly build from 25th of this month. My problem 
relates to how a number of different tags are interacting.

So first, my page has the tag


I can then later in my page do

and this works.
However, if I try and do similar after or before the above tag using 
the javascript tag e.g.


the page attribute has the value "stepNumber" instead of what 
stepNumber evaluates to. This is what I think is happening anyway. The 
exact error is -

registrationWizard$jsp.java:305: Incompatible type for method. Can't 
convert java.lang.String to int.
_jspx_th_html_javascript_0.setPage( stepNumber );

Can anyone explain the problem to me - i'm pretty vague on how the 
different types of tags are processed by the compiler.

Cheers,

Paul C

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Redirecionamento

2003-05-29 Thread Silverio Wagner Silva(Secorp)
People,

Anyone can tell me how can I redirect from a jsp to another ?

Thanks in advance!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How do you orgnize your project directory?

2003-05-29 Thread Lei Gao
Hello guys,

I want to know when you start a Structs project, generally how do you
orgnize your project directory?
Which way you think is the most comfortable way for both developing and
deploying?

Thanks for share your idea with me.
Lei



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Submit Value

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Quick question...

I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'.  What I'm
wondering is how to get the value of the submit button that was clicked from
within the action class.

Thanx a million.

- Keith

www.buffalo.edu/~kkamholz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: "No input attribute for mapping path" - what does this mean?

2003-05-29 Thread Jeff Kyser
among other things, it is the page to fall back on if validation fails.

so if you enter your form data correctly, you will go to the appropriate
page, but if you make a mistake, it looks at 'input' for where to go,
hence you may have seen it sometimes and not others?
In my case below, it is a name from my tiles-config.xml file...

just add it to your action mapping:


...

-jeff

On Wednesday, May 28, 2003, at 11:41  AM, Catherine Morgan wrote:

Sometimes when I hit a submit button to forward to another page I get 
an
HTTP 500 error with the following error message:
No input attribute for mapping path ...

The path in the error message is configured in struts-config, and I'm 
sure
the struts-config is OK because sometimes it does work.
I can't work out what is causing this error. I have done a web search 
for
the text but couldn't find an explanation of what it means.
Can anyone tell me what this error message means so I can work out 
what is
causing it?

Thanks,
Catharine
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Calling forms from list box without action?

2003-05-29 Thread Barry Volpe
The following works but I was wondering if there is an easier way?


  
Select-A-Category 
Form A 
Form B 
Form C 

  
 


//In my action

String target = new String(request.getParameter("category"));


//In my action form

public class CategoryForm extends ActionForm {

  protected String category;  

  public void setCategory(String category) {

this.category = category;
  }

  public String getCategory() {

return category;
  }


//Now the ugly part in my STRUTS-CONFIG:



   
   
   
   

Is there an easier way?  Doesn't seem right to define multiple fowards in the 
struts-config.

Thanks,
Barry



RE: Submit Value

2003-05-29 Thread Phillip Qin
Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value

Quick question...

I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'.  What I'm
wondering is how to get the value of the submit button that was clicked from
within the action class.

Thanx a million.

- Keith

www.buffalo.edu/~kkamholz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Submit Value

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Really?  I thought that was a fairly common thing to do?


-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value


Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value

Quick question...

I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'.  What I'm
wondering is how to get the value of the submit button that was clicked from
within the action class.

Thanx a million.

- Keith

www.buffalo.edu/~kkamholz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Redirecionamento

2003-05-29 Thread James Mitchell
Hey that's a pretty good one!!  Although it's not Friday yet.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org



- Original Message - 
From: "Silverio Wagner Silva(Secorp)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 12:52 PM
Subject: Redirecionamento


> People,
> 
> Anyone can tell me how can I redirect from a jsp to another ?
> 
> Thanks in advance!
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Submit Value

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Ok... Does anyone have a good alternative then?



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value


Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value

Quick question...

I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'.  What I'm
wondering is how to get the value of the submit button that was clicked from
within the action class.

Thanx a million.

- Keith

www.buffalo.edu/~kkamholz


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do you orgnize your project directory?

2003-05-29 Thread Erik Price


Lei Gao wrote:
Hello guys,

I want to know when you start a Structs project, generally how do you
orgnize your project directory?
Which way you think is the most comfortable way for both developing and
deploying?




Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[RANT/FLAME] Re: Submit Value

2003-05-29 Thread Denis Avdic
*&*$*& damn MICROSOFT!

And me for not testing on IE.

Now I have to redesign half my webapp!

And why is this implemented if IE (90% of population out there) cannot 
use the feature?



Gah.  Now to figure out an elegant way of fixing this

Phillip Qin wrote:

Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value

Quick question...

I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'.  What I'm
wondering is how to get the value of the submit button that was clicked from
within the action class.
Thanx a million.

- Keith

www.buffalo.edu/~kkamholz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Submit Value

2003-05-29 Thread Josh McCulloch
A submit button is supposed to submit a parameter when selected.
i.e.


should send /xxx.do?submitButton=Delete

This should correspond to a member of your ActionForm.

You should also look into DispatchAction and LookupDispatchAction.
They can call different "execute" methods depending on a parameter from 
the form post.

HTH,
Josh
[EMAIL PROTECTED] wrote:

Ok... Does anyone have a good alternative then?



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value
Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value

Quick question...

I'm using 2 submit buttons in the same form, so that I can do 1 of 2 things,
with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'.  What I'm
wondering is how to get the value of the submit button that was clicked from
within the action class.
Thanx a million.

- Keith

www.buffalo.edu/~kkamholz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


How to handle key attribute of tag in struts-config.xml?

2003-05-29 Thread Caroline Holanda
 Hi List!
 
Can anybody help me to understand well the
meaning of bundle and key atrributes of the
 tag nested in  of
struts-config.xml? Does these atrributes make sense to
be defined if I have already set the path attribute to
an error page jsp?
 
If so, how will the message defined in the key
attribute be shown in the error page? I know I can
define an error page in the path attribute and call
 tag, but what kind of code my error
page should have to show the key message defined in
the key attribute of  tag?
 
  Thanks in advance!
  Caroline Holanda
  IT- Consultant
> 
> =
> **
> Cuide das pessoas que vc ama! 
> Elas são presentes de Deus!
> 
>
___
> Yahoo! Mail
> O melhor e-mail gratuito da internet: 6MB de espaço,
> antivírus, acesso POP3, filtro contra spam. 
> http://br.mail.yahoo.com/
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>  

=
**
Cuide das pessoas que vc ama! 
Elas são presentes de Deus!

___
Yahoo! Mail
Mais espaço, mais segurança e gratuito: caixa postal de 6MB, antivírus, proteção 
contra spam.
http://br.mail.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Submit Value

2003-05-29 Thread Kamholz, Keith (corp-staff) USX
Alright, I think I basically understand how this works, but doesn't this
interfere with internationalization?
If we want to use a message from Application Resources for the button label,
and if we check for that value in our action, won't the internationalization
get completely messed up?

- Keith

www.buffalo.edu/~kkamholz


-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:39 PM
To: Struts Users Mailing List
Subject: Re: Submit Value


A submit button is supposed to submit a parameter when selected.
i.e.



should send /xxx.do?submitButton=Delete

This should correspond to a member of your ActionForm.

You should also look into DispatchAction and LookupDispatchAction.
They can call different "execute" methods depending on a parameter from 
the form post.

HTH,
Josh


[EMAIL PROTECTED] wrote:

>Ok... Does anyone have a good alternative then?
>
>
>
>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 28, 2003 1:14 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Submit Value
>
>
>Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.
>
>-Original Message-
>From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
>Sent: May 28, 2003 1:01 PM
>To: '[EMAIL PROTECTED]'
>Subject: Submit Value
>
>Quick question...
>
>I'm using 2 submit buttons in the same form, so that I can do 1 of 2
things,
>with the same input data.
>(You can do that, right?)
>I have the value attribute for one of them set to 'delete'.  What I'm
>wondering is how to get the value of the submit button that was clicked
from
>within the action class.
>
>Thanx a million.
>
>- Keith
>
>www.buffalo.edu/~kkamholz
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Submit Value

2003-05-29 Thread Brandon Goodin
In that case use the LookupDispatchAction

Brandon Goodin

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:39 AM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value


Alright, I think I basically understand how this works, but doesn't this
interfere with internationalization?
If we want to use a message from Application Resources for the button label,
and if we check for that value in our action, won't the internationalization
get completely messed up?

- Keith

www.buffalo.edu/~kkamholz


-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:39 PM
To: Struts Users Mailing List
Subject: Re: Submit Value


A submit button is supposed to submit a parameter when selected.
i.e.



should send /xxx.do?submitButton=Delete

This should correspond to a member of your ActionForm.

You should also look into DispatchAction and LookupDispatchAction.
They can call different "execute" methods depending on a parameter from
the form post.

HTH,
Josh


[EMAIL PROTECTED] wrote:

>Ok... Does anyone have a good alternative then?
>
>
>
>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 28, 2003 1:14 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Submit Value
>
>
>Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.
>
>-Original Message-
>From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
>Sent: May 28, 2003 1:01 PM
>To: '[EMAIL PROTECTED]'
>Subject: Submit Value
>
>Quick question...
>
>I'm using 2 submit buttons in the same form, so that I can do 1 of 2
things,
>with the same input data.
>(You can do that, right?)
>I have the value attribute for one of them set to 'delete'.  What I'm
>wondering is how to get the value of the submit button that was clicked
from
>within the action class.
>
>Thanx a million.
>
>- Keith
>
>www.buffalo.edu/~kkamholz
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [struts-user] RE: Submit Value

2003-05-29 Thread Bradley M. Handy
No it doesn't interfere with internationalization, as long as you use the
Struts HTML tags.





Brad Handy


-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 1:39 PM
To: 'Struts Users Mailing List'
Subject: [struts-user] RE: Submit Value

Alright, I think I basically understand how this works, but doesn't this
interfere with internationalization?
If we want to use a message from Application Resources for the button label,
and if we check for that value in our action, won't the internationalization
get completely messed up?

- Keith

www.buffalo.edu/~kkamholz


-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:39 PM
To: Struts Users Mailing List
Subject: Re: Submit Value


A submit button is supposed to submit a parameter when selected.
i.e.



should send /xxx.do?submitButton=Delete

This should correspond to a member of your ActionForm.

You should also look into DispatchAction and LookupDispatchAction.
They can call different "execute" methods depending on a parameter from 
the form post.

HTH,
Josh


[EMAIL PROTECTED] wrote:

>Ok... Does anyone have a good alternative then?
>
>
>
>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 28, 2003 1:14 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Submit Value
>
>
>Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.
>
>-Original Message-
>From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
>Sent: May 28, 2003 1:01 PM
>To: '[EMAIL PROTECTED]'
>Subject: Submit Value
>
>Quick question...
>
>I'm using 2 submit buttons in the same form, so that I can do 1 of 2
things,
>with the same input data.
>(You can do that, right?)
>I have the value attribute for one of them set to 'delete'.  What I'm
>wondering is how to get the value of the submit button that was clicked
from
>within the action class.
>
>Thanx a million.
>
>- Keith
>
>www.buffalo.edu/~kkamholz
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded

2003-05-29 Thread Brandon Goodin
Can we remove this guy from the Struts-User List? PLEZ

Brandon Goodin


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:49 AM
To: Brandon Goodin
Subject: DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet;
Router: Database disk quota exceeded


Your message

  Subject: RE: Submit Value

was not delivered to:

  [EMAIL PROTECTED]

because:

  Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota
exceeded

Reporting-MTA: dns;lotus_notes.impfleet.co.za

Final-Recipient: rfc822;[EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Notes; Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded
--- Begin Message ---
In that case use the LookupDispatchAction

Brandon Goodin

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:39 AM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value


Alright, I think I basically understand how this works, but doesn't this
interfere with internationalization?
If we want to use a message from Application Resources for the button label,
and if we check for that value in our action, won't the internationalization
get completely messed up?

- Keith

www.buffalo.edu/~kkamholz


-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:39 PM
To: Struts Users Mailing List
Subject: Re: Submit Value


A submit button is supposed to submit a parameter when selected.
i.e.



should send /xxx.do?submitButton=Delete

This should correspond to a member of your ActionForm.

You should also look into DispatchAction and LookupDispatchAction.
They can call different "execute" methods depending on a parameter from
the form post.

HTH,
Josh


[EMAIL PROTECTED] wrote:

>Ok... Does anyone have a good alternative then?
>
>
>
>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 28, 2003 1:14 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Submit Value
>
>
>Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.
>
>-Original Message-
>From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
>Sent: May 28, 2003 1:01 PM
>To: '[EMAIL PROTECTED]'
>Subject: Submit Value
>
>Quick question...
>
>I'm using 2 submit buttons in the same form, so that I can do 1 of 2
things,
>with the same input data.
>(You can do that, right?)
>I have the value attribute for one of them set to 'delete'.  What I'm
>wondering is how to get the value of the submit button that was clicked
from
>within the action class.
>
>Thanx a million.
>
>- Keith
>
>www.buffalo.edu/~kkamholz
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--- End Message ---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Submit Value

2003-05-29 Thread Josh McCulloch
That is the difference between DispatchAction and LookupDispatchAction. 
Refer to:
http://jakarta.apache.org/struts/api/org/apache/struts/actions/LookupDispatchAction.html

Basically, in both cases you need to overload the getKeyMethodMap() 
method (Note: I think the documentation
I posted is wrong. I needed to declare it as public Map 
getKeyMethodMap() { }).

For DispatchAction, your Map will look like this:

map.put("Delete", "deleteMethod");

For LookupDispatchAction, you use a resource key instead of the submit 
button value.

map.put("globals.DELETE", "deleteMethod");

And as someone just posted, your submit button will look like:




- Josh

[EMAIL PROTECTED] wrote:

Alright, I think I basically understand how this works, but doesn't this
interfere with internationalization?
If we want to use a message from Application Resources for the button label,
and if we check for that value in our action, won't the internationalization
get completely messed up?
- Keith

www.buffalo.edu/~kkamholz

-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:39 PM
To: Struts Users Mailing List
Subject: Re: Submit Value
A submit button is supposed to submit a parameter when selected.
i.e.


should send /xxx.do?submitButton=Delete

This should correspond to a member of your ActionForm.

You should also look into DispatchAction and LookupDispatchAction.
They can call different "execute" methods depending on a parameter from 
the form post.

HTH,
Josh
[EMAIL PROTECTED] wrote:

 

Ok... Does anyone have a good alternative then?



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value
Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value

Quick question...

I'm using 2 submit buttons in the same form, so that I can do 1 of 2
   

things,
 

with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'.  What I'm
wondering is how to get the value of the submit button that was clicked
   

from
 

within the action class.

Thanx a million.

- Keith

www.buffalo.edu/~kkamholz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   

 

--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



RE: [struts-user] RE: Submit Value

2003-05-29 Thread Kandi Potter
thanks.   I hadn't figured out yet that you could just provide the button value 
without value=

-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:48 PM
To: 'Struts Users Mailing List'
Subject: RE: [struts-user] RE: Submit Value


No it doesn't interfere with internationalization, as long as you use the
Struts HTML tags.





Brad Handy


-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 1:39 PM
To: 'Struts Users Mailing List'
Subject: [struts-user] RE: Submit Value

Alright, I think I basically understand how this works, but doesn't this
interfere with internationalization?
If we want to use a message from Application Resources for the button label,
and if we check for that value in our action, won't the internationalization
get completely messed up?

- Keith

www.buffalo.edu/~kkamholz


-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:39 PM
To: Struts Users Mailing List
Subject: Re: Submit Value


A submit button is supposed to submit a parameter when selected.
i.e.



should send /xxx.do?submitButton=Delete

This should correspond to a member of your ActionForm.

You should also look into DispatchAction and LookupDispatchAction.
They can call different "execute" methods depending on a parameter from 
the form post.

HTH,
Josh


[EMAIL PROTECTED] wrote:

>Ok... Does anyone have a good alternative then?
>
>
>
>-Original Message-
>From: Phillip Qin [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, May 28, 2003 1:14 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Submit Value
>
>
>Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.
>
>-Original Message-
>From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
>Sent: May 28, 2003 1:01 PM
>To: '[EMAIL PROTECTED]'
>Subject: Submit Value
>
>Quick question...
>
>I'm using 2 submit buttons in the same form, so that I can do 1 of 2
things,
>with the same input data.
>(You can do that, right?)
>I have the value attribute for one of them set to 'delete'.  What I'm
>wondering is how to get the value of the submit button that was clicked
from
>within the action class.
>
>Thanx a million.
>
>- Keith
>
>www.buffalo.edu/~kkamholz
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do you orgnize your project directory?

2003-05-29 Thread Erik Price


Lei Gao wrote:
Thanks Erik,

Very clear specified, then where generally you put your servlet/bean source
code?
Is that a good way for creating a sub directory called 'javasrc' or
something?
I have re-attached this to the list in case it be helpful to others.

I have my current (real world) project directory structured like this:

myProjectName/
  bin/
  build.properties
  build.xml
  docs/
  lib/
  misc/
  resources/
  src/
com/
  domain/
myProject/
  ...etc...
  test/
com/
  domain/
myProject/
  ...etc...
  web/
some.jsp
other.jsp
more.jsp
some.css
WEB-INF/
  web.xml
  tld/
myProject-tld.xml
...etc...
- The "bin" directory is only used by my IDE, eclipse.  If I were not 
using Eclipse, I wouldn't have a "bin" directory.
- The build.properties and build.xml are my Ant files.
- If I write any documentation I will put it in the "doc" directory, but 
- I probably won't write any.  Still, the Ant script will automatically 
put anything in the "doc" directory into the documentation directory in 
the final distributable.
- The "lib" directory contains any JAR dependencies used by my 
application that I need to compile.  These JARs will be put in the 
WEB-INF/lib directory by my Ant file when I build the application.
- The "misc" directory contains temporary files that I'm using, such as 
files with SQL code or other scratchwork.  My Ant build file does not 
use this directory when building the project at all.
- The "resources" directory contains any miscellaneous files that I do 
need for my project, and these are handled on a per-case basis by the 
Ant build script.
- The "src" directory is where all of my Java code is.  The meat of the 
project.  All of my servlets, beans, and plain old java objects go in 
here, in the package hierarchy.
- The "test" directory contains unit test code, and mirrors the regular 
package hierarchy so that my unit tests have default access to various 
class members in the actual codebase.
- The "web" directory contains JSP files and static files, as well as a 
WEB-INF directory which is copied to the actual WEB-INF of the webapp 
during deployment by the Ant build file.

As you can see, it's not very original.  I gathered the layout from the 
Tomcat deployment guide, the XPetstore application, and "Java 
Development With Ant" by Erik Hatcher and Steve Loughran.  I think it's 
pretty close to the recommended layout.  But it works for me.



Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Erik Price


Denis Avdic wrote:
*&*$*& damn MICROSOFT!

And me for not testing on IE.

Now I have to redesign half my webapp!

And why is this implemented if IE (90% of population out there) cannot 
use the feature?



Gah.  Now to figure out an elegant way of fixing this
Maybe you could have JavaScript that detects which button was clicked 
and changes the value of a hidden form field just before the submission 
occurs?

Kind of inelegant, but it might work.  It's only as reliable as 
JavaScript, though.

Good luck, that sucks if you have to re-do work.



Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Submit Value

2003-05-29 Thread Michael Ruppin
For what it's worth, you could alternatively do this:

MessageResources resources = getResources(request);
if(form.getButton().equals(resources.getMessage("your.ok.key"))){
}
if(form.getButton().equals(resources.getMessage("your.cancel.key"))){
}

However, there could later be unreachable code if
someone translates your properties files and makes two
keys equate to the same text.  I broke down and made
different form properties for each submit button:

if(form.getOkButton()!=null){
}
if(form.getCancelButton()!=null){
}

I'll bet LookupDispatchAction is a better solution.

m

--- Brandon Goodin <[EMAIL PROTECTED]> wrote:
> In that case use the LookupDispatchAction
> 
> Brandon Goodin
> 
> -Original Message-
> From: Kamholz, Keith (corp-staff) USX
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 11:39 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Submit Value
> 
> 
> Alright, I think I basically understand how this
> works, but doesn't this
> interfere with internationalization?
> If we want to use a message from Application
> Resources for the button label,
> and if we check for that value in our action, won't
> the internationalization
> get completely messed up?
> 
> - Keith
> 
> www.buffalo.edu/~kkamholz
> 
> 
> -Original Message-
> From: Josh McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 1:39 PM
> To: Struts Users Mailing List
> Subject: Re: Submit Value
> 
> 
> A submit button is supposed to submit a parameter
> when selected.
> i.e.
> 
>  value="Delete">
> 
> should send /xxx.do?submitButton=Delete
> 
> This should correspond to a member of your
> ActionForm.
> 
> You should also look into DispatchAction and
> LookupDispatchAction.
> They can call different "execute" methods depending
> on a parameter from
> the form post.
> 
> HTH,
> Josh
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> >Ok... Does anyone have a good alternative then?
> >
> >
> >
> >-Original Message-
> >From: Phillip Qin [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, May 28, 2003 1:14 PM
> >To: 'Struts Users Mailing List'
> >Subject: RE: Submit Value
> >
> >
> >Don't bother trying it. Only Mozilla gives you the
> value, while IE doesn't.
> >
> >-Original Message-
> >From: Kamholz, Keith (corp-staff) USX
> [mailto:[EMAIL PROTECTED]
> >Sent: May 28, 2003 1:01 PM
> >To: '[EMAIL PROTECTED]'
> >Subject: Submit Value
> >
> >Quick question...
> >
> >I'm using 2 submit buttons in the same form, so
> that I can do 1 of 2
> things,
> >with the same input data.
> >(You can do that, right?)
> >I have the value attribute for one of them set to
> 'delete'.  What I'm
> >wondering is how to get the value of the submit
> button that was clicked
> from
> >within the action class.
> >
> >Thanx a million.
> >
> >- Keith
> >
> >www.buffalo.edu/~kkamholz
> >
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
> 
> --
> Your favorite stores, helpful shopping tools and
> great gift ideas.
> Experience the convenience of buying online with
> [EMAIL PROTECTED]
> http://shopnow.netscape.com/
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HTML 4.0 Tag?

2003-05-29 Thread Josh McCulloch
(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the  tag in HTML 4.0? I just found it 
listed in "Web Design In A Nutshell".
To quote, "Defines a 'button' that functions similar to buttons created 
with the input tag, but allows for richer rendering possibilities.
Buttons can contain content such as text and images." These buttons can 
function as if it were a ,
but you can embed an image within the button (I might want to use it for 
displaying accessKeys on buttons _S_ave).

Should there be a html: tag to deal with this tag? Is this still part of 
the specification?

- Josh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Denis Avdic
Actually, I just tried taking the value from request and it works. 

If I do request.getParameter("submit");  it returns value, but if i go 
myForm.getSubmit(); it does not.

Weird.  Only IE I can test right now is whatever comes with XP.

Anyone have any other experiences with this?

Denis

Erik Price wrote:



Denis Avdic wrote:

*&*$*& damn MICROSOFT!

And me for not testing on IE.

Now I have to redesign half my webapp!

And why is this implemented if IE (90% of population out there) 
cannot use the feature?



Gah.  Now to figure out an elegant way of fixing this


Maybe you could have JavaScript that detects which button was clicked 
and changes the value of a hidden form field just before the 
submission occurs?

Kind of inelegant, but it might work.  It's only as reliable as 
JavaScript, though.

Good luck, that sucks if you have to re-do work.



Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [APOLOGY] Re: Submit Value

2003-05-29 Thread Denis Avdic
I apologize to the entire struts-dev-team. 
Many things were said in a moment of panic.

Denis

Erik Price wrote:



Denis Avdic wrote:

*&*$*& damn MICROSOFT!

And me for not testing on IE.

Now I have to redesign half my webapp!

And why is this implemented if IE (90% of population out there) 
cannot use the feature?



Gah.  Now to figure out an elegant way of fixing this


Maybe you could have JavaScript that detects which button was clicked 
and changes the value of a hidden form field just before the 
submission occurs?

Kind of inelegant, but it might work.  It's only as reliable as 
JavaScript, though.

Good luck, that sucks if you have to re-do work.



Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


HTML 4.0 Tag?

2003-05-29 Thread Josh McCulloch
(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the  tag in HTML 4.0? I just found it 
listed in "Web Design In A Nutshell".
To quote, "Defines a 'button' that functions similar to buttons created 
with the input tag, but allows for richer rendering possibilities.
Buttons can contain content such as text and images." These buttons can 
function as if it were a ,
but you can embed an image within the button (I might want to use it for 
displaying accessKeys on buttons: _S_ave).

Should there be a html: tag to deal with this tag? Is this still part of 
the specification?

- Josh



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Redirecionamento

2003-05-29 Thread Silverio Wagner Silva(Secorp)
People,
 
Anyone can tell me how can I redirect from a jsp to another one?
 
Thanks in advance!
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: FW: DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet;Router: Database disk quota exceeded

2003-05-29 Thread Denis Avdic
Somebody spoof his email and just mail unsubscribe bot.  Would that work?

Brandon Goodin wrote:

Can we remove this guy from the Struts-User List? PLEZ

Brandon Goodin

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:49 AM
To: Brandon Goodin
Subject: DELIVERY FAILURE: Error delivering to Chetan Khimjee/Impfleet;
Router: Database disk quota exceeded
Your message

 Subject: RE: Submit Value

was not delivered to:

 [EMAIL PROTECTED]

because:

 Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota
exceeded
 



Reporting-MTA: dns;lotus_notes.impfleet.co.za

Final-Recipient: rfc822;[EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Notes; Error delivering to Chetan Khimjee/Impfleet; Router: Database disk quota exceeded
 



Subject:
RE: Submit Value
From:
"Brandon Goodin" <[EMAIL PROTECTED]>
Date:
Wed, 28 May 2003 11:49:15 -0600
To:
"Struts Users Mailing List" <[EMAIL PROTECTED]>
In that case use the LookupDispatchAction

Brandon Goodin

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 11:39 AM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value
Alright, I think I basically understand how this works, but doesn't this
interfere with internationalization?
If we want to use a message from Application Resources for the button label,
and if we check for that value in our action, won't the internationalization
get completely messed up?
- Keith

www.buffalo.edu/~kkamholz

-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:39 PM
To: Struts Users Mailing List
Subject: Re: Submit Value
A submit button is supposed to submit a parameter when selected.
i.e.


should send /xxx.do?submitButton=Delete

This should correspond to a member of your ActionForm.

You should also look into DispatchAction and LookupDispatchAction.
They can call different "execute" methods depending on a parameter from
the form post.
HTH,
Josh
[EMAIL PROTECTED] wrote:

 

Ok... Does anyone have a good alternative then?



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Submit Value
Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.

-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 1:01 PM
To: '[EMAIL PROTECTED]'
Subject: Submit Value
Quick question...

I'm using 2 submit buttons in the same form, so that I can do 1 of 2
   

things,
 

with the same input data.
(You can do that, right?)
I have the value attribute for one of them set to 'delete'.  What I'm
wondering is how to get the value of the submit button that was clicked
   

from
 

within the action class.

Thanx a million.

- Keith

www.buffalo.edu/~kkamholz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   

--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with [EMAIL PROTECTED]
http://shopnow.netscape.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Phillip Qin
Because there is no member variable to store the value of submit button.
Plus you cannot guarantee request.getParameter("submit") returning value for
some browsers.

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:23 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value

Actually, I just tried taking the value from request and it works. 

If I do request.getParameter("submit");  it returns value, but if i go 
myForm.getSubmit(); it does not.

Weird.  Only IE I can test right now is whatever comes with XP.

Anyone have any other experiences with this?

Denis


Erik Price wrote:

>
>
> Denis Avdic wrote:
>
>> *&*$*& damn MICROSOFT!
>>
>> And me for not testing on IE.
>>
>> Now I have to redesign half my webapp!
>>
>> And why is this implemented if IE (90% of population out there) 
>> cannot use the feature?
>>
>> 
>> 
>>
>> Gah.  Now to figure out an elegant way of fixing this
>
>
> Maybe you could have JavaScript that detects which button was clicked 
> and changes the value of a hidden form field just before the 
> submission occurs?
>
> Kind of inelegant, but it might work.  It's only as reliable as 
> JavaScript, though.
>
> Good luck, that sucks if you have to re-do work.
>
>
>
> Erik
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Redirecionamento

2003-05-29 Thread Marcos Oliva
Silverio, 

You can use your action class to do the redirect, 

Marcos oliva


-Original Message-
From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 11:22 AM
To: 'Struts Users Mailing List'
Subject: Redirecionamento

People,
 
Anyone can tell me how can I redirect from a jsp to another one?
 
Thanks in advance!
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Redirecionamento

2003-05-29 Thread Josh McCulloch
The purpose of Struts is for this type of logic to not be in the 
presentation layer. With that said,
try  and <% response.sendRedirect(); %>

[EMAIL PROTECTED] wrote:

People,

Anyone can tell me how can I redirect from a jsp to another one?

Thanks in advance!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: HTML 4.0 Tag?

2003-05-29 Thread Phillip Qin
This is the spec you should look for

http://www.w3.org/TR/html4/interact/forms.html#h-17.5

-Original Message-
From: Josh McCulloch [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:17 PM
To: Struts Users Mailing List
Subject: HTML 4.0  Tag?

(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the  tag in HTML 4.0? I just found it 
listed in "Web Design In A Nutshell".
To quote, "Defines a 'button' that functions similar to buttons created 
with the input tag, but allows for richer rendering possibilities.
Buttons can contain content such as text and images." These buttons can 
function as if it were a ,
but you can embed an image within the button (I might want to use it for 
displaying accessKeys on buttons: _S_ave).

Should there be a html: tag to deal with this tag? Is this still part of 
the specification?

- Josh




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HTML 4.0 Tag?

2003-05-29 Thread Joe Germuska
At 11:16 AM -0700 5/28/03, Josh McCulloch wrote:
(I should probably go read the HTML 4.0 spec BUT...)

Is anyone familiar with the  tag in HTML 4.0? I just found 
it listed in "Web Design In A Nutshell".
To quote, "Defines a 'button' that functions similar to buttons 
created with the input tag, but allows for richer rendering 
possibilities.
Buttons can contain content such as text and images." These buttons 
can function as if it were a ,
but you can embed an image within the button (I might want to use it 
for displaying accessKeys on buttons _S_ave).

Should there be a html: tag to deal with this tag? Is this still 
part of the specification?
There only needs to be a tag-library tag if you need to dynamically 
change the attribute values of the tag as it is rendered.  I haven't 
used  much, so nothing comes to mind; I always thought you 
used it when you wanted some arbitrary javascript triggered without 
having to deal with the added semantics of a submit or reset button.

I guess if you wanted the label of the button to be looked up from a 
Struts message resources bundle, that would be a justification.  If 
you find yourself needing it, why not take a shot at writing the 
class yourself?  My first (modest) contribution to the Struts package 
was the tag handler for HTML frames.  I pretty much just checked out 
the source code and copied from existing stuff -- it's easier than 
you might think.

By the way, I have since vigorously sworn off using frames in all 
cases -- but when you can't convince the client that frames are evil, 
you sometimes need the  tag...

Joe

--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time." 
	--Jaron Lanier

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


javascript nested:iterate property reference

2003-05-29 Thread Joseph . Sadove
I'm trying to use Matt Kruse's javascript calendar popup 
(http://www.mattkruse.com/javascript/calendarpopup/) inside a 
nested:iterate. This is likely a javascript question, but I would 
appreciate any help and it may help others save looking through the 
archives for the 8+ hours I've spent already trying to find this.

The call to "cal1" on the "onselect" fails. I've tried every permutation I 
could think of. I've tried putting the document element reference in a 
variable and calling it that way, but it seems the tmpIndex will not 
resolve. This would seem to be a generalized problem for referencing any 
form property in a javascript function call involving nested:iterate 
elements. Once again, please, any help vastly appreciated.

Here is the jsp excerpt:
<


  

var cal1 = new 
CalendarPopup();
cal1.setReturnFunction('showDate0');
cal1.offsetX=2;
function showDate0(y,m,d)
{document.forms[0].elements['targetDate'].value = 
m + "-" + d + "-" + y;}
myVar2 = "document.forms[0].targetDate [" + 
tmpIndex + "]";

   

 (m-d-)


..
>



= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



RE: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Bradley M. Handy
Why can't you depend on it?  I've never had any problem getting the value of
a submit button from a submitted form in IE or any other browser.  The
submit button is just another form parameter, so it gets passed like any
other form field (ie. Textfield, password field, checkbox, etc.).

I am rather curious as to what has led you to believe that IE won't send the
value of a submit button to a web application.

The only thing I can think of, is if you use a 
tied to a javascript function, instead of .  Then
the name of the button wouldn't be submitted unless it was specifically
added it to the request inside the javascript function.  (I hope that made
sense.)


Brad Handy



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 2:26 PM
To: 'Struts Users Mailing List'
Subject: [struts-user] RE: [RANT/FLAME] Re: Submit Value

Because there is no member variable to store the value of submit button.
Plus you cannot guarantee request.getParameter("submit") returning value for
some browsers.

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:23 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value

Actually, I just tried taking the value from request and it works. 

If I do request.getParameter("submit");  it returns value, but if i go 
myForm.getSubmit(); it does not.

Weird.  Only IE I can test right now is whatever comes with XP.

Anyone have any other experiences with this?

Denis


Erik Price wrote:

>
>
> Denis Avdic wrote:
>
>> *&*$*& damn MICROSOFT!
>>
>> And me for not testing on IE.
>>
>> Now I have to redesign half my webapp!
>>
>> And why is this implemented if IE (90% of population out there) 
>> cannot use the feature?
>>
>> 
>> 
>>
>> Gah.  Now to figure out an elegant way of fixing this
>
>
> Maybe you could have JavaScript that detects which button was clicked 
> and changes the value of a hidden form field just before the 
> submission occurs?
>
> Kind of inelegant, but it might work.  It's only as reliable as 
> JavaScript, though.
>
> Good luck, that sucks if you have to re-do work.
>
>
>
> Erik
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Denis Avdic
Why wouldn't there be a member variable?  In the form?


submit is there just because i put property="submit".
I could have called it property="yellowdinosaurwithpurplepolkadots" and 
it would still work (i think, never tried a name that long).

I am really confused by what you are saying here...

Phillip Qin wrote:

Because there is no member variable to store the value of submit button.
Plus you cannot guarantee request.getParameter("submit") returning value for
some browsers.
-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:23 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value

Actually, I just tried taking the value from request and it works. 

If I do request.getParameter("submit");  it returns value, but if i go 
myForm.getSubmit(); it does not.

Weird.  Only IE I can test right now is whatever comes with XP.

Anyone have any other experiences with this?

Denis

Erik Price wrote:

 

Denis Avdic wrote:

   

*&*$*& damn MICROSOFT!

And me for not testing on IE.

Now I have to redesign half my webapp!

And why is this implemented if IE (90% of population out there) 
cannot use the feature?



Gah.  Now to figure out an elegant way of fixing this
 

Maybe you could have JavaScript that detects which button was clicked 
and changes the value of a hidden form field just before the 
submission occurs?

Kind of inelegant, but it might work.  It's only as reliable as 
JavaScript, though.

Good luck, that sucks if you have to re-do work.



Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread David Graham
Because there is no member variable to store the value of submit button.
Plus you cannot guarantee request.getParameter("submit") returning value 
for
some browsers.
The HTML 4.01 spec specifically uses multiple submit buttons in its example 
and mandates that "successful" controls be submitted with name/value pairs.

http://www.w3.org/TR/html4/interact/forms.html#h-17.13

A browser that doesn't comply with the spec is broken and the last time I 
cheked IE *was* compliant.

David

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED]
Sent: May 28, 2003 2:23 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value
Actually, I just tried taking the value from request and it works.

If I do request.getParameter("submit");  it returns value, but if i go
myForm.getSubmit(); it does not.
Weird.  Only IE I can test right now is whatever comes with XP.

Anyone have any other experiences with this?

Denis

Erik Price wrote:

>
>
> Denis Avdic wrote:
>
>> *&*$*& damn MICROSOFT!
>>
>> And me for not testing on IE.
>>
>> Now I have to redesign half my webapp!
>>
>> And why is this implemented if IE (90% of population out there)
>> cannot use the feature?
>>
>> 
>> 
>>
>> Gah.  Now to figure out an elegant way of fixing this
>
>
> Maybe you could have JavaScript that detects which button was clicked
> and changes the value of a hidden form field just before the
> submission occurs?
>
> Kind of inelegant, but it might work.  It's only as reliable as
> JavaScript, though.
>
> Good luck, that sucks if you have to re-do work.
>
>
>
> Erik
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Phillip Qin
When you submit a form using struts framework. Every param+value pair is
saved into your ActionForm. Param is the name of your ActionForm's member
variable. If the widget is a button and you want to read the value, either
use request.getAttribute("myButton") or use ActionForm.getMyButton.

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:39 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value

Why wouldn't there be a member variable?  In the form?


submit is there just because i put property="submit".

I could have called it property="yellowdinosaurwithpurplepolkadots" and 
it would still work (i think, never tried a name that long).

I am really confused by what you are saying here...

Phillip Qin wrote:

>Because there is no member variable to store the value of submit button.
>Plus you cannot guarantee request.getParameter("submit") returning value
for
>some browsers.
>
>-Original Message-
>From: Denis Avdic [mailto:[EMAIL PROTECTED] 
>Sent: May 28, 2003 2:23 PM
>To: Struts Users Mailing List
>Subject: Re: [RANT/FLAME] Re: Submit Value
>
>Actually, I just tried taking the value from request and it works. 
>
>If I do request.getParameter("submit");  it returns value, but if i go 
>myForm.getSubmit(); it does not.
>
>Weird.  Only IE I can test right now is whatever comes with XP.
>
>Anyone have any other experiences with this?
>
>Denis
>
>
>Erik Price wrote:
>
>  
>
>>Denis Avdic wrote:
>>
>>
>>
>>>*&*$*& damn MICROSOFT!
>>>
>>>And me for not testing on IE.
>>>
>>>Now I have to redesign half my webapp!
>>>
>>>And why is this implemented if IE (90% of population out there) 
>>>cannot use the feature?
>>>
>>>
>>>
>>>
>>>Gah.  Now to figure out an elegant way of fixing this
>>>  
>>>
>>Maybe you could have JavaScript that detects which button was clicked 
>>and changes the value of a hidden form field just before the 
>>submission occurs?
>>
>>Kind of inelegant, but it might work.  It's only as reliable as 
>>JavaScript, though.
>>
>>Good luck, that sucks if you have to re-do work.
>>
>>
>>
>>Erik
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


using images for form buttons with LookupDispatchAction

2003-05-29 Thread Pani, Gourav
the powers that be within my organization have passed a decree that all form
buttons have to use images because, supposedly, html text buttons are too
"ugly".  be that as it may.
 
 
i am extending the LookupDispatchAction for all my Action classes that have
inserts/updates/searches etc in them.  the following is an example of my
action setup in struts-config.xml.
 


  

 
in my jsp, i was able to successfully get it to work in the following way.
 
 


Re: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Denis Avdic
Right.  Obviously there is some kind of misunderstanding here (probably 
because of my naming) because that
is what I was doing. 

Phillip Qin wrote:

When you submit a form using struts framework. Every param+value pair is
saved into your ActionForm. Param is the name of your ActionForm's member
variable. If the widget is a button and you want to read the value, either
use request.getAttribute("myButton") or use ActionForm.getMyButton.
-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:39 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value

Why wouldn't there be a member variable?  In the form?


submit is there just because i put property="submit".
I could have called it property="yellowdinosaurwithpurplepolkadots" and 
it would still work (i think, never tried a name that long).

I am really confused by what you are saying here...

Phillip Qin wrote:

 

Because there is no member variable to store the value of submit button.
Plus you cannot guarantee request.getParameter("submit") returning value
   

for
 

some browsers.

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED] 
Sent: May 28, 2003 2:23 PM
To: Struts Users Mailing List
Subject: Re: [RANT/FLAME] Re: Submit Value

Actually, I just tried taking the value from request and it works. 

If I do request.getParameter("submit");  it returns value, but if i go 
myForm.getSubmit(); it does not.

Weird.  Only IE I can test right now is whatever comes with XP.

Anyone have any other experiences with this?

Denis

Erik Price wrote:



   

Denis Avdic wrote:

  

 

*&*$*& damn MICROSOFT!

And me for not testing on IE.

Now I have to redesign half my webapp!

And why is this implemented if IE (90% of population out there) 
cannot use the feature?



Gah.  Now to figure out an elegant way of fixing this


   

Maybe you could have JavaScript that detects which button was clicked 
and changes the value of a hidden form field just before the 
submission occurs?

Kind of inelegant, but it might work.  It's only as reliable as 
JavaScript, though.

Good luck, that sucks if you have to re-do work.



Erik

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: javascript nested:iterate property reference

2003-05-29 Thread Mark Lowe
Could be more javascript than tag-libs..

You've a few inconsistancies in approach at first glance.. targetDate  
looks like it should be a variable not a string literal.. Can you paste  
the code that arrives to the web browser (i.e. without the struts tags)?



On Wednesday, May 28, 2003, at 19:34 Europe/London,  
[EMAIL PROTECTED] wrote:

I'm trying to use Matt Kruse's javascript calendar popup
(http://www.mattkruse.com/javascript/calendarpopup/) inside a
nested:iterate. This is likely a javascript question, but I would
appreciate any help and it may help others save looking through the
archives for the 8+ hours I've spent already trying to find this.
The call to "cal1" on the "onselect" fails. I've tried every  
permutation I
could think of. I've tried putting the document element reference in a
variable and calling it that way, but it seems the tmpIndex will not
resolve. This would seem to be a generalized problem for referencing  
any
form property in a javascript function call involving nested:iterate
elements. Once again, please, any help vastly appreciated.

Here is the jsp excerpt:
<


 

var cal1 = new
CalendarPopup();
cal1.setReturnFunction('showDate0');
cal1.offsetX=2;
function showDate0(y,m,d)
{document.forms[0].elements['targetDate'].value =
m + "-" + d + "-" + y;}
myVar2 = "document.forms[0].targetDate [" +
tmpIndex + "]";
onClick="cal1.select(document.forms[0].targetDate[tmpIndex],'anchor1',' MM/dd/'); return false;" NAME="anchor1" ID="anchor1"> border="0"> (m-d-) .. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: using images for form buttons with LookupDispatchAction

2003-05-29 Thread Pani, Gourav
Sorry for the incomplete email

 
the powers that be within my organization have passed a decree that all form
buttons have to use images because, supposedly, html text buttons are too
"ugly".  be that as it may.
 
 
i am extending the LookupDispatchAction for all my Action classes that have
inserts/updates/searches etc in them.  the following is an example of my
action setup in struts-config.xml.
 


  

 
in my jsp, i was able to successfully get it to work in the following way.
 
 

 


  

 
 
however, when i tried to use the html:image tag to do the same thing, i got
an error.
 
the following was my syntax for the html:image tag
 



 
 
the error i got on submitting by clicking on either of those images was:
 
BrightpointOnline2.0 root appender [tcpConnection-6802-0] ERROR -
ServletException:javax.servlet.ServletException:
Request[/secure/CarrierAdmin] does not contain handler parameter named
action; 
 
 
i guess the property with the html:image tag isn't being translated like the
html:submit is.  can anyone help me out here?  i have scoured the web for a
solution and none seemed to work.
 
 
ted, craig?  anybody.
 
TIA.



RE: [RANT/FLAME] Re: Submit Value

2003-05-29 Thread Mike Jasnowski
You could also not use submit buttons, but regular buttons, then use
Javascript to submit the form with something like

document.formName.submit();

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 1:39 PM
To: Struts Users Mailing List
Subject: [RANT/FLAME] Re: Submit Value


*&*$*& damn MICROSOFT!

And me for not testing on IE.

Now I have to redesign half my webapp!

And why is this implemented if IE (90% of population out there) cannot
use the feature?




Gah.  Now to figure out an elegant way of fixing this

Phillip Qin wrote:

>Don't bother trying it. Only Mozilla gives you the value, while IE doesn't.
>
>-Original Message-
>From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
>Sent: May 28, 2003 1:01 PM
>To: '[EMAIL PROTECTED]'
>Subject: Submit Value
>
>Quick question...
>
>I'm using 2 submit buttons in the same form, so that I can do 1 of 2
things,
>with the same input data.
>(You can do that, right?)
>I have the value attribute for one of them set to 'delete'.  What I'm
>wondering is how to get the value of the submit button that was clicked
from
>within the action class.
>
>Thanx a million.
>
>- Keith
>
>www.buffalo.edu/~kkamholz
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: using images for form buttons with LookupDispatchAction

2003-05-29 Thread Pani, Gourav
Additionally, has anyone used the ImageButtonBeanManager available on
SourceForge as a solution to my problem?

-Original Message-
From: Pani, Gourav 
Sent: Wednesday, May 28, 2003 1:53 PM
To: '[EMAIL PROTECTED]'
Subject: RE: using images for form buttons with LookupDispatchAction


Sorry for the incomplete email

 
the powers that be within my organization have passed a decree that all form
buttons have to use images because, supposedly, html text buttons are too
"ugly".  be that as it may.
 
 
i am extending the LookupDispatchAction for all my Action classes that have
inserts/updates/searches etc in them.  the following is an example of my
action setup in struts-config.xml.
 


  

 
in my jsp, i was able to successfully get it to work in the following way.
 
 

 


  

 
 
however, when i tried to use the html:image tag to do the same thing, i got
an error.
 
the following was my syntax for the html:image tag
 



 
 
the error i got on submitting by clicking on either of those images was:
 
BrightpointOnline2.0 root appender [tcpConnection-6802-0] ERROR -
ServletException:javax.servlet.ServletException:
Request[/secure/CarrierAdmin] does not contain handler parameter named
action; 
 
 
i guess the property with the html:image tag isn't being translated like the
html:submit is.  can anyone help me out here?  i have scoured the web for a
solution and none seemed to work.
 
 
ted, craig?  anybody.
 
TIA.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: javascript nested:iterate property reference

2003-05-29 Thread Joseph . Sadove
Mark (et al),
Here is the rendered html output from the jsp.
I don't think there are any inconsistencies, but please give me more 
detail if you see something. This works fine when it's not in a 
nested:iterate loop. I just need to get a document object reference that 
includes the resolved index and be able to pass it to the javascript 
function. 

I have to believe someone out there has done something similar and is as 
little expert in mixing javascript and struts as I am.

Thanks for the quick response, Joe


var cal1 = new 
CalendarPopup();
cal1.setReturnFunction('showDate0');
cal1.offsetX=2;
function showDate0(y,m,d)
{document.forms[0].elements['targetDate'].value = m + "-" 
+ d + "-" + y;}
myVar2 = "document.forms[0].targetDate [" + tmpIndex + 
"]";

   

 (m-d-)







Mark Lowe <[EMAIL PROTECTED]>
05/28/2003 02:50 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc: 
Subject:Re: javascript nested:iterate property reference


Could be more javascript than tag-libs..

You've a few inconsistancies in approach at first glance.. targetDate 
looks like it should be a variable not a string literal.. Can you paste 
the code that arrives to the web browser (i.e. without the struts tags)?



On Wednesday, May 28, 2003, at 19:34 Europe/London, 
[EMAIL PROTECTED] wrote:

> I'm trying to use Matt Kruse's javascript calendar popup
> (http://www.mattkruse.com/javascript/calendarpopup/) inside a
> nested:iterate. This is likely a javascript question, but I would
> appreciate any help and it may help others save looking through the
> archives for the 8+ hours I've spent already trying to find this.
>
> The call to "cal1" on the "onselect" fails. I've tried every 
> permutation I
> could think of. I've tried putting the document element reference in a
> variable and calling it that way, but it seems the tmpIndex will not
> resolve. This would seem to be a generalized problem for referencing 
> any
> form property in a javascript function call involving nested:iterate
> elements. Once again, please, any help vastly appreciated.
>
> Here is the jsp excerpt:
> <
> 
> 
>  
> 
> var cal1 = new
> CalendarPopup();
> cal1.setReturnFunction('showDate0');
> cal1.offsetX=2;
> function showDate0(y,m,d)
> 
> {document.forms[0].elements['targetDate'].value =
> m + "-" + d + "-" + y;}
> myVar2 = "document.forms[0].targetDate [" +
> tmpIndex + "]";
> 
>   
>  onClick="cal1.select(document.forms[0].targetDate[tmpIndex],'anchor1',' 
> MM/dd/');
> return false;" NAME="anchor1" ID="anchor1">
>  border="0"> (m-d-)
> 
> 
> ..
>>
>
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



Re: Redirecionamento

2003-05-29 Thread Mark Lowe
credo che sarrebbe meglio se il oggetto fosse scritto nella stessa 
lingua della email.

comunque la questa nuova parola italiana hai inventato è molto 
interessante.. ;o) evidentamente devo studiare un po' di più..

saluti mark

On Wednesday, May 28, 2003, at 19:26 Europe/London, Josh McCulloch 
wrote:

The purpose of Struts is for this type of logic to not be in the 
presentation layer. With that said,
try  and <% response.sendRedirect(); %>

[EMAIL PROTECTED] wrote:

People,
Anyone can tell me how can I redirect from a jsp to another one?
Thanks in advance!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with [EMAIL PROTECTED] 
http://shopnow.netscape.com/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: javascript nested:iterate property reference

2003-05-29 Thread Kruse, Matt
> I have to believe someone out there has done something 
> similar and is as 
> little expert in mixing javascript and struts as I am.

As soon as I get extra time, I _will_ be putting this calendar into a struts
taglib, so no one will need to fight this anymore :)

I'll point out a couple of issues and hope that they will help you along:

> document.forms[0].elements['targetDate'].value = m + "-" + d + "-" + y;
> 

'targetDate' is not the name of your field. 'eventList[0].targetDate' is.

Technically, this is an invalid name for an input field, but we'll ignore
that fact because it's now become more common with PHP and Struts and who
knows what else creating this type of field name.

To reference an invalid form field name like this, you will need to use a
reference like this:

document.forms[0]['eventList[0].targetDate']

But, since you're using the 'select' method, you don't even need to define
the setReturnFunction or anything. Just use select() and pass it the form
field to populate and format.

So, I think what you really want is:



Try that and see if it works :)

Matt Kruse


RE: Redirecionamento

2003-05-29 Thread Steve Raeburn
This is definitely *not* a Struts question. But, just this one time ...

http://www.google.ca/search?q=jsp+redirect
http://www.google.ca/search?q=jsp+tutorial
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html

You should also read http://jakarta.apache.org/struts/resources/1st.html and
http://jakarta.apache.org/struts/userGuide/preface.html and make sure that
you are familiar with the core technologies that underpin Struts.

Steve


> -Original Message-
> From: Silverio Wagner Silva(Secorp) [mailto:[EMAIL PROTECTED]
> Sent: May 28, 2003 11:22 AM
> To: 'Struts Users Mailing List'
> Subject: Redirecionamento
>
>
> People,
>
> Anyone can tell me how can I redirect from a jsp to another one?
>
> Thanks in advance!
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: javascript nested:iterate property reference

2003-05-29 Thread Joseph . Sadove
Matt,
 the problem is getting the particular iterate element as expressed by 
the tmpIndex. What needs to be passed for every row is something like 
document.forms[0].['eventList[0].targetDate']
document.forms[1].['eventList[0].targetDate']

document.forms[99].['eventList[0].targetDate']

Stuffing it into a variable is the only thing I could get it to accept. 
But

Here is the last attempt I made. The first snippet is the JSP the second 
it the rendered html. Alas, this doesn't work. ;-{



var cal1 = new 
CalendarPopup();
cal1.setReturnFunction('showDate0');
cal1.offsetX=2;
myVar2 = "document.forms[0].['eventList[" + tmpIndex + 
"].targetDate']";
function showDate0(y,m,d)
{myVar2.value = m + "-" + d + "-" + y;}

   

 (m-d-)






var cal1 = new 
CalendarPopup();
cal1.setReturnFunction('showDate0');
cal1.offsetX=2;
myVar2 = "document.forms[0].['eventList[" + tmpIndex + 
"].targetDate']";
function showDate0(y,m,d)
{myVar2.value = m + "-" + d + "-" + y;}

   

 (m-d-)



 






"Kruse, Matt" <[EMAIL PROTECTED]>
05/28/2003 03:02 PM
Please respond to "Struts Users Mailing List"

 
To: Struts Users Mailing List <[EMAIL PROTECTED]>
cc: 
Subject:RE: javascript nested:iterate property reference


> I have to believe someone out there has done something 
> similar and is as 
> little expert in mixing javascript and struts as I am.

As soon as I get extra time, I _will_ be putting this calendar into a 
struts
taglib, so no one will need to fight this anymore :)

I'll point out a couple of issues and hope that they will help you along:

> document.forms[0].elements['targetDate'].value = m + "-" + d + "-" + y;
> 

'targetDate' is not the name of your field. 'eventList[0].targetDate' is.

Technically, this is an invalid name for an input field, but we'll ignore
that fact because it's now become more common with PHP and Struts and who
knows what else creating this type of field name.

To reference an invalid form field name like this, you will need to use a
reference like this:

document.forms[0]['eventList[0].targetDate']

But, since you're using the 'select' method, you don't even need to define
the setReturnFunction or anything. Just use select() and pass it the form
field to populate and format.

So, I think what you really want is:



Try that and see if it works :)

Matt Kruse




= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 
This transmittal and any attachments may contain confidential, privileged or sensitive 
information and is solely for the use of the intended recipient. If you are not 
intended recipient, you are hereby notified that you have received this transmittal 
and any such attachments in error and any review, dissemination, distribution or 
copying thereof is strictly prohibited. If you have received this transmittal and any 
attachments in error please notify the sender and immediately destroy the message and 
all its attachments. Any opinions herein expressed may be those of the author and not 
necessarily of Mizuho Corporate Bank, Ltd (the "Bank"). The Bank accepts no 
responsibility for the accuracy or completeness of any information herein contained.
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = 



Is this question too easy??

2003-05-29 Thread Barry Volpe
The following works but I was wondering if there is an easier way?


  
Select-A-Category 
Form A 
Form B 
Form C 

  
 


//In my action

String target = new String(request.getParameter("category"));


//In my action form

public class CategoryForm extends ActionForm {

  protected String category;  

  public void setCategory(String category) {

this.category = category;
  }

  public String getCategory() {

return category;
  }


//Now the ugly part in my STRUTS-CONFIG:



   
   
   
   

Is there an easier way?  Doesn't seem right to define multiple fowards in the 
struts-config.

Thanks,
Barry



DynaActionForms and persistence (wizard-type behavior)

2003-05-29 Thread Gregory F. March

Hi all...

Now that I've got me LookupDispatchAction problem worked out (it works
really well!), I'm struggling with a DynaActionForm problem.

I have an action who's scope is "session".  The associated form is a
DynaActionForm.  Since I'm just building the app, I have the "next"
button on the form pointing back to the same page.

When I enter data into the form and press next, I can see the fields
in the action (I print them), I find the appropriate forward (which is
back to the same page) and return it.

The form gets reset.

I read that if I subclass DynaActionForm and override the reset method
to do nothing, it should work.  It doesn't.

What is the proper way to have the DynaActionForm repopulate with the
previous data?

Thanks!

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Is this question too easy?

2003-05-29 Thread Barry Volpe
Using an action the following is the method I am using to call
forms from a list box (instead of using links).  Is there an
easier way of doing this possibly without an action?



  
Select-A-Category 
Form A 
Form B 
Form C 

  
 


//In my action

String target = new String(request.getParameter("category"));


//In my action form

public class CategoryForm extends ActionForm {

  protected String category;  

  public void setCategory(String category) {

this.category = category;
  }

  public String getCategory() {

return category;
  }


//Now the ugly part in my STRUTS-CONFIG:



   
   
   
   

Is there an easier way?  Doesn't seem right to define multiple fowards in the 
struts-config.

Thanks,
Barry



RE: Is this question too easy?

2003-05-29 Thread Mark Galbreath
Well, you'd probably have better performance if you got rid of the
 tag But this looks about as simple as it gets.

Mark

-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 3:59 PM
To: Struts Users Mailing List
Subject: Is this question too easy?


Using an action the following is the method I am using to call forms from a
list box (instead of using links).  Is there an easier way of doing this
possibly without an action?



  
Select-A-Category 
Form A 
Form B 
Form C 

  
 


//In my action

String target = new String(request.getParameter("category"));


//In my action form

public class CategoryForm extends ActionForm {

  protected String category;  

  public void setCategory(String category) {

this.category = category;
  }

  public String getCategory() {

return category;
  }


//Now the ugly part in my STRUTS-CONFIG:



   
   
   
   

Is there an easier way?  Doesn't seem right to define multiple fowards in
the struts-config.

Thanks,
Barry




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems with Locale and MessageResources

2003-05-29 Thread Daniel H. F. e Silva
Hi all,
 I am needing help.
 I am getting in trouble with Locale and MessageResources stuff. When my JSP having a
 tag renders it is printing ???en_US.???. I know this 
is
because i configured 
  
 Well, i have a file with name ApplicationResources.properties located at 
com/sbpi/jsiw/resource
folder below WEB-INF/classes. So it is at my application classpath.
 I also have a file with name ApplicationResources_en_US.properties at that same 
folder.
 But i'm still getting ???en_US.??? stuff.
 I tried with Resin-2.1.9 and with Tomcat-4.1.24. It happens on both.

 Now tell me: what am i doing wrong?

Thanks in advance,
 Daniel.
 



__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is this question too easy?

2003-05-29 Thread Marcos Oliva
And perhaps you can use javascript to do the forwarding instead of
sending this to the Action class, your struts-config will probably
change a bit.

My 2 cents

Marcos Oliva

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 1:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Is this question too easy?

Well, you'd probably have better performance if you got rid of the
 tag But this looks about as simple as it gets.

Mark

-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 3:59 PM
To: Struts Users Mailing List
Subject: Is this question too easy?


Using an action the following is the method I am using to call forms
from a
list box (instead of using links).  Is there an easier way of doing this
possibly without an action?



  
Select-A-Category 
Form A 
Form B 
Form C 

  
 


//In my action

String target = new String(request.getParameter("category"));


//In my action form

public class CategoryForm extends ActionForm {

  protected String category;  

  public void setCategory(String category) {

this.category = category;
  }

  public String getCategory() {

return category;
  }


//Now the ugly part in my STRUTS-CONFIG:



   
   
   
   

Is there an easier way?  Doesn't seem right to define multiple fowards
in
the struts-config.

Thanks,
Barry




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Is this question too easy??

2003-05-29 Thread Joe Barefoot

Is there an easier way?  Doesn't seem right to define multiple fowards in the 
struts-config.


Not really sure why this wouldn't seem right to you...the entire purpose of struts 
actions is to determine control flow in the UI.  Now, it would be bad if you were 
dynamically creating ActionForward objects with "hidden" urls and returning those from 
your actions, but defining multiple local forwards in struts-config as the possible 
end points for an action is exactly what you are supposed to do.


--joe


-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 12:57 PM
To: Struts Users Mailing List
Subject: Is this question too easy??


The following works but I was wondering if there is an easier way?


  
Select-A-Category 
Form A 
Form B 
Form C 

  
 


//In my action

String target = new String(request.getParameter("category"));


//In my action form

public class CategoryForm extends ActionForm {

  protected String category;  

  public void setCategory(String category) {

this.category = category;
  }

  public String getCategory() {

return category;
  }


//Now the ugly part in my STRUTS-CONFIG:



   
   
   
   

Is there an easier way?  Doesn't seem right to define multiple fowards in the 
struts-config.

Thanks,
Barry


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with Locale and MessageResources

2003-05-29 Thread James Mitchell
Try deploying the struts-example.  If that fails then you have a problem.


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org



- Original Message -
From: "Daniel H. F. e Silva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 4:11 PM
Subject: Problems with Locale and MessageResources


> Hi all,
>  I am needing help.
>  I am getting in trouble with Locale and MessageResources stuff. When my
JSP having a
>  tag renders it is printing ???en_US.???.
I know this is
> because i configured
>   
>  Well, i have a file with name ApplicationResources.properties located at
com/sbpi/jsiw/resource
> folder below WEB-INF/classes. So it is at my application classpath.
>  I also have a file with name ApplicationResources_en_US.properties at
that same folder.
>  But i'm still getting ???en_US.??? stuff.
>  I tried with Resin-2.1.9 and with Tomcat-4.1.24. It happens on both.
>
>  Now tell me: what am i doing wrong?
>
> Thanks in advance,
>  Daniel.
>
>
>
>
> __
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



alphabetic index links

2003-05-29 Thread Alawadhi, Mona
I would like to display the alphabets (A through Z) as links in my jsp. I'm
storing them in a Vector (or ArrayList) in my Form Bean. What tag libraries
should I use to iterate through the Vector/ArrayList, and caputre the
alphabet selected? ( I'm running a query upon the alphabet selected)

Thank you,

Mona


*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 
*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is this question too easy?

2003-05-29 Thread Barry Volpe
Thanks,
Barry
- Original Message -
From: "Mark Galbreath" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 1:08 PM
Subject: RE: Is this question too easy?


> Well, you'd probably have better performance if you got rid of the
>  tag But this looks about as simple as it gets.
>
> Mark
>
> -Original Message-
> From: Barry Volpe [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 28, 2003 3:59 PM
> To: Struts Users Mailing List
> Subject: Is this question too easy?
>
>
> Using an action the following is the method I am using to call forms from
a
> list box (instead of using links).  Is there an easier way of doing this
> possibly without an action?
>
>
> name="categoryForm"
>   type="com.CategoryForm"
>   scope="request" >
>  
> Select-A-Category
> Form A
> Form B
> Form C
> 
>   
>  
>
>
> //In my action
>
> String target = new String(request.getParameter("category"));
>
>
> //In my action form
>
> public class CategoryForm extends ActionForm {
>
>   protected String category;
>
>   public void setCategory(String category) {
>
> this.category = category;
>   }
>
>   public String getCategory() {
>
> return category;
>   }
>
>
> //Now the ugly part in my STRUTS-CONFIG:
>
>type="com.childrencare.GetCategoryAction"
>   name="categoryForm"
>   scope="request"
>   input="/useradminpage.jsp"
>   validate="false" >
>   
>
>
>
>
>
> Is there an easier way?  Doesn't seem right to define multiple fowards in
> the struts-config.
>
> Thanks,
> Barry
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Repost: Global request parameter filtering

2003-05-29 Thread Mike Whittaker

Okay, no one seems to have any suggestions so having thought about this for
about a week now here is what I propose to do.

I'm just trying to implement very simple forms the struts way, prepopulation
& validation are not major concerns at the moment but I'd like to keep the
option open.
My main requirement is to retain global filtering of all request parameters,
for instance to keep a database secure by escaping sensitive sql characters.

My other requirement is small url's with tiny parameter names.

1/ Use DynaActionForms to define these tiny parameter names.
2/ The DynaActionForms will be a DAF subclass, which will implement an
interface that specifies at least the set & get methods.
3/ Either the attributes of this DAF can be altered (eg filtering
characters) with the aid of BeanUtils or a duplicate can be made to which
this is done.
4/ Objects of type ThisInterface, can then be shipped to the Buisness layer
struts being transparent.
5/ The business layer can utilise a meaningful Constants interface that
makes the tiny parameter names more meaningful.

Does this sound okay?

This was my other post on the same subject that has been lost in the
postings barrage!

>Say for instance you want to filter for all the ' " \ characters in request
>parameters
>either removing them, or escaping them.
>
>Either way if you do it before the action form gets them, then on
>prepopulation of form fields the user will see these alterations (not
>desirable).
>If you do it after you decide the form won't be returned then:
>
>a) It becomes difficult because you have just form bean method calls to get
>the parameters something like filter(getMyString()) becomes a pain and open
>to missing out the filtering with potentially disastorous consequences!
>
>b) If you decided to somehow globally alter a session scoped form
>then again
>you have prepopulation alterations.
>
>I have seen that RequestProcessor may offer hope, I'd like to know
>the order
>that these RP methods are called.
>
>I realise that I could use BeanUtils and make a DynaBean copy of a form
>bean, filtering the parameters during the copy.  Just seems overkill, and
>yet another object in the request.
>
>Any pointers?
>How do you filter your sql sensitive characters?
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Somehow change PropertyMessageResources to enhance testability?

2003-05-29 Thread Karr, David
It's easy to see that in normal operation, it's a good idea for
"PropertyMessageResources" to be a read-only repository.  There's no
good reason to change message properties at runtime.  However, it would
be really nice to be able to write Cactus tests that are self-contained,
so I can manually create the properties that a tag will use, so I can
clearly verify the result.

Is there any strategy for doing this?  Does StrutsTestCase have any way
to do this?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts and the infamous IE multiple browser/same session problem

2003-05-29 Thread Michael Ruppin
I'm reconsidering my approach to this problem, in
favor of something more elegant/more compatible with
out-of-the-box Struts.  Anyone tackled this yet?

For those not aware, MS IE allows users to launch a
browser against the same session via File/New/Window
(Ctrl-N).  The issue is, if you have need to keep data
in the session (which I do), a submission from one
browser could grab and/or overwrite session data meant
for the other browser.  This can lead to data
integrity problems and other weirdness.  Telling my
user community not to use MS IE or it's Ctrl-N feature
is not an option.

My current approach is to put a hidden random "key"
into the HTML, and name the session attribute with
that.  When one of the two browsers submits a request
(Assuming, at this point, they've opened another) the
session data is pulled by key, assigned a new key, a
new copy is placed in the session named with the new
key, and the new key is rendered  in the HTML
response.  The old session data may or may not be
removed, depending on whether or not it is acceptable
for the browser with the old key to [gracefully] fail,
how we choose to expire session data, and whether or
not a means of dealing with stale data is supported by
the model.

This works fine, but in doing so I've had to write my
own methods for populating collections of forms which
would have otherwise been taken care of for me by
specifying session scope in struts-config.  Am I
missing a better way?

m


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts and the infamous IE multiple browser/same session problem

2003-05-29 Thread Pani, Gourav
have you considered creating a unique token to do session related updates?
i don't think tokens can be transferred from one browser window to another
though i could be wrong.

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:47 PM
To: Struts Users Mailing List
Subject: Struts and the infamous IE multiple browser/same session
problem


I'm reconsidering my approach to this problem, in
favor of something more elegant/more compatible with
out-of-the-box Struts.  Anyone tackled this yet?

For those not aware, MS IE allows users to launch a
browser against the same session via File/New/Window
(Ctrl-N).  The issue is, if you have need to keep data
in the session (which I do), a submission from one
browser could grab and/or overwrite session data meant
for the other browser.  This can lead to data
integrity problems and other weirdness.  Telling my
user community not to use MS IE or it's Ctrl-N feature
is not an option.

My current approach is to put a hidden random "key"
into the HTML, and name the session attribute with
that.  When one of the two browsers submits a request
(Assuming, at this point, they've opened another) the
session data is pulled by key, assigned a new key, a
new copy is placed in the session named with the new
key, and the new key is rendered  in the HTML
response.  The old session data may or may not be
removed, depending on whether or not it is acceptable
for the browser with the old key to [gracefully] fail,
how we choose to expire session data, and whether or
not a means of dealing with stale data is supported by
the model.

This works fine, but in doing so I've had to write my
own methods for populating collections of forms which
would have otherwise been taken care of for me by
specifying session scope in struts-config.  Am I
missing a better way?

m


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: alphabetic index links

2003-05-29 Thread Mark Galbreath
 and 

Mark

-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 4:29 PM
To: 'Struts Users Mailing List'
Subject: alphabetic index links


I would like to display the alphabets (A through Z) as links in my jsp. I'm
storing them in a Vector (or ArrayList) in my Form Bean. What tag libraries
should I use to iterate through the Vector/ArrayList, and caputre the
alphabet selected? ( I'm running a query upon the alphabet selected)

Thank you,

Mona



*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 

*


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts and the infamous IE multiple browser/same session problem

2003-05-29 Thread Mike Thompson
Everyone's favorite!!! ;)

you can always disable control-N via JavaScript ;)

in an onkeydown handler probably for a body tag.

//check for control n
if (window.event.ctrlKey && window.event.keyCode == 78)
{
window.event.returnValue = false;
return false;
}


--m

-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:50 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts and the infamous IE multiple browser/same session
problem


have you considered creating a unique token to do session related updates?
i don't think tokens can be transferred from one browser window to another
though i could be wrong.

-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:47 PM
To: Struts Users Mailing List
Subject: Struts and the infamous IE multiple browser/same session
problem


I'm reconsidering my approach to this problem, in
favor of something more elegant/more compatible with
out-of-the-box Struts.  Anyone tackled this yet?

For those not aware, MS IE allows users to launch a
browser against the same session via File/New/Window
(Ctrl-N).  The issue is, if you have need to keep data
in the session (which I do), a submission from one
browser could grab and/or overwrite session data meant
for the other browser.  This can lead to data
integrity problems and other weirdness.  Telling my
user community not to use MS IE or it's Ctrl-N feature
is not an option.

My current approach is to put a hidden random "key"
into the HTML, and name the session attribute with
that.  When one of the two browsers submits a request
(Assuming, at this point, they've opened another) the
session data is pulled by key, assigned a new key, a
new copy is placed in the session named with the new
key, and the new key is rendered  in the HTML
response.  The old session data may or may not be
removed, depending on whether or not it is acceptable
for the browser with the old key to [gracefully] fail,
how we choose to expire session data, and whether or
not a means of dealing with stale data is supported by
the model.

This works fine, but in doing so I've had to write my
own methods for populating collections of forms which
would have otherwise been taken care of for me by
specifying session scope in struts-config.  Am I
missing a better way?

m


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANNOUNCE] Carrier on Wheels and Struts Unveiled

2003-05-29 Thread Jing Zhou
Hi, all,

Carrier 2 arrives finally with the capability of composing and exchanging
LIVE web form based messages on Internet without a SINGLE line of
Java codes! Its simplicity is unmatched.

It is FREE for every developers with the developer license.
It is FREE* for every members in the Carrier Group for redistribution.

Check it out at www.netspread.com. The distribution comes with
the source codes for the Carrier Wheels at the server side! It also
comes with 72 action mappings in the demos. Over 150 screen shots
are available in our documentation set. It is a significant built up
on Struts!

Regards,

Jing

Creator of Carrier

* a basic volume license.

RE: Struts and the infamous IE multiple browser/same session problem

2003-05-29 Thread Paananen, Tero
> I'm reconsidering my approach to this problem, in
> favor of something more elegant/more compatible with
> out-of-the-box Struts.  Anyone tackled this yet?

Wait till you find out that MSIE, in its default
configuration, will happily cache even dynamicly
generated pages, so your token key approach will
break just as easily.

-TPP - oxymoron of the day: Microsoft standards

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Somehow change PropertyMessageResources to enhance testability?

2003-05-29 Thread Paananen, Tero
> It's easy to see that in normal operation, it's a good idea for
> "PropertyMessageResources" to be a read-only repository.  There's no
> good reason to change message properties at runtime.  
> However, it would
> be really nice to be able to write Cactus tests that are 
> self-contained,
> so I can manually create the properties that a tag will use, so I can
> clearly verify the result.
> 
> Is there any strategy for doing this?  Does StrutsTestCase 
> have any way
> to do this?

Extend PropertyMessageResources (and the corresponding
factory class) and implement what you need. Then use
that new class in your tests.

-TPP


-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   3   >