calling form bean method

2001-08-30 Thread Ali Ozoren



Hi 
all,

I have 
a method that returns a String in the form bean. How can I call it from within 
the JSP page that uses that bean? Couldn't find a way to refer to the underlying 
form bean..
Thanks,
--a


Transforming xml with xsl in custom tag

2001-08-30 Thread Pulkka Kari

Hi all,

I have the following problem:
I have a jsp-page that imports all the struts taglib tlds and contains a
call to a custom taglib (evliwar:instruments /). This tag receives data
from the db as xml and transforms it with a xsl. The output of the
transformation contains struts html:xxx-tags. Unfortunately these tags
never get parsed to html. Of course I could transform the data straight to
html but then I would lose the validation benefits etc of struts? What am I
doing wrong? Is this feasible at all?

Here is a part of the xsl:
html xsl:version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
link href=common/bo.css rel=stylesheet type=text/css/link
link href=common/header.css rel=stylesheet
type=text/css/link
  td
html:select styleClass=sel8 property=instrument size=1
html:option value=0/html:option
xsl:for-each select=//ROW
html:option value={INSTRUMENTID}
xsl:value-of
select=ISSUER_EXCHANGECODE /
/html:option
/xsl:for-each
/html:select
/td
/html

This is the output I get in the browser:
html
link type=text/css rel=stylesheet href=common/bo.css
link type=text/css rel=stylesheet href=common/header.css
td
html:select size=1 property=instrument styleClass=sel8
html:option value=0/html:option
html:option value=7002NOK1VEW197/html:option
html:option value=149850NOK1VEW199/html:option
/html:select
/td
/html

This is what I'd like to achieve (eventually):
html
link type=text/css rel=stylesheet href=common/bo.css
link type=text/css rel=stylesheet href=common/header.css
td
select size=1 name=instrument class=sel8
option value=0/option
option value=7002NOK1VEW197/option
option value=149850NOK1VEW199/option
/select
/td
/html

TIA,
Kari
---
Kari Pulkka
IT/EvliNet Development
Evli Securities Plc
Aleksanterinkatu 19 A, P.O. Box 1081
FIN-00100 Helsinki, Finland

Tel.   +358 (0)9 4766 9241
GSM +358 (0)40 548 4019
Fax  +358 (0)9 4766 9352
http://www.evli.net
mailto:[EMAIL PROTECTED]


This e-mail is for the intended recipient only and it may contain
confidential, proprietary and/or legally privileged information. If you have
received it in error, please immediately notify the sender by a return
e-mail and delete it from your system and destroy possible hard copies. You
must not use, disclose, distribute, print or copy any part of this message
if you are not the intended recipient. Any opinions expressed in this e-mail
are those of the sender and do not necessarily reflect the opinions of the
Evli Group. Evli Group reserves the right to monitor all e-mail
communications through its networks.






Validator Input fields of type File

2001-08-30 Thread Ralph vd Houdt

Hi All,

I'm using the Struts Validator bij David Winterfeldt. An excelent addition
to the struts framework. A little problem arises when I tryed to validate an
upload field of a form. The required setting of the validator doesn't work
for inputfields with files. I try to validate the other fields first with
the Validator and then use the validate method in the form to check the
input field of the file. I used the following code.

public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if ((file == null) || (file.getFileSize()  1))
errors.add(file, new ActionError(error.nofile));
return errors;
}

The problem is that the new ActionErrors() empties the errors found bij
the Validator. Is there a function to retrieve the ActionErrors of the
Validator to be used in the rest of the validate method for example:

ActionErrors errors = this.getActionErrors();

Or a method to check files in the Validator.

Greeting Ralph





RE: Transforming xml with xsl in custom tag

2001-08-30 Thread SUHAS G. KULKARNI

But struts tags are identified by tagLibrary ( JSP 1.1 support) 
In case of XSL the tags that we can use in it should be XSL tags + html
presentation tags
No struts tags are allowed there .


-Original Message-
From: Pulkka Kari [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:45 PM
To: [EMAIL PROTECTED]
Subject: Transforming xml with xsl in custom tag


Hi all,

I have the following problem:
I have a jsp-page that imports all the struts taglib tlds and contains a
call to a custom taglib (evliwar:instruments /). This tag receives data
from the db as xml and transforms it with a xsl. The output of the
transformation contains struts html:xxx-tags. Unfortunately these tags
never get parsed to html. Of course I could transform the data straight to
html but then I would lose the validation benefits etc of struts? What am I
doing wrong? Is this feasible at all?

Here is a part of the xsl:
html xsl:version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
link href=common/bo.css rel=stylesheet type=text/css/link
link href=common/header.css rel=stylesheet
type=text/css/link
  td
html:select styleClass=sel8 property=instrument size=1
html:option value=0/html:option
xsl:for-each select=//ROW
html:option value={INSTRUMENTID}
xsl:value-of
select=ISSUER_EXCHANGECODE /
/html:option
/xsl:for-each
/html:select
/td
/html

This is the output I get in the browser:
html
link type=text/css rel=stylesheet href=common/bo.css
link type=text/css rel=stylesheet href=common/header.css
td
html:select size=1 property=instrument styleClass=sel8
html:option value=0/html:option
html:option value=7002NOK1VEW197/html:option
html:option value=149850NOK1VEW199/html:option
/html:select
/td
/html

This is what I'd like to achieve (eventually):
html
link type=text/css rel=stylesheet href=common/bo.css
link type=text/css rel=stylesheet href=common/header.css
td
select size=1 name=instrument class=sel8
option value=0/option
option value=7002NOK1VEW197/option
option value=149850NOK1VEW199/option
/select
/td
/html

TIA,
Kari
---
Kari Pulkka
IT/EvliNet Development
Evli Securities Plc
Aleksanterinkatu 19 A, P.O. Box 1081
FIN-00100 Helsinki, Finland

Tel.   +358 (0)9 4766 9241
GSM +358 (0)40 548 4019
Fax  +358 (0)9 4766 9352
http://www.evli.net
mailto:[EMAIL PROTECTED]


This e-mail is for the intended recipient only and it may contain
confidential, proprietary and/or legally privileged information. If you have
received it in error, please immediately notify the sender by a return
e-mail and delete it from your system and destroy possible hard copies. You
must not use, disclose, distribute, print or copy any part of this message
if you are not the intended recipient. Any opinions expressed in this e-mail
are those of the sender and do not necessarily reflect the opinions of the
Evli Group. Evli Group reserves the right to monitor all e-mail
communications through its networks.





AW: Help: Cannot find bean BEAN in scope null

2001-08-30 Thread juraj Lenharcik

put scope=request to your tag


-Ursprüngliche Nachricht-
Von: Gary Kephart [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 29. August 2001 20:32
An: Struts User
Betreff: Help: Cannot find bean BEAN in scope null


I get this message in the log file:

Cannot find bean org.apache.struts.taglib.html.BEAN in scope null

Does anyone know why this happened and how to fix it?

Thanks,
  Gary
--
Gary Kephart   | Basis 100
Software Engineer  | 4 Park Plaza, Suite 800
[EMAIL PROTECTED]  | Irvine, CA 92614
(949) 852-8600x262 | http://www.basis100.com

This communication is intended only for the use of the individual or
entity to whom/which it is addressed, and information contained in this
communication is privileged and confidential.  If the receiver of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly

prohibited.  If you have received this communication in error, please
notify us at the above telephone number (so that we may correct our
internal records) and delete this communication without making a copy of

it.  Thank you.



RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread Dudley [EMAIL PROTECTED]

i'm having the same problem , please help anyone?

-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 9:32 PM
To: struts-user@jakarta. apache. org (E-mail)
Subject: STRANGE: session.invalidate() is not invalidating the session


Hi,

I noticed a peculiar thing. In my application I have a logout link on pages.
This link control goes to 'Logout' action where I  clean up the session
variables and then invalidate the session with:

session.invalidate();

and this class forwards it to Logout.jsp which just has the goodbye message.

I have noticed that at this point if I keep going back with the back key of
my browser to the point where jsessionid is part of the URL, i.e.,

http://localhost:8080/msqc/logon.do;jsessionid=149062E2E0A77480075991317505D
453


and do the browser refresh here then I can go back into the application
without having to log in again. It is as if the session is still alive.

All the screens(incl. the above URL point) going backwards from Logout.jsp
do show the page expired message but doing refresh on the above URL screen
only brings back the application

Could someone please explain this to me? Has anyone else seen this?

BTW I am using Tomcat 4.0 and Struts 1.1(same happens with 1.0 too)

TIA.

-Nimmi


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: Attribute value should be quoted

2001-08-30 Thread Dudley [EMAIL PROTECTED]

send a copy of your jsp, its usually a html tag just above or below the line
in question

-Original Message-
From: David Corbin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 4:04 PM
To: Struts User
Subject: Attribute value should be quoted


I'm getting the following exception from a particular JSP:

org.apache.jasper.compiler.ParseException: .\AddCompany.jsp(58,36)
Attribute value should be quoted
at
org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:478)
at
org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:524)
at
org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:635)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:798)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:833)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

The line in question reads:

html:text size=40 property=description /

if the syntactical color is correct, my quotes are balanced.

It looks just like one from another page that works fine.  I do have the
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
at the top of the .JSP file.

I'm baffled.  Any ideas?

Thanks.
David Corbin


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: Tokens?

2001-08-30 Thread Dudley [EMAIL PROTECTED]
Title: Message



one 
would typically use tokens as a means to prevent the user from submitting a page 
twice when it is undesirable to do so...if u would like more info and some 
examples let me know

  -Original Message-From: Steven Leija 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 29, 2001 
  5:24 PMTo: 'Struts 
  ([EMAIL PROTECTED])'Subject: 
  Tokens?
  Hello 
  All,
  
  I'm going over the 
  Action javadocs and came across several methods that use the keyword of 
  "token". The docs aren't very intuitive on what exactly defines a 
  token. 
  
  What do the token 
  methods do? 
  
  generateToken()
  resetToken()
  saveToken()
  isTokenValid()
  Have a good one, 
  Steven 
  

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: Tokens?

2001-08-30 Thread Claudio Parnenzini

I'm interested for the code. Can you send me an examples please.
 
Thank you very much

-Original Message- 
From: Dudley Butt@i-Commerce 
Sent: Thu 8/30/2001 10:45 AM 
To: '[EMAIL PROTECTED]' 
Cc: 
Subject: RE: Tokens?


one would typically use tokens as a means to prevent the user
from submitting a page twice when it is undesirable to do so...if u
would like more info and some examples let me know

-Original Message-
From: Steven Leija [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 5:24 PM
To: 'Struts ([EMAIL PROTECTED])'
Subject: Tokens?


Hello All,
 
I'm going over the Action javadocs and came across
several methods that use the keyword of token.  The docs aren't very
intuitive on what exactly defines a token.  
 
What do the token methods do?  
 
generateToken()
resetToken()
saveToken()
isTokenValid()

Have a good one, 

Steven 

 




**
This email and any files transmitted with it are confidential
and
intended solely for the use of the individual or entity to whom
they
are addressed. If you have received this email in error please
notify
the system manager.

This footnote also confirms that this email message has been
swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com

**



 winmail.dat


Re: How to use radio-Buttons when iterating

2001-08-30 Thread Ralph vd Houdt

How to use radio-Buttons when iteratingThis should do the trick.

html:radio  property=auswahl value=%= adresse.getName() % /

or even

html:radio  property=auswahl value=bean:write name=adresse
property=name/ /

Greetings Ralph

- Original Message -
From: Friedli Beat [UFA AG Her]
To: '[EMAIL PROTECTED]'
Sent: Thursday, August 30, 2001 11:25 AM
Subject: How to use radio-Buttons when iterating


How can I tell the radio-button to take the value from the collection I'm
iterating throug?
%--I'm iterating thrugh the collection adressen --%
logic:iterate name=radio property=adressen id=adresse 

%--Im trying to create a radiobutton for each name in
adress--%
 html:radio  property=auswahl value=Here should stand the name
/

/logic:iterate


Thanks,
Beat Friedli





RE: Configuration problem

2001-08-30 Thread devon . bowen

 View source shows a href=http://www.foo.com; foo.com/a

I assume you mean

a href=http://www.foo.com; foo.com/a

Without the close bracket on a. If this is what View Source
is showing, then your browser is receiving the correct HTML.
In other words, it isn't a problem with your server/jsp/struts
configuration.

Devon




RE: Dynamic Form Beans?

2001-08-30 Thread Rey Francois

One part of the solution is to use the MappedProperty feature recently added
to the jakarta-commons bean-utils.
The original submission is in this message:
http://www.mail-archive.com/jakarta-commons@jakarta.apache.org/msg03005.html

It has been integrated into the commons source, as indicated by this
message:
http://www.mail-archive.com/jakarta-commons@jakarta.apache.org/msg03596.html

Also look at this message for a bug that needs to be fixed (hopefully the
patch will be committed soon):
http://www.mail-archive.com/jakarta-commons@jakarta.apache.org/msg03897.html

Other relevant messages are referenced in this one:
http://www.mail-archive.com/jakarta-commons@jakarta.apache.org/msg03429.html


Hope this helps,

Fr.

-Original Message-
From: John Townsend [mailto:[EMAIL PROTECTED]]
Sent: 29 August 2001 19:54
To: [EMAIL PROTECTED]
Subject: Dynamic Form Beans?


I am working on a project where is would be nice to have the ability to
define a dynamic form bean (i.e. a form bean where the fields are
defined at runtime). The most obvious (but perhaps not the best)
solution to this problem would be if the ActionServlet could handle
saving data in a form bean that was a hashtable. 

Has someone else run into this problem and come up with a solution? 

Thanks,
-- John Townsend
 


The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorised. If you are not
an intended recipient, you must not read, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com
***




Re: Attribute value should be quoted

2001-08-30 Thread David Corbin

Thanks.  I found it, and your assessment was correct.  Silly me for trusting
the compiler
- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 4:35 AM
Subject: RE: Attribute value should be quoted


 send a copy of your jsp, its usually a html tag just above or below the
line
 in question

 -Original Message-
 From: David Corbin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 29, 2001 4:04 PM
 To: Struts User
 Subject: Attribute value should be quoted


 I'm getting the following exception from a particular JSP:

 org.apache.jasper.compiler.ParseException: .\AddCompany.jsp(58,36)
 Attribute value should be quoted
 at
 org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:478)
 at

org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:524)
 at

org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:635)
 at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:798)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:833)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
 at
 org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
 at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

 The line in question reads:

 html:text size=40 property=description /

 if the syntactical color is correct, my quotes are balanced.

 It looks just like one from another page that works fine.  I do have the
 %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
 at the top of the .JSP file.

 I'm baffled.  Any ideas?

 Thanks.
 David Corbin


 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **






Now Look with radio-Buttons when iterating

2001-08-30 Thread Friedli Beat [UFA AG Her]
Title: Now Look with radio-Buttons when  iterating





Hi Ralph


I tried ...


html:radio property=auswahl value=%= adresse.getName() % /


and got ...


A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for JSP


An error occurred at line: 49 in the jsp file: /logon.jsp


Generated servlet error:
C:\tomcat4.0\work\localhost\radio\_0002flogon_jsp.java:297: Method getName() not found in class java.lang.Object.
 _jspx_th_html_radio_0.setValue( adresse.getName() );
 ^
1 error



Also I tried ...
 html:radio property=auswahl value=bean:write name=adresse property=name/ /


and got...


org.apache.jasper.compiler.ParseException: /logon.jsp(49,66) Attribute adresse has no value



Any suggestion?


Thanks Beat




--



This should do the trick.


 html:radio property=auswahl value=%= adresse.getName() % /


or even


 html:radio property=auswahl value=bean:write name=adresse
property=name/ /


Greetings Ralph


- Original Message -
From: Friedli Beat [UFA AG Her]
To: '[EMAIL PROTECTED]'
Sent: Thursday, August 30, 2001 11:25 AM
Subject: How to use radio-Buttons when iterating



How can I tell the radio-button to take the value from the collection I'm
iterating throug?
%--I'm iterating thrugh the collection adressen --%
logic:iterate name=radio property=adressen id=adresse 


 %--Im trying to create a radiobutton for each name in
adress--%
 html:radio property=auswahl value=Here should stand the name
/


/logic:iterate



Thanks,
Beat Friedli






RE: Attribute value should be quoted

2001-08-30 Thread Dudley [EMAIL PROTECTED]

excellent

-Original Message-
From: David Corbin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Attribute value should be quoted


Thanks.  I found it, and your assessment was correct.  Silly me for trusting
the compiler
- Original Message -
From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 4:35 AM
Subject: RE: Attribute value should be quoted


 send a copy of your jsp, its usually a html tag just above or below the
line
 in question

 -Original Message-
 From: David Corbin [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 29, 2001 4:04 PM
 To: Struts User
 Subject: Attribute value should be quoted


 I'm getting the following exception from a particular JSP:

 org.apache.jasper.compiler.ParseException: .\AddCompany.jsp(58,36)
 Attribute value should be quoted
 at
 org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:478)
 at

org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:524)
 at

org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:635)
 at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:798)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:833)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
 at
 org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
 at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

 The line in question reads:

 html:text size=40 property=description /

 if the syntactical color is correct, my quotes are balanced.

 It looks just like one from another page that works fine.  I do have the
 %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
 at the top of the .JSP file.

 I'm baffled.  Any ideas?

 Thanks.
 David Corbin


 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **




**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Re: Now Look with radio-Buttons when iterating

2001-08-30 Thread Ralph vd Houdt

Now Look with radio-Buttons when iteratingYou should add the classname of
adresse to the type attribute of the iteration.

logic:iterate name=radio property=adressen id=adresse type=the fully
classified classname of adresse
 html:radio  property=auswahl value=%= adresse.getName() % /
/logic:iterate

Good luck

 - Original Message -
From: Friedli Beat [UFA AG Her]
To: '[EMAIL PROTECTED]'
Sent: Thursday, August 30, 2001 12:01 PM
Subject: Now Look with radio-Buttons when iterating


Hi Ralph
I tried ...
html:radio  property=auswahl value=%= adresse.getName() % /
and got ...
A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 49 in the jsp file: /logon.jsp
Generated servlet error:
C:\tomcat4.0\work\localhost\radio\_0002flogon_jsp.java:297: Method getName()
not found in class java.lang.Object.

jspx_th_html_radio_0.setValue( adresse.getName() );

^
1 error


Also I tried ...
html:radio  property=auswahl value=bean:write name=adresse
property=name/ /
and got...
org.apache.jasper.compiler.ParseException: /logon.jsp(49,66) Attribute
adresse has no value


Any suggestion?
Thanks Beat



--


This should do the trick.
html:radio  property=auswahl value=%= adresse.getName() % /
or even
html:radio  property=auswahl value=bean:write name=adresse
property=name/ /
Greetings Ralph
- Original Message -
From: Friedli Beat [UFA AG Her]
To: '[EMAIL PROTECTED]'
Sent: Thursday, August 30, 2001 11:25 AM
Subject: How to use radio-Buttons when iterating


How can I tell the radio-button to take the value from the collection I'm
iterating throug?
%--I'm iterating thrugh the collection adressen --%
logic:iterate name=radio property=adressen id=adresse 
%--Im trying to create a radiobutton for each name in
adress--%
 html:radio  property=auswahl value=Here should stand the name
/
/logic:iterate


Thanks,
Beat Friedli





html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

Hello Guys!!

I've a little problem concerning the use of the html taglib and the javascript code.
I'm not sure that it concerns directly the html taglib or the html language itself.

The problem is that I would like to propose to the user to confirm an action before to 
do it.
I had written this javascript function :

function validateAndSubmit(theform,warningtext) {
if (window.confirm(warningtext)) {
alert('ok')
theform.submit()
return true
} else {
alert('not ok')
return false
}
}
and this JSP code :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:image 
src=img/poubelle.gif 
alt=Supprimer 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous certain de 
vouloir supprimer cette requete de recherche de lots?')/
/html:form


and it's WORK.
When I don't confirm nothing happends, whereas when I confirm the action executes.

So, now I would like to replace this button by an image.
I keep the same javascript code
and I replace the JSP by this one :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:button 
property=button 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous certain de 
vouloir supprimer cette requete de recherche de lots?')
Supprimer
/html:button
/html:form

Now in both cases (if I confirm or not), the action is called, but I get the good 
alert message from the javascript !!

I don't understand what it happends !

Is anyone have an idea concerning my problem.

Thanx all

arno

PS : my configuration is :
OS : NT 4 SP6
WebApp Server : Tomcat 3.2.3
Browser : IE5.5
and Struts 1.0

Arnaud HERITIER
Ingenieur d'etudes
SOPRA. Group
EAI Consulting
Tel : +33-1-49-00-58-12
Fax : 04 50 33 30 78
Email : [EMAIL PROTECTED]





RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

Sorry, but as you should seen it, I reversed the two JSP codes :-)

arno

-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 12:40
A:  'struts users mailing list'
Objet:  html:image and javascript incompatibility ???

Hello Guys!!

I've a little problem concerning the use of the html taglib and the javascript code.
I'm not sure that it concerns directly the html taglib or the html language itself.

The problem is that I would like to propose to the user to confirm an action before to 
do it.
I had written this javascript function :

