RE: Does instanceof work?

2004-03-21 Thread Steve Raeburn
An instanceOf tag does exist in the Jakarta Taglibs 'Unstandard' taglib.

http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/intro.html

That's the only place I know of.

Steve

 -Original Message-
 From: Joe Germuska [mailto:[EMAIL PROTECTED]
 Sent: March 21, 2004 6:33 AM
 To: Struts Users Mailing List
 Subject: Re: Does instanceof work?


 At 1:31 PM + 3/21/04, Frank Burns wrote:
 I've tried the Struts logic and the JSTL tag version of
 instanceof, like
 these (below), but get errors returned implying that
 instanceof doesn't
 exist as a valid option.
 Does it exist? Am I doing something wrong? Can someone give
 me an example,
 please?

 As far as I know, it simply doesn't exist.  The full array of tags in
 the Struts logic taglib (from CVS HEAD) can be found at
 http://jakarta.apache.org/struts/userGuide/struts-logic.html   (For
 older versions of struts, consult the documentation included in the
 distribution, although I don't recall any major changes happening in
 this area recently.)

 As for the JSTL expression language, I've never seen reference to an
 instanceof operator.  Note that the expression language is not
 simply  ${any java you like}  Here's one reference to consult:

 http://www.manning-source.com/books/bayern/bayern_apxA.pdf

 If you really wanted, you could probably extend ConditionalTagBase
 and implement your own.
 http://jakarta.apache.org/struts/api/org/apache/struts/taglib/
logic/ConditionalTagBase.html

Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
   Imagine if every Thursday your shoes exploded if you tied them
the usual way.  This happens to us all the time with computers, and
nobody thinks of complaining.
 -- Jef Raskin

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





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



Problem with Tiles

2004-03-17 Thread steve . mullarkey
Hi

I am having a problem with a simple Tiles based site using the
classicLayout.

The problem is that the menu only appears on the first page - if I select a
link to another page the footer,body and copyright are rendered but the
menu is missing.

Here is the tiles-defs.xml ;

?xml version=1.0 encoding=ISO-8859-1 ?

 !DOCTYPE tiles-definitions PUBLIC
   -//Apache Software Foundation//DTD Tiles Configuration 1.1//EN
   http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd;

tiles-definitions

   definition name=doc.mainLayout path=/layout/classicLayout.jsp
put name=title  value=Demo Application /
put name=header value=/common/header.jsp /
put name=menu   value=doc.menu.main /
put name=body   value=/common/defbody.jsp /
put name=footer value=/common/footer.jsp /
  /definition

  definition name=doc.phoneusLayout extends=doc.mainLayout
put name=title  value=Phone Us /
put name=body   value=/jsp/phoneustile.jsp /
  /definition

  definition name=doc.menu.main path=/layouts/vboxLayout.jsp 
putList name=list 
  add value=common.menu.clerk /
  add value=common.menu.supervisor/
  add value=common.menu.manager/
  add value=common.menu.help/
/putList
  /definition

  definition name=common.menu.clerk path=/layouts/menu.jsp role=
clerk
put name=title value=Clerk Functions /
putList name=items 
  item value=Function 1  link=/jsp/F1preTile.jsp /
/putList
  /definition

  definition name=common.menu.supervisor path=/layouts/menu.jsp role=
supervisor 
put name=title value=Supervisor Functions /
putList name=items 
  item value=Function 2  link=/jsp/F2preTile.jsp /
/putList
  /definition

  definition name=common.menu.manager path=/layouts/menu.jsp role=
manager 
put name=title value=Manager Functions /
putList name=items 
  item value=Function 3  link=/jsp/F3preTile.jsp /
/putList
  /definition

  definition name=common.menu.help path=/layouts/menu.jsp  role=
clerk
put name=title value=Help /
putList name=items 
  item value=Email us link=/jsp/emailus.jsp /
  item value=Phone us link=/jsp/phoneus.jsp /
/putList
  /definition

/tiles-definitions

As can be seen, the menu will display different sections based on which
roles the user has defined. This part works OK on the initial screen, but
as soon as I select a different page (e.g. phoneus.jsp), nothing is
displayed where the menu should be.

phoneus.jsp is as follows ;

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %

tiles:insert definition=doc.phoneusLayout flush=true /

and /jsp/phoneustile.jsp is as below ;

brbr
h4 Phone us at 01274 123456/h4

In web.xml I define the welcome page as index.jsp, which is as follows ;

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %

tiles:insert definition=doc.mainLayout flush=true /

This page does display a menu.

I would be grateful for any help anyone can give.



Any opinions expressed in this Email are strictly the responsibility of the
author, and not those of Otto-UK.



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



collection of strings (newbie question)

2004-03-09 Thread steve hazelwood
I have an action that creates a bean. That bean has a
property myStrings that returns a collection of String
objects.

On a jsp, I want to list the strings. If my jsp has
this:

logic:iterate id=myId name=myBean
property=myStrings
  bean:write name=myId/
/logic:iterate

Then I get an exception Cannot find bean myId in any
scope.

I can understand that cos myId is a String not a bean.
What should I use instead of bean:write ?

Steve






___
Yahoo! Messenger - Communicate instantly...Ping 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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



Re: collection of strings (newbie question)

2004-03-09 Thread steve hazelwood
Solved, well done.

I'm glad I put 'newbie' in the subject line now :-)

Thanks,
Steve


On 9 Mar 2004 at 11:03, Daniel Henrique Alves Lima
wrote:

   Have you import logic taglibs ?

steve hazelwood wrote:

I have an action that creates a bean. That bean has a
property myStrings that returns a collection of
String
objects.

On a jsp, I want to list the strings. If my jsp has
this:

logic:iterate id=myId name=myBean
property=myStrings
  bean:write name=myId/
/logic:iterate

Then I get an exception Cannot find bean myId in any
scope.

I can understand that cos myId is a String not a
bean.
What should I use instead of bean:write ?

Steve







___
Yahoo! Messenger - Communicate instantly...Ping 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html

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



Re: Suggestion needed on good Struts book

2004-03-08 Thread Steve Hill
Struts In Action does cover the basics in more detail than some of the other
books available, but I have to agree there really are a lot of irritating
typos in there, and the provided examples sometimes don't match up with the
code presented in the book. The Spielman book is a quick overview of the
basics but does not go into much detail. There's a SAMS book called Struts
Kick Start that has some good information in it. The O'Reilly book,
Programming Jakarta Struts, is a good overview (most O'Reilly books are
pretty decent), although it seems a little more segmented than Husted's
book. O'Reilly also puts out a Jakarta Struts Pocket Reference that is handy
to have around. Each book has its good points and bad points - for FredB,
the best thing to do is take a look at all of them at the local bookstore
and decide which best fits the user's learning level and style.

-Steve

- Original Message - 
From: Frank Burns [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 08, 2004 9:07 AM
Subject: Re: Suggestion needed on good Struts book


I would say I'm smack bang in the middle of my Struts learning curve and, in
my opinion, the single most useful resource I have found is this six-part
series of articles:

http://www.ftponline.com/javapro/2002_09/online/servletsjsp_bkurniawan_09_13_02/

In terms of books, I've got both Struts In Action and Programming Jakarta
Struts.

Each have their strengths and weaknesses in terms of the depth and breadth
of information that they contain.

However, in terms of *how* the information is presented, I personally find
the Struts In Action really frustrating. It's as though the content has
been *forced* into the In Action format. And the result, unfortunately, is
that it works neither as a good hand-held tour through Struts (very
long-winded, and repetitive), nor as a useful reference book (the useful
information is scattered throughout its various sections). And, finally, I
have the FOURTH *corrected* reprint, and it's still riddled with typos.

My recommendation would be the above-mentioned series of articles and
Programming Jakarta Struts.

Frank.

- Original Message - 
From: Janarthan Sathiamurthy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 08, 2004 8:23 AM
Subject: Re: Suggestion needed on good Struts book


 Programming Jakarta Struts  - OReilly

 [EMAIL PROTECTED] wrote:Hi,

 I am a newbie to Struts.
 I have been looking for books on Struts and found these on Amazon

 Programming Jakarta Struts - OReilly
 Struts in Action - Manning
 Struts Framework - Morgan Kaufmann
 Struts Survival Guide - ObjectSource
 Professional Jakarta Struts - Wrox
 Struts Kick Start - Sams

 Can anybody suggest which is good?

 Thanks.


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



 -
 Do you Yahoo!?
 Yahoo! Search - Find what you're looking for faster.


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



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



Re: Struts 1.1 on Tomcat 5.0.18? Solved.

2004-02-13 Thread Steve Hill
Solved. This turned out to be an issue between Struts1.1, Tomcat 5.0.18 and
most importantly, j2sdk1.3.1. Removing j2sdk1.3.1, installing j2sdk1.4.2_03,
then removing and reinstalling Tomcat 5.0.18 and the Struts1.1 WAR files
(and adjusting JAVA_HOME, of course) solved the pesky
java.lang.IllegalStateException: zip file closed problem on an NT machine.
The Struts examples now work (and the other Tomcat files always did work
with j2sdk1.3.1).


- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 12:21 PM
Subject: Re: Struts 1.1 on Tomcat 5.0.18?


Since no-one has said anything about an error in the struts-examples app
here, then I assume it's something in your setup that you or your
colleagues have done. Did you do anything during install apart from set
JAVA_HOME, CATALINA_HOME, PATH? Do you have anything in JAVA_OPTS or
JAVA_OPTIONS? Did you edit catalina.sh? (Are you windows or unix?)

You should of course check the list archive and bugzilla to make sure
that it's not a recognised problem, if it's happening with a clean
install. Where did you  find out about the Sun / tomcat issue? Which
version of JDK and Tomcat does it affect?



On 02/11/2004 12:55 AM Steve Hill wrote:
 Tomcat 5 comes with Jasper 2 enabled by default - it has
jasper-compiler.jar
 and jasper-runtime.jar in the tomcat5\common\lib directory already. So,
that
 can't be it. (There is not a jasper.jar that I could find.)


 - Original Message - 
 From: Samyukta Akunuru [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, February 10, 2004 3:31 PM
 Subject: RE: Struts 1.1 on Tomcat 5.0.18?


 Did you add the jasper compiler jars (jasper.jar,
 jasper-compiler.jar,jasper-runtime.jar)



 -Original Message-
 From: Steve Hill [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 10, 2004 5:24 PM
 To: Struts Users Mailing List
 Subject: Re: Struts 1.1 on Tomcat 5.0.18?


 I had sent a previous message to this list with a complete error listing,
 but I'll clarify. I downloaded and installed a new installation of Tomcat
 5.0.18. I then downloaded and installed a new installation of struts 1.1,
 copying the documentation and example application war files into Tomcat's
 Webapps directory, and restarting Tomcat.

 Running the http://localhost:808/struts-documentation works fine. Running
 http://localhost:808/struts-example gives the following error message. I
 followed the other instructions (XML parser, JDBC2, xalan-j) as specified
in
 v1.16 of the Struts readme file. The exception report I get when running
 struts-example is:

 description The server encountered an internal error () that prevented it
 from fulfilling this request.

 exception

 org.apache.jasper.JasperException: Unable to compile class for JSP
  at

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
 58)
  at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
 91)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


 root cause

 java.lang.IllegalStateException: zip file closed
  at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
  at java.util.jar.JarFile.getEntry(JarFile.java:181)
  at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
  at

sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
  at

sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
 va:108)
  at java.net.URL.openStream(URL.java:798)
  at

org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
 lassLoader.java:714)
  at

org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
 lassLoader.java:696)
  at

org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
 Loader.java:1202)
  at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown
Source)
  at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
  at javax.xml.parsers.FactoryFinder.find(Unknown Source)
  at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
  at

org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
 9)
  at
 org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112)
  at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213)
  at
org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229)
  at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439

Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Steve Hill
Is anyone here successfully using Struts 1.1 on Tomcat 5.0.18? I am getting
java.lang.IllegalStateException: zip file closed errors with any
struts-using code and am wondering if this is a bug and I should go back to
an earlier version of one or the other. Thanks.


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



Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Steve Hill
I had sent a previous message to this list with a complete error listing,
but I'll clarify. I downloaded and installed a new installation of Tomcat
5.0.18. I then downloaded and installed a new installation of struts 1.1,
copying the documentation and example application war files into Tomcat's
Webapps directory, and restarting Tomcat.

Running the http://localhost:808/struts-documentation works fine. Running
http://localhost:808/struts-example gives the following error message. I
followed the other instructions (XML parser, JDBC2, xalan-j) as specified in
v1.16 of the Struts readme file. The exception report I get when running
struts-example is:

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
 at java.util.jar.JarFile.getEntry(JarFile.java:181)
 at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
 at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
va:108)
 at java.net.URL.openStream(URL.java:798)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:714)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:696)
 at
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
Loader.java:1202)
 at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown Source)
 at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
 at javax.xml.parsers.FactoryFinder.find(Unknown Source)
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
9)
 at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213)
 at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Specific suggestions welcome, else I will just start over if Struts 1.1 is
normally known to work successfully on Tomcat 5.0.18. It looks like
something is missing but if the Struts readme docs are correct it should
work. This particular error is a known Sun issue in a previous Tomcat
version. Thanks.


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



Re: Struts 1.1 on Tomcat 5.0.18?

2004-02-10 Thread Steve Hill
Tomcat 5 comes with Jasper 2 enabled by default - it has jasper-compiler.jar
and jasper-runtime.jar in the tomcat5\common\lib directory already. So, that
can't be it. (There is not a jasper.jar that I could find.)


- Original Message - 
From: Samyukta Akunuru [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 3:31 PM
Subject: RE: Struts 1.1 on Tomcat 5.0.18?


Did you add the jasper compiler jars (jasper.jar,
jasper-compiler.jar,jasper-runtime.jar)



-Original Message-
From: Steve Hill [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 5:24 PM
To: Struts Users Mailing List
Subject: Re: Struts 1.1 on Tomcat 5.0.18?


I had sent a previous message to this list with a complete error listing,
but I'll clarify. I downloaded and installed a new installation of Tomcat
5.0.18. I then downloaded and installed a new installation of struts 1.1,
copying the documentation and example application war files into Tomcat's
Webapps directory, and restarting Tomcat.

Running the http://localhost:808/struts-documentation works fine. Running
http://localhost:808/struts-example gives the following error message. I
followed the other instructions (XML parser, JDBC2, xalan-j) as specified in
v1.16 of the Struts readme file. The exception report I get when running
struts-example is:

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
 at java.util.jar.JarFile.getEntry(JarFile.java:181)
 at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
 at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
va:108)
 at java.net.URL.openStream(URL.java:798)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:714)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:696)
 at
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
Loader.java:1202)
 at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown Source)
 at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
 at javax.xml.parsers.FactoryFinder.find(Unknown Source)
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
9)
 at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213)
 at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Specific suggestions welcome, else I will just start over if Struts 1.1 is
normally known to work successfully on Tomcat 5.0.18. It looks like
something is missing but if the Struts readme docs are correct it should
work. This particular error is a known Sun issue in a previous Tomcat
version. Thanks.


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


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



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



Tomcat5.0.18 with Struts1.1 example: zip file closed error?

2004-02-09 Thread Steve Hill
Has anyone had problems getting the Struts1.1example to work with Tomcat
5.0.18? I have been getting the following errors (only first 2 lines each
shown here, for abbreviation - entire error message at bottom):

exception:
org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)

root cause:
java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)

Searching previous archives show there was a Sun-confirmed similar bug in an
earlier version with Tomcat 4, but if someone has these two versions
coexisting, then let me know as it is then probably something local that I
need to chase down. The whole error message is below:

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
58)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.IllegalStateException: zip file closed
 at java.util.zip.ZipFile.getEntry(ZipFile.java:141)
 at java.util.jar.JarFile.getEntry(JarFile.java:181)
 at sun.net.www.protocol.jar.URLJarFile.getEntry(URLJarFile.java:76)
 at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:96)
 at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.ja
va:108)
 at java.net.URL.openStream(URL.java:798)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:714)
 at
org.apache.catalina.loader.StandardClassLoader.getResourceAsStream(StandardC
lassLoader.java:696)
 at
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClass
Loader.java:1202)
 at javax.xml.parsers.SecuritySupport12$4.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.xml.parsers.SecuritySupport12.getResourceAsStream(Unknown Source)
 at javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
 at javax.xml.parsers.FactoryFinder.find(Unknown Source)
 at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
 at
org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:12
9)
 at
org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:112)
 at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:213)
 at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:229)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:201)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
52)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
91)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)



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



How do you submit a page and not change values

2004-02-02 Thread Hunt, Steve
If you use either html:button, html:submit or html:cancel buttons they
generate input type=button html.

So how can you create a screen for example with 1 field and 2 buttons, a
submit and a do Not Submit button, both of which navigate the user to a
results screen?

Regards
Steve


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst  Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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



RE: How do you submit a page and not change values

2004-02-02 Thread Hunt, Steve
Thanks Claire,
Unfortunately in your example below, any changes made to the page before it
was submitted with the cancel button will actually change the values stored
on the form though.

-Original Message-
From: Claire Wall [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 09:42
To: Struts Users Mailing List
Subject: Re: How do you submit a page and not change values


you can use the html:submit and html:cancel buttons from within a form.
They will both actually submit the form to an action, but it is possible to
capture the 'cancel' event in your action and therefore forward the user to
different places depending upon which one they clicked on.

so, for example, say you had a form with one field called 'name' and two
buttons- one 'cancel' and one 'submit'...

html:form action=/saveDetails

html:text name=DetailsForm property=name/

html:submitSubmit/html:submit
html:cancelCancel/html:cancel

/html:form

in struts-config you define your actions and where you wish to forward to
depending on which button the user clicked on:

  action input=/xxx.jsp name=DetailsForm path=/saveDetails
   scope=request type=xxx.xxx.SaveDetailsAction validate=false
   forward name=success path=/xxx.jsp /
forward name=cancel path=/yyy.jsp /
  /action


and, finally, in your action you can catch the cancel event and forward to
the other place like so:

if(isCancelled(request))
{
return mapping.findForward(cancel);
}

else
{
return mapping.findForward(success);
}



I hope that this answers your question - if not then sorry if i am just
repeating stuff that you already know! :)

regards,
Claire :)

- Original Message -
From: Hunt, Steve [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, February 02, 2004 9:06 AM
Subject: How do you submit a page and not change values


 If you use either html:button, html:submit or html:cancel buttons they
 generate input type=button html.

 So how can you create a screen for example with 1 field and 2 buttons, a
 submit and a do Not Submit button, both of which navigate the user to a
 results screen?

 Regards
 Steve


 ===
 This message contains information that may be privileged or confidential
and is the property of the Cap Gemini Ernst  Young Group. It is intended
only for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
 ===


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






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

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



RE: Validation error messages

2004-02-02 Thread Hunt, Steve
in the resource file where the error message is defined use {0} to
parametize it.
eg
address.invalid=Address {0} is not a valid email address.

When you construct the actionError add the parameter to the constructor ie.
new ActionError(address.invalid, address)

Regards
Steve

-Original Message-
From: Glenn, Scott [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 14:45
To: 'Struts Users Mailing List'
Subject: Validation error messages


I might be missing something obvious here, but is there an easy way to get
the submitted value to become part of the your error message?

So, for example, if the user enters abc in an email field, I'd like a
message saying :-

Address abc is not a valid email address.

I can get this behaviour when I write my own custom validation routines, but
what about the base Struts validation rules ... can they be configured to
display the entered value, as opposed to a string from the AppResources
bindle?

Cheers,

Scott.


 


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst  Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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



RE: Validation error messages

2004-02-02 Thread Hunt, Steve
Scott,
As long as the error message is set up as I said the validation framework
should put the field name at the start of the message...  But not the value
in the field.

so in your example below you might get an error message like;

Email address is a required field

if

admin.email.user=Email address

To explicitly get the value submitted into the error message I think you'd
have to take a look at the validation framework code and modify that.

Regards
Steve
-Original Message-
From: Glenn, Scott [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 16:30
To: 'Struts Users Mailing List'
Subject: RE: Validation error messages


Thanks Steve, 

That's what I'm doing when I implement my own custom validation routines,
but what about the standard Struts validation rules (which are implemented
declaratively), so you don't explicitly create any ActionError objects?? 

For example, we might have a validation.xml snippet like:-
 
form name=addRecipientForm
  field property=email depends=required, email
arg0 key=admin.email.user/
  /field
/form 

which checks for a mandatory well formatted mail address. If you enter
abc, Struts generates an ActionError object containing:-

Recipient's email address is an invalid e-mail address

(providing you have the following resources

admin.email.pdf=Recipient's email address
errors.email={0} is an invalid e-mail address.

)


So I don't specifically create any ActionError objects . Is there no way
I can declaratively (ie. in the validation.xml) inform the rule that I'd
like the submitted value inserted rather than a textual string from the
AppResources?

Hope that explains the problem a little better

Cheers, 

Scott.





-Original Message-
From: Hunt, Steve [mailto:[EMAIL PROTECTED] 
Sent: 02 February 2004 15:49
To: 'Struts Users Mailing List'
Subject: RE: Validation error messages

in the resource file where the error message is defined use {0} to
parametize it.
eg
address.invalid=Address {0} is not a valid email address.

When you construct the actionError add the parameter to the constructor ie.
new ActionError(address.invalid, address)

Regards
Steve

-Original Message-
From: Glenn, Scott [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 14:45
To: 'Struts Users Mailing List'
Subject: Validation error messages


I might be missing something obvious here, but is there an easy way to get
the submitted value to become part of the your error message?

So, for example, if the user enters abc in an email field, I'd like a
message saying :-

Address abc is not a valid email address.

I can get this behaviour when I write my own custom validation routines, but
what about the base Struts validation rules ... can they be configured to
display the entered value, as opposed to a string from the AppResources
bindle?

Cheers,

Scott.


 


===
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst  Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
===


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

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



RE: stop user from clicking the submit button twice

2004-01-30 Thread Hunt, Steve
U can also use the struts token functions to detect when a page has been
submitted twice in the actionclass and not start the processing twice.

-Original Message-
From: Simon McCaughey [mailto:[EMAIL PROTECTED]
Sent: 30 January 2004 10:26
To: Struts Users Mailing List
Subject: Re: stop user from clicking the submit button twice


From: Ashish Kulkarni [EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 10:30 PM
Subject: stop user from clicking the submit button twice
 Hi
 I have a process which takes about 30 seconds, i want
 to show some kind of image or disable the submit
 button untill the process is complete and tell user
 that the process is running
 How can i do it, i m using struts1.1
 any code example or article will greatly help


You could use some simple JavaScript to disable the button once its been
clicked, or a simple JavaScript function to count the number of clicks and
increment, if count!=1  then pop up an OK dialog saying page processing -
please wait.

If you want to stay away from JS, you could set up your form submit to
redirect to a processing please wait type page, and then do the actual
processing as a submission of that page. Should be fairly simple.

HTH

S.



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


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst  Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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



RE: Dealing wiht exception in DispatchAction

2004-01-26 Thread Hunt, Steve
Marco
If these are expected exceptions catch them and forward to a failure page
with whatever actionErrors objects and messages you wish to create.
Or throw them all and handle the different messages in your exceptionHandler
class.

Regards
Steve

-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED]
Sent: 26 January 2004 16:45
To: 'Struts Users Mailing List'
Subject: Dealing wiht exception in DispatchAction 


Hi all,
I am using a DispatchAction in my application. I have declared
the
Type of the exception that will be raised in case one method raises an
exception..
But I am stuck with the fact that i have, in 4 methods, the same type of
Exception but with different message.
When I declare the exception in struts-config, I can specify only one 
Key ..

And I would need a way to parametrize the message of the exception, or
to
Be able to specify which message to use for different methods.

For example

I have following methods (and associated exceptions)

Create()  / failed to create product

Delete() / failed to delete product

Find()  / product not found


All of those methods raise the same exception (ProductException) but
with different messages.
How can I make so that I can raise same exception, with different
messages, from a dispatch action?

Thanx in advance and regards
marco


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


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst  Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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



RE: XML and JSP

2004-01-20 Thread Hunt, Steve
Have a look at XTags, a very powerful way to manipulate xml for display in
jsps.

Regards
Steve

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 09:06
To: [EMAIL PROTECTED]
Subject: XML and JSP


Hi all,
can anyone tell me a convinient way to display,add delete elements in a xml
file from jsp???
 
Thanks
prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst  Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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



RE: XML and JSP

2004-01-20 Thread Hunt, Steve
It may not do everything you require, but it will certainly start you off.

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 11:50
To: Struts Users Mailing List
Subject: RE: XML and JSP


Hi all,
Thanks for the reply...will xtag really help me???i want to do many complex
querying,adding and deleting elements,attributes in xml file...?
Thanks
Prashanth

Hunt, Steve [EMAIL PROTECTED] wrote:
Have a look at XTags, a very powerful way to manipulate xml for display in
jsps.

Regards
Steve

-Original Message-
From: Prashanth.S [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 09:06
To: [EMAIL PROTECTED]
Subject: XML and JSP


Hi all,
can anyone tell me a convinient way to display,add delete elements in a xml
file from jsp???

Thanks
prashanth


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes


===
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst  Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
===


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


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes


begin 600 exclusion.jsp
M/5`('1A9VQI8B!UFD](B]714(M24Y+W-TG5TRUB96%N+G1L9(@')E
M9FEX/2)B96%N(B`E/@T*/5`('1A9VQI8B!UFD](B]714(M24Y+W-TG5T
MRUH=UL+G1L9(@')E9FEX/2)H=UL(B`E/@T*/5`('1A9VQI8B!UFD]
M(B]714(M24Y+WAT86=S+G1L9(@')E9FEX/2)X=%GR(@)3X-CPE0!T
M86=L:6(@=7)I/2(O5T5+4E.1B]C9V5Y+6AT;6PN=QD(B!PF5F:[EMAIL PROTECTED](F-G
M97DB(4^#0H\)4`@%G92!I;7!OG0](F]R9RYD;VTT:BY$;V-U;65N=(E
M/@T*/5`('[EMAIL PROTECTED])R;W)086=E/2)EG)OBYJW`B(4^#0H\8V=E3IC
M:5C:TQO9V]N+SX-@T*/AT;6PZ:'1M;#X-CQH96%D/@T*(`@/UE=$@
M:'1TUE75I=CTB0V]N=5N=U47!E(B!C;VYT96YT/2)T97AT+VAT;6P[
M(-H87)S970]:[EMAIL PROTECTED],2(@+SX-B`@(#QM971A(YA;64](D%U=AO
MB(@8V]N=[EMAIL PROTECTED]'5N=(@+SX-B`@(#QT:71L93X\8F5A;CIM
M97-S86=E(ME3TB97AC;'5S:6]N+G1I=QE(B`O/CPO=ET;4^#0H@(`\
M;EN:R!R96P](G-T6QEVAE970B('1Y4](G1E'0O8W-S(B!HF5F/2)B
M=68N8W-S(B`O/@T*/]H96%D/@T*/)O9'[EMAIL PROTECTED]W,](F1Y;F%M:6,B/@T*
M/@R/CQB96%N.FUEW-A9V4@:V5Y/2)E-L=7-I;VXN=ET;4B(\^/]H
M,CX-CQH=UL.F9OFT@;65T:]D/2)P;W-T(B!A8W1I;VX](B]S971%-L
M=7-I;VXB(YA;64](F5X8VQUVEO;D9OFTB('1Y4](F-O;2YC9V5Y+G-M
M87)T+F)U9BYF;W)M+D5X8VQUVEO;D9OFTB/@T*#0H\(2TM($1/7TE.4T52
[EMAIL PROTECTED]CQT86)L92!B;W)D97(](F)OF1EB(^#0H@(`@/-A
M'1I;VX^(#QB/CQB96%N.FUEW-A9V4@:V5Y/2)E-L=7-I;VXN=5X=(@
M+SX\+V(^(#PO8V%P=EO;CX-CQTB`O/@T*/'1H(%L:6=N/2),1494(CX\
M8F5A;CIM97-S86=E(ME3TB97AC;'5S:6]N+G1A8FQE25A9#$B(\^/]T
M:#X-CQT:!A;EG;CTB3$55(^/)E86XZ;65SV%G92!K97D](F5X8VQU
MVEO;BYT86)L94AE860R(B`O/CPO=@^#0H-[EMAIL PROTECTED]AIR!N97AT()L
M;V-K(YE961S(=E;F5R871I;F@9'EN86UI8V%L;'DM+3X-@T*/4M+2!'
M96YEF%T92!T86)L92!H96%D:6YGRP@,2!F;W(@96%C:!R;W@:[EMAIL PROTECTED]AE
M(')EW5L=[EMAIL PROTECTED]/@T*/4M+2!.;W0@:6YC;'5D:6YG(EN=FES:6)L
M92!F:65L9',@+2TE/@T*/'AT86=S.F9OD5A8V@@V5L96-T/2(O+W-E;5C
M=EO;E]V:65W+W%U97)Y+W)EW5L=',O=F5H:6-L95]I9%LQ72]F:65L9%M`
M:6YV:7-I8FQE/2=F86QS92==(CX-B`@/'1H(%L:6=N/2),1494(CX\'1A
M9W,Z=F%L=65/9B!S96QE8W0](D!L86)E;(O/CPO=@^#0H\+WAT86=S.F9O
M[EMAIL PROTECTED]CQX=%GSIF;W)%86-H('-E;5C=#TB+R]S96QE8W1I;VY?
M=FEE=R]Q=65R2]R97-U;'1S+W9E:EC;5?:60B/@T*(`\='(^#0H@(`@
M/'1D/@T*(`@(`@/AT;6PZ;75L=EB;W@@')O5R='D](G9A;'5E(CX-
MB`@(`@(`@/'AT86=S.G9A;'5E3V8@V5L96-T/2)`=F%L=64B+SX-B`@
M(`@(#PO:'1M;#IM=6QT:6)O#X-B`@(`\+W1D/@T*#0H@(`@/'1D/@T*
M(`@(`@/'AT86=S.G9A;'5E3V8@V5L96-T/2)`=F%L=64B+SX-B`@(`\
M+W1D/@T*(`@(#QX=%GSIF;W)%86-H('-E;5C=#TB9FEE;1;0EN=FES
M:6)L92$])W1R=64G72(^#0H@(`@(`\'1A9W,Z8VAO;W-E/@T*(`@(`@
M(`\'1A9W,Z=VAE;B!T97-T/2)N;W)M86QIF4MW!A8V4H=5X=@I*2$]
M)R@)B8@;F]R;6%L:7IE+7-P86-E*'1E'0H*2D@(3T@)R`G(CX-B`@(`@
M(`@(`\=0^#0H@(`@(`@(`@(`\'1A9W,Z=F%L=65/9B!S96QE8W0]
M(G1E'0H*2(O/@T*(`@(`@(`@(#PO=0^#0H@(`@(`@(#PO'1A9W,Z
M=VAE;CX-@T*(`@(`@(`\'1A9W,Z;W1H97)W:7-E/@T*(`@(`@(`@
M(#QT9#XF;F)S#L\+W1D/@T*(`@(`@(`\+WAT86=S.F]T:5R=VES93X-
MB`@(`@(#PO'1A9W,Z8VAO;W-E/@T*(`@(#PO'1A9W,Z9F]R16%C:#X-
MB`@/]TCX-CPO'1A9W,Z9F]R16%C:#X-@T*/]T86)L93X-@T*/'`@
M+SX-@T*/$M+2!$3U]3U)-(TM/@T*/AT;6PZW5B;6ET('-T6QE0VQA
MW,](FUY0G5T=]N(B!PF]P97)T3TB97AC;'5S:6]N7V-H86YG92(^#0H@
M/)E86XZ;65SV%G92!K97D](F)U='1O;BYS879E+F-H86YG92(@+SX-CPO
M:'1M;#IS=6)M:70^#0H\8G(@+SX\8G(@+SX-CQH=UL.G-U8FUI=!S='EL
M94-L87-S/2)M4)U='1O;B(@')O5R='D](F5X8VQUVEO;E]R971UFXB
M/@T*(#QB96%N.FUEW-A9V4@:V5Y/2)B=71T;VXNV%V92YR971UFXB(\^
M#0H\+VAT;6PZW5B;6ET/@T*/)R(\^/)R(\^#0H\:'1M;#IS=6)M:70@
MW1Y;5#;%SSTB;7E=71T;VXB('!R;W!EG1Y/2)E-L=7-I;VY?8V%N
M8V5L(CX-B`\8F5A;CIM97-S86

RE: Disable validator framework

2004-01-16 Thread Hunt, Steve
Mohan,
If you use the html:cancel type of button rather than html:submit the
validation framework is not called.
If you are using client side javascript validation through the framework you
can disable validation of a button by setting the parameter bCancel=true
like this;

html:submit property=methodToCall value=Cancel
onclick=bCancel=true;/

Regards
Steve

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 06:34
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

Appreciate ideas.
Mohan


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


===
This message contains information that may be privileged or confidential and is the 
property of the Cap Gemini Ernst  Young Group. It is intended only for the person to 
whom it is addressed. If you are not the intended recipient, you are not authorised to 
read, print, retain, copy, disseminate, distribute, or use this message or any part 
thereof. If you receive this message in error, please notify the sender immediately 
and delete all copies of this message.
===


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



RE: Disable validator framework

2004-01-16 Thread Hunt, Steve
you could rewrite it like this

html:cancel
onclick=javascript:window.open('%=request.getContextPath()%/switch.do?pre

fix=/ippage=/enforcement.do?dispatch=prepopulateTask','','width=900,
height=650, left=0, top=0, menubar=no, status=yes,
location=no, toolbar=no,
scrollbars=yes, resizable=yes') Task 
/html:cancel

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 09:28
To: 'Struts Users Mailing List'
Subject: RE: Disable validator framework


Hi,

 What if it is not a 'submit' ?

Mine is like this

input type=button name=Task  class=formbutton
onclick=javascript:window.open('%=request.getContextPath()%/switch.do?pre
fix=/ippage=/enforcement.do?dispatch=prepopulateTask','','width=900,
height=650, left=0, top=0, menubar=no, status=yes, location=no, toolbar=no,
scrollbars=yes, resizable=yes') value=Task/

Thanks
Mohan
-Original Message-
From: Hunt, Steve [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 2:05 PM
To: 'Struts Users Mailing List'
Subject: RE: Disable validator framework


Mohan,
If you use the html:cancel type of button rather than html:submit the
validation framework is not called.
If you are using client side javascript validation through the framework you
can disable validation of a button by setting the parameter bCancel=true
like this;

html:submit property=methodToCall value=Cancel
onclick=bCancel=true;/

Regards
Steve

-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 16 January 2004 06:34
To: 'Struts Users Mailing List'
Subject: Disable validator framework


Hi

We are using dispatch action and validator framework. There is a popup
action associated
with one button on the form. When the user clicks on this a particular
method in the action is called but I don't want to validate the ActionForm
because the main form is not submitted. There are other buttons that submit
the form and I need a selective validator framework.

   I know that it is possible if I were to write my own validate() method by
checking a particular value in the form.

   Can I disable the validator similarly ? If this is not possible then I
have to abandon the validator.

Appreciate ideas.
Mohan


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


===
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst  Young Group. It is intended only
for the person to whom it is addressed. If you are not the intended
recipient, you are not authorised to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all copies
of this message.
===


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


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

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



RE: html:select example

2003-12-30 Thread Steve Raeburn
I have some examples of Struts tags, including html:select, at
http://www.ninsky.com/struts

Various other examples are listed at
http://struts.sourceforge.net/community/examples.html

Steve

Sorry if this is a duplicate message, sent the first one from the wrong
address :-(

 -Original Message-
 From: Otavio Augusto [mailto:[EMAIL PROTECTED]
 Sent: December 30, 2003 8:41 AM
 To: [EMAIL PROTECTED]
 Subject: html:select example


 Would someone show me a very simple example of the use of an
 html:select tag? I did not understand its use.

 I'd appreciate any simple example.

 Thanks a lot.

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






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



RE: Oracle DataSource configuration

2003-12-29 Thread Steve Muench
Ed,
 
The setup instructions for the BC4J/Struts Toy Store Demo at:
 
  http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/index.html
 
 
go over the specifics of setting up Oracle DataSource for Tomcat.
 
The direct URL to the 80-page whitepaper that explains the demo's implementation and 
setup is at:
 
  http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/readme.html
 
Hope this helps.
 

Steve Muench - Technical Evangelist, Product Mgr, Developer, Author
http://radio.weblogs.com/0118231/


 


  _  

From: Ed Dowgiallo [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 29, 2003 08:12
To: Struts Users Mailing List
Subject: Oracle DataSource configuration


I'm running into the following exception when issuing a getConnection to an Oracle 
DataSource.
 
SQLException: Cannot create JDBC driver of class '' for connect URL 'null'
 
It has the following definition in a Tomcat 4.1.29 server.xml file.
 
Resource name=Library auth=Container scope=Shareable 
type=javax.sql.DataSource/

/ResourceParams

ResourceParams name=Library

parameter

namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

/parameter 

parameter

namedriverClassName/name

valueoracle.jdbc.driver.OracleDriver/value

/parameter

parameter

nameurl/name

valuejdbc:oracle:thin:@192.168.0.202:1521:tpeds002/value

/parameter

parameter

nameusername/name

valueabc/value

/parameter

parameter

namepassword/name

valuexyz/value

/parameter

parameter

namemaxActive/name

value25/value

/parameter

parameter

namemaxIdle/name

value10/value

/parameter

parameter

namemaxWait/name

value-1/value

/parameter

/ResourceParams

I have setup the following resource-ref in the applications web.xml file.

  resource-ref
descriptionOracle DataSource/description
res-ref-nameLibrary/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref

The JDBC library is a class12.jar file in the Tomcat shared/lib directory.

Comments and suggestions are most welcome.

Thank you,

Ed



RE: struts and JDeveloper 9.03

2003-12-29 Thread Steve Muench
JDeveloper 9.0.3 ships with Struts 1.1 Beta 2

JDeveloper 9.0.4 and JDeveloper 10g ship with Struts 1.1 Final

This article explains the steps of running a Struts-based demo (like our BC4J/Struts 
Toy Store Demo) under 9.0.3 using Struts 1.1
Final. It should contain the steps that you need to run your application with Struts 
1.1 Final if you don't want to yet move up to
JDeveloper 9.0.4.

http://radio.weblogs.com/0118231/stories/2003/07/07/configuringTheBc4jToyStoreApplicationToUseTheStruts11FinalRelease.html


Steve Muench - Technical Evangelist, Product Mgr, Developer, Author - Oracle
http://radio.weblogs.com/0118231/

-Original Message-
From: Patrick Schilling [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 29, 2003 08:46
To: [EMAIL PROTECTED]
Subject: Re: struts and JDeveloper 9.03

Kalra, Ashwani wrote:
 hi,
 I am working with Jdeveloper and Struts 1.1 When I try to run any page 
 ,  its not able to find the core action class.
 struts.jar is lying in lib dir
 
 Error is
 java.lang.NoClassDefFoundError: org/apache/struts/action/Action 
 java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String, byte[],
 int, int, java.security.ProtectionDomain) native code
 
 Thanks
 Ashwani Kalra
 http://www.geocities.com/ashwani_kalra
 
 
 
 This message contains information that may be privileged or 
 confidential and is the property of the Cap Gemini Ernst  Young 
 Group. It is intended only for the person to whom it is addressed. If 
 you are not the intended recipient, you are not authorised to read, 
 print, retain, copy, disseminate, distribute, or use this message or 
 any part thereof. If you receive this message in error, please notify 
 the sender immediately and delete all copies of this message.

Hello,

JDeveloper 9.0.3 puts it's own version of struts.jar in the lib directory, which is 
older than Struts 1.1.  This causes the error
when you try to run the pages.  Try making an empty jar file, setting it to read only, 
and replace the struts.jar in the lib
directory with it. 
This will prevent JDeveloper from overwriting it with it's version again.

This is a kind of annoying hack, and if anyone has a better suggestion, I wouldn't 
mind hearing about it.

Hope this helps,

Patrick


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



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



RE: .NET: We are just like Struts... only better.

2003-12-29 Thread Steve Muench
Nick,

| I believe that various IDEs are beginning to allow this.
| I saw a demonstration of a Sun's Forte at a Java User Group,
| a while ago, and they were dropping and dragging JATO taglibs.
| WebLogic Workshop can apparently allow this using Struts.

Oracle JDeveloper 10g is one of these as well. 

It gives Struts developers integrated visual J2EE application building and databinding 
support, among many other cool things.

This include visual Struts page flow modeling, and other Struts-specific support.

You can take a product tour even before downloading a trial version at (various 
viewlets available to watch):

http://otn.oracle.com/products/jdev/collateral/prodtour10g.html

JDeveloper is a fully-featured Java IDE with a small pricetag (free to try it, $995 to 
own a dev license, no runtime fees for using
any of our J2EE productivity frameworks).

It has a slew of Java coding productivity features, the top ten of which Brian Duff 
points out on his weblog quite effectively:

http://radio.weblogs.com/0128037/stories/2003/08/11/topTenToysForJavaCodersIn905.html

We demoed our JSF support (visual editing and databinding) on stage at June 2003 
JavaOne, and will demo something that will blow JSF
users away for this year's JavaOne conference which is based on what we've done since 
that first sneak peek.

JDeveloper has a pluggable extension architecture built on the JSR 198 model for IDE 
extensions that is on its way to becoming a
Java platform standard. It ships with hundreds of pre-built and pre-tested extensions 
in the box, which you can configure to use as
your needs dictate. You can download more extensions from the Oracle Technet website 
or build your own using standard Swing and the
JDeveloper extension SDK.

For an idea of how to build a complete application using a maximal set of J2EE 
application-building productivity features, you might
check out our Struts/BC4J Toy Store Demo and whitepaper at:

http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/index.html

An overview of our JSR 227-based databinding support is at:

http://otn.oracle.com/products/jdev/htdocs/adfprimer/index.html


Steve Muench - Technical Evangelist, Product Mgr, Developer, Author - Oracle
http://radio.weblogs.com/0118231/

-Original Message-
From: Nick Faiz [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 28, 2003 17:55
To: 'Struts Users Mailing List'
Subject: RE: .NET: We are just like Struts... only better.

but still, I'm not dragging and 

dropping html form controls (or struts-html.tld taglib controls) to a 

designer screen, linking code and compiling.

 

I believe that various IDEs are beginning to allow this. I saw a demonstration of a 
Sun's Forte at a Java User Group, a while ago,
and they were dropping and dragging JATO taglibs. WebLogic Workshop can apparently 
allow this using Struts.

 

I don't know if any of this qualifies as decent programming, however. 

 

Nick

 

-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]
Sent: Monday, 29 December 2003 12:33 PM
To: [EMAIL PROTECTED]
Subject: Re: .NET: We are just like Struts... only better.

 

It's kind of a catch .22, I use struts on projects that make money for me.  

If someone started taking my projects and replicating them for free, I would


probably have a problem with it :)  Although in this case, MS did not have a


Struts to begin with.  ASP.net is sweet, but only because the development 

environent makes it sweet.  If we can get the same RAD functionality out of 

Eclipse w/ JSF and perhaps Flex, then we'll really be cooking.

 

Although Struts is a wonderful thing, I still look at web development with 

J2EE as a bit of a tedious thing.  Well, actually now that I have a pretty 

robust taglib built, not so tedious, but still, I'm not dragging and 

dropping html form controls (or struts-html.tld taglib controls) to a 

designer screen, linking code and compiling.  I have to do it all by hand :(


  Let's hope Eclipse VE adopts a JSF designer!

 

Craig W. Tataryn

 

From: Frans Thamura, Intercitra [EMAIL PROTECTED]

Reply-To: Struts Users Mailing List [EMAIL PROTECTED]

To: Struts Users Mailing List [EMAIL PROTECTED]

Subject: Re: .NET: We are just like Struts... only better.

Date: Sat, 27 Dec 2003 23:57:08 -0500



I think this article will explain that Microsoft is not support Open 
Source


community, M$ only support people that want to support money, :)



Our War Money Chest is bigger than all of you all the Java guys 
(including

the Open Source).



[EMAIL PROTECTED] how can M$ have that money?



So, this mean we all must wake up, :) to make our product more user

friendly, and make everyone can learn it, update it, and make it perfect.



ASP.net is a product based, Struts is a spiritual lovely project. They

cannot compare it.



But if ASP.net can be compare with MVC not with Struts. :) sad to hear 
that


if we port Struts to .NET, Microsoft wont support it, because they 
said, we

RE: ClassCastException coming from DynaValidatorForm.validate()- bug or a feature?

2003-12-21 Thread Steve Armstrong
Hi,

Validator has support for validating multi-page forms via the use of an
optional page attribute, associated with a field element, that can be set
to an integer.  From the Validator portion of the user guide:

All validation for any field on a page less than or equal to the current
page is performed server side. All validation for any field on a page equal
to the current page is generated for the client side Javascript. A
multi-part form expects the page attribute to be set

html:hidden property=page value=1/

Since your form already defines a page property, and a non-integer one at
that, I can see how things might get screwed up.

Cheers,
-Steve

-Original Message-
From: Janice [mailto:[EMAIL PROTECTED]
Sent: Friday, December 19, 2003 2:25 PM
To: [EMAIL PROTECTED]
Subject: re: ClassCastException coming from
DynaValidatorForm.validate()- bug or a feature?


I went to the source to try to find out what was causing this problem, and I
started to suspect that:

form-property name=page
  type=java.lang.String
  initial=home /

was the problem... sure enough, when I changed the name to thePage,
instead of page, it worked.

Would this be a bug or just a feature that I missed the documentation for?

Janice


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



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



RE: Solved super.init() dies silently after migration from struts 1.0 to struts 1.1

2003-12-03 Thread Steve Raeburn
You should really take a look at the Ant xmlvalidate task.
http://ant.apache.org/manual/index.html - look under Ant Tasks/Optional
tasks. It's free and it will allow you to validate your XML files as
part of the build process.

Alternatively, use an editor that will validate the files for you as you
go. I'm sure if you take a look around there are options for IDEs and
standalone editors.

Steve

 -Original Message-
 From: Ralf Hauser [mailto:[EMAIL PROTECTED]
 Sent: December 2, 2003 11:20 PM
 To: [EMAIL PROTECTED]
 Subject: Solved super.init() dies silently after migration from struts
 1.0 to struts 1.1


 Hi,

 Just for that others do not waste time on this.

 Eventually, I found that some error is posted, but not to
 catalina.out.

 Unfortunately, the error message was not very telling so I
 posted an RFE to
 make it more helpful
 (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25155).

 Essentially, the problem was that I had both,
 ?xml version=1.0 encoding=UTF-8 ?
 and
 ?xml version=1.0 encoding=ISO-8859-1 ?
 in struts-config.xml after migrating.

 Rgds

Ralf


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






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



RE: Validator Framework Value Object ActionForm

2003-11-21 Thread Steve Armstrong
Hi,

I assume that you would just validate on the nested form property named
contactValue.email.

Cheers,
-Steve

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 4:38 AM
To: [EMAIL PROTECTED]
Subject: Validator Framework  Value Object ActionForm


Hi all,

I have the following action form:

/*
 * Created on Nov 19, 2003
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package nl.informatiefabriek.addressbook.form;

import nl.informatiefabriek.addressbook.value.ContactValue;

import org.apache.struts.action.ActionForm;

/**
 * @author harm
 *
 * @struts.form name = contactForm
 */
public class ContactForm extends ActionForm {
private ContactValue contactValue = new ContactValue();

/**
 * @return Returns the contactValue.
 */
public ContactValue getContactValue() {
return contactValue;
}

/**
 * @param contactValue The contactValue to set.
 */
public void setContactValue(ContactValue contactValue) {
this.contactValue = contactValue;
}

}

As you can see my Action Form only stores a ValueObject (Data Transfer
Object) which is send to the EJB tier in my application.
My ValueObject contains a property 'email'.:

snippet
 public java.lang.String getEmail()
   {
  return this.email;
   }

   public void setEmail( java.lang.String email )
   {
  this.email = email;
  emailHasBeenSet = true;

   }
/snippet

I would like to use the Validator Framework to validate the emailaddress
stored in the ValueObject.

I'm not sure on how to do this, because the email property is stored in
the Value Object and not in the ActionForm object.

Can somebody provide me a hint on how to validate this using the Validator
Framework?

Thanks,

Harm de Laat
Informatiefabriek
The Netherlands


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



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



RE: Accessing a static final constant from Class in JSP

2003-11-18 Thread Steve Armstrong
Well, you can use a JSP expression which strictly speaking isn't a
scriptlet.  So, after you do your import, you can use constants like

bean:write name=%= GSOPConstants.A_BEAN_NAME % property=%=
GSOPConstants.A_BEAN_PROPERTY %/

Cheers,
-Steve

-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 10:48 AM
To: [EMAIL PROTECTED]
Subject: RE: Accessing a static final constant from Class in JSP


I don't think there is one, but maybe somone will educate me. ;-)

Why not put this in ApplicationResources and then use the bean:message
tag?

Larry

 [EMAIL PROTECTED] 11/18/03 8:31 AM 

which tag do u use to access the constants from the class as I don't
want to use JSP Scriplets???

Thanks,
S!

 [EMAIL PROTECTED] 11/17/03 05:41PM 
Import the class in your jsp, then you can directly access it.

%@ page import=GSOPConstants%

-Original Message-
From: Srinivas Kusunam [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 2:17 PM
To: [EMAIL PROTECTED]
Subject: Accessing a static final constant from Class in JSP


Hi,
 I have a class called ProjConstants.java which is a static class
with
some static final constants here is the sample

public class GSOPConstants{
  public static final String LINK_EDIT = linkEdit;
}

   How can I access this LINK_EDIT  constant from JSP
without
using scriplets???

   Any help appreciated.

Regards,
S!



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

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



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




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



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



RE: A Walking Tour of the Struts Example Application does not match the code!

2003-10-30 Thread Steve Raeburn
Unfortunately, this documention *is* out of date with the sample
application.
It has been noted as something that needs to be done but no-one's found
time to do it yet.

The tutorials page
(http://jakarta.apache.org/struts/resources/tutorials.html) lists some
alternatives.
Rick Reumann's tutorial is worth a look.

Steve

 -Original Message-
 From: Steven Woody [mailto:[EMAIL PROTECTED]
 Sent: October 29, 2003 10:27 PM
 To: structs-user
 Subject: A Walking Tour of the Struts Example Application does not
 match the code!


 Hi, list

 The A Walking Tour of the Struts Example Application
 (MailReader example) seems not to match the code come with
 release 1.1.   A few minutes after I began to read the
 document, I got:

 --- cut ---
 If you check the application's web.xml, you will see how
 these objects are loaded. The message resource is loaded by
 the application parameter to the ActionServlet. When the
 ActionServlet initializes, it parses the
 ApplicationResources.properties in the package folder into
 the default message resource. If you change a message in the
 resource, and then reload the application, it will appear
 throughout the application.
 --- end ---

 But in the web.xml, I dont find anything to loading those
 mentioned objects and message resource.  They are loaded in
 the strut-config.xml in fact.

 I'm new to Struts, so a begining example is very important
 for me.  Is this a version conflict?  Where is the correct
 tour for the MailReader example?

 --
 Steven Woody
 [EMAIL PROTECTED]



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



Re: Tags creating Tags

2003-10-27 Thread Steve Apeero
For what you want to do what is wrong with using a

jsp:include page=common_tags.jsp flush=true /

where common_tags.jsp contain all the tags and html you
wanted to declare in a seperate tag.
Stephan


From: Lukas Bradley [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Tags creating Tags
Date: Sun, 26 Oct 2003 19:34:04 -0500
Hi all,

Maybe I'm just tired, but the answer to this is not to be found.  I could 
me
making this harder than it is, or something might be right in front of me,
and I don't see it.

What I want is a custom tag that creates other custom tags.  Here is a
simple example:
lukas:myTag lang=en /

Should produce something like this:

table
  trtdEnglish/td/tr
  trtdhtml:file property=formFile 
styleClass=FormField//td/tr
   !-- Imagine a lot more custom tags here --
/table

Which should then evaluate to:

table
  trtdEnglish/td/tr
  trtdinput type=file name=formFile value=
class=FormField/td/tr
   !-- Imagine a lot more custom tags rendering here. --
/table
I've thought about trying to extend BodyTagSupport, return
EVAL_BODY_BUFFERED in doStartTag(), modify the bodyContent in 
doAfterBody(),
then return EVAL_PAGE() in doEndTag().  However, BodyContent has a 
protected
constructor, and no way to set its content.

I want to maintain the functionality gained from Struts-like custom tags,
while extracting the creation of them in a super-duper momma tag.  Any 
help?

Lukas



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Cheer a special someone with a fun Halloween eCard from American Greetings! 
Go to  http://www.msn.americangreetings.com/index_msn.pd?source=msne134

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


RE: browser cache.

2003-10-25 Thread Steve Raeburn
There is.
http://jakarta.apache.org/struts/userGuide/configuration.html#controll
er_config

Steve

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] Behalf Of kimbuba
 Sent: October 25, 2003 10:27 AM
 To: [EMAIL PROTECTED]
 Subject: browser cache.


 Hello!
 is there a way to tell struts sending headers to tell
 client browser to
 don't cache  pages?
 (sending expired headers).

 Thnx to all!




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






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



RE: far reaching db question

2003-10-24 Thread Steve Raeburn


 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: October 24, 2003 11:21 AM
 To: Struts Users Mailing List
 Subject: Re: far reaching db question

 IMO, Struts isn't applicable to sites less than 5 pages.  Coding a Servlet
 with JDBC is suitable for many small web tools.


While I agree that it's not worth *learning* Struts for such a small app, if
you already know Struts then it's no hassle to use it in a small
application. Even for a simple one page form, you can utilize i18n, form
population and validation features of Struts.

Though it's not worth learning Struts just for a 5 page app, that would be a
good place to cut your teeth if you plan to continue to use Struts on a
larger scale.

And 5 page apps have a habit of growing into 10 page apps which have a habit
of growing into 20 page apps... ;-)

Steve

 David




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



RE: [ANN] Struts and JavaServer Faces talk by Craig McClanahan on 11/5

2003-10-23 Thread Steve Raeburn
Craig's just being modest. He's *already* an Internet TV star :-)
http://www.theserverside.com/events/library.jsp#mcclanahan

Steve

 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
 Sent: October 22, 2003 10:58 PM
 To: Struts Users Mailing List
 Cc: 'Ruth, Brice'
 Subject: Re: [ANN] Struts and JavaServer Faces talk by Craig McClanahan
 on 11/5
 
 
 Van Riper, Mike wrote:
 
 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 22, 2003 12:31 PM
 To: Struts Users Mailing List
 Subject: Re: [ANN] Struts and JavaServer Faces talk by Craig 
 McClanahan
 on 11/5
 
 
 Any chance that someone could setup a DV camera, record the 
 presentation, then post it somewhere as a small Quicktime movie? That 
 would be excellent, too.
 
 
 
 I found a volunteer to record Craig's talk with a DV camera as you
 suggested. Assuming Craig gives us his permission to record the 
 talk, we'll
 do that and make it available online afterwards.
 
   
 
 Oh my!  I'm going to be on Internet TV!  My parents will be *so* 
 proud!!!  :-)
 
 Yes, you definitely have my permission to record and broadcast this 
 talk.  Considering that this is the #1 question I have been asked by 
 people over the last year or so, it will be very nice to be able to 
 point them at a link that gives a comprehensive answer.
 
 FYI, Van
 
   
 
 
 Craig
 
 
 Van Riper, Mike wrote:
 
 
 
 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 21, 2003 7:20 PM
 To: Struts Users Mailing List
 Subject: Re: [ANN] Struts and JavaServer Faces talk by Craig 
 McClanahan
 on 11/ 5
 
 
 Ruth, Brice wrote:
 

 
 
 
 Any chance of getting a webcast setup for this? For those 
   
 
 of us not 
 
 
 fortunate enough to be local to the 'Valley? :)
 
  
 
   
 
 You'll have to ask Van about broadcast facilities :-),

 
 
 
 I'll look into this, but, it will most likely not be 
   
 
 happening. At my day
 
 
 job, I am on the critical path for completing and shipping a 
   
 
 new product
 
 
 right now. So, it is not going to happen unless they have 
   
 
 the facilities
 
 
 required for this at Netscape *and* I can find a volunteer 
   
 
 with more free
 
 
 time than myself to set it up.
 
 Sorry, Van
 
  
 
   
 
 but I do plan to 
 make my slides available after the talk.
 
 Craig
 
 

 
 
 
 Van Riper, Mike wrote:
 
  
 
   
 
 The next meeting of the Silicon Valley Struts User BOF 

 
 
 
 will be held at

 
 
 
 Netscape in Mountain View on Wednesday, November 5th. Craig 
 McClanahan, a
 senior staff engineer for Sun Microsystems, will make a 

 
 
 
 presentation 

 
 
 
 on this
 topic:
 
 Struts and JavaServer Faces -- Competition or Coexistence?
 
 Craig is uniquely qualified to give this talk, because he 

 
 
 
 is both the

 
 
 
 original creator of the Struts Framework and 

 
 
 
 co-specification lead for

 
 
 
 JavaServer Faces (JSR-127). You will find the full announcement 
 including
 directions to Netscape here:
 
 http://www.baychi.org/bof/struts/20031105a/
 (Please note the change of venue from
 VeriSign to Netscape for November)
 
 This meeting is being co-hosted by the Silicon Valley Java 

 
 
 
 User Group

 
 
 
 (SVJUG) and the Java SIG of the East Bay I.T. Group 

 
 
 
 (eBIG). Special 

 
 
 
 thanks
 goes to SVJUG President Venki Seshaadri for arranging the meeting 
 space at
 Netscape.
 
 SVJUG http://www.svjug.org/
 eBIG http://www.ebig.org/sig/sig.aspx?SIGid=21
 
 That's all folks, Van
 
 Mike Van Riper
 mailto:[EMAIL PROTECTED]
 http://www.baychi.org/bof/struts/
 
 
 
 

 
 
 
 
 
 
 -
 
 

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

 
 
 
 [EMAIL PROTECTED]

 
 
 

 
 
 

 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
  
 
   
 
 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
   
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED

RE: Good list for JSTL questions?

2003-10-23 Thread Steve Raeburn
The best place would be the Jakarta Taglibs user list
(http://jakarta.apache.org/taglibs/#MailingLists). The guys that wrote JSTL
hang out there.

I'm sure if it's reasonably Struts related, you'll get some help here too.

Steve

 -Original Message-
 From: Ruth, Brice [mailto:[EMAIL PROTECTED]
 Sent: October 23, 2003 3:34 PM
 To: Struts Users Mailing List
 Subject: Good list for JSTL questions?


 What's a good list to address JSTL questions to?

 Thanks.

 --
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.



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






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



RE: Trimming the extra spaces in the output page

2003-10-20 Thread Steve Raeburn
I agree with the Filter suggestion, but I would take a step back and ask
whether you *really* need to do this.

Trimming the excess whitespace won't really make much difference to the size
of the downloaded page and adding the Filter processing could even make it
slower, not faster to load.

If you're really producing pages that are too large I would first consider
the following optimizations before worrying about trimming whitespace:

 - Reduce the number and size of images in the page
 - Convert the page layout to use CSS instead of nested tables (this alone
can reduce the page weight by as much as 50%)
 - Split the page into smaller, lighter pages.


Steve


 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: October 20, 2003 11:40 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Trimming the extra spaces in the output page


 Someone mentioned this a few weeks back.  I don't remember the solution,
 but if it were my job to make this happen, I would most likely use a
 Filter.

  http://java.sun.com/products/servlet/Filters.html


 --
 James Mitchell
 Software Engineer / Struts Evangelist
 http://www.struts-atlanta.org
 678.910.8017
 AIM:jmitchtx




  -Original Message-
  From: EL AKARI Mehdi [mailto:[EMAIL PROTECTED]
  Sent: Monday, October 20, 2003 1:34 PM
  To: Struts Users Mailing List
  Subject: Trimming the extra spaces in the output page
 
 
  Hi,
  I'm trying to optimise the size of the output pages of a
  struts application.
  The first thing that i'm trying to do is to trim the extra
  spaces and carriage returns in the output page.
  Do you have any ideas of how to do this?
  If you have any suggestions of how to optimise the page
  output they are welcome!
  Thanks
  Mehdi
 


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






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



RE: Help with form bean [urgent]

2003-10-20 Thread Steve Raeburn
If you've set the Map up in you Action, something like this:
Map countries = new HashMap();
countries.put(AF, Afghanistan);
countries.put(AL, Albania);
countries.put(DZ, Algeria);
countries.put(AS, American Samoa);
countries.put(AD, Andorra);
countries.put(AO, Angola);
countries.put(AI, Anguilla);
countries.put(AQ, Antarctica);
request.setAttribute(countries, countries);

You can generate the list in your JSP using:
  html:select property=countryId
html:options collection=countries property=key labelProperty=value
/
  /html:select

'countryId' is the name of the property in your ActionForm
'countries' is the request scope attribute name where you stored the Map.

You would probably want to load the list from a properties file or database
and since these values don't change very often, you could do this once at
startup and place the Map in application scope rather than in the request.

To generate checkboxes, use something like this:

  logic:iterate name=countries id=country
html:multibox property=countryIds name=countries
  bean:write name=country property=key/
/html:multibox
bean:write name=country property=value/br/
  /logic:iterate

Your form property must be a String array to receive multiple values.

Steve

p.s. Please don't put 'urgent' in your subject line. It may not achieve the
effects you desire ;-)


 -Original Message-
 From: Rajat Pandit [mailto:[EMAIL PROTECTED]
 Sent: October 20, 2003 12:15 PM
 To: 'Struts Users Mailing List'
 Subject: Help with form bean [urgent]


 Ok, yet another attempt to explain my problem. Say I have a registration
 form and I have the list of countries stored in an ArrayList with each
 element as a key, value pair (Map). Now when I call the registration
 form. The actionForm for the the registration form has one field country
 (with both the getter and setter). How do I write the bean tag, so that
 the ArrayList (which is placed in the request scope already) is taken to
 render a dropdown menu of countries and the value of the selected item
 goes into the countryId property of the registration ActionForm.

 If ur still with me so far, then yet another question, how do do the
 same in case I want to user to select the countries from a checkbox
 (could be possibly multiple countries) if possible please give me a
 sample code to learn as well.

 My project deadline is coming close and I am stuck with conceptual
 problems. Please consider this as urgent call for help.

 Thanks in advance.




 Rajat Pandit | [EMAIL PROTECTED]
 +91 612 3117606
 [ Developer and Part Time Human Being]


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






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



RE: Keep Them In the Database Or In the Properties File?

2003-10-20 Thread Steve Raeburn
Either will work. One thing to consider is who will maintain the data.

If developers will create / maintain the lists and the data is essentially
static, then properties files would be a good bet.
If end users maintain the data, then a database and suitable user interface
may be better.

US States are unlikely to ever change so a properties file is a good bet.
Bizarrely, countries tend to change more frequently so you might want to
have those in a database where they could be more easily maintained,
depending on how up to date you need to be.

Steve

 -Original Message-
 From: Caroline Jen [mailto:[EMAIL PROTECTED]
 Sent: October 20, 2003 1:56 PM
 To: [EMAIL PROTECTED]
 Subject: Keep Them In the Database Or In the Properties File?


 I have to prepare many drop down lists for visitors of
 the website to make selections.  For example, I have
 the 51 states of the United States prepared like
 Virginia=VA, ., etc.  Do I keep the data in a
 database or in a properties file?

 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 http://shopping.yahoo.com

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






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



RE: Off Topic: A suitable JVM could not be found

2003-10-20 Thread Steve Raeburn
I can't find the details right now, but I have a vague recollection that the
IBM JDK includes an RMI-IIOP implementation that is a requirement for
Websphere. So you won't be able to switch to a non-IBM JDK.

If you're running just about anything except Windows, you may be able to use
an updated IBM JDK (http://www-106.ibm.com/developerworks/java/jdk/).
IBM has not separately released its 1.4 version for Windows, though it is
available bundled with products like MQ Series (sorry, Websphere MQ -
marketing dept strikes again).

I don't have any information on whether it's *advisable* to change the JDK
on Websphere, since it doesn't seem to be supported. Personally, I wouldn't
risk it in a production environment.

Steve

 -Original Message-
 From: Martin Gainty [mailto:[EMAIL PROTECTED]
 Sent: October 20, 2003 8:00 PM
 To: [EMAIL PROTECTED]
 Subject: Off Topic: A suitable JVM could not be found


 Way off topic but I'm stumped

 Websphere 5
 When attempting to do run any Java Process from Websphere I get
 A suitable JVM could not be found
 I know Websphere likes to install their own IBM JDK1.31
 but I want to retain my SUN JDK 1.41 for obvious reasons

 Has anyone seen this and know of a workaround?

 Thanks,

 -M




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



RE: struts-el and messages

2003-10-17 Thread Steve Raeburn
The nightly build has a method that allows you to store messages in the
session.
They are automatically removed after being displayed.

Action:
protected void saveMessages(HttpSession session, ActionMessages
messages)

Steve

 -Original Message-
 From: Chris Searle [mailto:[EMAIL PROTECTED]
 Sent: October 17, 2003 1:44 AM
 To: [EMAIL PROTECTED]
 Subject: Re: struts-el and messages


  Chris == Chris Searle [EMAIL PROTECTED] writes:

  Had the problem with using the html:messages with struts-el
  from the 1.1RC1 build (NullPointerException) - so I've just
  upgraded to 1.1 (thought I'd already done so).

  Now - I get no exception - but I get no message either.

 Got it. The forward was set redirect=true so of course the messages
 disappeared.

 However - we do have a couple of (odd) places where a redirect is
 desired but keeping the messages - is this possible? Can they be
 propagated over a redirect by use of session or similar?

 --
 Chris Searle
 [EMAIL PROTECTED]


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






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



RE: repopulating options of html:select when validation fails

2003-10-17 Thread Steve Raeburn
Set your input parameter to the *action* that prepares the page, not
directly to the page itself.

Steve

 -Original Message-
 From: Marc Dugger [mailto:[EMAIL PROTECTED]
 Sent: October 17, 2003 1:33 PM
 To: [EMAIL PROTECTED]
 Subject: repopulating options of html:select when validation fails


 Can anyone offer a crafty method of reloading a dynamic collection of
 html:options into the request scope in case form validation
 fails and the
 controller must forward to the 'input' of the action mapping?  Thanks.
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.525 / Virus Database: 322 - Release Date: 10/9/2003


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






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



Re: Re: SSLExt and Struts Workflow?

2003-10-16 Thread Steve Ditlinger

Tim:

Without looking into it too deeply (and without knowing anything about
Workflow), I can say the easiest thing from the sslext side is to redefine
SecureActionConfig to extend WorkflowMapping, just as you say.  If you have
problems, I can look at it more.

Steve


 
 From: Tim Shadel [EMAIL PROTECTED]
 Date: 2003/10/16 Thu PM 01:52:22 CDT
 To: Struts Users Mailing List [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED],   [EMAIL PROTECTED],  
  [EMAIL PROTECTED]
 Subject: Re: SSLExt and Struts Workflow?
 
 I know this thread is a couple weeks old, but I just started looking 
 into this myself.
 
 Actually, I don't think that they are currently compatible, but not 
 because of the RequestProcessor.  Matthias has made it easier to write a 
 RequestProcessor that includes others, so that should be possible 
 (though I haven't done it).  The problem seems to be that they each 
 require a custom ActionMappings class:
 
 action-mappings type=org.apache.struts.config.SecureActionConfig
 
 action-mappings type=com.livinglogic.struts.workflow.WorkflowMapping
 
 I assume that you can't use both.  After looking at the code, it appears 
 that it may not be hard to change SSLExt to expect an Interface instead 
 of a class in most areas that the SecureActionConfig is really needed 
 for the config.getSecure() call (WorkflowMapping seems to hold more than 
 simple get/set methods).  It seems that the changes to 
 SecureActionConfig are most in the checkSsl() and computerUrl() methods. 
   I may be missing something, but it doesn't seem like much would break.
 
 Eclpse's Extract Interface... refactoring can't do it automatically, 
 but gives a quick glance at the areas most affected.  If the SslExt code 
 could use an interface, then it would be possible to extend the 
 WorkflowMapping, add the needed methods, use the new class in the 
 action-mapping and then use both SslExt and Struts Workflow together.
 
 Steve and Matthias, do you see any glitches with this approach?  If not, 
 I may try to start working at it (isn't that the general rule - don't 
 propose something unless you want to volunteer to help? :-D).
 
 Thanks for your great extentions to Struts!
 
 Tim
 
 Matthias Bauer wrote:
  If you 
  still want to use the sslext RequestProcessor you should be easily able 
  to do that: It is fairly trivial to build an 
  SSLExtWorkflowRequestProcessor in just the same way as the 
  TilesWorkflowRequestProcesser is built, which is included in the Struts 
  Workflow Extension. This is because all the workflow logic is extracted 
  into a separate class WorkflowRequestProcessorLogic. If you are 
  interested, have a look at the classes WorkflowRequestProcessor, 
  TilesWorkflowRequestProcessor, WorkflowRequestProcessorLogic and 
  WorkflowRequestProcessorLogicAdapter.
  
  --- Matthias
  
  
  Steve Ditlinger wrote:
  
  I'll admit to not having used Struts Workflow.  But I don't know of any
  reason why sslext should not work, as long as actions are defined in a
  struts config file like other struts apps.
 
  If Struts Workflow uses its own RequestProcessor, you would not be 
  able to
  use the sslext RequestProcessor (without creating your own custom
  RequestProcessor).  However, that is OK.  You can use the sslext Plugin
  without the sslext RequestProcessor.   Assuming the use of the sslext 
  tags,
  the sslext RequestProcessor is really only needed as a failsafe for
  redirecting to the correct protocol if a URL is improperly hand-entered.
 
  HTH,
  Steve
 
 
  - Original Message - From: Mick Knutson 
  [EMAIL PROTECTED]
  To: struts [EMAIL PROTECTED]
  Sent: Tuesday, September 23, 2003 2:54 PM
  Subject: SSLExt and Struts Workflow?
 
 
   
 
  Does SSLExt and Struts Workflow work together?
 
  ---
  Thanks
  Mick Knutson
  http://www.baselogic.com
  ---
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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

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



RE: IMPORTANT: how to tell

2003-10-15 Thread Steve Raeburn
A little bit more than a weeks worth ;-)

http://jakarta.apache.org/struts/resources/archives.html

Steve

 -Original Message-
 From: Barry Volpe [mailto:[EMAIL PROTECTED]
 Sent: October 15, 2003 9:23 AM
 To: Struts Users Mailing List
 Subject: Re: IMPORTANT:  how to tell


 The list does have an abundance of valuable information.
 Am I correct in saying that the list only archives about
 a weeks worth of posts?  It would be great if the list
 had a way of cataloging the information.  I find that
 a topic could be discussed for two days and then go away.
 The next day someone will decide to post the same topic again.
 It's like Here we go again!   What could be done so that
 information that has already been posted can be available
 to future questions or posts?

 Barry


 - Original Message -
 From: Brandon Goodin [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, October 15, 2003 9:06 AM
 Subject: Re: IMPORTANT:  how to tell


  How about we set up a review board that examines every post to the list.
  Discards pointless discussions (like this one) and rates them according
  to a scale of importance to the community. Then they place them into
  bugzilla where they will be propagated to the struts list subscribers as
  tasks.
 
  :-\
 
  Thoughts? Further Sarcasm? :-D
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


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






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



RE: setting application context

2003-10-07 Thread Steve Raeburn
If you have a Servlet 2.3 compatible container (e.g. Tomcat 4.x or later)
you can implement a ServletContextListener which will be notified when your
context is started and gives you access to the ServletContext.

  ...
  import javax.servlet.ServletContextEvent;
  import javax.servlet.ServletContextListener;

  public class StartUpListener implements ServletContextListener {

public void contextInitialized(ServletContextEvent evt) {
MyBean bean = new MyBean();
evt.getServletContext().setAttribute(MyKey, bean);
}

public void contextDestroyed(ServletContextEvent evt) {
// Whatever shutdown processing you need goes here.
}
  }

Listeners are configured in web.xml:
  listener
listener-classmyapp.StartUpListener/listener-class
  /listener


Another way that is Struts specific but also works with Servlet 2.2
containers is to implement a PlugIn.

  ...
  import org.apache.struts.action.ActionServlet;
  import org.apache.struts.action.PlugIn;
  import org.apache.struts.config.ModuleConfig;

  public class MyPlugIn implements PlugIn {

public void init(ActionServlet servlet, ModuleConfig config)
throws ServletException {
MyBean bean = new MyBean();
servlet.getServletContext().setAttribute(MyKey, bean);
}

public void destroy() {
// Whatever shutdown processing you need goes here.
}
  }

A PlugIn is configured  at the end of your struts configuration file
(struts-config.xml) See the Struts example webapp for a demonstration of
plugins:

  ...
  plug-in className=myapp.MyPlugIn/


Finally, you could create a Servlet that runs automatically at start up and
set-up any ServletContext attributes in it's init() method.

My preference is to use a ServletContextListener if possible, or a PlugIn.

Steve


 -Original Message-
 From: Kannan [mailto:[EMAIL PROTECTED]
 Sent: October 7, 2003 8:35 AM
 To: Struts Users Mailing List
 Subject: setting application context


 Hi all!
 I have a lot of drop down menus in my web application.
 I need to set them as collection objects in  servlet context.
 that should load up when the application ( tomcat start..) load  up.
 Then i can play with struts by iterating it..

 Can any one help me , How to do this? How to write the loader class and
 set it up...?

 thanks in advance.
 Kannan.


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






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



RE: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Steve Raeburn
'In fact, we'd particularly invite Struts advocates to respond to this
article by describing the benefits that they feel Struts provides over
vanilla JSP.'

Well if they don't get what Struts provides over vanilla JSP, then they
never will. Discussing what Struts provides compared to other MVC frameworks
might be useful, but the vanilla JSP topic is surely dead and buried by
now.

I guess it's a sign of success when people who obviously know nothing about
Struts start taking swipes at it :-)

Steve

 -Original Message-
 From: Adam Levine [mailto:[EMAIL PROTECTED]
 Sent: October 7, 2003 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)


 a bunch of postings, including the article, by a bunch of un/mis-informed
 evangelists (for all technologies mentioned).  it's like state
 fair day at
 /.
can i get my 20mins back ?

 -- adam



 From: Yann Cébron [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [Article] SoftwareFashion (includes paragraph about Struts)
 Date: Tue, 7 Oct 2003 17:30:02 +0200

 Read for yourself and judge:

 http://www.softwarereality.com/soapbox/softwarefashion.jsp




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

 _
 Get MSN 8 Dial-up Internet Service FREE for one month.  Limited
 time offer--
 sign up now!   http://join.msn.com/?page=dept/dialup


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






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



RE: [Article] SoftwareFashion (includes paragraph about Struts)

2003-10-07 Thread Steve Raeburn
Adam,
I assumed it was tongue-in-cheek ;-)

Greg,

I wasn't commenting on people who are trying to understand the MVC pattern
and Struts, but authors who claim to be experts in the field and who should
be *very* familiar with the Model1/Model2 debate and how Struts addresses
the problem. From that perspective, the discussion about *whether* to use an
MVC framework is old news. I think an article discussing the pros and cons
of the various approaches to MVC would have been more valuable. It was a
negative article that invited a negative response.

If you're still on that learning curve then I wouldn't expect you to
immediately understand the benefits of Struts and I'm sure you'll get plenty
of advice on this list.

Here's a few links that might help:
  http://www.fawcette.com/javapro/2002_06/online/servlets_06_11_02/
  http://java.sun.com/blueprints/patterns/MVC-detailed.html
  http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
  http://otn.oracle.com/oramag/webcolumns/2003/techarticles/mills_mvc.html


Steve


 -Original Message-
 From: Adam Levine [mailto:[EMAIL PROTECTED]
 Sent: October 7, 2003 10:35 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)


 apologies. it was a joke with good intentions, but apparently bad
 delivery.



 From: Keith Pemberton [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)
 Date: Tue, 7 Oct 2003 12:28:14 -0500

 This response was uncalled for... at least be more professional when
 responding to people through the listserv.

 - Original Message -
 From: Adam Levine [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, October 07, 2003 12:04 PM
 Subject: Re: [Article] SoftwareFashion (includes paragraph about Struts)


   Hey, Steve ...
  Guess what?  You don't understand Struts.   (=
  
  
  
  
   From: Gregory Seidman [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: Re: [Article] SoftwareFashion (includes paragraph
 about Struts)
   Date: Tue, 7 Oct 2003 12:57:18 -0400
  
   On Tue, Oct 07, 2003 at 09:32:52AM -0700, Steve Raeburn wrote:
   } 'In fact, we'd particularly invite Struts advocates to
 respond to this
   } article by describing the benefits that they feel Struts
 provides over
   } vanilla JSP.'
   }
   } Well if they don't get what Struts provides over vanilla JSP, then
 they
   } never will. Discussing what Struts provides compared to other MVC
   } frameworks might be useful, but the vanilla JSP topic is
 surely dead
   } and buried by now.
  
   This is a lousy attitude. It's like the stereotype of a woman who says,
 If
   you don't know what you did, I'm not going to tell you. If you can
 clearly
   and succinctly respond to his challenge, do so. If not,
 perhaps you don't
   understand Struts as well as you think.
  
   Myself, I'm still evaluating Struts. I have a prototype of my project
   written with vanilla JSP and a tiny custom taglib, and I'm trying to
   decide whether to rewrite it with Struts or simply clean it up
 and extend
   it. I can't, yet, see whether there is a net benefit to using
 Struts for
 my
   small project.
  
   [...]
   } Steve
   --Greg
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
   _
   High-speed Internet access as low as $29.95/month (depending
 on the local
   service providers in your area). Click here.
https://broadband.msn.com
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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

_
Instant message in style with MSN Messenger 6.0. Download it now FREE!
http://msnmessenger-download.com


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





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



RE: [OT] International telephone number formatter component????

2003-10-02 Thread Steve Raeburn
Disclaimer: The following represents my personal experience - I'm not a
phone number expert :-)

As an example of the problem, the Oftel website (www.oftel.gov.uk) lists the
following *recommended* formats for the UK:

Fixed line phone number:
* (01XX) XXX 
* (01XXX) XX
* (01) X
* (02X)  

07 (mobile) number
* 07XX XXX or 07XXX XX.

08 (freephone, Lo-call or National Rate) number
* 08XX XXX or 08XXX XX.

09 (PRS) number
* 09XX XXX or 09XXX XX.
* 09XX XXX or 09XXX XX.

Since you're probably only interested in fixed and cell phone numbers that
cuts it down to a mere six different formats for the UK alone. At least
until they change the codes again :-)

I think the only thing you can guarantee about phone numbers is that if you
ignore the formatting entirely and just dial the digits, you'll probably get
through. Unless of course, a UK user has included the international dialling
code and entered the number like + 44 (01XXX) XX. In this case, you need
to dial your local international access code, then 44 for the UK, then DROP
the zero, then dial the rest of the number!

If you were in the UK trying to dial a US number entered as (picking a
random example ;-) ) +001(805) 563-0666, you might incorrectly dial 00 001
805 563 0666 (international access code from the UK is 00).

An alternative approach to attempting to validate a single telephone number
field would be to split it into separate input fields e.g.
 - Country code : 44
 - Area code: 01
 - Local number : XX
 - Extension: 

(note: this 'area code' doesn't always represent a geographical area. UK
cell phone numbers, for instance, are national, with the code denoting the
provider.)

I'd store the 'numbers' as Strings to ensure you retain whatever format your
users are comfortable with (after all it is *their* number) and strip out
the formatting when you need to use it.

That still leaves you with the leading 0 problem (or whatever the rules are
for other countries). I can only suggest that you would need to be able to
look up the rules for each country and strip off any unnecessary digits
based on a rule. You might be able to do this during input validation and
warn the user, but to avoid confusing/infuriating the user I think I would
just accept whatever they gave me and handle it intelligently when I need to
use it.

Telephone numbers are as personal and varied as postal codes and I just
*hate* it when some site tells me my house doesn't exist because their rules
can't handle my post code.

Good luck!

Steve



 -Original Message-
 From: Mick Knutson [mailto:[EMAIL PROTECTED]
 Sent: October 2, 2003 7:03 AM
 To: Struts Users Mailing List
 Subject: Re: [OT] International telephone number formatter component


 I do not disagree about the research part at all. I know it will take a
 researcher on my staff a great deal of time to maintain, but it
 is never the
 less, a needed feature.
 I just thought that most Countries have a fairly well formatted
 number. And
 mostly I am taking about supporting N.S. America, Western Europe only.
 Later look at the far East.

 But this would need to choose the whole part of the phone number then just
 store the proper number into my DB for the user. Until they update the
 number again, then they choose again.

 ---
 Thanks
 Mick Knutson

 +001(805) 563-0666 Office
 +001 (708) 570-2772 Fax
 ---



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



RE: [POLL] ActionFrom vs DynaActionForm

2003-09-30 Thread Steve Raeburn
#2 - It was I revelation when I realised I didn't need to write ActionForms!

(But one day soon I'm going to look at XDoclet to see what that can do for
me).

Steve

 -Original Message-
 From: Mainguy, Mike [mailto:[EMAIL PROTECTED]
 Sent: September 30, 2003 9:52 AM
 To: [EMAIL PROTECTED]
 Subject: [POLL] ActionFrom vs DynaActionForm


 Next in my series of struts-user polls (please complain if this gets old).

 What sort of ActionForms does everyone use?

 #1 ActionForm
 #2 DynaActionForm

 Personally, I'm an advocate of the DynaActionForm as it seems to
 be able to
 do 80-90% of everything I need to do and everything else can be done in my
 business tier.  I have, however, run into another person who is dead set
 against using it.  His rationale is that you are then unable to do custom
 validation when you use the DynaValidatorForm...  I think you can still do
 it, it's just a little more difficult, but, I'm polling to see if
 I'm out in
 left field...



 This message and its contents (to include attachments) are the
 property of Kmart Corporation (Kmart) and may contain
 confidential and proprietary information. You are hereby notified
 that any disclosure, copying, or distribution of this message, or
 the taking of any action based on information contained herein is
 strictly prohibited. Unauthorized use of information contained
 herein may subject you to civil and criminal prosecution and
 penalties. If you are not the intended recipient, you should
 delete this message immediately.



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






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



RE: Application Resources Error messages

2003-09-30 Thread Steve Raeburn
Take a look at the validator example application that comes in the Struts
distribution. There is an example of referencing the variable so you don't
define it twice.

In your case, it should be:
field property=userName depends=required,minlength,maxlength
  arg0 key=label.userName/
  arg1 key=${var:minlength} resource=false/
  arg2 key=${var:maxlength} resource=false/
  var
var-nameminlength/var-name
var-value4/var-value
  /var
  var
var-namemaxlength/var-name
var-value12/var-value
  /var
/field

Steve

 -Original Message-
 From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED]
 Sent: September 30, 2003 1:53 PM
 To: Struts Users Mailing List
 Subject: RE: Application Resources  Error messages


 I just came to the same conclusion a coupld of minutes ago.

 Now the question is, if I define both a minlength and a
 maxlength, do I have to define it like this:

   field property=userName depends=required,minlength,maxlength
 arg0 key=label.userName/
 arg1 key=4 resource=false/
 arg2 key=12 resource=false/
 var
   var-nameminlength/var-name
   var-value4/var-value
 /var
 var
   var-namemaxlength/var-name
   var-value12/var-value
 /var
   /field

 And then make my error messages like this:
 errors.minlength={0} can not be less than {1} characters.
 errors.maxlength={0} can not be greater than {2} characters.

 It seems a little silly that I have to specify 4 and 12 twice
 in the validator.  Shouldn't it just pass the var-value
 argument along to the error message?  Is there a easy way to do that?

 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 16:44
 To: 'Struts Users Mailing List'
 Subject: RE: Application Resources  Error messages


 This has to do with your validation xml.
 You should have an arg0 and an arg1 that represent {0} and {1} in your
 message respectively.
 Check how you have it defined.
 -Tim

 -Original Message-
 From: Fenderbosch, Eric [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 30, 2003 4:11 PM
 To: Struts Users Mailing List
 Subject: RE: Application Resources  Error messages


 Agh!
 I just didn't have it in the right location.  It was in the package
 structure alright, just in the war root, not WEB-INF/classes.

 Now, however, I'm getting this:
 User name can not be less than null characters.

 Why doesn't it know how many characters?

 -Original Message-
 From: Fenderbosch, Eric
 Sent: Tuesday, September 30, 2003 15:56
 To: [EMAIL PROTECTED]
 Subject: Application Resources  Error messages


 I'm confused on how error messages work.  I've created a properties file
 TrackMessageResource.properties in the proper package structure and
 specified it in my struts-config like this:
 message-resources
   null=false
   parameter=com.*.cc.track.struts.TrackMessageResources/

 I'm using the validator plugin and it is returning error messages like:
 ???en_US.errors.minlength???

 In TrackMessageResource.properties I have:
 errors.minlength={0} can not be less than {1} characters.

 This application is not going to be I18N so I only want/need one message
 resource file.  I don't understand why validator can't find the correct
 error message.  Any help would be appreciated.

 Thanks.

 Eric

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



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

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



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






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



RE: Change the .do extension

2003-09-29 Thread Steve Raeburn
http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_mapp
ing

Steve

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: September 29, 2003 7:09 AM
 To: [EMAIL PROTECTED]
 Subject: Change the .do extension


 Hello!

 Is there a possibility to get rid of the .do extension in the actions?

 For example:

  http://localhost/login.do

 should be
 -- http://localhost/login


 Ist this possible?

 Thanks!

 Dirk




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





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



RE: default for parameter

2003-09-29 Thread Steve Raeburn
http://jakarta.apache.org/struts/api/org/apache/struts/actions/DispatchActio
n.html

Take a look at the 'unspecfied' method.

Steve

 -Original Message-
 From: deepaksawdekar [mailto:[EMAIL PROTECTED]
 Sent: September 29, 2003 5:17 AM
 To: Struts Users Mailing List
 Subject: default for parameter


 Hi,
 I have a action class extended for DispatchAction class.
 Is there any way if the parameter value is not define it will
 call some predefine method.

 e.g
 my strut config is as follows
 action
 path=/Project
 type=com.ft.pmp.gui.action.local.ProjectAction
 name=ProjectForm
 scope=session
 parameter=dispatch
 validate=false

 forward name=projectAction
 path=/pages/localadmin/locCreateProject.jsp/
 /action


 Now if there is no dispatch variable in any scope, is there any
 way by which a some defalut method will be called.


 Thanks and regards
 Deepak



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






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



RE: Reasons for using Struts

2003-09-28 Thread Steve Armstrong
Hi,

This is a good place to start:

http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsBenefits

Cheers,
-Steve

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 12:53 AM
To: [EMAIL PROTECTED]
Subject: Reasons for using Struts


What are the reasons for using Struts?
That is what are the Reasons for which Struts would be a more suitable
choice than say plain JSP/Servlet?

Thanks,

Martin


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



RE: how to tell invalid session vs session timed out

2003-09-27 Thread Steve Armstrong
Hi,

I use the cookie approach outlined here:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg63933.html

There is also another thread involving this issue starting here:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg72578.html

Cheers,
-Steve

-Original Message-
From: Warren Chen [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 7:06 PM
To: Struts Users Mailing List
Subject: how to tell invalid session vs session timed out


Hi All,

Is there any tool in Struts that can tell if an
invalid session is caused by timeout or simply no
session were ever created?

(In my app, the loginAction creates a session and put
some stuff into the session, in each subsequent
request I'll check if session is valid, if not, send
user back to login page - in order to send more
meaningful message to user, I want to tell if invalid
session is caused by timeout out or simply the user
never logged in) 

Thanks a lot!

Warren

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



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



RE: html_image property value not submitted

2003-09-27 Thread Steve Armstrong
The value attribute of an HTML 'input type=image' tag (i.e., what the
Struts html:image tag is generating) is apparently ignored by all (most?)
browsers.  See:

http://www.blooberry.com/indexdot/html/tagpages/i/inputimage.htm

One solution is to have a hidden variable in your HTML form associated with
your form bean (let's use the bean property name action) and then use
JavaScript to set this property appropriately on submit.  Something like,

html:hidden property=action/
html:image property= styleId=button page=/images/save.gif
onclick='document.forms[myForm].action.value=Save;
 document.forms[myForm].submit();' /


In the action associated with your form, you can then consult the action
property of your form bean to determine the type of image button that has
been selected.

Cheers,
-Steve

-Original Message-
From: Norbert Spemm [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2003 9:25 PM
To: [EMAIL PROTECTED]
Subject: html_image property value not submitted


Hi,

I wanted to replace the buttons on my form with images.

Before I had a working application with this tag in the jsp:

html:submit property='SubmittedAction' styleId='button'
value=Save/

now I tried with

html:image property='SubmittedAction' styleId='button' value=Save
page=/images/save.gif/

The problem with the image-version is, that my action now doesn't
receive a value for the parameter SubmittedAction anymore. Instead I
only get the parameters SubmittedAction.x and SubmittedAction.y which
are of no use for me.

What am I doing wrong? I'm using Struts 1.1


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



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



RE: ApplicationResources.properties

2003-09-24 Thread Steve Raeburn
The exact location is configured in struts-config.xml

e.g.
  message-resources parameter=resources.application/

looks for a file named 'application.properties' in the 'resources'
package.

- or -
  message-resources

parameter=org.apache.struts.webapp.example.ApplicationResources/

looks for a file, 'ApplicationResources.properties' in
the 'org.apache.struts.webapp.example' package.


These examples are taken from the struts-example and struts-blank
example web applications that are bundled with Struts.

http://jakarta.apache.org/struts/userGuide/configuration.html#resource
s_config


Steve


 -Original Message-
 From: Navjot Singh [mailto:[EMAIL PROTECTED]
 Sent: September 24, 2003 12:22 PM
 To: Struts Users Mailing List
 Subject: RE: ApplicationResources.properties


 it just should be in classpath.

 |-Original Message-
 |From: Martin Gainty [mailto:[EMAIL PROTECTED]
 |Sent: Thursday, September 25, 2003 12:52 AM
 |To: [EMAIL PROTECTED]
 |Subject: ApplicationResources.properties
 |
 |
 |What mechanism does struts use to find the
 |ApplicationResources.properties file?
 |All attempts by Tomcat to locate the file result in failure
 |
 |The configuration in web.xml as:
 |
 |?xml version=1.0 encoding=UTF-8?
 |
 |!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web
 |Application 2.2//EN
 http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
 |
 |web-app
 |
 |!-- Standard Action Servlet Configuration (with debugging) --
 |
 |servlet
 |
 |servlet-nameaction/servlet-name
 |
 |servlet-classorg.apache.struts.action.ActionServlet/serv
 let-class
 |
 |init-param
 |
 |param-nameapplication/param-name
 |
 |param-valueApplicationResources/param-value
 |
 |/init-param
 |
 |Thanks,
 |-Martin
 |

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






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



Re: How to build an application that is organized as BC4JToyStore example from scratch ?

2003-09-23 Thread Steve Muench
I built the BC4J Toy Store demo application using the basic
features of the JDeveloper IDE 9.0.3 that I describe in
the whitepaper that accompanies the demo.

The whitepaper is not designed as a step by step tutorial,
but if you are unclear as to reproduce any of the best practices
that you find/see in the demo, please post a question in the
JDeveloper OTN discussion forum and we'll try to help.


__
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Building a Web Store with Struts and BC4J (BC4J Toy Store Demo)
http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore
Simplify J2EE Development with the Oracle BC4J Framework
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Dive into BC4J at http://radio.weblogs.com/0118231/
Building Oracle XML Apps, http://www.oreilly.com/catalog/orxmlapp

- Original Message - 
From: EL AKARI Mehdi [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 06:31
Subject: Re: How to build an application that is organized as BC4JToyStore example 
from scratch ?


| No it does not specify how to build such an application from scratch
| 
| 
| - Original Message -
| From: Andrew Kuzmin [EMAIL PROTECTED]
| To: Struts Users Mailing List [EMAIL PROTECTED]
| Sent: Tuesday, September 23, 2003 10:17 AM
| Subject: Re: How to build an application that is organized as BC4JToyStore
| example from scratch ?
| 
| 
|  Maybe this:
| 
| http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore/readme.html
|  ?
| 
|  --
|  Andrew Kuzmin
|  http://www.java201.com
| 
|  - Original Message -
|  From: EL AKARI Mehdi [EMAIL PROTECTED]
|  To: Struts Users Mailing List [EMAIL PROTECTED]
|  Sent: Tuesday, September 23, 2003 1:07 PM
|  Subject: How to build an application that is organized as BC4JToyStore
|  example from scratch ?
|  
| 
|  Hello,
|  I'm trying to build an application that is organized as the example
|  BC4JToyStore, but i just can't!!
|  Can anyone guide me to a tutorial, or a doc?
|  Thank you
|  Mehdi
| 
| 
|  -
|  To unsubscribe, e-mail: [EMAIL PROTECTED]
|  For additional commands, e-mail: [EMAIL PROTECTED]
| 
| 
| 
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 
| 

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



Re: SSLExt and Struts Workflow?

2003-09-23 Thread Steve Ditlinger
I'll admit to not having used Struts Workflow.  But I don't know of any
reason why sslext should not work, as long as actions are defined in a
struts config file like other struts apps.

 If Struts Workflow uses its own RequestProcessor, you would not be able to
use the sslext RequestProcessor (without creating your own custom
RequestProcessor).  However, that is OK.  You can use the sslext Plugin
without the sslext RequestProcessor.   Assuming the use of the sslext tags,
the sslext RequestProcessor is really only needed as a failsafe for
redirecting to the correct protocol if a URL is improperly hand-entered.

HTH,
Steve


- Original Message - 
From: Mick Knutson [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 2:54 PM
Subject: SSLExt and Struts Workflow?


 Does SSLExt and Struts Workflow work together?

 ---
 Thanks
 Mick Knutson
 http://www.baselogic.com
 ---

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



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



RE: Can I have 1 struts jar file for multiple servers/applications

2003-09-23 Thread Steve Raeburn
http://jakarta.apache.org/struts/userGuide/configuration.html#config_a
dd

For more explanation see:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.htm
l

Steve

 -Original Message-
 From: David Thielen [mailto:[EMAIL PROTECTED]
 Sent: September 23, 2003 9:08 PM
 To: Struts Users Mailing List
 Subject: Re: Can I have 1 struts jar file for multiple
 servers/applications


 ok - thanks.

 Is this because of static data in the jar files?

 Is this true of the commons*.jar files and jakarta-oro.jar
 too - or just
 struts.jar and struts-el.jar?

 Also, how about the JSTL jar files - do they need to be one
 for each web
 app?

 thanks - dave


 - Original Message -
 From: Kwok Peng Tuck [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, September 23, 2003 9:46 PM
 Subject: Re: Can I have 1 struts jar file for multiple
 servers/applications


  There should be one struts jar for each web app, if you
 have 10 web app
  then that's 10 struts.jar.
 
  David Thielen wrote:
 
  Hi;
  
  I thought I read something somewhere that said I need to
 have a seperate
 set of struts jar files for each application or server. But
 I can't find it
 now.
  
  I am using JRun and under a given server it has multiple
 applications
 with each application having it's own web.xml and
 struts-config.xml files.
 Can several of these applications share the same struts.jar
 or do I need to
 put a seperate struts.jar in each application's WEB-INF directory?
  
  thanks - dave
  
  
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


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






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



[OT] Hibernate joins JBoss

2003-09-20 Thread Steve Raeburn
I know a lot of Struts developers use Hibernate as their persistence
mechanism so this announcement may be of some interest.

http://www.hibernate.org/136.html and more at
http://forum.hibernate.org/viewtopic.php?t=515


Steve



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



RE: [FRIDAY] Save the Servers!

2003-09-19 Thread Steve Raeburn
LOL TLAP, Ar!

(For those grogged up land-lubbers who wouldn't know a bilge rat from
a beauty - http://tinyurl.com/mguv)

Steve


 -Original Message-
 From: James Childers [mailto:[EMAIL PROTECTED]
 Sent: September 19, 2003 7:15 AM
 To: Struts Users Mailing List
 Subject: RE: [FRIDAY] Save the Servers!


 Arr, but the bleedin' scurvy ridden dogs of Redmond shall
 cowardly stab ye in the back should y'ever tryyy. And yer
 mad-as-a-hatter CIO will look at the shiny treasures given
 him by the sales executive, and toss the ol' penguin box
 overboard. Ar.

 -= J



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



RE: Is it possible to remove *.do or /do/* from the URL

2003-09-19 Thread Steve Raeburn
Sadly, it's flash-based and it doesn't work in Mozilla.

Steve

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] Behalf Of Vic Cekvenich
 Sent: September 19, 2003 5:07 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Is it possible to remove *.do or /do/* from the URL


 The best back button solution I found with source is here:
 http://www.robertpenner.com/experiments/backbutton/backbutto
 n_code.html
 Click next row, next row; and then back button goes to
 prior row. And
 you do not have to worry about browser compatibility (and
 it works on
 PocketPC. Yes, I have been talking about it a lot)


 SNIP
Got any insights on what is
  going to replace this protocol?
 

 Yes, html/http is so 80's; it needs a replacement.
 I just stayed in holiday in.
 They said:
 http://www.xmlrpc.com/directory/1568/implementations or
 some similar
 light XML based SOA.

 PHP, J2EE, Peal, ASP, you pick it. No client is monolithic.
 I will be
 presenting an sync. zipcode decode at an upcoming Struts-NJ
 meeting via
   .js /Struts.
 When the user types in zipcode, the state and city fields
 is filled out
 async. without a submit (using XML-RPC)
 Did I say that it is Cross platform?

 .V



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






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



Re: InvalidClassException....

2003-09-17 Thread Steve Ditlinger
This sounds like you need to make sure that each server/node in the cluster
has the same version of the class.   The failover node is trying to
deserialize a class that was serialized on the original node as a different
version of the same class.

Steve

- Original Message -
From: Trieu, Danny [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 10:48 AM
Subject: InvalidClassException


Hi All,

I have an ActionForm that has a FormFile attribute used for fileupload.  I
had the attribute marked as transient so that the ActionForm can be
serializable and replicate in a cluster environment.  However, the out come
is not what I am expected, it throws InvalidClassException.  Does anyone
know what happens or how to fix this?

Thanks,

--danny


This message and any attachments are for the intended recipient(s) only and
may contain privileged, confidential and/or proprietary information about
Downey Savings or its customers, which Downey Savings does not intend to
disclose to the public. If you received this message by mistake, please
notify the sender by reply e-mail and delete the message and attachments.


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



[ANN] new version of sslext for Struts 1.10 posted

2003-09-16 Thread Steve Ditlinger

Minor change to fix a bug in previously-posted version that could result in
exceptions if the action specified in the sslext:link or sslext:form tags could
not be found.

sslext for Struts 1.10 - 3 is the latest version, available at
http://sslext.sourceforge.net.  I will be deprecating previous Struts 1.10
release.

STeve

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



RE: Stackoverflow after DB inactivity

2003-09-16 Thread Steve Raeburn
Try the latest MySQL driver (3.08). I had a similar problem recently
with a StackOverflowError that was solved by upgrading.

3.08 lists infinite loop with Connection.cleanup(). as one of the
fixed bugs, which is what I suspect was causing the overflow problem.

You'll still have to contend with the MySQL connection which times out
after 8 hours, but you should be able to check for that and reconnect
if necessary or use the autoReconnect parameter
(http://www.mysql.com/documentation/connector-j/index.html)

Steve



 -Original Message-
 From: Vikram Goyal [mailto:[EMAIL PROTECTED]
 Sent: September 16, 2003 6:49 PM
 To: Struts Users Mailing List
 Subject: Stackoverflow after DB inactivity


 Hello all,

 I am getting a Stackoverflow error in Tomcat 4.1+ after a
 period of database
 inactivity, typically (3+ hours). I am using Struts for the
 front end and
 while the non DB access pages work fine, as soon as access
 to a page is
 requested where data is to be fetched from the database, I get the
 StackOverflow. This is not random and I can replicate the
 error. The error
 goes away however, when I try to access the same page twice
 or thrice and
 everything works fine after that.

 This error is appearing on both windows and linux, i.e.,
 Tomcat is on these
 machines, although the database, MySQL 4 is running on
 linux 9. The DB
 access is through a connection pool I set up in Struts config for my
 application using org.apache.commons.dbcp.BasicDataSource.

 The stack trace follows:
 2003-09-16 11:39:56 StandardWrapperValve[action]:
 Servlet.service() for
 servlet action threw exception
 javax.servlet.ServletException: Servlet execution threw an exception
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFi
 lter(Application
 FilterChain.java:269)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(App
 licationFilterCh
 ain.java:193)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(Standar
 dWrapperValve.ja
 va:256)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineVa
 lveContext.invok
 eNext(StandardPipeline.java:643)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPip
 eline.java:480)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
 java:995)
  at
 org.apache.catalina.core.StandardContextValve.invoke(Standar
 dContextValve.ja
 va:191)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineVa
 lveContext.invok
 eNext(StandardPipeline.java:643)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPip
 eline.java:480)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
 java:995)
  at
 org.apache.catalina.core.StandardContext.invoke(StandardCont
 ext.java:2416)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHo
 stValve.java:180
 )
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineVa
 lveContext.invok
 eNext(StandardPipeline.java:643)
  at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error
 DispatcherValve.
 java:171)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineVa
 lveContext.invok
 eNext(StandardPipeline.java:641)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
 rtValve.java:172
 )
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineVa
 lveContext.invok
 eNext(StandardPipeline.java:641)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPip
 eline.java:480)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
 java:995)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(Standard
 EngineValve.java
 :174)
  at
 org.apache.catalina.core.StandardPipeline$StandardPipelineVa
 lveContext.invok
 eNext(StandardPipeline.java:643)
  at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPip
 eline.java:480)
  at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.
 java:995)
  at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte
 r.java:223)
  at
 org.apache.coyote.http11.Http11Processor.process(Http11Proce
 ssor.java:601)
  at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand
 ler.processConne
 ction(Http11Protocol.java:392)
  at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp
 oint.java:565)
  at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru
 n(ThreadPool.jav
 a:619)
  at java.lang.Thread.run(Thread.java:534)
 - Root Cause -
 java.lang.StackOverflowError

 Any help, pointers appreciated.

 Regards,
 Vikram


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






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



[OT] RE: Stackoverflow after DB inactivity

2003-09-16 Thread Steve Raeburn
Additional info on why MySQL autoReconnect does not work when
autoCommit is false.

http://www.mail-archive.com/[EMAIL PROTECTED]/msg70196.html

Steve



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



Re: sslext can only get it to post

2003-09-15 Thread Steve Ditlinger

Yes, Tomcat's handling of the security-constraint is very complementary to
the use of sslext.  Unfortunately, unless this has changed recently, not all
containers behave in this way.

Weblogic, for instance, just creates a response that outputs a message to the
browser stating that a particular URL is available only by HTTPS. (Maybe this
has changed in 8.1, I'll check it out.)

Tomcat definitely has the superior implementation on this issue.

Steve


- Original Message - 
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Cc: Stephane Grenier [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 10:37 AM
Subject: Re: sslext can only get it to post


 On Sun, 14 Sep 2003, Max Cooper wrote:
 
  Some design changes are needed to make the switch to the https port in
  what I consider to be an acceptable manner.
 
 One avenue to explore is using one particular capability of container
 managed security, and declare a security constraint requiring SSL on a
 particular request.  Something like this:
 
   security-constraint
 web-resource-collection
   web-resource-nameCheckout Section/web-resource-name
   description
 The set of URL patterns for requests that must be submitted
 via SSL.  In order to avoid sending confidential data unencrypted,
 these patterns MUST include the page that renders the form to
 be submitted that contains that confidential data.
   /description
   !-- URL pattern for the form containing the credit card number --
   url-pattern/checkout_form.jsp/url-pattern
   !-- URL pattern for the buy it submit button --
   url-pattern/buy.do/url-pattern
 /web-resource-collection
 user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
   /security-constraint
 
 If you do this, the container will switch to HTTPS for you before the
 checkout form is rendered.  Hence, the ultimate submit of that form will
 be done over SSL.  It's up to the container to figure out what the correct
 SSL port number is (in Tomcat, you configure this with the redirectPort
 attribute on a Connector element; the default configuration for non-SSL
 on port 8080 redirects to SSL on port 8443).
 
 Note that, because there is no auth-constraint here, this particular
 security constraint does not require you to use container managed security
 for authentication -- it's only being used to do the redirect to SSL
 trick for you.
 
 Craig
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: Retrieving the ModuleConfig object

2003-09-13 Thread Steve Raeburn
Look at the Javadoc for o.a.s.Globals.MODULE_KEY

With it you can get the current module from the request, or append the
module prefix (name) to look up any module in the ServletContext.

Steve

 -Original Message-
 From: Marco Tedone [mailto:[EMAIL PROTECTED]
 Sent: September 13, 2003 2:28 AM
 To: Struts-user-list
 Subject: Retrieving the ModuleConfig object


 Hi, is it possible to retrieve a ModuleConfig object (with
 the module
 configuration information) directly from within an Action
 without any
 backwork?

 Marco




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






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



RE: Q : Calling an action via a java URL ?

2003-09-13 Thread Steve Raeburn
I haven't actually used it, but the Commons HttpClient
(http://jakarta.apache.org/commons/httpclient/index.html) might of
interest to you.

Steve

 -Original Message-
 From: Henry Voyer [mailto:[EMAIL PROTECTED]
 Sent: September 13, 2003 8:50 PM
 To: [EMAIL PROTECTED]
 Subject: Q : Calling an action via a java URL ?


 hi fellow programmers

 im trying to call a struts action via http in a java program.

 Something like URL (Action to call)

 http://localhost:8443/printHelloWorld.do

 this returns a blank page with the text Hello World

 I want to read this input from a java program using something like

URL u = new URL(notificationServiceURL);
 URLConnection uc = u.openConnection();
 uc.setDoOutput(true);
 uc.setRequestProperty(Content-Type,
 application/x-www-form-urlencoded);
 PrintWriter pw = new PrintWriter(uc.getOutputStream());

 pw.close();

 BufferedReader in = new BufferedReader(new InputStreamReader(
 uc.getInputStream()));
 String res = in.readLine()
.trim();
 in.close();

 But i keep getting some errors.
 Has someone tried this before? with parameters, properties, etc etc?

 Thanks a lot

 _
 STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
 http://join.msn.com/?page=features/junkmail


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






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



ANN: JDeveloper 10g Preview (Struts-savvy IDE)

2003-09-12 Thread Steve Muench
Anyone doing Java and Struts development should download
and checkout the new developer preview release of JDeveloper 10g.
It's a major new release with new features like:

  (*) Visual Struts Page Flow Diagramming

  (*) Visual JSP/HTML Editor

  (*) Many new Java code-level productivity features

  [Check out this developers top ten list]

  
http://radio.weblogs.com/0128037/stories/2003/08/11/topTenToysForJavaCodersIn905.html

  (*) New neutral data binding architecture and productive
  visual design time to binding any kind of front end
  to any kind of backend.

  [Checkout the article posted here for an overview:
   http://radio.weblogs.com/0118231/2003/09/08.html#a149


   (*) Much much more.

Longer list of new features is at:

http://otn.oracle.com/products/jdev/collateral/jdev10g_fo.html

Download and product tour is at:

http://otn.oracle.com/products/jdev/collateral/prodtour10g.html

Enjoy.

__
Steve Muench - Developer, Product Mgr, Java/XML Evangelist, Author
Building a Web Store with Struts and BC4J (BC4J Toy Store Demo)
http://otn.oracle.com/sample_code/products/jdev/bc4jtoystore
Simplify J2EE Development with the Oracle BC4J Framework
http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
Dive into BC4J at http://radio.weblogs.com/0118231/
Building Oracle XML Apps, http://www.oreilly.com/catalog/orxmlapp


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



RE: YASJR, Part Duex

2003-09-11 Thread Steve Raeburn
Who do they sue if the code you've written in-house is faulty?

The fact is they pay you a lot of money (not enough I'm sure ;-)) for the
benefit of your expertise. There's no difference between the stuff you
develop in-house and any open source software you use. You still need to
apply the same QA process that you would use for your own code, but you save
a lot of time (and them a lot of money) by building on others' work.

In short, their guarantee of quality comes not on a piece of paper, but in
the quality of the people they employ.

Steve

 -Original Message-
 From: Gregory F. March [mailto:[EMAIL PROTECTED]
 Sent: September 11, 2003 5:09 AM
 To: Struts Users Mailing List
 Subject: YASJR, Part Duex



 Again, thanks to all who responded.  Your replies are very helpful.

 As someone pointed out, there are hacks in MS Word and other commercial
 products, so even commercial companies are not immune from hacks.

 In this case however, MS can have a lawsuit brought against them if
 damage is done.  How do I argue the issue that we can't do the same with
 OSS with my management?

 [Yes, I know this is getting a little off topic, so feel free to shut it
 down when it goes too far.]

 Thanks!

 /greg

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

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






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



RE: YASJR, Part Duex

2003-09-11 Thread Steve Raeburn
Well I would say that software the passed QA containing malicious code was
faulty!

My point was that your company should trust you to judge the quality of the
code you're working with - wherever it comes from - and that you should have
a reasonably high degree of confidence in Struts code because:

1) You can review the code yourself.
2) Thousands of other developers also review the changes.
3) The committers review changes.
4) Only a small number of people actually have commit access.

Good luck with your project!

Steve


 -Original Message-
 From: Gregory F. March [mailto:[EMAIL PROTECTED]
 Sent: September 11, 2003 8:51 AM
 To: Struts Users Mailing List
 Subject: Re: YASJR, Part Duex



 On Sep 11, 2003, Steve Raeburn [EMAIL PROTECTED]  wrote:

  |Who do they sue if the code you've written in-house is faulty?

 Faulty code was not what I was referring to.  Malicious code, hacks,
 timebombs, etc. was.  In the case of in house maliciousness, you lose
 your job, lose benefits and legal action will be taken against you.  In
 the case of external maliciousness, restitution for damages will usually
 be sought.

 Quality is another issue, and I can defend struts pretty well on that
 front.

 In any case, I think this is digressing.  I've gotten some great points
 from all of you - thanks!!

 Cheers,

 /greg

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

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






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



RE: YASJR (Yet Another Struts Justification Request)

2003-09-10 Thread Steve Raeburn
Congratulations and thanks for evangalising Struts to your organization.

 How can I guarantee that there are no hacks, bombs, etc. in the
 Struts code or any OS code for that matter?

The clue is in the title - OPEN source :-)

If open source has a weakness it certainly is not that anyone is hiding
things in the code.

If they're worried about rogue committers -- and I'd say we're probably all
rogues ;-) -- you can monitor the struts-dev list and be notified of every
single change to the codebase as it happens. I bet you can't get that level
of reassurance from any commercial vendor.

Out of interest, what web server is your bank running its website on?
Apache, by any chance? :-)

Steve



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



RE: YASJR (Yet Another Struts Justification Request)

2003-09-10 Thread Steve Raeburn

 Nope, WLS 6.1SP4. :-(

BEA uses Struts compatability as a selling point for WLS 8.1:

Enterprise-class architecture - Implement standards-based applications
leveraging Model-View-Controller (MVC) architecture and Struts framework

http://kr.bea.com/products/workshop/features/features.shtml

Enterprise class, no less. Tell 'em BEA said it was OK :-)

Steve



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



[Announce] Enhancement added to sslext

2003-09-06 Thread Ditlinger, Steve


New release of sslext now recognizes multiple mappings for the Struts action
servlet, including the mixing of prefix and suffix mapping.  For example,
you can map *.do, *.foo, AND /do/* to the Struts action servlet.  Sslext
will recognize the mapping and create the link tag, form tag, etc. with the
appropriate specified protocol.

Thanks,
Steve Ditlinger


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



RE: [Announce] Enhancement added to sslext

2003-09-06 Thread Ditlinger, Steve
H, thanks  for brining this to my attetntion.  My email service provider
has beeen bogged down by virus and I have been missisng mail.  I'll take a
look today.
Thanks,
Steve

 -Original Message-
 From: Robert Taylor [mailto:[EMAIL PROTECTED]
 Sent: Saturday, September 06, 2003 7:43 AM
 To: Struts Users Mailing List
 Subject: RE: [Announce] Enhancement added to sslext
 
 
 Steve that's good news...but do have any idea when the following bug
 will be fixed in SecureRequestProcessor?
 
 http://sourceforge.net/tracker/index.php?func=detailaid=790963
group_id=599
67atid=492653

robert

 -Original Message-
 From: Ditlinger, Steve [mailto:[EMAIL PROTECTED]
 Sent: Saturday, September 06, 2003 3:18 AM
 To: '[EMAIL PROTECTED] '
 Subject: [Announce] Enhancement added to sslext




 New release of sslext now recognizes multiple mappings for the
 Struts action
 servlet, including the mixing of prefix and suffix mapping.  For example,
 you can map *.do, *.foo, AND /do/* to the Struts action servlet.  Sslext
 will recognize the mapping and create the link tag, form tag,
 etc. with the
 appropriate specified protocol.

 Thanks,
 Steve Ditlinger


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



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


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



RE: how to start a background process using a struts action ?

2003-09-05 Thread Steve Hall
José,

This is really a system design question rather than a Struts
specific question so I've add the [OT] to the subject.  I've seen an
implementation similar to what you're asking about.  I'm not sure if what I
can contribute will help you with your situation.  
Something to keep in mind is that you want to encapsulate the
different layers of your system from each other as much as possible.  You
want to use Struts to collect data and pass it to the lower layers of your
system for processing, then return the results to the user.  You wouldn't
want a Struts Action class doing business logic or Thread control etc.
[stepping off of the soap box]

Here's what you could do:

Process Definitions:  Create a DB table, xml doc, properties file, whatever
that contains a definition of all the processes you'll need to running.  If
these are Java classes, this data could contain the fully qualified class
name.

Process Request Queue:  Create a DB table, JMS queue or some other
persistence mechanism to queue up you process requests.

Front End:  Create your Struts front end to capture the request data and
persist it to your Process Request Queue.  

Daemon: Write a daemon class that polls your Process Request Queue and runs
the requested process.  You can get as fancy with this as you want, you
could: multi-thread it, use a Strategy Pattern (GOF) to allow it to run
different process types, integrate email as an output distribution
mechanism, etc.  All the daemon really needs to know how to do is poll your
Request Queue and when it sees a Request, run the appropriate process based
on the Process Definition.  Obviously, each Request must have an ID back to
a Process Definition along with any parameters that the process requires.
You'd run this daemon in a separate JVM, not in Tomcat's.  For performance
reasons, you may even run it on a different server than the one running
Tomcat.  If you executed your process in your Struts class you wouldn't have
this option.

I hope this  at least gives you something to think about.

Steve Hall 
Programmer Analyst 
Alterra Healthcare 
(414) 918 5636 
[EMAIL PROTECTED] 





-Original Message-
From: José Gustavo Zagato [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 12:11 PM
To: 'Struts Users Mailing List'
Subject: how to start a background process using a struts action ?


Hi Folks !

Does anyone here know if is possible to start a background
process ( like a daemon/service) using an action ? I need this feature
because the user will input a few parameters and a schedule date then
the system generate the user specific information.

Im using struts 1.1 and Toncat 4.1.18, so any tips on how can I
accomplish this task ?

Regards !

  José Gustavo Zagato Rosa
System Analyst - Atos Origin
[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This email may contain confidential protected health information.  This
information is intended only for the use of the individual or entity to
which it is addressed.  The authorized recipient of this information is
prohibited from disclosing this information to any other party unless
required to do so by law or regulation and is required to destroy the
information after its stated need has been fulfilled.  If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or action taken in reliance on the contents of this email is
STRICTLY PROHIBITED.  If you have received this email in error, please
notify the sender immediately and arrange for the return or destruction of
the contents of this email.  If you continue to receive emails from this
sender, please contact Alterra's Family Connection Hotline at 877-400-5296.

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



[OT] Test

2003-09-04 Thread Steve Apeero
Sorry testing, I have not been able to connect

Stephan

_
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es

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


FormFile object keeping ActionForm from serializing

2003-09-04 Thread Steve Apeero
I have a Action Form that contains a FormFile object that holds the uploaded 
file for an image.
When the container trys to serialize my form an NotSerializableException is 
being thrown.

I have looked at the source code and found the FormFile's baseObject 
DiskFile does not implement the serializable interface, is there a special 
reason it does not?

I searched the archives and have not found a solution to this.

I have a couple of ideas for handling this:
1.) I could make the FormFile fields in the form transient excluding them 
from the serialization process
this has some obvious problems of not serializing the FormFileObjects.

2.) Extend the DiskFile Object to extend the Serializable inteface. This 
seems like more work than
should need to be done.

My questions are:
Has any one had to do either of the ideas that I have suggested?
What are the problems associated with each of the solutions beyond the 
obvious stated above?
Does any one have any other ideas that differ from the above.

Your Ideas are very much appreciated, Than you in advance.

Stephan

_
Try MSN Messenger 6.0 with integrated webcam functionality! 
http://www.msnmessenger-download.com/tracking/reach_webcam

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


RE: Commons Versions bundled with Struts 1.1

2003-09-03 Thread Steve Raeburn
Build requirements (including jakarta-oro) are here:
  http://jakarta.apache.org/struts/userGuide/installation.html#Prerequisites

Steve
http://www.ninsky.com/struts/



 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]
 Sent: September 2, 2003 6:41 AM
 To: Struts Users Mailing List
 Subject: RE: Commons Versions bundled with Struts 1.1


 btw: Anyone have a clue as to the version for the jakarta-oro jar?
 (Its manifest doesnt say)

 -Original Message-
 From: Andrew Hill [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 2 September 2003 21:31
 To: Struts
 Subject: Commons Versions bundled with Struts 1.1


 Ive been trying to find out the versions of the commons libraries bundled
 with Struts 1.1 Final, but haven't found where its definitively documented
 (links welcome please!)

 I went through the various manifest files and got this, but Im
 not sure how
 up to date the manifests are:

 struts 1.1 (Yeh. Ok. Im pretty confident about this one... ;-)
 commons-beanutils 1.6
 commons-collections 2.1
 commons-digester 1.5
 commons-fileupload 1.0
 commons-lang 1.0
 commons-logging 1.0.3
 commons-validator 1.0.2

 Is this correct?


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


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






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



RE: [OT] Delays in list posts arriving (was [OT] Scheduling)

2003-09-01 Thread Steve Raeburn
I've been having the same problem. Most messages appear immediately but some
can take up to two days to arrive! Craig thinks it's due to the SoBig.F worm
and that makes sense, but I still don't get why it only affects a very small
number of messages.

I guess it's just one of those things. The best thing to do is just sit it
out until things get better. Just be patient if someone's post seems to be
hopelessly out of touch with the thread.

It might also help if we kept list traffic down by keeping off-topic posts
to a minimum ;-)

Steve
http://www.ninsky.com/struts/



 -Original Message-
 From: Hue Holleran [mailto:[EMAIL PROTECTED]
 Sent: September 1, 2003 12:12 PM

 Resent because message still hasn't made it to the list!

 What's going on with posts to this list - some make it in seconds - others
 take days or never appear?



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



RE: Formatting form data inside the *view* (JSP's)

2003-08-28 Thread Steve Raeburn
The Struts bean:write tag offers a format attribute (or formatKey if you
want to use a resource file).
But JSTL would be a better option if you can use it in your environment.

Steve

http://www.ninsky.com/struts/



 -Original Message-
 From: Sasha Borodin [mailto:[EMAIL PROTECTED]
 Sent: August 27, 2003 8:43 AM
 To: Struts Users Mailing List
 Subject: Formatting form data inside the *view* (JSP's)


 Thought I'd throw this out in the middle of the week again...

 Kind of a conceptual question:  how do you format Dates, Numbers,
 Currencies, etc. for *form fields* inside the JSP?

 I know I could do in in the ActionForm getters, but:
 1.  I don't know the locate of the user at that point
 2.  I'd have to recompile the ActionForm every time I want to make a
 change to the *view* - seems like a bad practice.

 What I'm looking to achieve is something similar to fmt:format JSTL tag,
 where you can specify a format mask, or even a format style defined
 elsewhere.

 Thanks,

 -Sasha

 On 8/22/03 12:30, Sasha Borodin [EMAIL PROTECTED] wrote:

  I would like to state a basic assumption I deduced in learning
 struts, then
  pose a question.
 
  Assumption:  ActionForm property getters and setters should
 return and take
  Strings.
 
  My initial impulse was to try passing the actual data types
 (Dates, Numbers,
  etc.); however, the Struts mechanism seems to pass Strings to
 the ActionForm
  setter methods on form submission (which throws a conversion
 Exception of
  course). Then I tried making the setters take Strings, and
 getters return
  the actual data types, but this seemed to confuse the introspection
  mechanism; plus I didn't see any way to apply formatting inside the
  html:text tags (like you can in JSTL's fmt:format tags).
 
  Question:  How does one handle formatting data (custom
 formatting or i18n)
  for (pre/re)population of a form?
 
  Ex.:  An update form; a user's information is loaded from the
 database into
  classes (Strings, Dates, Numbers, etc.).  If you want to format
 this data,
  you have to do it in the Model, as the ActionForm only takes and gives
  Strings - which seems to be a Bad Practice.  Even if you had additional
  special setters for the explicit purpose of populating the
 ActionForm from
  original data types, you still don't know what Locale the
 client is from.
 
  Is my assumption incorrect?  Is there a basic flaw in my
 understanding of
  the use of ActionForm?  Or there an actual short-coming, and workaround?
 
  In short, How Can You Format Data For Strut's Form Tags Inside
 The Actual
  JSP :-) ?
 
  Thank you for any input.
 
  -Sasha
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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






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



RE: J2EE IDE

2003-08-28 Thread Steve Raeburn
There's a wiki page for this topic that might be a better place to post IDE
reviews that on the mailing list.

http://nagoya.apache.org/wiki/apachewiki.cgi?MyFavoriteIDEAndWhy

Steve


 -Original Message-
 From: Butt, Dudley [mailto:[EMAIL PROTECTED]
 Sent: August 27, 2003 8:15 AM
 To: 'Struts Users Mailing List'
 Subject: RE: J2EE IDE


 I use IntelliJ, really fast to get up and running, I believe
 eclipse is really good, but heard many complain that its hard to
 get up and running. But
 then again, there's a lot of support for it nowadays. Just pick
 one or two and try them out, one of them must be IntelliJ

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 27, 2003 8:46 AM
 To: [EMAIL PROTECTED]
 Subject: J2EE IDE


 Can someone please suggest me a free J2EE IDE suitable for development of
 webapps using STRUTS. I know of some IDE's like the FORTE, ECLIPSE,
 NETBEANS. However I wanted to ckeckout if anyone has already evaluated any
 of these since I am not sure which one is easy to use and has reasonably
 good features as well.

 Regards
 Sreekant G




 NOTICE:

 This message contains privileged and confidential information intended
 only for the person or entity to which it is addressed.
 Any review, retransmission, dissemination, copy or other use of, or
 taking of any action in reliance upon this information by persons or
 entities other than the intended recipient, is prohibited.

 If you received this message in error, please notify the sender
 immediately by e-mail, facsimile or telephone and thereafter delete the
 material from any computer.

 The New Africa Capital Group, its subsidiaries or associates do not
 accept liability for any personal views expressed in this message.

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






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



RE: Validator and DispatchAction

2003-08-28 Thread Steve Raeburn
Ok, I see one potential problem. Your methods are declared as throwing
ServletException and IOException, but for Struts 1.1 they should be declared
as throwing Exception.

 public ActionForward create(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
  ...

should be
throws Exception {


Try changing that and see how you get on.

Steve
http://www.ninsky.com/struts/





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



RE: DynaValidator and two fields with identical content

2003-08-27 Thread Steve Raeburn
Take a look at the examples here http://www.ninsky.com/struts/
The validator example shows one way of doing exactly this. (It's very
similar to David's example).

If you can use the nightly build, then the validwhen rule can alsoe compare
fields.

Steve


 -Original Message-
 From: Jiri Chaloupka [mailto:[EMAIL PROTECTED]
 Sent: August 26, 2003 2:14 PM
 To: Struts Users Mailing List
 Subject: DynaValidator and two fields with identical content


 Hallo,
 I have registration form

 username: input name=usr
 password: input name=pwd
 password again: input name=pwd2

 how I can chceck if pwd contains identical content as pwd2 in
 DynaValidator layer?
 Does anybody has this extension for validator-rules?

 Thanks, Jiri


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






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



RE: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
This is the relevant part of the message: Action[/tr518page1] does not
contain method named error

Does your DispatchAction class, com.ewd.biztax.actions.Tr518page1Action,
contain a method named error?

Steve
http://www.ninsky.com/struts/



 -Original Message-
 From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
 Sent: August 27, 2003 8:43 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Validator and DispatchAction


 Hi Nagi,

 Here is the error I'm getting while using validator with
 DispatchAction:

 [ERROR] DispatchAction - -Action[/tr518page1] does not contain method
 named error java.lang.NoSuchMethodException:
 errorjava.lang.NoSuchMethodException: error
   at java.lang.Class.getMethod0(Native Method)
   at java.lang.Class.getMethod(Class.java:928)
   at
 org.apache.struts.actions.DispatchAction.getMethod(DispatchAction.
 java:334)
   at
 org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAc
 tion.java:266)
   at
 org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
   at
 org.apache.struts.action.RequestProcessor.processActionPerform(Req
 uestProcessor.java:484)
   at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor
 .java:274)
   at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
   at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Serv
 letManager.java:827)
   at
 com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Stri
 ctLifecycleServlet.java:167)
   at
 com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifec
 ycleServlet.java:297)
   at
 com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Stric
 tLifecycleServlet.java:110)
   at
 com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManag
 er.java:472)
   at
 com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(
 ServletManager.java:1012)
   at
 com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Se
 rvletManager.java:913)
   at
 com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebApp
 Dispatch(WebAppRequestDispatcher.java:678)
   at
 com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Web
 AppRequestDispatcher.java:331)
   at
 com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebA
 ppRequestDispatcher.java:117)
   at
 com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
   at
 com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebA
 ppInvoker.java:239)
   at
 com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocatio
 n(CachedInvocation.java:67)
   at
 com.ibm.servlet.engine.invocation.CacheableInvocationContext.invok
 e(CacheableInvocationContext.java:106)
   at
 com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(S
 ervletRequestProcessor.java:154)
   at
 com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(O
 SEListener.java:315)
   at
 com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpCon
 nection.java:60)
   at
 com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection
 .java:323)
   at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
   at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)

 [8/27/03 11:16:41:759 EDT] 268bd254 WebGroup  X SRVE0026E: [Servlet
 Error]-[action]: com.ibm.servlet.engine.webapp.WebAppErrorReport:
 Action[/tr518page1] does not contain method named error
   at
 com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(W
 ebAppDispatcherResponse.java:93)
   at
 org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAc
 tion.java:272)
   at
 org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
   at
 org.apache.struts.action.RequestProcessor.processActionPerform(Req
 uestProcessor.java:484)
   at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor
 .java:274)
   at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
   at
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Serv
 letManager.java:827)
   at
 com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Stri
 ctLifecycleServlet.java:167)
   at
 com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifec
 ycleServlet.java:297)
   at
 com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Stric
 tLifecycleServlet.java:110

RE: How to get a String object from request scope.

2003-08-27 Thread Steve Raeburn
Just reference your string by its name. e.g. 

  bean:write name=MY_NAME/

Will display the value of the String.

Steve 
http://www.ninsky.com/struts/


 -Original Message-
 From: Fumitada Hattori [mailto:[EMAIL PROTECTED]
 Sent: August 27, 2003 9:02 AM
 To: [EMAIL PROTECTED]
 Subject: How to get a String object from request scope.
 
 
 Hi gurus.
 
 I got one Action servlet class and one jsp.
 If the action servlet is successfully processed, it's forwarded to the
 jsp.
 In the Action servlet, there's a following statement.
 
 
 
 String my_name = JACK;
 request.setAttributte(MY_NAME,my_name);
 return (mapping.findForward(success));
 
 
 Now I wanna get the MY_NAME property with a struts tag in the jsp 
 which is redirected from the Action servlet.
 I don't know how to make it since the instance(my_name) in the action 
 servlet is a just String Object...not a javabean.
 
 Thanks in advance.
 
 wolfgang
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



RE: J2EE IDE

2003-08-27 Thread Steve Raeburn
There's a wiki page for this topic that might be a better place to post IDE
reviews that on the mailing list.
http://nagoya.apache.org/wiki/apachewiki.cgi?MyFavoriteIDEAndWhy

(I sent this already but it didn't make it to the list. The original may
show up in a few hours, so sorry if this is a duplicate).

Steve





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



RE: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
The error message you are receiving indicates that DispatchAction is trying
to find a method named 'error' in your class and it can't find one.

There's really only two reasons that could be:
  1. There should be a method named 'error' and there isn't one.
  2. There isn't supposed to be one but somehow you are attempting
 to call it with a URL like this:
   http://localhost:8080/myapp/tr518page1.do?dispatch1=error

Are you dynamically generating the URL? If so, that might be the problem if
it is generating an error returning a string like error=.

For what it's worth, I copied your code and it dispatches perfectly well
here. (BTW my previous message about Exceptions was a red herring. Although
you should be throwing Exception, I tried it as you had written and it
works.)

Steve
http://www.ninsky.com/struts/



 -Original Message-
 From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
 Sent: August 27, 2003 9:58 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: RE: Validator and DispatchAction


 Hi Steve,

 I don't have a method named error in my action class. I don't need
 one. Why is it looking for such a method in my action class? Help me
 please. I have to decide soon whether to go with validator framework or
 not.

 Thank you very much,
 Venkat

  [EMAIL PROTECTED] 08/27/03 12:05PM 
 This is the relevant part of the message: Action[/tr518page1] does
 not
 contain method named error

 Does your DispatchAction class,
 com.ewd.biztax.actions.Tr518page1Action,
 contain a method named error?

 Steve
 http://www.ninsky.com/struts/



  -Original Message-
  From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
  Sent: August 27, 2003 8:43 AM
  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: Validator and DispatchAction
 
 
  Hi Nagi,
 
  Here is the error I'm getting while using validator with
  DispatchAction:
 
  [ERROR] DispatchAction - -Action[/tr518page1] does not contain
 method
  named error java.lang.NoSuchMethodException:
  errorjava.lang.NoSuchMethodException: error
  at java.lang.Class.getMethod0(Native Method)
  at java.lang.Class.getMethod(Class.java:928)
  at
  org.apache.struts.actions.DispatchAction.getMethod(DispatchAction.
  java:334)
  at
  org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAc
  tion.java:266)
  at
 
 org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
  at
  org.apache.struts.action.RequestProcessor.processActionPerform(Req
  uestProcessor.java:484)
  at
  org.apache.struts.action.RequestProcessor.process(RequestProcessor
  .java:274)
  at
 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
  at
 
 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  com.ibm.servlet.engine.webapp.StrictServletInstance.doService(Serv
  letManager.java:827)
  at
  com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(Stri
  ctLifecycleServlet.java:167)
  at
  com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifec
  ycleServlet.java:297)
  at
  com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(Stric
  tLifecycleServlet.java:110)
  at
  com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManag
  er.java:472)
  at
  com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(
  ServletManager.java:1012)
  at
  com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(Se
  rvletManager.java:913)
  at
  com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebApp
  Dispatch(WebAppRequestDispatcher.java:678)
  at
  com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(Web
  AppRequestDispatcher.java:331)
  at
  com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebA
  ppRequestDispatcher.java:117)
  at
 
 com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:134)
  at
  com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebA
  ppInvoker.java:239)
  at
  com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocatio
  n(CachedInvocation.java:67)
  at
  com.ibm.servlet.engine.invocation.CacheableInvocationContext.invok
  e(CacheableInvocationContext.java:106)
  at
  com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(S
  ervletRequestProcessor.java:154)
  at
  com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(O
  SEListener.java:315)
  at
  com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpCon
  nection.java:60)
  at
  com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection
  .java:323)
  at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
  at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
 
  [8/27/03 11:16:41:759 EDT] 268bd254 WebGroup  X SRVE0026E

RE: Another missing attribute in html-el

2003-08-27 Thread Steve Raeburn
When I try adding it, I get a JSP compiler error - Attribute accesskey
invalid according to the specified TLD.

I can only suggest that you still have an old copy of struts.jar. Try
starting with a fresh copy of struts-blank.war from the Struts 1.1
distribution and try that.

Steve
http://www.ninsky.com/struts/


 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: August 27, 2003 10:03 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Another missing attribute in html-el


 One last word on accesskey in html:select

 My application currently has a page that uses three html:select... tags
 that have an accesskey attribute. These all work just fine.
 Then there are
 four html:text... tags, then a logic:iterate. Inside the iterate loop
 are six html..hidden.. tags, then html:select..., html:text...,
 html:text..., html:select

 The first html:select... in the loop had an accesskey
 attribute. I changed
 all four of the non-hidden tags in the loop to their html-el..
 counterparts. That's when I started having problems with accesskey.

 Currently, the first three selects are still there and still working just
 fine. The html-el:select... in the loop no longer has its accesskey
 attribute, I had to remove it.

 So I have three html:select.. tags with accesskey, and two
 html-el:select... tags without accesskey tags. I have no
 earthly idea why
 this works. I've examined the struts-html.tld in my app, and it does not
 have an accesskey attribute in the select tag. But the page works.

 --
 Tim Slattery
 [EMAIL PROTECTED]


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






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



RE: Html-el:hidden tag!?!?!

2003-08-26 Thread Steve Raeburn
That was the first answer that popped into my head, but the styleId
attribute generates an (X)HTML id attribute which is not a visual style
attribute at all, despite the Struts attribute name, but an element
identifier within the (X)HTML document.

I think the fact that it's missing is just an oversight in the tag library
descriptor.

If you're using a local copy of the struts-html-el.tld file (not the one in
struts-el.jar), you may be able to add the attribute there as a workaround.

Add this to the html-el:hidden tag entry:
  attribute
  namestyleId/name
  requiredfalse/required
  rtexprvaluetrue/rtexprvalue
  /attribute

Disclaimer: I haven't tested this workaround so it may not work.

I'll take a look and fix it in the nightly build when I get a chance.

Steve



 -Original Message-
 From: David Friedman [mailto:[EMAIL PROTECTED]
 Sent: August 25, 2003 3:27 PM
 To: Struts Users Mailing List
 Subject: RE: Html-el:hidden tag!?!?!


 I'll go with the logical answer of:

 It's a hidden form tag, so there is no point
 in having a visual style for a non-visible element.

 Regards,
 David

 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 25, 2003 1:37 PM
 To: Struts User List ([EMAIL PROTECTED])
 Subject: Html-el:hidden tag!?!?!


 Why is it that the html-el:hidden tag has no styleId attribute?


 --
 Tim Slattery
 [EMAIL PROTECTED]


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


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






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



RE: Struts custom tags tutorial : urgent!!

2003-08-26 Thread Steve Raeburn
I do appreciate that when you are completely new to a subject it can be
difficult to know where to look. However, you'll get a much more sympathetic
response if you demonstrate that you have at least tried to find things out
for yourself before asking for help.

Start with the Struts web site:
 - http://jakarta.apache.org/struts/userGuide/index.html
 - http://jakarta.apache.org/struts/resources/tutorials.html
 - http://jakarta.apache.org/struts/resources/examples.html

And also try Google:
 - http://www.google.com/search?q=Struts+tutorial
 - http://www.google.com/search?q=Struts+examples

Also, there are at least seven books specifically on Struts and several
others that offer some coverage.

rant to=everyone that uses URGENT!! to get attention priority=URGENT!!
  Flagging your messages as URGENT!! gives the impression that you somehow
  think your problem is so important that others should stop what they are
  doing and tend to your needs. In reality, URGENT!! tends to get your
  message ignored.

  Please, don't use URGENT!! unless your house is on fire. And even then
  you'd probably be better off calling the fire service than emailing me :-)
/rant


Steve

http://www.ninsky.com/struts/


 -Original Message-
 From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED]
 Sent: August 25, 2003 10:30 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts custom tags tutorial : urgent!!


 Hi,
 I have a JSP page in which I am supposed to add content
 dynamically based on
 some logic. I came to know that using custom struts tags in the
 jsp page can
 aid in making the presentation logic modular. However I have no idea of
 custom Struts tags. Can some one suggest a good tutorial to cover up this
 portion as quickly as possible?
 Thanks in advance

 Seshadhri Srinivasan


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






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



RE: Struts custom tags tutorial

2003-08-26 Thread Steve Raeburn
In addition to the other resources I listed, you should take a look at JSTL:
  http://java.sun.com/products/jsp/jstl/

The reference implementation for JSTL is at Jakarta taglibs:
  http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

In particular, look at the iteration tag c:forEach which is roughly
equivalent to Struts logic:iterate tag.
Both can be used to generate your result table by iterating over a
collection.

For example, using JSTL:
If 'widgetResults' is the name of a Collection of Widgets in some scope
(page, request, session, application) then you could use the JSTL tags in
the following extract to display a table containing the Widget details:

%@ taglib uri=http://java.sun.com/jstl/core; prefix=c %
%@ taglib uri=http://java.sun.com/jstl/fmt; prefix=fmt %

...
c:if test=${empty widgetResults}
  pNo widgets found./p
/c:if

c:if test=${not empty widgetResults}
  table
  tr
thSKU/th
thColor/th
thSize/th
thDescription/th
thPrice/th
  /tr
  c:forEach var=widget items=${widgetResults}
  tr
tdc:out value=${widget.SKU}//td
tdc:out value=${widget.color}//td
tdc:out value=${widget.size}//td
tdc:out value=${widget.description}//td
tdfmt:formatNumber type=currency value=${widget.price}//td
  /tr
  /c:forEach
/table
/c:if
...

This will print out a row in the table for each Widget in your Collection.

JSTL requires JSP 1.2 or later and you should use it in preference to the
Struts tag libraries where you can.

Steve

http://www.ninsky.com/struts/



 -Original Message-
 From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED]
 Sent: August 25, 2003 11:51 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Struts custom tags tutorial


 Hi Steve,
 Let me clarify:
   I know some of the basic concepts of struts and I have been using
 things like the Action class, the Form class etc. But the point is, after
 having finished the work on the backend logic, I have to present
 my data in
 the form of tables on the page. Now the table dimensions, the
 colours used,
 etc. can vary based on the data generated. So I wanted to use
 custom Struts
 tags on the page where the table has to be generated and displayed. Then I
 want to put my code corresponding to these struts tags else
 where. This way
 the logic to display the data will not be there on the JSP page.
 This is my
 problem. I have tried to get the right tutorial for this but my search has
 noy yielded the right results. Can you please help me.

 Thanks,
 Seshadhri Srinivasan




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



RE: Database Pooling and Factory Bean

2003-08-26 Thread Steve Raeburn
This might give you a start,
http://jakarta.apache.org/struts/faqs/database.html

However, I prefer not to involve Struts in the data access layer, so these
are also well worth a look:
- Hibernate http://hibernate.bluemars.net/
- Ibatis http://www.ibatis.com/

Rick Reumann has recently added an Ibatis tutorial which looks good
http://www.reumann.net/do/struts/ibatisLesson1

Steve
http://www.ninsky.com/struts/



 -Original Message-
 From: greg [mailto:[EMAIL PROTECTED]
 Sent: August 25, 2003 11:09 PM
 To: 'Struts Users Mailing List'
 Subject: Database Pooling and Factory Bean


 Ok, here is the question.

 I have been reading the doucmentation of struts and some books that
 I have gotten my hand on.  I think I understand most of the framework
 stuff. Now I would like to be able to incorporate database resource
 to my site using pooling resources and I would like to have a
 factory entity that would produce specific business objects
 on request.

 How do I create persistant entity that would be available to
 the framework's action classes?

 How can I incorporate database pooling into that?

 Thanks.

 Greg


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






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



RE: Java Question

2003-08-26 Thread Steve Raeburn
This question was asked and *answered* yesterday.

http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
he.orgmsgNo=86724

Is there any reason you are repeating the it?

Steve

 -Original Message-
 From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED]
 Sent: August 24, 2003 11:21 AM
 To: [EMAIL PROTECTED]
 Subject: Java Question


 I've been trying to compile my BLB (Business Logic Bean) and have
 been getting errors during compilation.  I haven't a clue as to
 how I could debug this.  Any assistance would be appreciated.

 Thanks in advance.

 - Mitesh

...



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



RE: Checkboxes

2003-08-26 Thread Steve Raeburn
Atachments don't make it through the list, Mike.

Best bet would be to make your file available on a publicly accessible
website and post the link, or if it's small enough, post the text in the
body of your message.

Steve


 -Original Message-
 From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
 Sent: August 25, 2003 12:25 PM
 To: Struts Users Mailing List
 Subject: RE: Checkboxes


 The attached JSP may help you, I posted it a couple weeks ago to
 help solve
 a similar problem.

 HTH,
 mike jasnowski

 -Original Message-
 From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 25, 2003 4:58 AM
 To: Struts Users Mailinglist
 Subject: Checkboxes


 Hi,
 I have the following problem:

 I have a list of 71 Checkboxes and want to have one checkbox to select all
 of them at once. This works fine but I cannot uncheck this checkbox if it
 was checked once in order to uncheck all other checkboxes.

 Can anybody help me on this. Any code samples would be very helpful.

 Thanks in advance,

 Filip








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



RE: Another missing attribute in html-el

2003-08-26 Thread Steve Raeburn
accesskey is not a valid attribute for the select element (See
http://www.w3.org/TR/html4/sgml/loosedtd.html).
It's not on the html:select tag either.

Also re your earlier message, I took a look at the html-el:hidden tag for
the the styleId attribute. It has already been added to the source since
1.1. There's also a styleClass attribute but I suspect that's a little less
useful ;-)

If you download the nightly build you'll able to use it. Or wait for 1.2
which should be along soon.

Steve
http://www.ninsky.com/struts/


 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: August 26, 2003 7:35 AM
 To: Struts User List ([EMAIL PROTECTED])
 Subject: Another missing attribute in html-el


 The html-el:select... tag does not have an accesskey
 attribute. I tried
 adding the attribute to the struts-html-el.tld file, and got this error
 message:

 Error in using tag library uri='/WEB-INF/struts-html-el.tld'
 prefix='html-el': The Tag class
 'org.apache.strutsel.taglib.html.ELSelectTag' has no setter method
 corresponding to TLD declared attribute 'accesskey'



 --
 Tim Slattery
 [EMAIL PROTECTED]


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






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



RE: Another missing attribute in html-el

2003-08-26 Thread Steve Raeburn
!ENTITY % coreattrs
 id  ID #IMPLIED  -- document-wide unique id --
  class   CDATA  #IMPLIED  -- space-separated list of classes --
  style   %StyleSheet;   #IMPLIED  -- associated style info --
  title   %Text; #IMPLIED  -- advisory title --
  

!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector --
!ATTLIST SELECT
  %attrs;  -- %coreattrs, %i18n, %events --
  nameCDATA  #IMPLIED  -- field name --
  sizeNUMBER #IMPLIED  -- rows visible --
  multiple(multiple) #IMPLIED  -- default is single selection --
  disabled(disabled) #IMPLIED  -- unavailable in this context --
  tabindexNUMBER #IMPLIED  -- position in tabbing order --
  onfocus %Script;   #IMPLIED  -- the element got the focus --
  onblur  %Script;   #IMPLIED  -- the element lost the focus --
  onchange%Script;   #IMPLIED  -- the element value was changed --
  %reserved;   -- reserved for possible future
use --
  

No accesskey.

http://jakarta.apache.org/struts/userGuide/struts-html.html#select

No access key.

I'm not denying that I could be wrong. Could you tell me what version of the
taglibs you are using and what version of the HTML or XHTML dtd you are
referring to?

Steve

http://www.ninsky.com/struts/


 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: August 26, 2003 11:25 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Another missing attribute in html-el




  -Original Message-
  From: Steve Raeburn [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 26, 2003 2:19 PM
  To: Struts Users Mailing List
  Subject: RE: Another missing attribute in html-el
 
 
  accesskey is not a valid attribute for the select element
  (See http://www.w3.org/TR/html4/sgml/loosedtd.html).
  It's not on the html:select tag either.

 Yes it is valid for the select... HTML tag, and yes it is valid for
 html:select I was using it on an html:select.. tag, and when I
 switched that tag to html-el:select.. I got the error message.


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






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



RE: Another missing attribute in html-el

2003-08-26 Thread Steve Raeburn
The following elements support the accesskey attribute: A, AREA, BUTTON,
INPUT, LABEL, and LEGEND, and TEXTAREA.
http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#adef-acces
skey

I'm not quite sure *why* select does not have an accesskey, but it
definitely doesn't.

Looking back at the source, there *was* an accesskey attribute but it was
removed before 1.1 Beta 3. This explains more -
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13337

Check that you actually are running the release version of 1.1 and you don't
have any old jar or .tld files hanging around.

Steve
http://www.ninsky.com/struts/


 -Original Message-
 From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
 Sent: August 26, 2003 12:34 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Another missing attribute in html-el

 That's insane! I started using the accesskey attribute with select in
 whatever Struts version came before version 1.1. It's in HTML4.0, and W3C
 DOM Level 1 (according to MSDN, which says IE has known about it since
 IE4.0). And it is beyond question in Struts 1.1!

 --
 Tim Slattery
 [EMAIL PROTECTED]


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






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



RE: Struts-example database

2003-08-25 Thread Steve Raeburn
The example application defines a custom plug-in that is initialised at
start-up and loads the database and stores it in the ServletContext
(application scope).

struts-config.xml:
  plug-in
className=org.apache.struts.webapp.example.memory.MemoryDatabasePlugIn
set-property property=pathname value=/WEB-INF/database.xml/
  /plug-in

MemoryDatabasePlugIn.java
  servlet.getServletContext().setAttribute(Constants.DATABASE_KEY,
database);

Constants.java
  public static final String DATABASE_KEY = database;

Plug-ins are a common way to initialise application resources. Another way,
that requires at least a Servlet 2.3 container would be to implement a
ServletContextListener.

Steve

http://www.ninsky.com/struts/



 -Original Message-
 From: Derrick Brooks [mailto:[EMAIL PROTECTED]
 Sent: August 24, 2003 3:43 PM
 To: [EMAIL PROTECTED]
 Subject: Struts-example database


 I just downloaded struts 1.1 binary and loaded the struts-example into
 tomcat and it works fine.

 My question is I do not understand when and how the database is loaded in
 the index.jsp. There is a tag that reads:

 logic:notPresent name=database scope=application

 But I do not see the database name in the struts-config or web.xml file.
 In the tour.htm file it talks about a DatabaseServlet that I can
 not seem to
 find (I guess it was takin out).

 Thanks for the help,

 Derrick

 (Sorry if this is the second time you received this message. I do
 not think
 my first post went through.)



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






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



RE: no getter method found

2003-08-19 Thread Ditlinger, Steve
public String getLastname(){}  Note the capital L

 -Original Message-
 From: Mehran Zonouzi [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 19, 2003 6:55 AM
 To: [EMAIL PROTECTED]
 Subject: no getter method found
 
 
 I have the below in my jsp page
 
 Last Name: html:text property=lastname/br
 
 and this in my ActionForm subclass
 
 private String lastName = null;
 
   public String getlastname(){
  return this.lastName;
   }
 
   public void setlastname( String lastName){
  this.lastName = lastName;
   }
 
 But I keep getting the no gett found error message...
 No getter method for property lastname of bean 
 org.apache.struts.taglib.html.BEAN
 
 
 What should the getter method be called?
 
 
 --
 
 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.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: no getter method found

2003-08-19 Thread Ditlinger, Steve

This question comes up often enough that it probably warrants a short lesson
in JavaBeans.

If a property is named lastname, the corresponding getter should be
named getLastname() and the setter should be named setLastname().  What's
more the parameter type for the setter must match the return type of the
getter.  Please note:  the name of the instance variable used for storing
the lastname property value *is irrelevent*.  The property name is derived
from the names of the getter  setter methods alone (, unless you write a
BeanInfo class, in which case, you get to make up your own rules.)  For the
sake of clarity, we often name our instance variables with the same name of
the properties, but this is not required.

For instance:

public class MyForm extends ActionForm{
  private String lastName = null;
  
public String getLastname(){
   return this.lastName;
}
  
public void setLastname( String lastName){
   this.lastName = lastName;
}
}

is the same as:

public class MyForm extends ActionForm{
  private String someFreakyName = null;
  
public String getLastname(){
   return this.someFreakyName ;
}
  
public void setLastname( String lastName){
   this.someFreakyName = lastName;
}
}

In both cases, the property name is lastname, and so the proper tag usage
is html:text property=lastname/.

For reference, see section 8.3 of the JavaBeans specification.
http://java.sun.com/products/javabeans/docs/spec.html

Steve


 -Original Message-
 From: Ditlinger, Steve [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 19, 2003 11:32 AM
 To: 'Struts Users Mailing List'
 Subject: RE: no getter method found
 
 
 public String getLastname(){}  Note the capital L
 
  -Original Message-
  From: Mehran Zonouzi [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 19, 2003 6:55 AM
  To: [EMAIL PROTECTED]
  Subject: no getter method found
  
  
  I have the below in my jsp page
  
  Last Name: html:text property=lastname/br
  
  and this in my ActionForm subclass
  
  private String lastName = null;
  
public String getlastname(){
   return this.lastName;
}
  
public void setlastname( String lastName){
   this.lastName = lastName;
}
  
  But I keep getting the no gett found error message...
  No getter method for property lastname of bean 
  org.apache.struts.taglib.html.BEAN
  
  
  What should the getter method be called?
  
  
  --
  
  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.
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



  1   2   3   4   5   6   7   >