function validateAndSubmit(theform,warningtext) {
if (window.confirm(warningtext)) {
alert('ok')
theform.submit()
return true
} else {
alert('not ok')
return false
}
}
and this JSP code :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:image 
src=img/poubelle.gif 
alt=Supprimer 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous certain de 
vouloir supprimer cette requete de recherche de lots?')/
/html:form


and it's WORK.
When I don't confirm nothing happends, whereas when I confirm the action executes.

So, now I would like to replace this button by an image.
I keep the same javascript code
and I replace the JSP by this one :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:button 
property=button 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous certain de 
vouloir supprimer cette requete de recherche de lots?')
Supprimer
/html:button
/html:form

Now in both cases (if I confirm or not), the action is called, but I get the good 
alert message from the javascript !!

I don't understand what it happends !

Is anyone have an idea concerning my problem.

Thanx all

arno

PS : my configuration is :
OS : NT 4 SP6
WebApp Server : Tomcat 3.2.3
Browser : IE5.5
and Struts 1.0

Arnaud HERITIER
Ingenieur d'etudes
SOPRA. Group
EAI Consulting
Tel : +33-1-49-00-58-12
Fax : 04 50 33 30 78
Email : [EMAIL PROTECTED]





RE: html:image and javascript incompatibility ???

2001-08-30 Thread Satyen . Chikane

When you use a image, instead of using its onclick event , put an href link
on the image and it will work fine this is html constraint

-Original Message-
From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:46 AM
To: 'struts users mailing list'
Subject: RE: html:image and javascript incompatibility ???


Sorry, but as you should seen it, I reversed the two JSP codes :-)

arno

-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 12:40
A:  'struts users mailing list'
Objet:  html:image and javascript incompatibility ???

Hello Guys!!

I've a little problem concerning the use of the html taglib and the
javascript code.
I'm not sure that it concerns directly the html taglib or the html language
itself.

The problem is that I would like to propose to the user to confirm an action
before to do it.
I had written this javascript function :

function validateAndSubmit(theform,warningtext) {
if (window.confirm(warningtext)) {
alert('ok')
theform.submit()
return true
} else {
alert('not ok')
return false
}
}
and this JSP code :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:image 
src=img/poubelle.gif 
alt=Supprimer 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous
certain de vouloir supprimer cette requete de recherche de lots?')/
/html:form


and it's WORK.
When I don't confirm nothing happends, whereas when I confirm the action
executes.

So, now I would like to replace this button by an image.
I keep the same javascript code
and I replace the JSP by this one :

html:form action=delSetReq.do
html:hidden 
property=name 
name=requete/
html:button 
property=button 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous
certain de vouloir supprimer cette requete de recherche de lots?')
Supprimer
/html:button
/html:form

Now in both cases (if I confirm or not), the action is called, but I get the
good alert message from the javascript !!

I don't understand what it happends !

Is anyone have an idea concerning my problem.

Thanx all

arno

PS : my configuration is :
OS : NT 4 SP6
WebApp Server : Tomcat 3.2.3
Browser : IE5.5
and Struts 1.0

Arnaud HERITIER
Ingenieur d'etudes
SOPRA. Group
EAI Consulting
Tel : +33-1-49-00-58-12
Fax : 04 50 33 30 78
Email : [EMAIL PROTECTED]



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

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 Internet email are subject to the terms and conditions
expressed in any applicable governing ING Barings' terms of business or
client engagement letter.

Visit us at www.ingbarings.com

--



Websphere deployment problem

2001-08-30 Thread Mohammed_Tarafdar




Hi,

when i deploy struts application in websphere 3.5.2 and try to access any JSP
file i get the following error.
Can anyone let me know how to resolve it.

TIA
rafee

[01.08.30 16:57:04:735 GMT+05:30] 32e0194d WebGroup  A SRVE0091I: [Servlet
LOG]: jsp11: init
[01.08.30 16:57:04:846 GMT+05:30] 32e0194d ServletInstan A SRVE0130I: Servlet
available for service: jsp11
[01.08.30 16:58:12:142 GMT+05:30] a16c9945 WebGroup  X [Servlet
Error]-[{0}]: {1}: {2}
 jsp11
 org/apache/struts/action/ActionForm

com.ibm.servlet.engine.webapp.WebAppErrorReport:
org/apache/struts/action/ActionForm
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispatcherResponse.java:97)

 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:381)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:460)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:175)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:93)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:77)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:155)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:212)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:347)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:216)

 at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248)

 at java.lang.Thread.run(Thread.java:481)

[01.08.30 16:58:12:483 GMT+05:30] a16c9945 ServletInstan X Uncaught service()
exception thrown by servlet {0}: {1}
 file
 javax.servlet.ServletException
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:598)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:353)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:175)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:97)

 at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:578)
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispatcherResponse.java:104)

 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:381)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:460)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:580)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)

 at

How does bean:define work?

2001-08-30 Thread Wittwer Markus

Hi!

The bean:define tag simply exposes a bean as a scripting variable by adding
it to the page context:

// from DefineTag.java
pageContext.setAttribute(id, value, inScope);

Now one can access the bean by 
bean:define id=title value=test/
Value of title: %= title %

I did the same within a custom tag I wrote but I cannot directly access the
bean as a scripting variable:
x:mytag id=title key=test // the tag retrieves some key and stores it
in the bean title

Value of title: %= title % 
causes an Variable title not defined exception,

but

Value of title: %= pageContext.findAttribute(title).toString() %
works fine.

Before anyone asks: I have to use scriptlets, because I want to nest the
output within another struts tag.


Thanks for your help,

Markus Wittwer




Re: Validator Input fields of type File

2001-08-30 Thread Ralph vd Houdt

Ah found it,

public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {
ActionErrors errors = super.validate(mapping,request);
if ((file == null) || (file.getFileSize()  1))
errors.add(file, new ActionError(error.nofile));
return errors;
}

the validate method was overriden by the validate method in the form,
calling super.validate(mapping,request) solved the problem.

- Original Message -
From: Ralph vd Houdt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 9:42 AM
Subject: Validator  Input fields of type File


 Hi All,

 I'm using the Struts Validator bij David Winterfeldt. An excelent addition
 to the struts framework. A little problem arises when I tryed to validate
an
 upload field of a form. The required setting of the validator doesn't
work
 for inputfields with files. I try to validate the other fields first with
 the Validator and then use the validate method in the form to check the
 input field of the file. I used the following code.

 public ActionErrors validate(ActionMapping mapping,
  HttpServletRequest request) {
 ActionErrors errors = new ActionErrors();
 if ((file == null) || (file.getFileSize()  1))
 errors.add(file, new ActionError(error.nofile));
 return errors;
 }

 The problem is that the new ActionErrors() empties the errors found bij
 the Validator. Is there a function to retrieve the ActionErrors of the
 Validator to be used in the rest of the validate method for example:

 ActionErrors errors = this.getActionErrors();

 Or a method to check files in the Validator.

 Greeting Ralph









Where can I find info Debugging Struts?

2001-08-30 Thread Peter Pilgrim


How do get Struts to write out more verbose debugging information?

Where can I find better documentation struts-config.xml ?

Struts does not seem to finding my Action?

I have copied the struts.jar into the  /WEB-INF/lib and find that
I getting a class not found exception for

Root cause:

java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:446)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
at 
moar._0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_10._jspService(_0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_10.java:186)

--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





Changing the path of a mapping's foward (code review)

2001-08-30 Thread Matt Raible

I am changing the path of a mapping's forward name=success to add parameters
on to it.  The reason I am adding these parameters is because I have to have a
redirect=true on my forward in the struts-config file.  If I don't, and I try
to forward to another action, iPlanet chokes.  I add the redirect=true and it
works, but I lose my request variables.

So I'd love it if folks could look at my code and maybe offer better
suggestions.  The way I'm doing it seems like a lot of work for something so
simple.  Keep in mind that what I've written below works like a charm - just
seems extensive - Thanks!

// Get the path of the success forward
String path = new String(mapping.findForward(success).getPath());

// check to see if the success forward has already been modified
// for some reason, changing the path actually gets persisted and 
// the path is still modified if I hit this action again
int ampIndex = path.indexOf('');

if (ampIndex  -1) // already been modified, chop it off
{
log(_className,  Path already modified, '' at index ' + ampIndex + ');
path = path.substring(0, ampIndex);
}

// HolidayDO is a Value Object that we use to pass around
// between our EJB's and ActionForms
path += month= + aHolidayDO.getMonth();
path += year= + aHolidayDO.getYear();

// Forward control to the specified success URI
log(_className,  Forwarding to 'success' page at path ' + path + ');
mapping.findForward(success).setPath(path);

__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Re: Changing the path of a mapping's foward (code review)

2001-08-30 Thread Jonathan M Crater

matt--

i think the reason you lose your request attributes is because the action servlet
performs a HttpServletResponse.sendRedirect instead of a RequestDispatcher.forward when
you have redirect=true in your action mapping.  thus, unless you add values to the
end of the querystring as you're doing, you don't have the ability to add values to the
request as one or more java object(s).  do you have any idea why iplant chokes or what
kind of error it gives you?  if it's a servlet 2.2+ compliant container it should be
able to perform a forward without problem.

jon

Matt Raible wrote:

 I am changing the path of a mapping's forward name=success to add parameters
 on to it.  The reason I am adding these parameters is because I have to have a
 redirect=true on my forward in the struts-config file.  If I don't, and I try
 to forward to another action, iPlanet chokes.  I add the redirect=true and it
 works, but I lose my request variables.

 So I'd love it if folks could look at my code and maybe offer better
 suggestions.  The way I'm doing it seems like a lot of work for something so
 simple.  Keep in mind that what I've written below works like a charm - just
 seems extensive - Thanks!

 // Get the path of the success forward
 String path = new String(mapping.findForward(success).getPath());

 // check to see if the success forward has already been modified
 // for some reason, changing the path actually gets persisted and
 // the path is still modified if I hit this action again
 int ampIndex = path.indexOf('');

 if (ampIndex  -1) // already been modified, chop it off
 {
 log(_className,  Path already modified, '' at index ' + ampIndex + ');
 path = path.substring(0, ampIndex);
 }

 // HolidayDO is a Value Object that we use to pass around
 // between our EJB's and ActionForms
 path += month= + aHolidayDO.getMonth();
 path += year= + aHolidayDO.getYear();

 // Forward control to the specified success URI
 log(_className,  Forwarding to 'success' page at path ' + path + ');
 mapping.findForward(success).setPath(path);

 __
 Do You Yahoo!?
 Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
 http://im.yahoo.com





Re: static text fields on the session or from??

2001-08-30 Thread Keith Bacon

Isn't ApplicationResources.properties designed to hold this sort of
info? It has the advantage that you can review/change your literals
in one place  also supports internationalisation.
---
ie. in your jsp

bean:message key=LogonForm.literal.please.signon/

will fetch this message from ApplicationResources.properties

LogonForm.literal.please.signon=Singon Here
---
If you don't need that then why not hard code them in the JSP? These
are part of the view only. Putting them in the Form bean implies they
have some tie-in to the rest of the system IMHO.

Keith.


--- [EMAIL PROTECTED] wrote:
 I would suggest putting them in the form. That way, the form
 represents all
 the data required for the view, whether modifiable or not, and you
 don't
 have multiple pieces of data scattered around in different places.
 The data
 that isn't in input fields won't be populated back into the form,
 so there's
 no overhead there.
 
 --
 Martin Cooper
 
 
 - Original Message -
 From: viet nguyen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, August 28, 2001 5:56 PM
 Subject: static text fields on the session or from??
 
 
  If I need to display a screen which includes both
  editable fields and static text fields, would it be
  better to store the read-only fields on the session
  instead of having them in the form?  Since the values
  of these fields will never change, it seems to defeat
  the purpose of form automatic population if I provide
  them in the form. Any ideas??
 
  Thanks,
  V.
 
  __
  Do You Yahoo!?
  Make international calls for as low as $.04/minute with Yahoo!
 Messenger
  http://phonecard.yahoo.com/
 
 


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

Thanx Satyen for this information.

But if I use a

a href src=??? onClick=javascript:validateAndSubmit(,'')
img src=...
/a

What should I use as src because it will go on it when the answer is 
negative !!! I can put %=request.getResquestURI()% but I don't find this 
very beautiful.
And how can I access in JavaScript to the form object which is the parent 
of the a href=... I don't find how to do.

If someone as informations which can help me, I will be very graceful !

arno



-Message d'origine-
De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 12:55
A:  [EMAIL PROTECTED]
Objet:  RE: html:image and javascript incompatibility ???

When you use a image, instead of using its onclick event , put an href link
on the image and it will work fine this is html constraint

-Original Message-
From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:46 AM
To: 'struts users mailing list'
Subject: RE: html:image and javascript incompatibility ???


Sorry, but as you should seen it, I reversed the two JSP codes :-)

arno

-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 12:40
A:  'struts users mailing list'
Objet:  html:image and javascript incompatibility ???

Hello Guys!!

I've a little problem concerning the use of the html taglib and the
javascript code.
I'm not sure that it concerns directly the html taglib or the html language
itself.

The problem is that I would like to propose to the user to confirm an 
action
before to do it.
I had written this javascript function :

function validateAndSubmit(theform,warningtext) {
if (window.confirm(warningtext)) {
alert('ok')
theform.submit()
return true
} else {
alert('not ok')
return false
}
}
and this JSP code :

html:form action=delSetReq.do
html:hidden
property=name
name=requete/
html:image
src=img/poubelle.gif
alt=Supprimer
onclick=javascript:validateAndSubmit(this.form,'Etes-vous
certain de vouloir supprimer cette requete de recherche de lots?')/
/html:form


and it's WORK.
When I don't confirm nothing happends, whereas when I confirm the action
executes.

So, now I would like to replace this button by an image.
I keep the same javascript code
and I replace the JSP by this one :

html:form action=delSetReq.do
html:hidden
property=name
name=requete/
html:button
property=button
onclick=javascript:validateAndSubmit(this.form,'Etes-vous
certain de vouloir supprimer cette requete de recherche de lots?')
Supprimer
/html:button
/html:form

Now in both cases (if I confirm or not), the action is called, but I get 
the
good alert message from the javascript !!

I don't understand what it happends !

Is anyone have an idea concerning my problem.

Thanx all

arno

PS : my configuration is :
OS : NT 4 SP6
WebApp Server : Tomcat 3.2.3
Browser : IE5.5
and Struts 1.0

Arnaud HERITIER
Ingenieur d'etudes
SOPRA. Group
EAI Consulting
Tel : +33-1-49-00-58-12
Fax : 04 50 33 30 78
Email : [EMAIL PROTECTED]



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

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 Internet email are subject to the terms and conditions
expressed in any applicable governing ING Barings' terms of business or
client engagement letter.

Visit us at www.ingbarings.com

  
--




Re: How does bean:define work?

2001-08-30 Thread Erik Hatcher

You need to use the TEI (tag extra info) mechanism and in your TLD do like
bean:define does:

teiclassorg.apache.struts.taglib.bean.DefineTei/teiclass

And then look at the DefineTei class for more insight.

Geary's Advanced JavaServer Pages book has lots of great information with
this kind of stuff.

Erik

- Original Message -
From: Wittwer Markus [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 4:35 AM
Subject: How does bean:define work?


 Hi!

 The bean:define tag simply exposes a bean as a scripting variable by
adding
 it to the page context:

 // from DefineTag.java
 pageContext.setAttribute(id, value, inScope);

 Now one can access the bean by
 bean:define id=title value=test/
 Value of title: %= title %

 I did the same within a custom tag I wrote but I cannot directly access
the
 bean as a scripting variable:
 x:mytag id=title key=test // the tag retrieves some key and stores
it
 in the bean title

 Value of title: %= title %
 causes an Variable title not defined exception,

 but

 Value of title: %= pageContext.findAttribute(title).toString() %
 works fine.

 Before anyone asks: I have to use scriptlets, because I want to nest the
 output within another struts tag.


 Thanks for your help,

 Markus Wittwer





Action fails to be invoked. ActionForm class not found.

2001-08-30 Thread Peter Pilgrim


Hi

I __definitely__ copied the struts.jar into my WEB-INF/lib directory.
I am using Tomcat 3.2.1 btw. JD 1.3 refresh beta on Solaris 2.6
It seems that adaptive class loader is at fault, but cannot be sure because
Struts does not provide any clearer information on what the failure is
apart from `org.apache.struts.action.ActionForm' not being found

I have set up strut-config.xml to have the following:


 !-- == Form Bean Definitions === --
  form-beans
!-- Reconciliation source action form bean --
form-bean  name=sourceForm
type=com.db.moar.jsp.SourceForm /
  /form-beans

  !-- == Global Forward Definitions == --
  global-forwards
 !-- A global forward to the main home page --
 forward   name=main path=/moar/index.jsp /
 forward   name=success  path=/moar/hello.jsp /
  /global-forwards

  !-- == Action Mapping Definitions == --
  action-mappings

!-- Struts action calculating the total selected cash flow --
actionpath=/CalcTotal
   type=com.db.moar.jsp.TotalAction
   name=sourceForm
  scope=request
  input=/moar/reconcil-frameset.jsp
   validate=false 
  forward name=success  path=/moar/hello.jsp/
/action


In the JSP I have the following the tag action
( /home/gdd2_dev/jakarta-tomcat-3.2.1/webapps/pilgpe/moar/reconcil-left-source.jsp )

html:form action=/CalcTotal.do method=POST target=bottomFrame 

Yet struts claims it cannot find the action. I am trying evaluate Struts and
I wondering what to say to the bosses. I know that Struts is integrated
with Expresso Frameworks at mo ...  But is Struts production worthy or
not?
How do you switch on more pedantic debugging info in Struts anyway?


My backtrace is


Error: 500

Location: /pilgpe/moar/reconcil-left-source.jsp

Internal Servlet Error:

javax.servlet.ServletException: org/apache/struts/action/ActionForm
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)

--CUT--

Root cause:

java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:446)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
at 
moar._0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_0._jspService(_0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_0.java:186)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --

Re: html:image and javascript incompatibility ???

2001-08-30 Thread Fabrice CANTEGREL

hi Arnaud,

instead of using onClick, just use href= (not href src=) and put your call
to the javascript in it.

Arnaud Heritier wrote:

 Thanx Satyen for this information.

 But if I use a

 a href src=??? onClick=javascript:validateAndSubmit(,'')
 img src=...
 /a

 What should I use as src because it will go on it when the answer is
 negative !!! I can put %=request.getResquestURI()% but I don't find this
 very beautiful.
 And how can I access in JavaScript to the form object which is the parent
 of the a href=... I don't find how to do.

 If someone as informations which can help me, I will be very graceful !

 arno

 -Message d'origine-
 De: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 12:55
 A:  [EMAIL PROTECTED]
 Objet:  RE: html:image and javascript incompatibility ???

 When you use a image, instead of using its onclick event , put an href link
 on the image and it will work fine this is html constraint

 -Original Message-
 From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 11:46 AM
 To: 'struts users mailing list'
 Subject: RE: html:image and javascript incompatibility ???

 Sorry, but as you should seen it, I reversed the two JSP codes :-)

 arno

 -Message d'origine-
 De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 12:40
 A:  'struts users mailing list'
 Objet:  html:image and javascript incompatibility ???

 Hello Guys!!

 I've a little problem concerning the use of the html taglib and the
 javascript code.
 I'm not sure that it concerns directly the html taglib or the html language
 itself.

 The problem is that I would like to propose to the user to confirm an
 action
 before to do it.
 I had written this javascript function :

 function validateAndSubmit(theform,warningtext) {
 if (window.confirm(warningtext)) {
 alert('ok')
 theform.submit()
 return true
 } else {
 alert('not ok')
 return false
 }
 }
 and this JSP code :

 html:form action=delSetReq.do
 html:hidden
 property=name
 name=requete/
 html:image
 src=img/poubelle.gif
 alt=Supprimer
 onclick=javascript:validateAndSubmit(this.form,'Etes-vous
 certain de vouloir supprimer cette requete de recherche de lots?')/
 /html:form

 and it's WORK.
 When I don't confirm nothing happends, whereas when I confirm the action
 executes.

 So, now I would like to replace this button by an image.
 I keep the same javascript code
 and I replace the JSP by this one :

 html:form action=delSetReq.do
 html:hidden
 property=name
 name=requete/
 html:button
 property=button
 onclick=javascript:validateAndSubmit(this.form,'Etes-vous
 certain de vouloir supprimer cette requete de recherche de lots?')
 Supprimer
 /html:button
 /html:form

 Now in both cases (if I confirm or not), the action is called, but I get
 the
 good alert message from the javascript !!

 I don't understand what it happends !

 Is anyone have an idea concerning my problem.

 Thanx all

 arno

 PS : my configuration is :
 OS : NT 4 SP6
 WebApp Server : Tomcat 3.2.3
 Browser : IE5.5
 and Struts 1.0

 Arnaud HERITIER
 Ingenieur d'etudes
 SOPRA. Group
 EAI Consulting
 Tel : +33-1-49-00-58-12
 Fax : 04 50 33 30 78
 Email : [EMAIL PROTECTED]

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

 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 Internet email are subject to the terms and conditions
 expressed in any applicable governing ING Barings' terms of business or
 client engagement letter.

 Visit us at www.ingbarings.com

 
 --

_

CANTEGREL Fabrice
http://www.reef.com
_

REEF is a global provider of Internetware for online publishing,
e-commerce, Web site administration and dynamic asset management.
_





RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

ok Fabrice !!!

I made a fault writting the e-mail (I didn't want to add the src :-) ).
So I put my javascript code in the href property and it's better.
I'm only staying over a last problem : How to access to the form object in 
which is the a href= to launch the submit from the javascript code?

if I write :
html:form action=delSetReq.do
html:hidden property=name name=requete/
a href=javascript:if(window.confirm('.'))submit();img 
src=img/poubelle.gif alt=Supprimer/a
/html:form

the browser (IE5.5) says to me that It missed an object that I think is the 
form on which I would like apply the submit method.

Any idea 

-Message d'origine-
De: Fabrice CANTEGREL [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 14:46
A:  [EMAIL PROTECTED]
Objet:  Re: html:image and javascript incompatibility ???

hi Arnaud,

instead of using onClick, just use href= (not href src=) and put your 
call
to the javascript in it.

Arnaud Heritier wrote:

 Thanx Satyen for this information.

 But if I use a

 a href src=??? onClick=javascript:validateAndSubmit(,'')
 img src=...
 /a

 What should I use as src because it will go on it when the answer is
 negative !!! I can put %=request.getResquestURI()% but I don't find 
this
 very beautiful.
 And how can I access in JavaScript to the form object which is the parent
 of the a href=... I don't find how to do.

 If someone as informations which can help me, I will be very graceful 
!

 arno

 -Message d'origine-
 De: [EMAIL PROTECTED] 
[SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 12:55
 A:  [EMAIL PROTECTED]
 Objet:  RE: html:image and javascript incompatibility ???

 When you use a image, instead of using its onclick event , put an href 
link
 on the image and it will work fine this is html constraint

 -Original Message-
 From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 11:46 AM
 To: 'struts users mailing list'
 Subject: RE: html:image and javascript incompatibility ???

 Sorry, but as you should seen it, I reversed the two JSP codes :-)

 arno

 -Message d'origine-
 De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 12:40
 A:  'struts users mailing list'
 Objet:  html:image and javascript incompatibility ???

 Hello Guys!!

 I've a little problem concerning the use of the html taglib and the
 javascript code.
 I'm not sure that it concerns directly the html taglib or the html 
language
 itself.

 The problem is that I would like to propose to the user to confirm an
 action
 before to do it.
 I had written this javascript function :

 function validateAndSubmit(theform,warningtext) {
 if (window.confirm(warningtext)) {
 alert('ok')
 theform.submit()
 return true
 } else {
 alert('not ok')
 return false
 }
 }
 and this JSP code :

 html:form action=delSetReq.do
 html:hidden
 property=name
 name=requete/
 html:image
 src=img/poubelle.gif
 alt=Supprimer
 
onclick=javascript:validateAndSubmit(this.form,'Etes-vous
 certain de vouloir supprimer cette requete de recherche de lots?')/
 /html:form

 and it's WORK.
 When I don't confirm nothing happends, whereas when I confirm the action
 executes.

 So, now I would like to replace this button by an image.
 I keep the same javascript code
 and I replace the JSP by this one :

 html:form action=delSetReq.do
 html:hidden
 property=name
 name=requete/
 html:button
 property=button
 onclick=javascript:validateAndSubmit(this.form,'Etes-  
vous
 certain de vouloir supprimer cette requete de recherche de lots?')
 Supprimer
 /html:button
 /html:form

 Now in both cases (if I confirm or not), the action is called, but I get
 the
 good alert message from the javascript !!

 I don't understand what it happends !

 Is anyone have an idea concerning my problem.

 Thanx all

 arno

 PS : my configuration is :
 OS : NT 4 SP6
 WebApp Server : Tomcat 3.2.3
 Browser : IE5.5
 and Struts 1.0

 Arnaud HERITIER
 Ingenieur d'etudes
 SOPRA. Group
 EAI Consulting
 Tel : +33-1-49-00-58-12
 Fax : 04 50 33 30 78
 Email : [EMAIL PROTECTED]

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

 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 Internet email are subject to the terms and conditions
 expressed in any applicable 

RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread SUPRIYA MISRA

try adding these lines to the JSP
%
response.setHeader(Cache-Control,no-store); //HTTP 1.1
response.setHeader(Pragma,no-cache); //HTTP 1.0
response.setDateHeader (Expires, 0); //prevents caching at the proxy 
server

%




From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: STRANGE: session.invalidate() is not invalidating the session
Date: Thu, 30 Aug 2001 10:13:40 +0200

i'm having the same problem , please help anyone?

-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 9:32 PM
To: struts-user@jakarta. apache. org (E-mail)
Subject: STRANGE: session.invalidate() is not invalidating the session


Hi,

I noticed a peculiar thing. In my application I have a logout link on 
pages.
This link control goes to 'Logout' action where I  clean up the session
variables and then invalidate the session with:

session.invalidate();

and this class forwards it to Logout.jsp which just has the goodbye 
message.

I have noticed that at this point if I keep going back with the back key of
my browser to the point where jsessionid is part of the URL, i.e.,

http://localhost:8080/msqc/logon.do;jsessionid=149062E2E0A77480075991317505D
453


and do the browser refresh here then I can go back into the application
without having to log in again. It is as if the session is still alive.

All the screens(incl. the above URL point) going backwards from Logout.jsp
do show the page expired message but doing refresh on the above URL screen
only brings back the application

Could someone please explain this to me? Has anyone else seen this?

BTW I am using Tomcat 4.0 and Struts 1.1(same happens with 1.0 too)

TIA.

-Nimmi


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: Websphere deployment problem

2001-08-30 Thread Assenza, Chris

See: http://jakarta.apache.org/struts/installation-was352-x.html

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: Websphere deployment problem





Hi,

when i deploy struts application in websphere 3.5.2 and try to access any
JSP
file i get the following error.
Can anyone let me know how to resolve it.

TIA
rafee

[01.08.30 16:57:04:735 GMT+05:30] 32e0194d WebGroup  A SRVE0091I:
[Servlet
LOG]: jsp11: init
[01.08.30 16:57:04:846 GMT+05:30] 32e0194d ServletInstan A SRVE0130I:
Servlet
available for service: jsp11
[01.08.30 16:58:12:142 GMT+05:30] a16c9945 WebGroup  X [Servlet
Error]-[{0}]: {1}: {2}
 jsp11
 org/apache/struts/action/ActionForm

com.ibm.servlet.engine.webapp.WebAppErrorReport:
org/apache/struts/action/ActionForm
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:97)

 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:381)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:460)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:580)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:175)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:93)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:77)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:155)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:212)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:347)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(SQWrapperEventSource.java:216)

 at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(OutOfProcThread.java:248)

 at java.lang.Thread.run(Thread.java:481)

[01.08.30 16:58:12:483 GMT+05:30] a16c9945 ServletInstan X Uncaught
service()
exception thrown by servlet {0}: {1}
 file
 javax.servlet.ServletException
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:598)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:175)
 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.include(WebAppRequestD
ispatcher.java:97)

 at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:578)
 at

Re: html:image and javascript incompatibility ???

2001-08-30 Thread Jonathan M Crater

give the form a name and refer to it like document.formName.submit(), or
refer to it by its index like document.forms[0].submit()

this would be cleaner:

script language=javascript
function submitForm(f) {
if confirm(...) {
f.submit();
}
}
/script

!-- other code --

a href=javascript:submitForm(document.formName)img src=.../a

Arnaud Heritier wrote:

 ok Fabrice !!!

 I made a fault writting the e-mail (I didn't want to add the src :-) ).
 So I put my javascript code in the href property and it's better.
 I'm only staying over a last problem : How to access to the form object in
 which is the a href= to launch the submit from the javascript code?

 if I write :
 html:form action=delSetReq.do
 html:hidden property=name name=requete/
 a href=javascript:if(window.confirm('.'))submit();img
 src=img/poubelle.gif alt=Supprimer/a
 /html:form

 the browser (IE5.5) says to me that It missed an object that I think is the
 form on which I would like apply the submit method.

 Any idea 

 -Message d'origine-
 De: Fabrice CANTEGREL [SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 14:46
 A:  [EMAIL PROTECTED]
 Objet:  Re: html:image and javascript incompatibility ???

 hi Arnaud,

 instead of using onClick, just use href= (not href src=) and put your
 call
 to the javascript in it.

 Arnaud Heritier wrote:

  Thanx Satyen for this information.
 
  But if I use a
 
  a href src=??? onClick=javascript:validateAndSubmit(,'')
  img src=...
  /a
 
  What should I use as src because it will go on it when the answer is
  negative !!! I can put %=request.getResquestURI()% but I don't find
 this
  very beautiful.
  And how can I access in JavaScript to the form object which is the parent
  of the a href=... I don't find how to do.
 
  If someone as informations which can help me, I will be very graceful
 !
 
  arno
 
  -Message d'origine-
  De: [EMAIL PROTECTED]
 [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:55
  A:  [EMAIL PROTECTED]
  Objet:  RE: html:image and javascript incompatibility ???
 
  When you use a image, instead of using its onclick event , put an href
 link
  on the image and it will work fine this is html constraint
 
  -Original Message-
  From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 30, 2001 11:46 AM
  To: 'struts users mailing list'
  Subject: RE: html:image and javascript incompatibility ???
 
  Sorry, but as you should seen it, I reversed the two JSP codes :-)
 
  arno
 
  -Message d'origine-
  De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:40
  A:  'struts users mailing list'
  Objet:  html:image and javascript incompatibility ???
 
  Hello Guys!!
 
  I've a little problem concerning the use of the html taglib and the
  javascript code.
  I'm not sure that it concerns directly the html taglib or the html
 language
  itself.
 
  The problem is that I would like to propose to the user to confirm an
  action
  before to do it.
  I had written this javascript function :
 
  function validateAndSubmit(theform,warningtext) {
  if (window.confirm(warningtext)) {
  alert('ok')
  theform.submit()
  return true
  } else {
  alert('not ok')
  return false
  }
  }
  and this JSP code :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:image
  src=img/poubelle.gif
  alt=Supprimer
 
 onclick=javascript:validateAndSubmit(this.form,'Etes-vous
  certain de vouloir supprimer cette requete de recherche de lots?')/
  /html:form
 
  and it's WORK.
  When I don't confirm nothing happends, whereas when I confirm the action
  executes.
 
  So, now I would like to replace this button by an image.
  I keep the same javascript code
  and I replace the JSP by this one :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:button
  property=button
  onclick=javascript:validateAndSubmit(this.form,'Etes-
 vous
  certain de vouloir supprimer cette requete de recherche de lots?')
  Supprimer
  /html:button
  /html:form
 
  Now in both cases (if I confirm or not), the action is called, but I get
  the
  good alert message from the javascript !!
 
  I don't understand what it happends !
 
  Is anyone have an idea concerning my problem.
 
  Thanx all
 
  arno
 
  PS : my configuration is :
  OS : NT 4 SP6
  WebApp Server : Tomcat 3.2.3
  Browser : IE5.5
  and Struts 1.0
 
  Arnaud HERITIER
  Ingenieur d'etudes
  SOPRA. Group
  EAI Consulting
  Tel : +33-1-49-00-58-12
  Fax : 04 50 33 30 78
  Email : [EMAIL PROTECTED]
 
  
  --
  The 

Re: Action fails to be invoked. ActionForm class not found.

2001-08-30 Thread Marcelo Stefanelli Santos


Hi
Did you put your_directory/moar/WEB-INF/classes in your CLASSPATH ?
Your error is related to CLASSNOTFOUND and is related to your CLASSPATH
configuration.




- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 10:37 AM
Subject: Action fails to be invoked. ActionForm class not found.



 Hi

 I __definitely__ copied the struts.jar into my WEB-INF/lib directory.
 I am using Tomcat 3.2.1 btw. JD 1.3 refresh beta on Solaris 2.6
 It seems that adaptive class loader is at fault, but cannot be sure
because
 Struts does not provide any clearer information on what the failure is
 apart from `org.apache.struts.action.ActionForm' not being found

 I have set up strut-config.xml to have the following:


  !-- == Form Bean Definitions ===
 --
   form-beans
 !-- Reconciliation source action form bean --
 form-bean  name=sourceForm
 type=com.db.moar.jsp.SourceForm /
   /form-beans

   !-- == Global Forward Definitions
 == --
   global-forwards
  !-- A global forward to the main home page --
  forward   name=main path=/moar/index.jsp /
  forward   name=success  path=/moar/hello.jsp /
   /global-forwards

   !-- == Action Mapping Definitions
 == --
   action-mappings

 !-- Struts action calculating the total selected cash flow --
 actionpath=/CalcTotal
type=com.db.moar.jsp.TotalAction
name=sourceForm
   scope=request
   input=/moar/reconcil-frameset.jsp
validate=false 
   forward name=success  path=/moar/hello.jsp/
 /action


 In the JSP I have the following the tag action
 (

/home/gdd2_dev/jakarta-tomcat-3.2.1/webapps/pilgpe/moar/reconcil-left-source
.jsp
 )

 html:form action=/CalcTotal.do method=POST target=bottomFrame 

 Yet struts claims it cannot find the action. I am trying evaluate Struts
 and
 I wondering what to say to the bosses. I know that Struts is integrated
 with Expresso Frameworks at mo ...  But is Struts production worthy or
 not?
 How do you switch on more pedantic debugging info in Struts anyway?


 My backtrace is
 

 Error: 500

 Location: /pilgpe/moar/reconcil-left-source.jsp

 Internal Servlet Error:

 javax.servlet.ServletException: org/apache/struts/action/ActionForm
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)

 --CUT--

 Root cause:

 java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 at
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at

org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:446)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
 org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
 at

moar._0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dle
ft_0002dsource_jsp_0._jspService(_0002fmoar_0002freconcil_0002dleft_0002dsou
rce_0002ejspreconcil_0002dleft_0002dsource_jsp_0.java:186)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at


Re: html:image and javascript incompatibility ???

2001-08-30 Thread Fabrice CANTEGREL

yes. that's it. see normally the name by default of the form is the name of the
used formbean. (if i'm not wrong)

Jonathan M Crater wrote:

 give the form a name and refer to it like document.formName.submit(), or
 refer to it by its index like document.forms[0].submit()

 this would be cleaner:

 script language=javascript
 function submitForm(f) {
 if confirm(...) {
 f.submit();
 }
 }
 /script

 !-- other code --

 a href=javascript:submitForm(document.formName)img src=.../a

 Arnaud Heritier wrote:

  ok Fabrice !!!
 
  I made a fault writting the e-mail (I didn't want to add the src :-) ).
  So I put my javascript code in the href property and it's better.
  I'm only staying over a last problem : How to access to the form object in
  which is the a href= to launch the submit from the javascript code?
 
  if I write :
  html:form action=delSetReq.do
  html:hidden property=name name=requete/
  a href=javascript:if(window.confirm('.'))submit();img
  src=img/poubelle.gif alt=Supprimer/a
  /html:form
 
  the browser (IE5.5) says to me that It missed an object that I think is the
  form on which I would like apply the submit method.
 
  Any idea 
 
  -Message d'origine-
  De: Fabrice CANTEGREL [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 14:46
  A:  [EMAIL PROTECTED]
  Objet:  Re: html:image and javascript incompatibility ???
 
  hi Arnaud,
 
  instead of using onClick, just use href= (not href src=) and put your
  call
  to the javascript in it.
 
  Arnaud Heritier wrote:
 
   Thanx Satyen for this information.
  
   But if I use a
  
   a href src=??? onClick=javascript:validateAndSubmit(,'')
   img src=...
   /a
  
   What should I use as src because it will go on it when the answer is
   negative !!! I can put %=request.getResquestURI()% but I don't find
  this
   very beautiful.
   And how can I access in JavaScript to the form object which is the parent
   of the a href=... I don't find how to do.
  
   If someone as informations which can help me, I will be very graceful
  !
  
   arno
  
   -Message d'origine-
   De: [EMAIL PROTECTED]
  [SMTP:[EMAIL PROTECTED]]
   Date:   jeudi 30 aout 2001 12:55
   A:  [EMAIL PROTECTED]
   Objet:  RE: html:image and javascript incompatibility ???
  
   When you use a image, instead of using its onclick event , put an href
  link
   on the image and it will work fine this is html constraint
  
   -Original Message-
   From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, August 30, 2001 11:46 AM
   To: 'struts users mailing list'
   Subject: RE: html:image and javascript incompatibility ???
  
   Sorry, but as you should seen it, I reversed the two JSP codes :-)
  
   arno
  
   -Message d'origine-
   De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
   Date:   jeudi 30 aout 2001 12:40
   A:  'struts users mailing list'
   Objet:  html:image and javascript incompatibility ???
  
   Hello Guys!!
  
   I've a little problem concerning the use of the html taglib and the
   javascript code.
   I'm not sure that it concerns directly the html taglib or the html
  language
   itself.
  
   The problem is that I would like to propose to the user to confirm an
   action
   before to do it.
   I had written this javascript function :
  
   function validateAndSubmit(theform,warningtext) {
   if (window.confirm(warningtext)) {
   alert('ok')
   theform.submit()
   return true
   } else {
   alert('not ok')
   return false
   }
   }
   and this JSP code :
  
   html:form action=delSetReq.do
   html:hidden
   property=name
   name=requete/
   html:image
   src=img/poubelle.gif
   alt=Supprimer
  
  onclick=javascript:validateAndSubmit(this.form,'Etes-vous
   certain de vouloir supprimer cette requete de recherche de lots?')/
   /html:form
  
   and it's WORK.
   When I don't confirm nothing happends, whereas when I confirm the action
   executes.
  
   So, now I would like to replace this button by an image.
   I keep the same javascript code
   and I replace the JSP by this one :
  
   html:form action=delSetReq.do
   html:hidden
   property=name
   name=requete/
   html:button
   property=button
   onclick=javascript:validateAndSubmit(this.form,'Etes-
  vous
   certain de vouloir supprimer cette requete de recherche de lots?')
   Supprimer
   /html:button
   /html:form
  
   Now in both cases (if I confirm or not), the action is called, but I get
   the
   good alert message from the javascript !!
  
   I don't understand what it happends !
  
   Is anyone have an idea concerning my problem.
  
   Thanx all
  
   arno
  
   PS : my configuration is :
   OS : NT 4 SP6
   WebApp 

RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

thanx Jonathhan !!

Knowing that my form is in a Page By Page Iterator, I will have to use the 
document.forms[the_form_nb].submit() method.
It will be the evil :-( Why they don't have invent the super property to access the 
ancestor. SNIF.
Thanks for your help, I think I'm on the right way.

arno



-Message d'origine-
De: Jonathan M Crater [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 15:12
A:  [EMAIL PROTECTED]; Heritier Arnaud
Objet:  Re: html:image and javascript incompatibility ???

give the form a name and refer to it like document.formName.submit(), or
refer to it by its index like document.forms[0].submit()

this would be cleaner:

script language=javascript
function submitForm(f) {
if confirm(...) {
f.submit();
}
}
/script

!-- other code --

a href=javascript:submitForm(document.formName)img src=.../a

Arnaud Heritier wrote:

 ok Fabrice !!!

 I made a fault writting the e-mail (I didn't want to add the src :-) ).
 So I put my javascript code in the href property and it's better.
 I'm only staying over a last problem : How to access to the form object in
 which is the a href= to launch the submit from the javascript code?

 if I write :
 html:form action=delSetReq.do
 html:hidden property=name name=requete/
 a href=javascript:if(window.confirm('.'))submit();img
 src=img/poubelle.gif alt=Supprimer/a
 /html:form

 the browser (IE5.5) says to me that It missed an object that I think is the
 form on which I would like apply the submit method.

 Any idea 

 -Message d'origine-
 De: Fabrice CANTEGREL [SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 14:46
 A:  [EMAIL PROTECTED]
 Objet:  Re: html:image and javascript incompatibility ???

 hi Arnaud,

 instead of using onClick, just use href= (not href src=) and put your
 call
 to the javascript in it.

 Arnaud Heritier wrote:

  Thanx Satyen for this information.
 
  But if I use a
 
  a href src=??? onClick=javascript:validateAndSubmit(,'')
  img src=...
  /a
 
  What should I use as src because it will go on it when the answer is
  negative !!! I can put %=request.getResquestURI()% but I don't find
 this
  very beautiful.
  And how can I access in JavaScript to the form object which is the parent
  of the a href=... I don't find how to do.
 
  If someone as informations which can help me, I will be very graceful
 !
 
  arno
 
  -Message d'origine-
  De: [EMAIL PROTECTED]
 [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:55
  A:  [EMAIL PROTECTED]
  Objet:  RE: html:image and javascript incompatibility ???
 
  When you use a image, instead of using its onclick event , put an href
 link
  on the image and it will work fine this is html constraint
 
  -Original Message-
  From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 30, 2001 11:46 AM
  To: 'struts users mailing list'
  Subject: RE: html:image and javascript incompatibility ???
 
  Sorry, but as you should seen it, I reversed the two JSP codes :-)
 
  arno
 
  -Message d'origine-
  De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:40
  A:  'struts users mailing list'
  Objet:  html:image and javascript incompatibility ???
 
  Hello Guys!!
 
  I've a little problem concerning the use of the html taglib and the
  javascript code.
  I'm not sure that it concerns directly the html taglib or the html
 language
  itself.
 
  The problem is that I would like to propose to the user to confirm an
  action
  before to do it.
  I had written this javascript function :
 
  function validateAndSubmit(theform,warningtext) {
  if (window.confirm(warningtext)) {
  alert('ok')
  theform.submit()
  return true
  } else {
  alert('not ok')
  return false
  }
  }
  and this JSP code :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:image
  src=img/poubelle.gif
  alt=Supprimer
 
 onclick=javascript:validateAndSubmit(this.form,'Etes-vous
  certain de vouloir supprimer cette requete de recherche de lots?')/
  /html:form
 
  and it's WORK.
  When I don't confirm nothing happends, whereas when I confirm the action
  executes.
 
  So, now I would like to replace this button by an image.
  I keep the same javascript code
  and I replace the JSP by this one :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:button
  property=button
  onclick=javascript:validateAndSubmit(this.form,'Etes-
 vous
  certain de vouloir supprimer cette requete de recherche de lots?')
  Supprimer
  /html:button
  /html:form
 
  Now in both cases (if I confirm or not), the action is called, but I get
  the
  good 

Re: Action fails to be invoked. ActionForm class not found.

2001-08-30 Thread Peter Pilgrim


This is the wrong answer because

(1) Root Directory: `/home/gdd2_dev/jakarta-tomcat-3.2.1/webapps/pilgpe'

  `pilgpe'
|
+-- WEB-INF
|   |
|   +-- classes
|   |   |
|   |   +-- com
|   |   |
|   |   +-- learn
|   |
|   +-- lib
|   |
|   +-- tlds
|
+-- moar
|   |
|   +-- images
|   |
|   +-- static
|
+-- properties

(2) The JSP Container should load any classes under `WEB-INF/classes' and any
JAR files under `WEB-INF/lib' and since `struts.jar' is already under `WEB-INF/lib'
then this shouldn't be an issue!

--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



Please respond to [EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Action fails to be invoked. ActionForm class not found.


Hi
Did you put your_directory/moar/WEB-INF/classes in your CLASSPATH ?
Your error is related to CLASSNOTFOUND and is related to your CLASSPATH
configuration.



--CUT--




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





RE: html:image and javascript incompatibility ???

2001-08-30 Thread Arnaud Heritier

Thanks everybody for your very useful help.

It's correctly working now.

arno

-Message d'origine-
De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 15:24
A:  '[EMAIL PROTECTED]'
Objet:  RE: html:image and javascript incompatibility ???

thanx Jonathhan !!

Knowing that my form is in a Page By Page Iterator, I will have to use the 
document.forms[the_form_nb].submit() method.
It will be the evil :-( Why they don't have invent the super property to access the 
ancestor. SNIF.
Thanks for your help, I think I'm on the right way.

arno



-Message d'origine-
De: Jonathan M Crater [SMTP:[EMAIL PROTECTED]]
Date:   jeudi 30 aout 2001 15:12
A:  [EMAIL PROTECTED]; Heritier Arnaud
Objet:  Re: html:image and javascript incompatibility ???

give the form a name and refer to it like document.formName.submit(), or
refer to it by its index like document.forms[0].submit()

this would be cleaner:

script language=javascript
function submitForm(f) {
if confirm(...) {
f.submit();
}
}
/script

!-- other code --

a href=javascript:submitForm(document.formName)img src=.../a

Arnaud Heritier wrote:

 ok Fabrice !!!

 I made a fault writting the e-mail (I didn't want to add the src :-) ).
 So I put my javascript code in the href property and it's better.
 I'm only staying over a last problem : How to access to the form object in
 which is the a href= to launch the submit from the javascript code?

 if I write :
 html:form action=delSetReq.do
 html:hidden property=name name=requete/
 a href=javascript:if(window.confirm('.'))submit();img
 src=img/poubelle.gif alt=Supprimer/a
 /html:form

 the browser (IE5.5) says to me that It missed an object that I think is the
 form on which I would like apply the submit method.

 Any idea 

 -Message d'origine-
 De: Fabrice CANTEGREL [SMTP:[EMAIL PROTECTED]]
 Date:   jeudi 30 aout 2001 14:46
 A:  [EMAIL PROTECTED]
 Objet:  Re: html:image and javascript incompatibility ???

 hi Arnaud,

 instead of using onClick, just use href= (not href src=) and put your
 call
 to the javascript in it.

 Arnaud Heritier wrote:

  Thanx Satyen for this information.
 
  But if I use a
 
  a href src=??? onClick=javascript:validateAndSubmit(,'')
  img src=...
  /a
 
  What should I use as src because it will go on it when the answer is
  negative !!! I can put %=request.getResquestURI()% but I don't find
 this
  very beautiful.
  And how can I access in JavaScript to the form object which is the parent
  of the a href=... I don't find how to do.
 
  If someone as informations which can help me, I will be very graceful
 !
 
  arno
 
  -Message d'origine-
  De: [EMAIL PROTECTED]
 [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:55
  A:  [EMAIL PROTECTED]
  Objet:  RE: html:image and javascript incompatibility ???
 
  When you use a image, instead of using its onclick event , put an href
 link
  on the image and it will work fine this is html constraint
 
  -Original Message-
  From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 30, 2001 11:46 AM
  To: 'struts users mailing list'
  Subject: RE: html:image and javascript incompatibility ???
 
  Sorry, but as you should seen it, I reversed the two JSP codes :-)
 
  arno
 
  -Message d'origine-
  De: Arnaud Heritier [SMTP:[EMAIL PROTECTED]]
  Date:   jeudi 30 aout 2001 12:40
  A:  'struts users mailing list'
  Objet:  html:image and javascript incompatibility ???
 
  Hello Guys!!
 
  I've a little problem concerning the use of the html taglib and the
  javascript code.
  I'm not sure that it concerns directly the html taglib or the html
 language
  itself.
 
  The problem is that I would like to propose to the user to confirm an
  action
  before to do it.
  I had written this javascript function :
 
  function validateAndSubmit(theform,warningtext) {
  if (window.confirm(warningtext)) {
  alert('ok')
  theform.submit()
  return true
  } else {
  alert('not ok')
  return false
  }
  }
  and this JSP code :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:image
  src=img/poubelle.gif
  alt=Supprimer
 
 onclick=javascript:validateAndSubmit(this.form,'Etes-vous
  certain de vouloir supprimer cette requete de recherche de lots?')/
  /html:form
 
  and it's WORK.
  When I don't confirm nothing happends, whereas when I confirm the action
  executes.
 
  So, now I would like to replace this button by an image.
  I keep the same javascript code
  and I replace the JSP by this one :
 
  html:form action=delSetReq.do
  html:hidden
  property=name
  name=requete/
  html:button
  property=button
  

subscription

2001-08-30 Thread Kwang-Shi Shu



Shu, Kwang-shi  | Tel 732-460-7848
Village Networks, Inc.  | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]




Re: Action fails to be invoked. ActionForm class not found. [SOLVED]

2001-08-30 Thread Peter Pilgrim



WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING
WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING
WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING
WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING
WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING
WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING
WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING
WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING


If you may get periodic, unexplain `ActionForm' class not found exceptions be aware,
especially if you get exceptions which are very hard to debug.

Jakarta Struts 1.0 does __NOT__ work correctly with Jakarta Tomcat 3.2.1

Upgrade to Jakarta Tomcat 3.3- Beta 1 NOW 

JOB DONE!!

--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



 Message History 



From: Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK on 30/08/2001 14:47

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Action fails to be invoked. ActionForm class not found.



This is the wrong answer because

(1) Root Directory: `/home/gdd2_dev/jakarta-tomcat-3.2.1/webapps/pilgpe'

  `pilgpe'
|
+-- WEB-INF
|   |
|   +-- classes
|   |   |
|   |   +-- com
|   |   |
|   |   +-- learn
|   |
|   +-- lib
|   |
|   +-- tlds
|
+-- moar
|   |
|   +-- images
|   |
|   +-- static
|
+-- properties

(2) The JSP Container should load any classes under `WEB-INF/classes' and any
JAR files under `WEB-INF/lib' and since `struts.jar' is already under `WEB-INF/lib'
then this shouldn't be an issue!

--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



Please respond to [EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Action fails to be invoked. ActionForm class not found.


Hi
Did you put your_directory/moar/WEB-INF/classes in your CLASSPATH ?
Your error is related to CLASSNOTFOUND and is related to your CLASSPATH
configuration.



--CUT--




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.







--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





Re: How to handle an ActionForward to a page with an anchor?

2001-08-30 Thread Brian . Duchouquette


Martin,

I need to perform a submit in order for the server to see the new value
that the user entered on the form in order to add it to the bean.
html:link won't do that for me...

Brian




   

martin.cooper@tumb 

leweed.com   To: [EMAIL PROTECTED]

 cc:   

08/29/2001 05:31 Subject: Re: How to handle an 
ActionForward to a page with an anchor? 
PM 

Please respond to  

struts-user

   

   





Take a look at the 'anchor' attribute on the html:link tag. If you use
that for your Add link, I believe it will do what you want.

--
Martin Cooper


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 2:02 PM
Subject: How to handle an ActionForward to a page with an anchor?


 All,

 I have a page with a control which allows the user to add items to a
vector
 on a bean.  Basically it is a company form with an Add Subsidiary button.
 Each time the user presses Add, the vector on the company formbean
 receives the new element.  However, when the page reloads, I want the
 browser to scroll to the subsidiaries region of the page.  In order to do
 this, I would like to place an anchor tag at that place on the page, then
 have Struts place the #subsidiary anchor in the URL.   If there is a
better
 way to do this, please let me know...

 Is there a Struts 1.0 feature that will help me do this?  If there is not
a
 Struts 1.0 feature that will help, is there a planned feature in the
Struts
 1.1 release that will help?

 Thanks,
 Brian










RE: Configuration problem

2001-08-30 Thread David Bolsover

Devon

oops - just a typo when I sent the mail - but still the problem has gone
away - and I don't know why.

thanks for time and effort

david

 View source shows a href=http://www.foo.com; foo.com/a

I assume you mean

a href=http://www.foo.com; foo.com/a

Without the close bracket on a. If this is what View Source
is showing, then your browser is receiving the correct HTML.
In other words, it isn't a problem with your server/jsp/struts
configuration.

Devon




BEGIN:VCARD
VERSION:2.1
N:Bolsover;David;Paul;Mr.
FN:David Paul Bolsover
ORG:Bolsover.Com
TITLE:Consultant
NOTE:V card info
TEL;WORK;VOICE:+44 (0) 1614276922
TEL;HOME;VOICE:+44 (0) 1614276920
TEL;CELL;VOICE:+44 07773428118
TEL;WORK;FAX:+44 (0) 1614276922
ADR;HOME;ENCODING=QUOTED-PRINTABLE:;;1 Stephouses =0D=0AHollywood Lane=0D=0AMellor;Stockport;Cheshire;SK6 5LR;U=
nited Kingdom
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:1 Stephouses =0D=0AHollywood Lane=0D=0AMellor=0D=0AStockport, Cheshire SK6 5=
LR=0D=0AUnited Kingdom
URL:
URL:http://www.bolsover.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010228T193131Z
END:VCARD



Re: Action fails to be invoked. ActionForm class not found. [SOLVED]

2001-08-30 Thread Keith Bacon

Thanks for that Peter - nice to know I was't alone!
When using Tomcat I make a habit of restarting it after compiling
class files. Otherwise I would get a totally misleading error - I
can't remember if it was Action class not found or another.
I look forward to the day when auto-reload of every resource is
guaranteed reliable!
Keith.

--- Peter Pilgrim [EMAIL PROTECTED] wrote:
 
 
 WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING 
 WARNING
 WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING 
 WARNING
 WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING 
 WARNING
 WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING 
 WARNING
 WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING 
 WARNING
 WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING 
 WARNING
 WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING 
 WARNING
 WARNING  WARNING  WARNING  WARNING  WARNING  WARNING  WARNING 
 WARNING
 
 
 If you may get periodic, unexplain `ActionForm' class not found
 exceptions be aware,
 especially if you get exceptions which are very hard to debug.
 
 Jakarta Struts 1.0 does __NOT__ work correctly with Jakarta Tomcat
 3.2.1
 
 Upgrade to Jakarta Tomcat 3.3- Beta 1 NOW 
 
 JOB DONE!!
 
 --
 Peter Pilgrim  |  |++44 (0)207-545-9923
  \  \  ___   /  / ... .
 -     ( * )  ---   --
 _Cafe_Savannah,_San Antonio,Ibiza__
 
 
 
  Message History
 
 
 
 From: Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK on 30/08/2001 14:47
 
 Please respond to [EMAIL PROTECTED]
 
 To:   [EMAIL PROTECTED]
 cc:
 Subject:  Re: Action fails to be invoked. ActionForm class not
 found.
 
 
 
 This is the wrong answer because
 
 (1) Root Directory:
 `/home/gdd2_dev/jakarta-tomcat-3.2.1/webapps/pilgpe'
 
   `pilgpe'
 |
 +-- WEB-INF
 |   |
 |   +-- classes
 |   |   |
 |   |   +-- com
 |   |   |
 |   |   +-- learn
 |   |
 |   +-- lib
 |   |
 |   +-- tlds
 |
 +-- moar
 |   |
 |   +-- images
 |   |
 |   +-- static
 |
 +-- properties
 
 (2) The JSP Container should load any classes under
 `WEB-INF/classes' and any
 JAR files under `WEB-INF/lib' and since `struts.jar' is already
 under `WEB-INF/lib'
 then this shouldn't be an issue!
 
 --
 Peter Pilgrim  |  |++44 (0)207-545-9923
  \  \  ___   /  / ... .
 -     ( * )  ---   --
 _Cafe_Savannah,_San Antonio,Ibiza__
 
 
 
 Please respond to [EMAIL PROTECTED]
 
 
 To:   [EMAIL PROTECTED]
 cc:
 Subject:  Re: Action fails to be invoked. ActionForm class not
 found.
 
 
 Hi
 Did you put your_directory/moar/WEB-INF/classes in your CLASSPATH
 ?
 Your error is related to CLASSNOTFOUND and is related to your
 CLASSPATH
 configuration.
 
 
 
 --CUT--
 
 
 
 
 --
 
 This e-mail may contain confidential and/or privileged information.
 If you are not the intended recipient (or have received this e-mail
 in error) please notify the sender immediately and destroy this
 e-mail. Any unauthorized copying, disclosure or distribution of the
 material in this e-mail is strictly forbidden.
 
 
 
 
 
 
 
 --
 
 This e-mail may contain confidential and/or privileged information.
 If you are not the intended recipient (or have received this e-mail
 in error) please notify the sender immediately and destroy this
 e-mail. Any unauthorized copying, disclosure or distribution of the
 material in this e-mail is strictly forbidden.
 
 


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread Shamdasani Nimmi-ANS004

I am under the impression that session.invalidate() should be sufficient for logout. 
The problem that's happening is that I can run the whole application again and go to 
pages that I didn't go to before logging out, which means these pages were never in 
the cache.

-Nimmi

-Original Message-
From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 8:07 AM
To: [EMAIL PROTECTED]
Subject: RE: STRANGE: session.invalidate() is not invalidating the
session


try adding these lines to the JSP
%
response.setHeader(Cache-Control,no-store); //HTTP 1.1
response.setHeader(Pragma,no-cache); //HTTP 1.0
response.setDateHeader (Expires, 0); //prevents caching at the proxy 
server

%




From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: STRANGE: session.invalidate() is not invalidating the session
Date: Thu, 30 Aug 2001 10:13:40 +0200

i'm having the same problem , please help anyone?

-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 9:32 PM
To: struts-user@jakarta. apache. org (E-mail)
Subject: STRANGE: session.invalidate() is not invalidating the session


Hi,

I noticed a peculiar thing. In my application I have a logout link on 
pages.
This link control goes to 'Logout' action where I  clean up the session
variables and then invalidate the session with:

session.invalidate();

and this class forwards it to Logout.jsp which just has the goodbye 
message.

I have noticed that at this point if I keep going back with the back key of
my browser to the point where jsessionid is part of the URL, i.e.,

http://localhost:8080/msqc/logon.do;jsessionid=149062E2E0A77480075991317505D
453


and do the browser refresh here then I can go back into the application
without having to log in again. It is as if the session is still alive.

All the screens(incl. the above URL point) going backwards from Logout.jsp
do show the page expired message but doing refresh on the above URL screen
only brings back the application

Could someone please explain this to me? Has anyone else seen this?

BTW I am using Tomcat 4.0 and Struts 1.1(same happens with 1.0 too)

TIA.

-Nimmi


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



Any Struts User uses the Expresso Framework ?

2001-08-30 Thread Peter Pilgrim

Hi

Now that I was __bloodied__ my fingers with raw jakarta Struts.
It 's looking quite good. I can feel the power.

I wonder if any struts users are using the Expresso Framework 4.0 ea
which integrates the Struts Release 1.0. I am a Core contributer
with Expresso Framework so that why I am asking.

http://www.xenonsoft.demon.co.uk/products/java.html
http://www.jcorporate.com/
--
Sun Certified Java 2 Programmer, Senior Systems Analyst,
OTC Derivatives IT, Deutsche Bank UK, 1-133 Houndsditch,
London, EC3A 7DX England

Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





RE: Websphere deployment problem

2001-08-30 Thread Mohammed_Tarafdar




Hi chris,

i have followed the instructions. I am able to run struts example application
but a sample
application done by me does not run.

TIA
rafee

Date: Thu, 30 Aug 2001 09:08:27 -0400
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
From: Assenza, Chris [EMAIL PROTECTED]
Subject: RE: Websphere deployment problem
Message-ID: 958E8CEC2784D41186EF00B0D0780B514D99BB@APOLLO

See: http://jakarta.apache.org/struts/installation-was352-x.html

Chris

Christopher Assenza
Phone:412.201.6026
Fax: 412.201.6060
Email:[EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: Websphere deployment problem

Hi,

when i deploy struts application in websphere 3.5.2 and try to access any
JSP
file i get the following error.
Can anyone let me know how to resolve it.

TIA
rafee

[01.08.30 16:57:04:735 GMT+05:30] 32e0194d WebGroup  A SRVE0091I:
[Servlet
LOG]: jsp11: init
[01.08.30 16:57:04:846 GMT+05:30] 32e0194d ServletInstan A SRVE0130I:
Servlet
available for service: jsp11
[01.08.30 16:58:12:142 GMT+05:30] a16c9945 WebGroup  X [Servlet
Error]-[{0}]: {1}: {2}
 jsp11
 org/apache/struts/action/ActionForm

com.ibm.servlet.engine.webapp.WebAppErrorReport:
org/apache/struts/action/ActionForm
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:97)

 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:381)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:460)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:580)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:175)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:93)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:77)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:155)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:212)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:347)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(SQWrapperEventSource.java:216)

 at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(OutOfProcThread.java:248)

 at java.lang.Thread.run(Thread.java:481)

[01.08.30 16:58:12:483 GMT+05:30] a16c9945 ServletInstan X Uncaught
service()
exception thrown by servlet {0}: {1}
 file
 javax.servlet.ServletException
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:598)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W

html:error/ need help? (to TED)

2001-08-30 Thread Satyan Nair

i want to generate a particular link if there is any error!

according to the example in strutsthe error tag is html:error/

i want to generate this link only if there is an error
  html:link page=/editRegistration.do?action=Createbean:message
key=logon.registration/ /html:link

how do i use the error tag...
i tried doing like

html:error
html:errors/
  html:link page=/editRegistration.do?action=Createbean:message
key=logon.registration/  /html:link
/html:error

but it didn't work(obviously)!

how do i go about it?
take care...






Any workaround for getConnection(username, password)?

2001-08-30 Thread Daniel Jimenez

In an attempt to implement security on our web servers, I've tried to remove the 
username and password on the struts-config.xml datasource tag.  I've done this to 
retrieve this information from a remote location not located on the actual web server. 
 The problem with this, as many of you probably know is that the struts framework does 
not yet support the getConnection(user,pass) in its genericDataSource 
implementation.  I was wondering if any of you have a workaround for this instance?  

I have gotten tomcat to load the datasource without a username and password by setting 
my minCount=0.  The reason this works is pretty obvious and that's because tomcat 
doesn't make an initial connection to the database.  

I have a feeling that I can add the username and password now that tomcat is loaded 
but am a little unsure of how to accomplish this. 

Thanks
Dan Jimenez





RE: Websphere deployment problem

2001-08-30 Thread Assenza, Chris

Can you provide more details? :-)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 4:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Websphere deployment problem





Hi chris,

i have followed the instructions. I am able to run struts example
application
but a sample
application done by me does not run.

TIA
rafee

Date: Thu, 30 Aug 2001 09:08:27 -0400
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
From: Assenza, Chris [EMAIL PROTECTED]
Subject: RE: Websphere deployment problem
Message-ID: 958E8CEC2784D41186EF00B0D0780B514D99BB@APOLLO

See: http://jakarta.apache.org/struts/installation-was352-x.html

Chris

Christopher Assenza
Phone:412.201.6026
Fax: 412.201.6060
Email:[EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:49 PM
To: [EMAIL PROTECTED]
Subject: Websphere deployment problem

Hi,

when i deploy struts application in websphere 3.5.2 and try to access any
JSP
file i get the following error.
Can anyone let me know how to resolve it.

TIA
rafee

[01.08.30 16:57:04:735 GMT+05:30] 32e0194d WebGroup  A SRVE0091I:
[Servlet
LOG]: jsp11: init
[01.08.30 16:57:04:846 GMT+05:30] 32e0194d ServletInstan A SRVE0130I:
Servlet
available for service: jsp11
[01.08.30 16:58:12:142 GMT+05:30] a16c9945 WebGroup  X [Servlet
Error]-[{0}]: {1}: {2}
 jsp11
 org/apache/struts/action/ActionForm

com.ibm.servlet.engine.webapp.WebAppErrorReport:
org/apache/struts/action/ActionForm
 at
com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispa
tcherResponse.java:97)

 at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:381)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:460)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:580)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)
 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle
Servlet.java:105)

 at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:35
3)
 at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan
ager.java:729)

 at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag
er.java:655)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W
ebAppRequestDispatcher.java:338)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest
Dispatcher.java:175)

 at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD
ispatcher.java:93)

 at
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.
java:77)

 at
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn
vocation.java:67)

 at
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ
estProcessor.java:155)
 at
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener
.java:300)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQ
EventListenerImp.java:230)

 at
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventL
istenerImp.java:104)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQE
ventSource.java:212)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.notifyService(SQWrapperEventSource.java:347)

 at
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRu
nnable.run(SQWrapperEventSource.java:216)

 at
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run
(OutOfProcThread.java:248)

 at java.lang.Thread.run(Thread.java:481)

[01.08.30 16:58:12:483 GMT+05:30] a16c9945 ServletInstan X Uncaught
service()
exception thrown by servlet {0}: {1}
 file
 javax.servlet.ServletException
 at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager
.java:598)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl
eServlet.java:160)

 at
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle
t.java:287)

 at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle

RE: Select tag

2001-08-30 Thread Jay Patel

Another way is to have the FormBean populated with the desired value. So
when the select tag is rendered, it will automatically select the value from
the form bean. 


-Original Message-
From: SUHAS G. KULKARNI [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:51 AM
To: [EMAIL PROTECTED]
Subject: RE: Select tag


check this 
I think u have to change the select tag a bit  -
html:select property=grouptype  value=theoneUwantTOSelect


-Original Message-
From: s k m [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:14 AM
To: [EMAIL PROTECTED]
Subject: Select tag


Hi all

How do I disply a desired value, while populating the select tag?
I'm using the tag like this...

html:select property=grouptype
html:options collection=allgroups property=key
labelProperty=value/
/html:select

It is showing me the dropdown box with the values in collection 'grouptype'
but the requirement is to show the specific value while screen is displayed.

Sandeep mahajan

 




RE: html:error/ need help? (to TED)

2001-08-30 Thread Shamir Juma

Try this:

logic:present name=%=Action.ERROR_KEY%
html:link page=/editRegistration.do?action=Create
bean:message key=logon.registration/

/html:link
/logic:present

Shamir Juma

-Original Message-
From: Satyan Nair [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:16 PM
To: [EMAIL PROTECTED]
Subject: html:error/ need help? (to TED)


i want to generate a particular link if there is any error!

according to the example in strutsthe error tag is html:error/

i want to generate this link only if there is an error
  html:link page=/editRegistration.do?action=Createbean:message
key=logon.registration/ /html:link

how do i use the error tag...
i tried doing like

html:error
html:errors/
  html:link page=/editRegistration.do?action=Createbean:message
key=logon.registration/  /html:link
/html:error

but it didn't work(obviously)!

how do i go about it?
take care...







RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread Keith Bacon

I think there was a recent post dealing with this.

Struts tends to create a new session if there isn't one there. (every
time the action servlet runs I suspect?).

To restrict access to pages you should require the user to be logged
on.
- At logon add some object to the session (I call mine singedOnUser).
- When a page starts (at start of your Action class code) if that
object the user is logged on so you allow access.
Hope that helps
Keith.


--- Shamdasani Nimmi-ANS004 [EMAIL PROTECTED] wrote:
 I am under the impression that session.invalidate() should be
 sufficient for logout. The problem that's happening is that I can
 run the whole application again and go to pages that I didn't go to
 before logging out, which means these pages were never in the
 cache.
 
 -Nimmi
 
 -Original Message-
 From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 8:07 AM
 To: [EMAIL PROTECTED]
 Subject: RE: STRANGE: session.invalidate() is not invalidating the
 session
 
 
 try adding these lines to the JSP
 %
 response.setHeader(Cache-Control,no-store); //HTTP 1.1
 response.setHeader(Pragma,no-cache); //HTTP 1.0
 response.setDateHeader (Expires, 0); //prevents caching at
 the proxy 
 server
 
 %
 
 
 
 
 From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]'
 [EMAIL PROTECTED]
 Subject: RE: STRANGE: session.invalidate() is not invalidating the
 session
 Date: Thu, 30 Aug 2001 10:13:40 +0200
 
 i'm having the same problem , please help anyone?
 
 -Original Message-
 From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 29, 2001 9:32 PM
 To: struts-user@jakarta. apache. org (E-mail)
 Subject: STRANGE: session.invalidate() is not invalidating the
 session
 
 
 Hi,
 
 I noticed a peculiar thing. In my application I have a logout link
 on 
 pages.
 This link control goes to 'Logout' action where I  clean up the
 session
 variables and then invalidate the session with:
 
 session.invalidate();
 
 and this class forwards it to Logout.jsp which just has the
 goodbye 
 message.
 
 I have noticed that at this point if I keep going back with the
 back key of
 my browser to the point where jsessionid is part of the URL, i.e.,
 

http://localhost:8080/msqc/logon.do;jsessionid=149062E2E0A77480075991317505D
 453
 
 
 and do the browser refresh here then I can go back into the
 application
 without having to log in again. It is as if the session is still
 alive.
 
 All the screens(incl. the above URL point) going backwards from
 Logout.jsp
 do show the page expired message but doing refresh on the above
 URL screen
 only brings back the application
 
 Could someone please explain this to me? Has anyone else seen
 this?
 
 BTW I am using Tomcat 4.0 and Struts 1.1(same happens with 1.0
 too)
 
 TIA.
 
 -Nimmi
 
 

**
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom
 they
 are addressed. If you have received this email in error please
 notify
 the system manager.
 
 This footnote also confirms that this email message has been swept
 by
 MIMEsweeper for the presence of computer viruses.
 
 www.mimesweeper.com

**
 
 
 _
 Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



dynamic template tag parameter values

2001-08-30 Thread David Boardman

Our site will be accessed by users via other sites on the web.  For
instance, our site might be accessed from a link on Cisco's site.  When this
occurs we want the GUI to be different than the default GUI (same general
layout, but different graphics etc.)  To do this I was hoping to include a
client parameter in the query string
(http://oursite.com/login.jsp?client=Xxx) and then use that to dynamically
set the value of the content parameter within a template:put tag to load
the appropriate jsp.

I believe I can retrieve the query string parameter using bean:parameter
id=clientName name=client.  However, I am not sure how to dynamically
include this value in the content parameter of the template:put tag.

For example, my default template currently looks like this:

**
%@ page language=java %
%@ taglib uri=/taglibs/struts-template.tld prefix=template %
%@ taglib uri=/taglibs/struts-bean.tld prefix=bean %

template:insert template=/jsps/template.jsp
template:put name=titlebean:message
key=candidate.detail.title//template:put
template:put name=top content=/jsps/top.jsp/
template:put name=sidebar content=/jsps/sidemenu.jsp/
template:put name=body content=/jsps/loginBody.jsp/
template:put name=footer content=/jsps/footer.jsp/
/template:insert
**

for Cisco I would like it to look like:
**
%@ page language=java %
%@ taglib uri=/taglibs/struts-template.tld prefix=template %
%@ taglib uri=/taglibs/struts-bean.tld prefix=bean %

template:insert template=/jsps/template.jsp
template:put name=titlebean:message
key=candidate.detail.title//template:put
template:put name=top content=/jsps/topCisco.jsp/
template:put name=sidebar content=/jsps/sidemenuCisco.jsp/
template:put name=body content=/jsps/loginBody.jsp/
template:put name=footer content=/jsps/footerCisco.jsp/
/template:insert
**


and for client=Xxx I would like it to look like:
**
%@ page language=java %
%@ taglib uri=/taglibs/struts-template.tld prefix=template %
%@ taglib uri=/taglibs/struts-bean.tld prefix=bean %

template:insert template=/jsps/template.jsp
template:put name=titlebean:message
key=candidate.detail.title//template:put
template:put name=top content=/jsps/topXxx.jsp/
template:put name=sidebar content=/jsps/sidemenuXxx.jsp/
template:put name=body content=/jsps/loginBody.jsp/
template:put name=footer content=/jsps/footerXxx.jsp/
/template:insert
**

Any help would be greatly apprecitated.

Thanks,

David Boardman
Integral7




RE: Any Struts User uses the Expresso Framework ?

2001-08-30 Thread Peter Pilgrim


It depends what you need in the end. I would say

Struts is a lighter weight framework for developing web applications

Expresso is a medium weight framework developing database-driven
web applications

If you do not need to scalability, distributable server, transaction safe,
robust, component architecture then you dont need
an J2EE application server.

If you do need talk to database often, need a lot of grunt taken
out of writing your own object to relational table mapping. If
you also want dont want to write your own security. If you want
security already for your servlets, actions, then I'd say
Expresso is worth looking for.

If you want to roll your security, user profile, and have simple
requirements for mapping objects to database table, can
live a basic form security, which roll on on your won,
then you can live with Struts.

The problem web app is that the technology is moving
faster. First there were Servlet, then JSPs, and now
we have frameworks. It's the old trade off issues again
time to market, time to customers you decide. I know I dont
want to go back to pure Java Servlets again in hurry. That's my word.
--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



 Message History 



From: Robert Domachevsky [EMAIL PROTECTED] on 30/08/2001 11:39 AST

Please respond to [EMAIL PROTECTED] [EMAIL PROTECTED]

To:   Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK
cc:   '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject:  RE: Any Struts User uses the Expresso Framework ?


Hello Peter,

I run a small  shop which has been learning Expresso.  I am concerned about
the duplication of functionality and resulting confusion between Expresso
4.0 and Struts that Pete Carapetyan expressed in his message a few days
ago.  Being a core contributer to Expresso do you have any comments.  I am
starting to think that maybe I am better off just using Struts because of
the much larger interest in Struts vs Expresso.

Bob Domachevsky
Ansco
514.488.2020


-Original Message-
From: Peter Pilgrim [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:07 PM
To:  [EMAIL PROTECTED]
Subject:  Any Struts User uses the Expresso Framework ?

Hi

Now that I was __bloodied__ my fingers with raw jakarta Struts.
It 's looking quite good. I can feel the power.

I wonder if any struts users are using the Expresso Framework 4.0 ea
which integrates the Struts Release 1.0. I am a Core contributer
with Expresso Framework so that why I am asking.

http://www.xenonsoft.demon.co.uk/products/java.html
http://www.jcorporate.com/
--
Sun Certified Java 2 Programmer, Senior Systems Analyst,
OTC Derivatives IT, Deutsche Bank UK, 1-133 Houndsditch,
London, EC3A 7DX England

Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.






--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





using actions xxxx.do

2001-08-30 Thread Maxime Saby


I just finish the installation of struts but when
i access a url with logo.do i do not have the page.

The page cant be found.


I have the line about the .do action servlet mapping and the tld
files where they are supposed to be but nothing ...

In my tomcat/lib folder, i have the jasp parser ... jar ressources.


What is the problem ?

tanx in advance
maxime


  !-- Action Servlet Mapping --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping


  !-- Struts Tag Library Descriptors --
  taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
taglib-location/WEB-INF/struts-logic.tld/taglib-location
  /taglib



___
 Maxime Sabyhttp://www.linkvest.com
 Linkvest SAmailto:[EMAIL PROTECTED]
 av des Baumettes 19,Tel : 41/21/632 90 00
 1020 RenensFax : 41/21/632 90 90
 Switzerland




RE: html:error/ need help? (to TED)

2001-08-30 Thread Satyan Nair

thanks shamir

org.apache.jasper.compiler.ParseException: /jsp/logon.jsp(19,23) Attribute
value should be quoted

i got this error!

am i missing something?




RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread Shamdasani Nimmi-ANS004

Before I invalidate a session I remove all user session objects and at the top of each 
JSP I check that the user is logged on(i.e., check for an object in session). 

If I typein a URL with any JSP it brings up the Logon screen as it should do but if I 
go back in browser history to the screen whose URL contains the jsessionid info then I 
go right back into the application.

-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 10:44 AM
To: [EMAIL PROTECTED]
Subject: RE: STRANGE: session.invalidate() is not invalidating the
session


I think there was a recent post dealing with this.

Struts tends to create a new session if there isn't one there. (every
time the action servlet runs I suspect?).

To restrict access to pages you should require the user to be logged
on.
- At logon add some object to the session (I call mine singedOnUser).
- When a page starts (at start of your Action class code) if that
object the user is logged on so you allow access.
Hope that helps
Keith.


--- Shamdasani Nimmi-ANS004 [EMAIL PROTECTED] wrote:
 I am under the impression that session.invalidate() should be
 sufficient for logout. The problem that's happening is that I can
 run the whole application again and go to pages that I didn't go to
 before logging out, which means these pages were never in the
 cache.
 
 -Nimmi
 
 -Original Message-
 From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 8:07 AM
 To: [EMAIL PROTECTED]
 Subject: RE: STRANGE: session.invalidate() is not invalidating the
 session
 
 
 try adding these lines to the JSP
 %
 response.setHeader(Cache-Control,no-store); //HTTP 1.1
 response.setHeader(Pragma,no-cache); //HTTP 1.0
 response.setDateHeader (Expires, 0); //prevents caching at
 the proxy 
 server
 
 %
 
 
 
 
 From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]'
 [EMAIL PROTECTED]
 Subject: RE: STRANGE: session.invalidate() is not invalidating the
 session
 Date: Thu, 30 Aug 2001 10:13:40 +0200
 
 i'm having the same problem , please help anyone?
 
 -Original Message-
 From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 29, 2001 9:32 PM
 To: struts-user@jakarta. apache. org (E-mail)
 Subject: STRANGE: session.invalidate() is not invalidating the
 session
 
 
 Hi,
 
 I noticed a peculiar thing. In my application I have a logout link
 on 
 pages.
 This link control goes to 'Logout' action where I  clean up the
 session
 variables and then invalidate the session with:
 
 session.invalidate();
 
 and this class forwards it to Logout.jsp which just has the
 goodbye 
 message.
 
 I have noticed that at this point if I keep going back with the
 back key of
 my browser to the point where jsessionid is part of the URL, i.e.,
 

http://localhost:8080/msqc/logon.do;jsessionid=149062E2E0A77480075991317505D
 453
 
 
 and do the browser refresh here then I can go back into the
 application
 without having to log in again. It is as if the session is still
 alive.
 
 All the screens(incl. the above URL point) going backwards from
 Logout.jsp
 do show the page expired message but doing refresh on the above
 URL screen
 only brings back the application
 
 Could someone please explain this to me? Has anyone else seen
 this?
 
 BTW I am using Tomcat 4.0 and Struts 1.1(same happens with 1.0
 too)
 
 TIA.
 
 -Nimmi
 
 

**
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom
 they
 are addressed. If you have received this email in error please
 notify
 the system manager.
 
 This footnote also confirms that this email message has been swept
 by
 MIMEsweeper for the presence of computer viruses.
 
 www.mimesweeper.com

**
 
 
 _
 Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



Re: Action fails to be invoked. ActionForm class not found.

2001-08-30 Thread Peter Pilgrim


Whoops!

Unfortunately upgrading to Tomcat 3.3 -Beta1 did not solve the problem.
There is something wrong here, because when I first unpacked tomcat
and deploy my webapp it worked fine. When I ran it again the class loader
failed with the same back trace.

The backtrace is probably a red herring, it must be something else
in Struts.

I found that `webapp/admin/reload.do ' would reload the struts-config.xml
but to no avail.

Does Struts have a better log verbose. Can you force it to be verbose heavy?

--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



 Message History 



From: Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK on 30/08/2001 13:37

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Action fails to be invoked. ActionForm class not found.



Hi

I __definitely__ copied the struts.jar into my WEB-INF/lib directory.
I am using Tomcat 3.2.1 btw. JD 1.3 refresh beta on Solaris 2.6
It seems that adaptive class loader is at fault, but cannot be sure because
Struts does not provide any clearer information on what the failure is
apart from `org.apache.struts.action.ActionForm' not being found

I have set up strut-config.xml to have the following:


 !-- == Form Bean Definitions === --
  form-beans
!-- Reconciliation source action form bean --
form-bean  name=sourceForm
type=com.db.moar.jsp.SourceForm /
  /form-beans

  !-- == Global Forward Definitions == --
  global-forwards
 !-- A global forward to the main home page --
 forward   name=main path=/moar/index.jsp /
 forward   name=success  path=/moar/hello.jsp /
  /global-forwards

  !-- == Action Mapping Definitions == --
  action-mappings

!-- Struts action calculating the total selected cash flow --
actionpath=/CalcTotal
   type=com.db.moar.jsp.TotalAction
   name=sourceForm
  scope=request
  input=/moar/reconcil-frameset.jsp
   validate=false 
  forward name=success  path=/moar/hello.jsp/
/action


In the JSP I have the following the tag action
( /home/gdd2_dev/jakarta-tomcat-3.2.1/webapps/pilgpe/moar/reconcil-left-source.jsp )

html:form action=/CalcTotal.do method=POST target=bottomFrame 

Yet struts claims it cannot find the action. I am trying evaluate Struts and
I wondering what to say to the bosses. I know that Struts is integrated
with Expresso Frameworks at mo ...  But is Struts production worthy or
not?
How do you switch on more pedantic debugging info in Struts anyway?


My backtrace is


Error: 500

Location: /pilgpe/moar/reconcil-left-source.jsp

Internal Servlet Error:

javax.servlet.ServletException: org/apache/struts/action/ActionForm
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)

--CUT--

Root cause:

java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:446)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
at 
moar._0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_0._jspService(_0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_0.java:186)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at 

Re: how do I snoop responses

2001-08-30 Thread Tom Tibbetts

I finally got the patience to look at it today.  Looks like it will have 
exactly the level of detail I'm looking for.  Problem is that it seems to 
be able to intercept requests but bombs on the response.  Also, as a side 
note, looks like when you click on a link within an Opera browser window, 
Opera sends a post method to an asp script on rsp1.opera.com.  Has anybody 
heard of this before?  Tom Tibbetts

At 10:37 AM 8/29/01 -0700, you wrote:
I don't recall if this has the level of detail you're looking for (it's been
a while since I used it), but you could take a look at WebDebug:

http://www.cyberclip.com/webdebug/

--
Martin Cooper


- Original Message -
From: Tom Tibbetts [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 9:43 AM
Subject: how do I snoop responses


  I know this is not a Struts question, but I'm looking for a (free) tool
  where I can enter in my URL in order to snoop HttpServletResponses so I
can
  look at the MIME headers.  Any help would be appreciated.  Thanks
 




Problem with reference to external files (CSS, ...) in JSP

2001-08-30 Thread bruno . o . faure


Hi  all

There's something I don't fully understand in the forward mecanism :
My web application looks something like this :
MyWebApp
 - jsp
 - css
 - js
 - images
 - WEB-INF
 - META-INF

All my jsp are located in the jsp directory. In each jsp file, I have a
reference to a CSS file located in CSS directory :
link href=../css/myStyles.css ... /

When I access each jsp by typing the URL in the navigator,  '../css/myStyles.css' 
leads me to http://myServer/myWebApp/css/myStyles.css which is fine.
When I use a forward configured in struts-config.xml in an action tag to the same jsp, 
the '../css/myStyles.css' leads me to
http://myServer/css/myStyles.css.

Could anyone explain me why ? Is it something of the RequestDispatcher.forward() 
method ?

Regards

Bruno



This message and any attachments (the message) is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
message) sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.



Re: using actions xxxx.do

2001-08-30 Thread Daniel Jimenez

Don't forget your struts.jar in lib and add the ActionServlet as part of your web.xml
servlet
servlet-nameaction/servlet-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameapplication/param-name
  
param-valuecom.bs.jobpost.ApplicationResources/param-value
/init-param
init-param
param-nameconfig/param-name
param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
param-namevalidate/param-name
param-valuetrue/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping

Is tomcat even loading the web app correctly?
 [EMAIL PROTECTED] 8/30/01 10:57:12 AM 

I just finish the installation of struts but when
i access a url with logo.do i do not have the page.

The page cant be found.


I have the line about the .do action servlet mapping and the tld
files where they are supposed to be but nothing ...

In my tomcat/lib folder, i have the jasp parser ... jar ressources.


What is the problem ?

tanx in advance
maxime


  !-- Action Servlet Mapping --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping


  !-- Struts Tag Library Descriptors --
  taglib
taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-html.tld/taglib-uri
taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib

  taglib
taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
taglib-location/WEB-INF/struts-logic.tld/taglib-location
  /taglib



___
 Maxime Sabyhttp://www.linkvest.com 
 Linkvest SAmailto:[EMAIL PROTECTED] 
 av des Baumettes 19,Tel : 41/21/632 90 00
 1020 RenensFax : 41/21/632 90 90
 Switzerland





How to make reset button clear all fields

2001-08-30 Thread Kwang-Shi Shu

 I noticed the following behavior for RESET button in STRUTS framework:

The Reset button will clear all fields on the first try. After that, if
you encountered validation errors, it seems to remember what have been
so far. From that point on, the reset button only clears the new
input values. Case in point -- try the struts-example login.jsp and
you know what I am talking about.

  What should I do if I still want to clear all field contents. I tried to
use
another button declared as input type=reset and it is not working
either.

Shu, Kwang-shi  | Tel 732-460-7848
Village Networks, Inc.  | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]




Re: html:error/ need help? (to TED)

2001-08-30 Thread Fabrice CANTEGREL

maybe the quotes for the name attribute

Satyan Nair wrote:

 thanks shamir

 org.apache.jasper.compiler.ParseException: /jsp/logon.jsp(19,23) Attribute
 value should be quoted

 i got this error!

 am i missing something?



CANTEGREL Fabrice
http://www.reef.com
_

REEF is a global provider of Internetware for online publishing,
e-commerce, Web site administration and dynamic asset management.
_





error running struts in iPlanet

2001-08-30 Thread Fletcher, Ken

I'm getting an Exception that's driving me nuts (any help will be greatly
appreciated):

action: Error creating ActionForm instance of class xdata.MyActionForm
error: Exception Stack Trace: java.lang.ClassCastException:
xdata.MyActionForm

my struts-config.xml has:
form-beans
   form-bean name=loginForm type=xdata.MyActionForm/
/form-beans
action-mappings
   action 
 path=/login
 type=actions.LoginAction
 name=loginForm
 validate=true
 input=/jsp/userLogin.jsp
 forward name=mainMenu path=/jsp/mainMenu.jsp/
   /action
/action-mappings

it works if I put in scope=request , but then the validate method in
MyActionForm never gets called and it goes straight to the mainMenu.jsp
MyActionForm extends a class which in turn extends ActionForm (which
shouldn't be a problem but maybe it is?)  Has anyone run across this?

Ken Fletcher
Teacher Retirement System of Texas



RE: html:error/ need help? (to TED)

2001-08-30 Thread Satyen . Chikane

name=%=Action.ERROR_KEY%
u missed the quotations probably ...

-Original Message-
From: Shamir Juma [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 4:39 PM
To: '[EMAIL PROTECTED]'
Subject: RE: html:error/ need help? (to TED)


Try this:

logic:present name=%=Action.ERROR_KEY%
html:link page=/editRegistration.do?action=Create
bean:message key=logon.registration/

/html:link
/logic:present

Shamir Juma

-Original Message-
From: Satyan Nair [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:16 PM
To: [EMAIL PROTECTED]
Subject: html:error/ need help? (to TED)


i want to generate a particular link if there is any error!

according to the example in strutsthe error tag is html:error/

i want to generate this link only if there is an error
  html:link page=/editRegistration.do?action=Createbean:message
key=logon.registration/ /html:link

how do i use the error tag...
i tried doing like

html:error
html:errors/
  html:link page=/editRegistration.do?action=Createbean:message
key=logon.registration/  /html:link
/html:error

but it didn't work(obviously)!

how do i go about it?
take care...





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

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 Internet email are subject to the terms and conditions
expressed in any applicable governing ING Barings' terms of business or
client engagement letter.

Visit us at www.ingbarings.com

--



Struts Sustem.output/err

2001-08-30 Thread David Corbin

Struts (Tomcat?) seems to spit out some information lines about registering
some files (DTDs at least) and later resolving them.  Is there a way to turn
this off, so that it doesn't generate such?

Thanks.
David Corbin




RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread Luna, Katherine
Title: RE: STRANGE: session.invalidate() is not invalidating the session





I also am suffering from this problem.


I have the user object in the session, and each jsp page except the logon.jsp checks the session. This prevents display of any page EXCEPT the one immediately following the login page (Welcome.jsp). If the user refreshes Welcome.jsp, IE resubmits the LogonForm containg the username and password, LogonAction accepts these values and 'presto' the user is in again.

Basically, if the user logs out from welcome.jsp, then backs up with the Browser 'Back' button, they can refresh the page and become logged in without re-entering the username and password because these values must be stored in teh request. I have added the following code to prevent caching of LogonForm (it has scope request according to struts-config.xml)

%
response.setHeader(pragma,no-cache); 
response.setHeader(Cache-Control,no-cache); 
response.setHeader(Cache-Control,no-store);
response.addDateHeader(Expires, 0);
response.setDateHeader(max-age, 0);
response.setIntHeader (Expires, -1); //prevents caching at the proxy server
response.addHeader(cache-Control, private); //IE5.x only; 
%
meta http-equiv=pragma content=no-cache
meta http-equiv=expires content=0



but no luck. Anyone who backs in from a Logout to Welcome.jsp can simply refresh the page and resubmit whatever values were originally entered on the Login page.

This method makes every page except welcome.jsp secure. Does anyone have any suggestions for removing the values input in LoginForm from the cache??

Kat



-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 11:44 AM
To: [EMAIL PROTECTED]
Subject: RE: STRANGE: session.invalidate() is not invalidating the
session



I think there was a recent post dealing with this.


Struts tends to create a new session if there isn't one there. (every
time the action servlet runs I suspect?).


To restrict access to pages you should require the user to be logged
on.
- At logon add some object to the session (I call mine singedOnUser).
- When a page starts (at start of your Action class code) if that
object the user is logged on so you allow access.
Hope that helps
Keith.



--- Shamdasani Nimmi-ANS004 [EMAIL PROTECTED] wrote:
 I am under the impression that session.invalidate() should be
 sufficient for logout. The problem that's happening is that I can
 run the whole application again and go to pages that I didn't go to
 before logging out, which means these pages were never in the
 cache.
 
 -Nimmi
 
 -Original Message-
 From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 30, 2001 8:07 AM
 To: [EMAIL PROTECTED]
 Subject: RE: STRANGE: session.invalidate() is not invalidating the
 session
 
 
 try adding these lines to the JSP
 %
 response.setHeader(Cache-Control,no-store); //HTTP 1.1
 response.setHeader(Pragma,no-cache); //HTTP 1.0
 response.setDateHeader (Expires, 0); //prevents caching at
 the proxy 
 server
 
 %
 
 
 
 
 From: Dudley Butt@i-Commerce [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]'
 [EMAIL PROTECTED]
 Subject: RE: STRANGE: session.invalidate() is not invalidating the
 session
 Date: Thu, 30 Aug 2001 10:13:40 +0200
 
 i'm having the same problem , please help anyone?
 
 -Original Message-
 From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 29, 2001 9:32 PM
 To: struts-user@jakarta. apache. org (E-mail)
 Subject: STRANGE: session.invalidate() is not invalidating the
 session
 
 
 Hi,
 
 I noticed a peculiar thing. In my application I have a logout link
 on 
 pages.
 This link control goes to 'Logout' action where I clean up the
 session
 variables and then invalidate the session with:
 
 session.invalidate();
 
 and this class forwards it to Logout.jsp which just has the
 goodbye 
 message.
 
 I have noticed that at this point if I keep going back with the
 back key of
 my browser to the point where jsessionid is part of the URL, i.e.,
 

http://localhost:8080/msqc/logon.do;jsessionid=149062E2E0A77480075991317505D
 453
 
 
 and do the browser refresh here then I can go back into the
 application
 without having to log in again. It is as if the session is still
 alive.
 
 All the screens(incl. the above URL point) going backwards from
 Logout.jsp
 do show the page expired message but doing refresh on the above
 URL screen
 only brings back the application
 
 Could someone please explain this to me? Has anyone else seen
 this?
 
 BTW I am using Tomcat 4.0 and Struts 1.1(same happens with 1.0
 too)
 
 TIA.
 
 -Nimmi
 
 

**
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom
 they
 are addressed. If you have received this email in error please
 notify
 the system manager.
 
 This footnote also confirms that this email message 

RE: Any Struts User uses the Expresso Framework ?

2001-08-30 Thread Peter Pilgrim


What I was trying to say was metaphorically speaking
comparing different boxing weight divisions.

Raw JSP Servlets is featherweight

Struts is a light weight  flyweight

Expresso is medium weight

WebSphere / Oracle AS / JBoss / Enhydra / BEA are heavy weight
because they guarantee Enterprise level features. (You can usually
start with a raw standard J2EE Server then buy extras like
a personalisation server or portal server.)

What I am saying is just because you are using Struts that you cant
write an enterprise level portal site like `support.dell.com'. But
you would be creaking and struggling if you did not piggy bank
Struts with J2EE features.

The increase of scale goes up (ie the weight)  with what the framework
can do. You can have high level of security, transaction integrity,
and business confidence if you choose one of J2EE app server with
the supplementary portal product.

I like what I see of Struts so far. It is lightweight it is at the level
of intermediate web application development. It is easy to get
into. It is popular , because are two Wrox books about it already
Programming JSP 2nd Edition and Web App Prog 1st Edition (I think?).
Best of all it is an MVC framework that works, although it is not
a mission critical piece of firmware.

The last part is important because my boss, and his boss, and his boss
want to know that my development ideas are sound. I can see the
Cost/Benefit memo wafting over to me now.

Any one want to add categories for a super heavy division?

--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



 Message History 



From: Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK on 30/08/2001 16:53

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  RE: Any Struts User uses the Expresso Framework ?



It depends what you need in the end. I would say

Struts is a lighter weight framework for developing web applications

Expresso is a medium weight framework developing database-driven
web applications

If you do not need to scalability, distributable server, transaction safe,
robust, component architecture then you dont need
an J2EE application server.

If you do need talk to database often, need a lot of grunt taken
out of writing your own object to relational table mapping. If
you also want dont want to write your own security. If you want
security already for your servlets, actions, then I'd say
Expresso is worth looking for.

If you want to roll your security, user profile, and have simple
requirements for mapping objects to database table, can
live a basic form security, which roll on on your won,
then you can live with Struts.

The problem web app is that the technology is moving
faster. First there were Servlet, then JSPs, and now
we have frameworks. It's the old trade off issues again
time to market, time to customers you decide. I know I dont
want to go back to pure Java Servlets again in hurry. That's my word.
--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



 Message History 



From: Robert Domachevsky [EMAIL PROTECTED] on 30/08/2001 11:39 AST

Please respond to [EMAIL PROTECTED] [EMAIL PROTECTED]

To:   Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK
cc:   '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject:  RE: Any Struts User uses the Expresso Framework ?


Hello Peter,

I run a small  shop which has been learning Expresso.  I am concerned about
the duplication of functionality and resulting confusion between Expresso
4.0 and Struts that Pete Carapetyan expressed in his message a few days
ago.  Being a core contributer to Expresso do you have any comments.  I am
starting to think that maybe I am better off just using Struts because of
the much larger interest in Struts vs Expresso.

Bob Domachevsky
Ansco
514.488.2020


-Original Message-
From: Peter Pilgrim [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:07 PM
To:  [EMAIL PROTECTED]
Subject:  Any Struts User uses the Expresso Framework ?

Hi

Now that I was __bloodied__ my fingers with raw jakarta Struts.
It 's looking quite good. I can feel the power.

I wonder if any struts users are using the Expresso Framework 4.0 ea
which integrates the Struts Release 1.0. I am a Core contributer
with Expresso Framework so that why I am asking.

http://www.xenonsoft.demon.co.uk/products/java.html
http://www.jcorporate.com/
--
Sun Certified Java 2 Programmer, Senior Systems Analyst,
OTC Derivatives IT, Deutsche Bank UK, 1-133 Houndsditch,
London, EC3A 7DX England

Peter Pilgrim  |  |++44 (0)207-545-9923

custom taglibs

2001-08-30 Thread Metehan Selvi



Are there any additional customtags, which might be 
useful in case of struts?
cheers
/mete


Re: Where can I find info Debugging Struts? {SOLVED REALLY]

2001-08-30 Thread Peter Pilgrim



15 minute detention after class.  I must remember to:

NOT TO EDIT THE TOMCAT LAUNCH SCRIPT ANYMORE
AND REMEMBER TO BLANK OUT THE CLASSPATH IF I DO!

NOT TO EDIT THE TOMCAT LAUNCH SCRIPT ANYMORE
AND REMEMBER TO BLANK OUT THE CLASSPATH IF I DO!

NOT TO EDIT THE TOMCAT LAUNCH SCRIPT ANYMORE
AND REMEMBER TO BLANK OUT THE CLASSPATH IF I DO!

  (x 100 )

Sorry Sir. I solved the problem really Sir

--
Peter Pilgrim  |  |++44 (0)207-545-9923
 \  \  ___   /  / ... .
-     ( * )  ---   --
_Cafe_Savannah,_San Antonio,Ibiza__



 Message History 



From: Peter Pilgrim/DMGIT/DMG UK/DeuBa@DMG UK on 30/08/2001 12:36
--CUT--


How do get Struts to write out more verbose debugging information?

Where can I find better documentation struts-config.xml ?

Struts does not seem to finding my Action?

I have copied the struts.jar into the  /WEB-INF/lib and find that
I getting a class not found exception for

Root cause:

java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:446)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:563)
at 
moar._0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_10._jspService(_0002fmoar_0002freconcil_0002dleft_0002dsource_0002ejspreconcil_0002dleft_0002dsource_jsp_10.java:186)
--CUT--


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.





RE: How to make reset button clear all fields

2001-08-30 Thread Assenza, Chris

One alternative is to write a JavaScript function that will clear all your
text fields. Bind the function to the onClick event of a generic HTML button
tag and you're set.  Note that this only affects what you see on the screen,
it's never touching the server.  If you were to hit your new reset
JavaScript-based button it'd look cleared; however, if you hit refresh your
values would be re-populated. :)  Regardless, this suggestion will simulate
an HTML reset button.

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Kwang-Shi Shu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 12:33 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: How to make reset button clear all fields


 I noticed the following behavior for RESET button in STRUTS framework:

The Reset button will clear all fields on the first try. After that,
if
you encountered validation errors, it seems to remember what have been
so far. From that point on, the reset button only clears the new
input values. Case in point -- try the struts-example login.jsp
and
you know what I am talking about.

  What should I do if I still want to clear all field contents. I tried to
use
another button declared as input type=reset and it is not
working
either.

Shu, Kwang-shi  | Tel 732-460-7848
Village Networks, Inc.  | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]



RE: How to make reset button clear all fields

2001-08-30 Thread Kevin Hinners

The Reset button is working the way the HTML specification has it defined
just as you described. It only resets the fields that have changed since the
page was displayed. In order to work around this problem, I created a
ResetAction class that gets called when you click on the reset button. This
class either disposes of the FormBean or clears the attributes and posts
back to the form page. Hope this helps.

Kevin Hinners
Senior Technical Analyst

FedEx Services
350 Spectrum Loop
Colorado Springs, CO 80921
719-484-2303
[EMAIL PROTECTED]


-Original Message-
From: Kwang-Shi Shu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 10:33 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: How to make reset button clear all fields


 I noticed the following behavior for RESET button in STRUTS framework:

The Reset button will clear all fields on the first try. After that, if
you encountered validation errors, it seems to remember what have been
so far. From that point on, the reset button only clears the new
input values. Case in point -- try the struts-example login.jsp and
you know what I am talking about.

  What should I do if I still want to clear all field contents. I tried to
use
another button declared as input type=reset and it is not working
either.

Shu, Kwang-shi  | Tel 732-460-7848
Village Networks, Inc.  | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]




RE: custom taglibs

2001-08-30 Thread Jay Patel



Check out jakarta 
taglibs.

Jay.

  -Original Message-From: Metehan Selvi 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 10:52 
  AMTo: [EMAIL PROTECTED]Subject: custom 
  taglibs
  Are there any additional customtags, which might 
  be useful in case of struts?
  cheers
  /mete


RE: tricky mapping

2001-08-30 Thread Oyer, David
Title: RE: tricky mapping







-Original Message-
From: Yuriy Zubarev [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 6:17 PM
To: [EMAIL PROTECTED]
Subject: RE: tricky mapping



John,


Thanks a LOT!!!
Content-disposition header made my day. There is still
a problem when user selects Save target as... but when
he clicks the link a browser suggests the default name
as expected.


Thanks again!


Best of luck,
Yuriy Zubarev




--- John Schroeder [EMAIL PROTECTED] wrote:
 Yuri,
 
 I have run into something similar with Excel files, but I'm not sure if
 it
 will address your current issue.
 
 My problem: when users run a report, return to them an Excel worksheet
 instead of HTML.
 Our particular approach used JSP's to easily handle the formatting of
 the
 Excel doc, but you by no means would need to do so. You just need to
 set
 the proper Content-type and Content-disposition headers.
 
 %@page contentType=application/vnd.ms-excel%
 % response.setHeader(Content-disposition, inline;
 filename\myreport.xls\); %
 
 Now when a user chooses to save the file, the default name is
 myreport.xls,
 and the content returned is of the proper MIME-type.
 
 Hope this helps!
 
 --John
 
 
 
 
 -Original Message-
 From: Yuriy Zubarev [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 24, 2001 12:33 PM
 To: [EMAIL PROTECTED]
 Subject: tricky mapping
 
 
 Hello everyone,
 
 I'm not quite sure that my question is truly struts-related,
 but since I'm developing a web-application using struts as a framework,
 I decided to post it here.
 
 A little proem. I'm in the middle of developing a web-mail facility
 and I've come to the point where I have to display mails' attachments.
 In general everything is fine except one minor but annoying thing.
 When a user double-clicks on a attachment link and selects
 Save target as..., a browser presents Save as dialog and offers
 a default name for requested object which looks like EmailPart,
 because the syntax of the link is as following:
 
 http://domain-name/EmailPart.do?part=1
 
 I know the name of the requested attachment file in advance but I don't
 know how to fit it into the URL so that a browser can offer that
 name instead of EmailPart.
 
 On yahoo web-mail a link that points to attachment looks like this:
 

http://yahoo_address/ym/ShowLetter/Account%5fmonitor%5fwork%5fflow.doc?box=

InboxMsgId=1915_4666388_102413_741_67881_0bodyPart=2filename=Account%5fmo
 nitor%5fwork%5fflow.docdownload=1YY=2060order=downsort=datepos=0
 
 Bearing in mind this syntax I tried to make my link looks like:
 
 ...domain-name/EmailPart/File_name.ext?part=1
 
 And of course I failed, because the server (tomcat) treated
 EmailPart as a directory (I assume so) but not as action.
 
 So I would like to ask if anyone came across this problem
 and found a solution. Any suggestions would be highly
 appreciated.
 
 
 Thank you for your time.
 
 Best of luck,
 Yuriy Zubarev
 
 
 __
 Do You Yahoo!?
 Yahoo! Auctions - buy the things you want at great prices
 http://auctions.yahoo.com/



__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/





Re: obtaining action forwards in jsps

2001-08-30 Thread Troy Hart

look at html:link forward=someGlobalForward

Troy

On Wednesday 29 August 2001 04:24 am, you wrote:
 Hi,

 Is there any way to obtain the action forward urls in jsps using their
 logical 'struts-config' name? I'd like to code links etc point to certain
 action forward urls found in struts config rather than hard coding the url?
 Similarly I'd like to be able to change the action url of forms using
 values found in struts-config using the logical forward name.

 Is this possible?

 Cheers
 Nathan


 **
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. If you have received this email in error please notify
 the system manager.

 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.

 www.mimesweeper.com
 **



RE: RONGCHENG BEST CHEER GRANITE CO., LTD

2001-08-30 Thread Oyer, David
Title: RE: RONGCHENG BEST CHEER GRANITE CO., LTD







-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 29, 2001 10:50 PM
Subject: RONGCHENG BEST CHEER GRANITE CO., LTD



ÈôҪȡÏû£¬Çë»Ø¸´: [EMAIL PROTECTED]
ZL
RONGCHENG BEST CHEER GRANITE CO., LTD


 Welcome to our Company- Shandong Rongcheng Best Cheer Granite Co.,Ltd . Seeing for oneself is better than hearing from others.

 Our company is raw material base of stone manufacturer, sources backer of tone trader, honest supplier of stone customers. We hope we could exchange information, promote friendship and be ever-lasting cooperative partner through the E-mail.

 Our company is situated in the eastern part of Shandong Province---Rongcheng, P. R.
China where is surrounded by sea at three sides with convenient sea-land-air transport. Rongcheng is a beautiful and richly endowed place and regarded as excellent city for journey. Korea and Japan are close neighbors separated by only a strip of water or sea.


 Our company was established in 1984, which has developed into large-scale special granite base with 5 series: such as red, pink, white, black and gray with 5 quarries on its own where were chosen as stones by the State.

 We have six gang saws (350),one polishing lines(16 heads) and tile processing lines, two combined cutters(34 PCS); 5 infrared cutters, 8 cut-to-size processing lines from Italy and we also have column machines, grinding lines and flamed lines, etc..

 Our productivity is 5 cubic meters raw blocks and 50 square meter slab, tiles, cut-to-size, columns and other irregular products, etc per year. and the tolerance complies with international-accepted standard and we can guarantee there will be no color difference for large-area decoration.

 We depend on 5 quarries and strict quality systems to wholesale a great lot of products for one time and to undertake some large and modern project for inside and outside granite decoration. 

 Our main products: raw block, gangsaw slab, disc slab, tile, cut-to-size, column, hexagon stone for square, and other irregular stone products, etc.. You can choose any color stone and shape referring to your interests.

 Honestly welcome stone trader, stone manufacturer and persons dealing in stone decoration to cooperate with us. We will serve you by our first quality, stable price, good reputation and mutual benefits.

Every company hopes the international buyer could understand their products and products could really attract them. We trust you must have exceptional sight and brilliant choice To Rongcheng Best Cheer Granite Co., Ltd. Our cooperation will make your career shining again.

 We are looking forward to your early inquiry and cooperation.
Best regards,
Yours sincerely,


For more details, please contact with:
1¡¢Nancy Ni
2¡¢Website£ºwww.zhongleistone.com
3¡¢E-mail£º [EMAIL PROTECTED] [EMAIL PROTECTED]
4¡¢Office direct Tel.£º86 631 7573294/7573997 7502528-8012
5¡¢Office direct Fax£º86 631 7573294/7502386
6¡¢Mobile Phone£º13508918467




»¶Ó­Äú£¬À´°É£¡Ê¯²Ä½çµÄÅóÓÑ£¬°ÙÎŲ»ÈçÒ»¼û¡£
ÎÒ¹«Ë¾ÊÇʯ²ÄÖÆÔìÉ̵ÄÔ­ÁϹ©Ó¦»ùµØ¡¢Ê¯²ÄóÒ×É̵ĻõÔ´¿¿É½¡¢Ê¯²ÄʹÓÃÕßµÄÐÅÓþ±£Ö¤¡£Öйúɽ¶«ÈÙ³ÉÖÐÀÚʯ²ÄÓÐÏÞ¹«Ë¾Ô¸Í¨¹ýÕâ·âÓʼþ¹µÍ¨ÐÅÏ¢¡¢´Ù½ø·¢Õ¹£¬Ê¹ÎÒÃÇÄܹ»³ÉΪ³¤ÆÚÓѺõĺÏ×÷»ï°é¡£

ÎÒ¹«Ë¾Î»ÓÚÖйúɽ¶«Ê¡µÄ×¶Ë---ÈÙ³ÉÊУ¬ÕâÀïÈýÃæ»·º££¬º£Â½¿Õ½»Í¨Ê®·Ö±ãÀû£¬Í¬ÈÕ±¾Ò»Ò´øË®£¬Ó뺫¹ú¸ôº£ÏàÍû£¬ÃÀÀö¸»ÈÄ£¬ÊÇÖйúÓÅÐãµÄÂÃÓγÇÊС£

¹«Ë¾³ÉÁ¢ÓÚ1984Ä꣬ÏÖÒÑ·¢Õ¹³ÉÖйú´óÐÍרҵʯ²ÄÉú²ú»ùµØ£¬Ðγɺ졢·Û¡¢°×¡¢»Ò¡¢ºÚÎå´óϵÁУ¬¾ù±»¹ú¼ÒÆÀΪ¡°Ãû¡¢ÌØ¡¢ÓÅ¡±Ê¯²Ä£¬¶ÀÓÐÎå×ù¿óɽ£¬Äê²ú¸÷ÖÖ¹æ¸ñ»¨¸Úʯ»ÄÁÏ5ÍòÁ¢·½Ãס£

¹«Ë¾ÓµÓÐÏÖ´ú»¯µÄ¼Ó¹¤É豸£º´ÓÒâ´óÀû½ø¿ÚµÄÉ°¾â6̨¡¢16Í·Á¬ÐøÄ¥»úÒ»Ìס¢2×é34Ƭ×éÇб¡°åÉú²úÏßÒ»Ìס¢±ê×¼°åÉú²úÏß8̨Ìס¢ÇлúºÍºìÍâÏßÇлú5Ìס¢Ô²»¡»ú¡¢»ðÉÕ»ú¡¢¶¨ºñ»úµÈÉ豸ÑùÑù¾ãÈ«¡£

Äê¿ÉÉú²ú¸÷ÖÖ¹æ¸ñµÄ´ó°å¡¢±¡°å¡¢±ê×¼°å¡¢Ô²»¡µÈÆäËüÒìÐλ¨¸Úʯ°å²Ä50Íòƽ·½Ãס£ÖÊÁ¿È«²¿ÔÚ¹ú¼Ê¹«Èϵıê×¼ÒÔÄÚ¡£´óÃæ»ý×°ÊÎÎÞÉ«²î¡£

ÎÒ¹«Ë¾ÒÔ¿óɽΪÒÀÍУ¬Æ¾½èÐÛºñµÄ×ÊÔ´ÓÅÊƺÍÑϸñµÄÖÊÁ¿¹ÜÀíÌåϵ³Ð½Ó´óÐÍÏÖ´ú»¯¹¤³ÌµÄÄÚÍâ°å²Ä×°ÊΡ£
¹«Ë¾µÄÖ÷Òª²úÆ·ÓУº»ÄÁÏ¡¢É°¾â´ó°å¡¢Ìõ°å¡¢±¡°å¡¢±ê×¼°å¡¢Ô²»¡¡¢¹ã³¡ÓÃÁù½Çʯ¡¢ÆäËü¸÷ÖÖÒìÐμ°Ê¯ÖÆÆ·£¬ÑÕÉ«¾ãÈ«£¬ÈÎÄúÅú·¢Ñ¡Ôñ¡£

¹«Ë¾³ÏÕйúÄÚÍâʯ²ÄóÒ×É̺Íʯ²ÄÖÆÔìÉ̼°×°ÊÎÒµµÄʯ²ÄͬÈÊÓëÎÒÃǺÏ×÷£¬ÕâÀïÖÊÁ¿µÚÒ»¡¢¼Û¸ñÎȶ¨¡¢ÐÅÊغÏͬ£¬ÀûÒæ¹²Ïí¡£
ÿһ¸ö¹«Ë¾¶¼Ï£Íû×Ô¼ºµÄ²úÆ·ºÍ·þÎñÄܹ»Èøü¶àµÄ¹ú¼ÊÂò¼ÒÁ˽⣬²¢ÕæÕý´ò¶¯ËûÃÇ¡£ÎÒÃÇÏàÐÅ£¬ÄúÒ»¶¨ÊÇλ¶À¾ß»ÛÑÛµÄÈË£¬ÄúÒ»¶¨»á×ö³öÓ¢Ã÷µÄÑ¡Ôñ-µ½ÖÐÀÚ¹«Ë¾À´£¬ÎÒÃǵĺÏ×÷±Ø½«Ê¹ÄúµÄÊÂÒµÔÙÖý»Ô»Í¡£

»¶Ó­Ë÷È¡ÓйØ×ÊÁÏ


ÁªÏµ·½·¨£º
1¡¢ÁªÏµÈË£ºÄß¿¡ÁáС½ã
2¡¢Íø Ö·£ºwww.zhongleistone.com
ÓʼþµØÖ·£º [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
3¡¢Ö±Ïߵ绰£º86 631 7573294/7573997 7502528ת8012
4¡¢Ö±Ïß´«Õ棺86 631 7573294/7502386
5¡¢ÊÖ»ú£º13508918467





Problem with html:img.. Please Help !!

2001-08-30 Thread Debasish Ghosh

Hi all -

This is my second attempt at the problem. I could not
fix it. Please help !!

I am using Tomcat 3.2.2. When I use an html tag as
html:img srcKey=image.logotop/ (I am using
Struts), the first time the page comes, the tag gets a
sessionId. The cookies are enabled in my browser. For
all subsequent requests, the session id never comes. I
guess this is the expected behavior of encodeURL()
(for URL rewriting), which is used by the html:img
tag. In fact the tag is rendered as: img
src=images/logotop.gif;jsessionid=7flhvbc4f1.

The problem is that the image is not rendered on the
page. For all subsequent requests (when I hit the
Refresh button), the session id stops coming (since
cookies are enabled) and the images are rendered
properly.

In fact if I disable cookies, then the image never
gets rendered. I know this may not be a problem of
Struts directly, but I really cannot find any pointer
to the solution ... Please help !!

Regards.

- Debasish


__
Do You Yahoo!?
Get email alerts  NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



RE: Ant build tools - Need address to get grips with.

2001-08-30 Thread Oyer, David
Title: RE: Ant build tools - Need address to get grips with.







-Original Message-
From: Trond Strømme [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 6:13 AM
To: [EMAIL PROTECTED]
Subject: RE: Ant build tools - Need address to get grips with.



http://jakarta.apache.org/ant/


.trond strømme, software engineer, mogul technology, norway
[EMAIL PROTECTED]



-Original Message-
From: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sent: 10. juli 2001 12:03
To: [EMAIL PROTECTED]
Subject: Re: Ant build tools - Need address to get grips with.



Pls could you post this ant website address or link. Cheers chuck.


Mikkel Bruun wrote:


 Part 1.1 Type: Plain Text (text/plain)
 Encoding: quoted-printable


--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
Authority. This message is intended for the addressee(s) only
and is sent in confidence; if you receive it in error, please can you
let us know (at [EMAIL PROTECTED]) and then destroy all copies.
Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn
adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog.
Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion
yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn
mewn camgymeriad, a fyddech gystal â rhoi gwybod i
ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.





Re: How to handle an ActionForward to a page with an anchor?

2001-08-30 Thread Marcelo Stefanelli Santos


You can try the focus feature.
So when the page loads it'll focus where you want in your form.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 11:38 AM
Subject: Re: How to handle an ActionForward to a page with an anchor?



 Martin,

 I need to perform a submit in order for the server to see the new value
 that the user entered on the form in order to add it to the bean.
 html:link won't do that for me...

 Brian






 martin.cooper@tumb

 leweed.com   To:
 [EMAIL PROTECTED]
  cc:

 08/29/2001 05:31 Subject: Re: How to
 handle an ActionForward to a page with an anchor?
 PM

 Please respond to

 struts-user









 Take a look at the 'anchor' attribute on the html:link tag. If you use
 that for your Add link, I believe it will do what you want.

 --
 Martin Cooper


 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, August 29, 2001 2:02 PM
 Subject: How to handle an ActionForward to a page with an anchor?


  All,
 
  I have a page with a control which allows the user to add items to a
 vector
  on a bean.  Basically it is a company form with an Add Subsidiary
 button.
  Each time the user presses Add, the vector on the company formbean
  receives the new element.  However, when the page reloads, I want the
  browser to scroll to the subsidiaries region of the page.  In order to
 do
  this, I would like to place an anchor tag at that place on the page,
 then
  have Struts place the #subsidiary anchor in the URL.   If there is a
 better
  way to do this, please let me know...
 
  Is there a Struts 1.0 feature that will help me do this?  If there is
 not
 a
  Struts 1.0 feature that will help, is there a planned feature in the
 Struts
  1.1 release that will help?
 
  Thanks,
  Brian
 












FAQ additions? (was Re: Help: Cannot find bean BEAN in scope null)

2001-08-30 Thread Gary Kephart

Thomas Quas wrote:

 Gary,

 it usually happens to me when I close the html:form too early, meaning
 there are some html:text's or others floating around after I did
 /html:form.

That was it. After that I had another problem, which a co-worker solved. At
any rate, here's two things to put into the FAQ:

Q: I get this message in my log file: Cannot find bean
org.apache.struts.taglib.html.BEAN in scope null. What's causing it?
A: it usually happens to me when I close the html:form too early, meaning
there are some html:text's or others floating around after I did
/html:form. (Thomas Quas [EMAIL PROTECTED])

Q: I get this message in my log file: No getter method for property
myProperty of bean org.apache.struts.taglib.html.BEAN even though I have a
getter method in my form bean.
A: This is a matter of case-sensitivity. Even though your Java method will be
public string getMyProperty(), with the M capitalized, the first letter of
the property in the JSP will be lower case. Your JSP will have this in it:
html:text property=myProperty  /


 Gary Kephart wrote:
 
  I get this message in the log file:
 
  Cannot find bean org.apache.struts.taglib.html.BEAN in scope null

Gary
--
Gary Kephart   | Basis 100
Software Engineer  | 4 Park Plaza, Suite 800
[EMAIL PROTECTED]  | Irvine, CA 92614
(949) 852-8600x262 | http://www.basis100.com

This communication is intended only for the use of the individual or
entity to whom/which it is addressed, and information contained in this
communication is privileged and confidential.  If the receiver of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.  If you have received this communication in error, please
notify us at the above telephone number (so that we may correct our
internal records) and delete this communication without making a copy of
it.  Thank you.




Re: How to make reset button clear all fields

2001-08-30 Thread Marcelo Stefanelli Santos


You can try another button (input type button) associated
with a method in your bean.
This method will reset your atributes in your bean i.e.
this.XXX=; (String case)
this.YYY=0; (int case)
...


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 01:33 PM
Subject: How to make reset button clear all fields


 I noticed the following behavior for RESET button in STRUTS framework:

 The Reset button will clear all fields on the first try. After that, if
 you encountered validation errors, it seems to remember what have been
 so far. From that point on, the reset button only clears the new
 input values. Case in point -- try the struts-example login.jsp and
 you know what I am talking about.

   What should I do if I still want to clear all field contents. I tried to
 use
 another button declared as input type=reset and it is not working
 either.

 Shu, Kwang-shi  | Tel 732-460-7848
 Village Networks, Inc.  | Fax 732-460-9851
 246 Industrial Way West |
 Eatontown, NJ 078724| email: [EMAIL PROTECTED]






RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread Shamdasani Nimmi-ANS004
Title: RE: STRANGE: session.invalidate() is not invalidating the session



I 
don't remember facing this session.invalidate() not invalidating the session 
problem when I was using tomcat 3.2.1. Are others who got the same problem using 
Tomcat 4.0-b7 also?

-Nimmi

  -Original Message-From: Krueger, Jeff 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 
  12:14 PMTo: [EMAIL PROTECTED]Subject: RE: 
  STRANGE: session.invalidate() is not invalidating the 
  session
  You 
  have to go through a action class before your welcome.jsp, but there is a 
  thing called a transaction token. Is what this does is generates a 
  unique number and puts it in a hidden field on you page if your using a struts 
  form. Then in your action class that the welcome.jsp submits to you can 
  call isTokenValid. That will check that hidden field to make sure it is 
  the same number that was generated and put on the page for you in the other 
  action class. If it is valid then call resetToken and that value will be 
  removed from the session. If the user backs up and submit the page they 
  will have the old token and when you call isTokenValidyou will get false 
  and be able to deal with it as you please. Hope that 
  helps.
  
  Jeff 
  Krueger
  
  
-Original Message-From: Luna, Katherine 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 
10:47 AMTo: '[EMAIL PROTECTED]'Subject: 
RE: STRANGE: session.invalidate() is not invalidating the 
session
I also am suffering from this problem. 
I have the user object in the session, and each jsp page 
except the logon.jsp checks the session. This prevents display of any 
page EXCEPT the one immediately following the login page 
(Welcome.jsp). If the user refreshes Welcome.jsp, IE resubmits the 
LogonForm containg the username and password, LogonAction accepts these 
values and 'presto' the user is in again.
Basically, if the user logs out from welcome.jsp, then backs 
up with the Browser 'Back' button, they can refresh the page and become 
logged in without re-entering the username and password because these values 
must be stored in teh request. I have added the following code to 
prevent caching of LogonForm (it has scope request according to 
struts-config.xml)
% response.setHeader("pragma","no-cache"); response.setHeader("Cache-Control","no-cache"); response.setHeader("Cache-Control","no-store"); response.addDateHeader("Expires", 0); response.setDateHeader("max-age", 0); response.setIntHeader ("Expires", -1); //prevents caching at the 
proxy server response.addHeader("cache-Control", 
"private"); //IE5.x only; % meta http-equiv="pragma" content="no-cache" meta http-equiv="expires" content="0" 
but no luck. Anyone who backs in from a Logout to 
Welcome.jsp can simply refresh the page and resubmit whatever values were 
originally entered on the Login page.
This method makes every page except welcome.jsp 
secure. Does anyone have any suggestions for removing the values input 
in LoginForm from the cache??
Kat  
-Original Message- From: 
Keith Bacon [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 30, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: 
RE: STRANGE: session.invalidate() is not invalidating the session 
I think there was a recent post dealing with this. 

Struts tends to create a new session if there isn't one 
there. (every time the action servlet runs I 
suspect?). 
To restrict access to pages you should require the user to 
be logged on. - At logon add 
some object to the session (I call mine singedOnUser). - When a page starts (at start of your Action class code) if 
that object the user is logged on so you allow 
access. Hope that helps Keith. 
--- Shamdasani Nimmi-ANS004 [EMAIL PROTECTED] 
wrote:  I am under the impression that 
session.invalidate() should be  sufficient for 
logout. The problem that's happening is that I can  run the whole application again and go to pages that I didn't go 
to  before logging out, which means these pages 
were never in the  cache.   -Nimmi  
 -Original Message-  From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, August 30, 2001 8:07 AM 
 To: [EMAIL PROTECTED]  Subject: RE: STRANGE: session.invalidate() is not invalidating 
the  session  
  try adding these 
lines to the JSP  %  
response.setHeader("Cache-Control","no-store"); //HTTP 1.1  response.setHeader("Pragma","no-cache"); 
//HTTP 1.0  
response.setDateHeader ("Expires", 0); //prevents caching at 
 the proxy  server 
  %
  From: "Dudley 
Butt@i-Commerce" [EMAIL PROTECTED]  Reply-To: [EMAIL PROTECTED]  To: "'[EMAIL PROTECTED]'"  [EMAIL PROTECTED]  Subject: RE: STRANGE: session.invalidate() is not 
invalidating the  session  Date: Thu, 30 Aug 2001 10:13:40 +0200

RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread Shamdasani Nimmi-ANS004
Title: RE: STRANGE: session.invalidate() is not invalidating the session



I do 
not have a welcome page. The first page is the Logon page where the user enters 
logon id and password which gets stored in session. During logout I am clearing 
these values before calling invalidate() so why is the application letting me go 
everywhere after logout though I do have checkLogon (checking session for stored 
objects). It is as though these objects are still there and its the same 
session.

-Nimmi

  -Original Message-From: Krueger, Jeff 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 
  12:14 PMTo: [EMAIL PROTECTED]Subject: RE: 
  STRANGE: session.invalidate() is not invalidating the 
  session
  You 
  have to go through a action class before your welcome.jsp, but there is a 
  thing called a transaction token. Is what this does is generates a 
  unique number and puts it in a hidden field on you page if your using a struts 
  form. Then in your action class that the welcome.jsp submits to you can 
  call isTokenValid. That will check that hidden field to make sure it is 
  the same number that was generated and put on the page for you in the other 
  action class. If it is valid then call resetToken and that value will be 
  removed from the session. If the user backs up and submit the page they 
  will have the old token and when you call isTokenValidyou will get false 
  and be able to deal with it as you please. Hope that 
  helps.
  
  Jeff 
  Krueger
  
  
-Original Message-From: Luna, Katherine 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 
10:47 AMTo: '[EMAIL PROTECTED]'Subject: 
RE: STRANGE: session.invalidate() is not invalidating the 
session
I also am suffering from this problem. 
I have the user object in the session, and each jsp page 
except the logon.jsp checks the session. This prevents display of any 
page EXCEPT the one immediately following the login page 
(Welcome.jsp). If the user refreshes Welcome.jsp, IE resubmits the 
LogonForm containg the username and password, LogonAction accepts these 
values and 'presto' the user is in again.
Basically, if the user logs out from welcome.jsp, then backs 
up with the Browser 'Back' button, they can refresh the page and become 
logged in without re-entering the username and password because these values 
must be stored in teh request. I have added the following code to 
prevent caching of LogonForm (it has scope request according to 
struts-config.xml)
% response.setHeader("pragma","no-cache"); response.setHeader("Cache-Control","no-cache"); response.setHeader("Cache-Control","no-store"); response.addDateHeader("Expires", 0); response.setDateHeader("max-age", 0); response.setIntHeader ("Expires", -1); //prevents caching at the 
proxy server response.addHeader("cache-Control", 
"private"); //IE5.x only; % meta http-equiv="pragma" content="no-cache" meta http-equiv="expires" content="0" 
but no luck. Anyone who backs in from a Logout to 
Welcome.jsp can simply refresh the page and resubmit whatever values were 
originally entered on the Login page.
This method makes every page except welcome.jsp 
secure. Does anyone have any suggestions for removing the values input 
in LoginForm from the cache??
Kat  
-Original Message- From: 
Keith Bacon [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 30, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: 
RE: STRANGE: session.invalidate() is not invalidating the session 
I think there was a recent post dealing with this. 

Struts tends to create a new session if there isn't one 
there. (every time the action servlet runs I 
suspect?). 
To restrict access to pages you should require the user to 
be logged on. - At logon add 
some object to the session (I call mine singedOnUser). - When a page starts (at start of your Action class code) if 
that object the user is logged on so you allow 
access. Hope that helps Keith. 
--- Shamdasani Nimmi-ANS004 [EMAIL PROTECTED] 
wrote:  I am under the impression that 
session.invalidate() should be  sufficient for 
logout. The problem that's happening is that I can  run the whole application again and go to pages that I didn't go 
to  before logging out, which means these pages 
were never in the  cache.   -Nimmi  
 -Original Message-  From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, August 30, 2001 8:07 AM 
 To: [EMAIL PROTECTED]  Subject: RE: STRANGE: session.invalidate() is not invalidating 
the  session  
  try adding these 
lines to the JSP  %  
response.setHeader("Cache-Control","no-store"); //HTTP 1.1  response.setHeader("Pragma","no-cache"); 
//HTTP 1.0  
response.setDateHeader ("Expires", 0); //prevents caching at 
 the proxy  server 
  %
  From: "Dudley 

Re: Any workaround for getConnection(username, password)?

2001-08-30 Thread Marcelo Stefanelli Santos


What you realy need ?
- You need to make a connection = commit = disconnect or
- Put the connection in the Struts Connection Pool ?


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 12:23 PM
Subject: Any workaround for getConnection(username, password)?


 In an attempt to implement security on our web servers, I've tried to
 remove the username and password on the struts-config.xml datasource tag.
 I've done this to retrieve this information from a remote location not
 located on the actual web server.  The problem with this, as many of you
 probably know is that the struts framework does not yet support the
 getConnection(user,pass) in its genericDataSource implementation.  I
 was wondering if any of you have a workaround for this instance?

 I have gotten tomcat to load the datasource without a username and
 password by setting my minCount=0.  The reason this works is pretty
 obvious and that's because tomcat doesn't make an initial connection to
 the database.

 I have a feeling that I can add the username and password now that tomcat
 is loaded but am a little unsure of how to accomplish this.

 Thanks
 Dan Jimenez









Subscription

2001-08-30 Thread Kwang-Shi Shu



Shu, Kwang-shi  | Tel 732-460-7848
Village Networks, Inc.  | Fax 732-460-9851
246 Industrial Way West |
Eatontown, NJ 078724| email: [EMAIL PROTECTED]


212 882-5035



calling form method 2 / calculated fields

2001-08-30 Thread Ali Ozoren

Hi all-

I have this piece of html going against the testForm form bean that is
declared for that page. It calls the getTest method.

bean:write name=testForm property=test filter=true/

causes

  public String getTest()
  {
return Test called;
  }

to be called. hence, it seems like fields can be calculated and may not have
value holding variables.



So I try the same thing with an array. First I create a dummy object to
store in the array.

  class Person
  {
String name;
Person(String name)
{
  this.name = name;
}
public void setName(String name)
{
  this.name = name;
}
public String getName()
{
  return this.name;
}
  }

Then I create the following in the testForm form bean.

  public Person[] getPersons()
  {
Person[] result = new Person[3];
result[0] = new Person(this);
result[1] = new Person(that);
result[2] = new Person(other);
return result;
  }

But when I try to access this calculated persons property as follows

logic:iterate id=person name=testForm property=persons
  bean:write name=person property=name filter=true/
  /p
/logic:iterate

I get Cannot find bean person in scope null. Can someone point me what I
am doing wrong here?

The reasoning behind using calculated properties versus real ones is to
avoid nested collections and loading all at once after a successful login.
Also this will free me from maintaining the relations and updates in
memory/underlying db, and I will treat every record and their operations in
an atomic manner.

Thanks,
--a




repopulating a form

2001-08-30 Thread Austin Conger (Borders Online)
Title: RE: STRANGE: session.invalidate() is not invalidating the session



Can 
someone explain or point me to a solid explanation on how the Struts-example 
application knows how to repopulate the registration form. I have been 
unable toduplicate in my own application. What I am doing (which 
might be completely incorrect) is populating my UserFormBean in my UserAction 
class and then forwarding to a jsp page. The form never ends up being 
populated, however I know my UserFormBean has the necessary 
data.

much 
appreciated.

//Austin


Strategy for Checking Session Timing Out

2001-08-30 Thread Dan . C . Wieschhaus

If the user disables cookies so that every request coming into the
server will create a new session (session.isNew()==true), what strategy
could be used to check if their session has timed out?  

I assume that since every session is new, that using the
session.getLastAccessedTime() method is also of little value.

Dan





RE: Tag Iterate !!!

2001-08-30 Thread Ali Ozoren

I have the same problem. It doesn't look like the iterate tag creates the
bean declared with the id attribute.
--a

-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 1:28 PM
To: [EMAIL PROTECTED]
Subject: RE: Tag Iterate !!!


Based on what you are showing in your email, everything looks OK. I don't
think the problem is with the iterate tag. The message
javax.servlet.ServletException: Cannot find bean client in scope null
would have to be coming from bean:write which is looking for a bean called
client. It's looking in all scopes (null just means you didn't specify a
scope), so you don't need to add a scope. The iterate tag should put a bean
in the page scope with the name client.

Are you sure that it is the bean:write tag inside the iterate tag that is
causing the error or is there something else on the JSP that you aren't
showing? Try removing the bean:write from the iterate tag and replacing it
with some html.

 -Original Message-
 From: Geoffrey Van Nuffelen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 01, 2001 9:49 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Tag Iterate !!!


 Hi Ash,

 Thanks for your help... But I have the same error with Client.

 Have you got a example of this tag method ???

 Geoffrey...
 - Original Message -
 From: A.Sharma [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, June 01, 2001 12:10 PM
 Subject: RE: Tag Iterate !!!


 
  hi
  probably change the case of 'c' in client.
  the class has Capiltal 'c' while in JSP you are accessing small 'c'.
 
  :)
  ash
 
  -Original Message-
  From: Geoffrey Van Nuffelen [mailto:[EMAIL PROTECTED]]
  Sent: Friday, June 01, 2001 3:24 PM
  To: Struts-User (E-Mail)
  Subject: Tag Iterate !!!
 
 
  Hi all,
 
  I try to use the tag iterate (logic) but I can't. I haven't success.
 
  I am working on Windows NT with tomcat 3.2 and struts 1.0b-2.
 
  I try to pass an array of object ( a personnal client
 class). but when a
 try
  to access a property I have this error :
 
  javax.servlet.ServletException: Cannot find bean client in
 scope null
   at
 
 org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImp
  l.java:459)
   at
 
 _0002fClientList_0002ejspClientList_jsp_55._jspService(_0002fC
 lientList_0002
  ejspClientList_jsp_55.java:214)
 
  What I have to ?? I have to specify a scope ???
 
  Here you are the code of the .jsp , java class wich put the
 parameter and
  client.class.
 
  .jsp :
  
 
  ...
  body bgcolor=white
 
  logic:iterate id=client name=test 
   bean:write name=client property=pmclient/
  /logic:iterate
 
  /body
  ...
 
  Java class :
  --
 
   Client test[] = clients.getClients();
   servlet.log(nmclient from clients :  +
 test[i].getNmclient(), 1); //
 test
  ... it's working
 
   HttpSession session = request.getSession();
   session.setAttribute(test, test);
 
   return (mapping.findForward(success));
 
 
  Client class :
  
 
  public class Client {
private String nmclient = ;
private String pmclient = ;
private long cdclient;
 
public Client() {
}
public String getNmclient() {
  return nmclient;
}
public void setNmclient(String newNmclient) {
  nmclient = newNmclient;
}
public String getPmclient() {
  return pmclient;
}
public void setPmclient(String newPmclient) {
  pmclient = newPmclient;
}
public long getCdclient() {
  return cdclient;
}
public void setCdclient(long newCdclient) {
  cdclient = newCdclient;
}
  }
 
 
  Thanks in advance for your help.
 
  Geoffrey...
 
 
 
 
 
 
 
 
 





How to generically forward to page you came from?

2001-08-30 Thread Alex Colic

Hi,

I am creating a generic action class that after it is finished it needs to
forward to the page that called it. I have tried mapping.getInput() but
obviously since I haven't specified a input page in the struts.xml for the
action class I can't use that. Any thoughts?

Alex




Re: select list

2001-08-30 Thread Blaine Kendall

http://jakarta.apache.org/struts/struts-logic.html#iterate
Use the logic:iterate tag to iterate over a collection. I've used a HashMap
in the past.

The following should work:

%  java.util.HashMap myhashmap = tc.getMyhashmap();
  pageContext.setAttribute(myhashmap,myhashmap, PageContext.PAGE_SCOPE);
%

SELECT NAME=myselect
logic:iterate id=element name=myhashmap
OPTION VALUE=bean:write name=element property=value /bean:write
name=element property=key //OPTION
/logic:iterate
/SELECT

Blaine
- Original Message -
From: Aaron O'Hara [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 1:04 PM
Subject: select list


 All,

 I'm familiar with Java, but new to the struts framework and have what is
 probably an elementary question.  I'm creating a database-driven
application
 and on my JSP page I want to populate, amoung many things, a select list.
 In options in the select list will be composed of a value which is,
usually,
 a number and the option text is the the corresponding text (from the
 database).  For example, an option tag for an employee select list would
 look like:

 ...
 option value=23Bend Over/option
 ...

 I don't want the list populated directly from a database query, but from a
 Collection.
 Could somebody provide me some assistance with regards to having a select
 list being populated using a collection that allows me to specify the
 object.method that populates the value and option text?

 If there's a better way to solve this problem, I'm open to hear any
options.

 Thank you,

 Aaron



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: How to generically forward to page you came from?

2001-08-30 Thread Marcelo Stefanelli Santos

OBS.: I DON'T THINK THIS IS THE BEST WAY BUT...

You can use the method:
org.apache.struts.action.ActionMapping.addForward(ActionForward forward)
that use as parameter an ActionForward constructed with:
ActionForward(java.lang.String path)
where path is of course your base name
Any coments are welcome.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 30, 2001 05:03 PM
Subject: How to generically forward to page you came from?


 Hi,

 I am creating a generic action class that after it is finished it needs to
 forward to the page that called it. I have tried mapping.getInput() but
 obviously since I haven't specified a input page in the struts.xml for the
 action class I can't use that. Any thoughts?





Security with Servlet 2.3 API

2001-08-30 Thread Andy Noble



I've just read an article that suggests that 
authentication can be done bya filter in the servlet 2.3 API, which I 
believe Tomcat 4 will support. 

Having seen other threads, there appears to be a number of 
methods available, such as:

1. subclass ActionServlet
2. JSP custom tags
3. Check in each Action class

Has anyone any experience or thoughts on 
this?

At the moment, I guess I'm in favour of the ActionServlet 
subclass just to keep it all in one place, but the filter method also sounds a 
possibility.

Andy Noble

BEGIN:VCARD
VERSION:2.1
N:Noble;Andy;;Mr.
FN:Andy Noble
ORG:Data Workshop Ltd
TEL;WORK;VOICE:+44(0)161 705 1518
TEL;CELL;VOICE:+44(0)7947 854916
TEL;WORK;FAX:+44(0)161 705 1295
ADR;WORK:;;United Kingdom
LABEL;WORK:United Kingdom
X-WAB-GENDER:2
URL:
URL:http://www.data-workshop.com
BDAY:19700128
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010830T205002Z
END:VCARD



Is empty body allowed for logic:present?

2001-08-30 Thread Michael Nash

Hello all:

I just spent an hour chasing down a silly mistake, and was wondering if
there were a way to prevent it:

logic:present name=something/
pOk, it's here!/p
/logic:present

and

logic:present name=something/
pNo, not here!/p
/logic:present

Will display:

Ok, it's here!
No, not here!

Of course, the problem is that I fumbled the closing of logic:present (e.g.
I shouldn't have that trailing /, just a ), but this only dawned after
much head-scratching though, as I was using an extension of the present
tag and of course immediately assumed it was a bug in my extension of the
tag :-)

I'm wondering if the tag can catch the fact that it's bodiless, and should
it be allowed to be bodiless?

Maybe this has been caught before, or maybe there's no way to go about it,
but I didn't see anything on a quick search of the archives...

Regards,

Mike
Jcorporate Ltd.




RE: Any idea why this form is not being submitted.

2001-08-30 Thread Krueger, Jeff
Title: RE: Any idea why this form is not being submitted.





end your form tag
/html:form




-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 2:35 PM
To: Struts
Subject: Any idea why this form is not being submitted.




Hi I have a form that has one text box tied to a form bean 'entity' and a
couple of text boxes that the user can input search criteria and bring up a
search page. The problem I am having is the form page is not being
submitted.


If they hit a search button I call a function and submit the form.


A snippet of my page is:



 html:form method=POST action=searchEntity.do
 html:text property=entity.entityNumber size=16 maxlength=16/
 INPUT type=text name=txtSearchEntityName
onBlur=doSearch('Name')/TD
 html:form


SCRIPT Language=Javascript1.2
funciton doSearch(criteria)
{
 
 alert(entity.txtSearchEntityName.value);
 entity.submit();//error line
}


/Script


When I tab out of the search box, I keep getting an error that this object
does not support this method or property yet I can print out the text in the
search text box.


I can't seem to find the error.


Any help is appreciated.


Alex





[CRAIG CAN YOU PLEASE HELP!!!]RE: STRANGE: session.invalidate() is not invalidating the session

2001-08-30 Thread Shamdasani Nimmi-ANS004
Title: RE: STRANGE: session.invalidate() is not invalidating the session



I take 
it back. I went back to tomcat 3.2.1 andit has the same problem. One thing 
I did find was that if you went back to the screen with jsessionid in URL using 
browser back and if that screen has any links, etc. and you clicked 
thatlink you get NullPointerException. But if you just did browser refresh 
the links start working again. 

Craig, 
if you read this email then could you please explain this session returning back 
situation.

TIA

-Nimmi

  -Original Message-From: Shamdasani Nimmi-ANS004 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 2:22 
  PMTo: '[EMAIL PROTECTED]'Subject: RE: 
  STRANGE: session.invalidate() is not invalidating the 
  session
  I 
  don't remember facing this session.invalidate() not invalidating the session 
  problem when I was using tomcat 3.2.1. Are others who got the same problem 
  using Tomcat 4.0-b7 also?
  
  -Nimmi
  
-Original Message-From: Krueger, Jeff 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 
12:14 PMTo: [EMAIL PROTECTED]Subject: RE: 
STRANGE: session.invalidate() is not invalidating the 
session
You have to go through a action class before your welcome.jsp, but 
there is a thing called a transaction token. Is what this does is 
generates a unique number and puts it in a hidden field on you page if your 
using a struts form. Then in your action class that the welcome.jsp 
submits to you can call isTokenValid. That will check that hidden 
field to make sure it is the same number that was generated and put on the 
page for you in the other action class. If it is valid then call 
resetToken and that value will be removed from the session. If the 
user backs up and submit the page they will have the old token and when you 
call isTokenValidyou will get false and be able to deal with it as you 
please. Hope that helps.

Jeff Krueger


  -Original Message-From: Luna, Katherine 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, August 30, 2001 
  10:47 AMTo: '[EMAIL PROTECTED]'Subject: 
  RE: STRANGE: session.invalidate() is not invalidating the 
  session
  I also am suffering from this problem. 
  I have the user object in the session, and each jsp page 
  except the logon.jsp checks the session. This prevents display of 
  any page EXCEPT the one immediately following the login page 
  (Welcome.jsp). If the user refreshes Welcome.jsp, IE resubmits the 
  LogonForm containg the username and password, LogonAction accepts these 
  values and 'presto' the user is in again.
  Basically, if the user logs out from welcome.jsp, then 
  backs up with the Browser 'Back' button, they can refresh the page and 
  become logged in without re-entering the username and password because 
  these values must be stored in teh request. I have added the 
  following code to prevent caching of LogonForm (it has scope request 
  according to struts-config.xml)
  % response.setHeader("pragma","no-cache"); response.setHeader("Cache-Control","no-cache"); response.setHeader("Cache-Control","no-store"); response.addDateHeader("Expires", 0); response.setDateHeader("max-age", 0); response.setIntHeader ("Expires", -1); //prevents caching at the 
  proxy server response.addHeader("cache-Control", 
  "private"); //IE5.x only; % meta http-equiv="pragma" content="no-cache" 
  meta http-equiv="expires" content="0" 
  
  but no luck. Anyone who backs in from a Logout to 
  Welcome.jsp can simply refresh the page and resubmit whatever values were 
  originally entered on the Login page.
  This method makes every page except welcome.jsp 
  secure. Does anyone have any suggestions for removing the values 
  input in LoginForm from the cache??
  Kat  
  -Original Message- From: 
  Keith Bacon [mailto:[EMAIL PROTECTED]] 
  Sent: Thursday, August 30, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: 
  RE: STRANGE: session.invalidate() is not invalidating the session 
  I think there was a recent post dealing with this. 
  
  Struts tends to create a new session if there isn't one 
  there. (every time the action servlet runs I 
  suspect?). 
  To restrict access to pages you should require the user to 
  be logged on. - At logon 
  add some object to the session (I call mine singedOnUser). 
  - When a page starts (at start of your Action class code) 
  if that object the user is logged on so you allow 
  access. Hope that helps Keith. 
  --- Shamdasani Nimmi-ANS004 [EMAIL PROTECTED] 
  wrote:  I am under the impression that 
  session.invalidate() should be  sufficient for 
  logout. The problem that's happening is that I can  run the whole application again and go to pages that I didn't 
  go to  

RE: How to generically forward to page you came from?

2001-08-30 Thread David Noll

Alex,

Here is one approach. When linking to the generic action class, include the
URI of the page that the link is on as a parameter. For example:

% String referrer = request.getRequestURI();
   request.setAttribute(referrer, referrer); %

html:link href=/generic/action/class paramId=referrer
 paramName=referrerClick here/html:link

Within the action, parse the parameter that designates the referrer, and
construct an ActionForward back to it: For example:

return new ActionForward(request.getParameter(referrer));

Error checking code ommitted for the sake of brevity.

David


-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 4:04 PM
To: Struts
Subject: How to generically forward to page you came from?


Hi,

I am creating a generic action class that after it is finished it needs to
forward to the page that called it. I have tried mapping.getInput() but
obviously since I haven't specified a input page in the struts.xml for the
action class I can't use that. Any thoughts?

Alex




RE: Any idea why this form is not being submitted.

2001-08-30 Thread Kevin Hinners

You need to give your form a name:

html:form name=myForm method=POST action=searchEntity.do

If specifying the form name through the struts-config.xml properties file,
you should use that name instead. For example,

action path=/searchEntity
type=com.myOrganization.myActionClass
name=myForm
/action

In your JavaScript put:

myForm.submit();

JavaScript is trying to tell you that it doesn't know what object entity
is.


Kevin Hinners
Senior Technical Analyst

FedEx Services
350 Spectrum Loop
Colorado Springs, CO 80921
719-484-2303
[EMAIL PROTECTED]


-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 2:35 PM
To: Struts
Subject: Any idea why this form is not being submitted.



Hi I have a form that has one text box tied to a form bean 'entity' and a
couple of text boxes that the user can input search criteria and bring up a
search page. The problem I am having is the form page is not being
submitted.

If they hit a search button I call a function and submit the form.

A snippet of my page is:


  html:form method=POST action=searchEntity.do
html:text property=entity.entityNumber size=16 maxlength=16/
INPUT type=text name=txtSearchEntityName
onBlur=doSearch('Name')/TD
  html:form

SCRIPT Language=Javascript1.2
funciton doSearch(criteria)
{
 
 alert(entity.txtSearchEntityName.value);
 entity.submit();//error line
}

/Script

When I tab out of the search box, I keep getting an error that this object
does not support this method or property yet I can print out the text in the
search text box.

I can't seem to find the error.

Any help is appreciated.

Alex




Re: Any idea why this form is not being submitted.

2001-08-30 Thread dhay



Alex,

Do you have a button called submit on the page too?  Note - the struts
html:submit will by default be called that.  If so, javascript gets confused...

Dave





Alex Colic [EMAIL PROTECTED] on 08/30/2001
04:35:00 PM

Please respond to [EMAIL PROTECTED]

To:   Struts [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Any idea why this form is not being submitted.




Hi I have a form that has one text box tied to a form bean 'entity' and a
couple of text boxes that the user can input search criteria and bring up a
search page. The problem I am having is the form page is not being
submitted.

If they hit a search button I call a function and submit the form.

A snippet of my page is:


  html:form method=POST action=searchEntity.do
 html:text property=entity.entityNumber size=16 maxlength=16/
 INPUT type=text name=txtSearchEntityName
onBlur=doSearch('Name')/TD
  html:form

SCRIPT Language=Javascript1.2
funciton doSearch(criteria)
{
 
 alert(entity.txtSearchEntityName.value);
 entity.submit();//error line
}

/Script

When I tab out of the search box, I keep getting an error that this object
does not support this method or property yet I can print out the text in the
search text box.

I can't seem to find the error.

Any help is appreciated.

Alex











  1   2   >