Re: Is there a clean way to also get non-value names from a form????

2002-04-23 Thread Vladimir Levin

My approach to this has been as follows:

Cache the key-value pairs associated with the lookup table. My
approach is to have a bean in the servlet session that keeps
these values.

In the results page, use a custom tag which iterates through the
lookup table keys until it matches the key in the result, then
grab the value associated with that key and display it, e.g.



This would extract the countryCode for a corporation, e.g. CA
and match it against the list of pairs in countryCodeLookup
(this would store CA -> Canada, US -> United States, etc...), then
display the matched value, so Canada would end up being displayed
if the countryCode was CA.

>From: Rick Reumann <[EMAIL PROTECTED]>
>Reply-To: Rick Reumann <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Is there a clean way to also get non-value names from a form
>Date: Tue, 23 Apr 2002 23:47:58 -0400
>MIME-Version: 1.0
>Received: from [192.18.49.131] by hotmail.com (3.2) with ESMTP id 
>MHotMailBE8F7627002640043721C0123183C5850; Tue, 23 Apr 2002 20:48:55 -0700
>Received: (qmail 11808 invoked by uid 97); 24 Apr 2002 03:48:51 -
>Received: (qmail 11797 invoked from network); 24 Apr 2002 03:48:51 -
>From struts-user-return-32868-aphelionx Tue, 23 Apr 2002 20:50:09 -0700
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>List-Unsubscribe: 
>List-Subscribe: 
>List-Help: 
>List-Post: 
>List-Id: "Struts Users Mailing List" 
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-Mailer: The Bat! (v1.60c) Personal
>X-Priority: 3 (Normal)
>Message-ID: <[EMAIL PROTECTED]>
>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>
>Sorry if this isn't really a struts specific problem per se, but I've
>encountered it now while rewriting an application with struts...
>
>Using struts tags picture the output being generated like:
>
>DOG
>CAT
>FROG
>
>Picture several of these multiple select drop downs that are used to
>generate a search based on the criteria selected. The problem is on
>the search results page I also want to include a display of the
>options selected for the different search criteria. I'd be interested
>in hearing how others have accomplished this task using struts.
>
>Before using struts I wasn't populating a form bean so what I would do
>is when the values were created I would create values like:
>1_DOG
>2_CAT
>etc
>
>I would then parse out the first numbers for use in the query and then
>use everything after the first underscore to build an array for
>displaying search selections.
>
>In my current application the option lists are generated dynamically
>from ArrayLists of particular beans. If the situation was as simple as
>above I'd just have a nice little HashMap stored somewhere where I
>could have the key be the number and the value by the String for the
>animal. Unfortunately a Map doesn't really work well for this as the
>ArrayList of beans coming from the business logic contain a lot more
>than just two fields.
>
>I don't really like this idea much but I'm thinking what I'll have to
>do is create extra fields in the form bean to represent this
>concatenated value and when it the setter is called it will also parse
>what it needs to and set the other fields. Is there maybe a better to
>do accomplish this task?
>
>Thanks for any input.
>
>--
>
>Rick
>
>mailto:[EMAIL PROTECTED]
>
>"Maybe in order to understand mankind, we have to look at the word
>itself: 'Mankind'. Basically, it's made up of two separate words -
>'mank' and 'ind'. What do these words mean ? It's a mystery, and
>that's why so is mankind."
>   -Jack Handey
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Is there a clean way to also get non-value names from a form????

2002-04-23 Thread Rick Reumann

Sorry if this isn't really a struts specific problem per se, but I've
encountered it now while rewriting an application with struts...

Using struts tags picture the output being generated like:

DOG
CAT
FROG

Picture several of these multiple select drop downs that are used to
generate a search based on the criteria selected. The problem is on
the search results page I also want to include a display of the
options selected for the different search criteria. I'd be interested
in hearing how others have accomplished this task using struts.

Before using struts I wasn't populating a form bean so what I would do
is when the values were created I would create values like:
1_DOG
2_CAT
etc

I would then parse out the first numbers for use in the query and then
use everything after the first underscore to build an array for
displaying search selections.

In my current application the option lists are generated dynamically
from ArrayLists of particular beans. If the situation was as simple as
above I'd just have a nice little HashMap stored somewhere where I
could have the key be the number and the value by the String for the
animal. Unfortunately a Map doesn't really work well for this as the
ArrayList of beans coming from the business logic contain a lot more
than just two fields.

I don't really like this idea much but I'm thinking what I'll have to
do is create extra fields in the form bean to represent this
concatenated value and when it the setter is called it will also parse
what it needs to and set the other fields. Is there maybe a better to
do accomplish this task?

Thanks for any input.

--

Rick

mailto:[EMAIL PROTECTED]

"Maybe in order to understand mankind, we have to look at the word
itself: 'Mankind'. Basically, it's made up of two separate words -
'mank' and 'ind'. What do these words mean ? It's a mystery, and
that's why so is mankind."
  -Jack Handey


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Forward after

2002-04-23 Thread @Basebeans.com

Subject: Re: Forward after 
From: "Dave Barber" <[EMAIL PROTECTED]>
 ===
One thing we've done is to have our *Actions* all extend a base Action class
(ie. SecuredAction).

SecureAction extends Action {
  public ActionForward perform( ServletRequest, etc...) {
// check security, forward to login page, etc...
if (checkSecurity() ) {
return handleRequest( request, ...);
}
  }

  public ActionForward handleRequest( ServletRequest, etc...) {
// subclasses should override to do something
  }
}

This way, you don't have to muck around with the servlet, and you kind of
stay in the "controller" or command framework.  Even better, you can
subclass from different "base" actions to get different behavior like
"Secured", "Logged", etc, actions.

--Dave

=
David Barber
SolanaSoft
JForms - Rapid Struts-based Web forms development
www.solanasoft.com
=

> I have some pages which require a user to be logged in
> and some which do not.  If the  tag
> determines that there is no user logged in, the user
> is forwarded to the login page.  I'd like to remember
> where the user came from and forward them there after
> a successful authentication.  I'm sure there are
> multiple ways of doing this and I would like some
> advice.  Thanks, Andrew Timm




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Forward after

2002-04-23 Thread Brett Porter

I actually extended ActionServlet and intercept each request. From there, I
can check whether we are restricting certain paths, then check the login
cookie for the necessary permissions. If they haven't logged in, I forward
to the login page with the requested URL in an attribute.

This might not be the best approach. Can anyone suggest a better way while
still having it in the controller? Extending ActionServlet poses problems
for later if we start using Tiles with definitions when struts 1.1 is
released. Is there a way to plugin to the action servlet at the doPost/doGet
level as I currently do without extending it?

Whatever the case, this code should certainly reside in the controller, not
in a tag which is processed in the view because whatever the action is
doing, it has already processed it before checking auth.

- Brett

-Original Message-
From: Andy Timm [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 24 April 2002 2:13 AM
To: [EMAIL PROTECTED]
Subject: Forward after 


I have some pages which require a user to be logged in
and some which do not.  If the  tag
determines that there is no user logged in, the user
is forwarded to the login page.  I'd like to remember
where the user came from and forward them there after
a successful authentication.  I'm sure there are
multiple ways of doing this and I would like some
advice.  Thanks, Andrew Timm

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:




trying to get example app to run, help...

2002-04-23 Thread Boon Chew


I have spent quite a bit of time on this, hope you can shed some light here.
I am trying out most of the examples that come with struts distribution, but
keep running into the error below.  What else should I do to get it to work?
I apologize if someone has asked this before, I am pretty new to this.
Thanks.


javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:968)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1161)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:471)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Unknown Source)


root cause

java.lang.NullPointerException
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:622)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:504)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:966)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:795)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:244)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1161)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:471)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.co

RE: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE) - P roxy problems?

2002-04-23 Thread Brett Porter

I'm really strecthing here, but:

* I was under the impression that it would use the dtd from the
struts.jar... are you using the v1.1 JAR in the webapp? Is there a problem
with the way 1.1 works, because I get this for v1.0:
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jar:file:/var/www/shopping/dev/apps/webapps/shopping/WEB-INF/lib/struts-1.0
.1.jar
!/org/apache/struts/resources/struts-config_1_0.dtd'

* It is using crimson, but I didn't think that was what was included with
jdk1.4 (I could be wrong, I don't recall off-hand). If that's the case there
may be some sort of conflict, but there shouldn't be and it doesn't explain
the error.

* Have you tried using a small java program with a URLConnection to see what
happens when getting the URL? That'll affirm Java's network is at least
working correctly.

HTH, but maybe not :)
- Brett

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 23 April 2002 10:59 PM
To: 'Struts Users Mailing List'
Subject: RE: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE) -
P roxy problems?


No, going out to the internet directly. Have a "real" ip address. Am behind
a firewall however (same box). Bare in mind, though - fetch works ok.

Any more ideas?

Many thanks for the help so far and for (hopefully :) ) more in advance!

Mike

> -Original Message-
> From: Alex Jones [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 10:18
> To: 'Struts Users Mailing List'
> Subject: RE: can't register struts-config dtd on tomcat 4.0.3 
> (1.4 LE) -
> Proxy problems?
> 
> 
> Are you behind a proxy? If so, you'll need to make sure that the JVM
> knows about it before ActionServlet starts trying to read the DTD. One
> way of doing this would be to subclass ActionServlet and override the
> init method to something like this:
> 
> public class ProxyActionServlet extends ActionServlet
> {
>   public void init(ServletConfig config)
>   {
> System.setProperty ("http.proxyHost",proxyserver);
> System.setProperty ("http.proxyPort",proxyport);
> 
> System.setProperty ("https.proxyHost",secureproxy);
> System.setProperty ("https.proxyPort",secureproxyport);
> 
> System.setProperty ("http.proxyUserName",username);
> System.setProperty ("http.proxyPassword",password);
> 
> super.init(config);
>   }
> }
> 
> (I've typed this from memory so it may not work if you just cut and
> paste). Then you'll need to make sure your web.xml file points to your
> new class.
> 
> Cheers,
> Alex
> 
> -Original Message-
> From: Mike Dewhirst [mailto:[EMAIL PROTECTED]] 
> Sent: 23 April 2002 09:08
> To: 'Struts Users Mailing List'
> Subject: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE)
> Importance: High
> 
> Has anybody ever had this before? I am running struts on freebsd 4.4
> (custom), jdk1.4 (linux), tomcat 4.0.3 (1.4 LE), and struts 1.0.2
> (stable).
> 
> Does anybody have any idea what could be causing this and how could I
> fix
> it?
> 
> if i do a manual fetch of
> http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd - the file
> is
> downloaded no problem.
> 
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
> 'jar:file:/usr/local/tomcat4.0.3/webapps/callsystem/WEB-INF/li
> b/struts.j
> ar!/
> org/apache/struts/resources/web-app_2_3.dtd'
> resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
> 1.1//EN', 
> 'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd')
>  Not registered, use system identifier
> Parse Fatal Error at line 5 column -1: External entity not found:
> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";.
> java.net.UnknownHostException: jakarta.apache.org
> at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
> at
> org.apache.crimson.parser.Parser2.externalParameterEntity(Pars
> er2.java:2
> 870)
> at
> org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
> at
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
> at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
> at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
> at
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:89)
> at 
> org.apache.struts.digester.Digester.parse(Digester.java:755)
> at
> org.apache.struts.action.ActionServlet.initMapping(ActionServl
> et.java:13
> 32)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.jav
> a:91
> 6)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
> java:808)
> at
> org.apache.catalina.core.S

RE: Validator and Dates

2002-04-23 Thread Juan Alvarado \(Struts List\)

Good point Eddie; I definetely agree with you.

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 6:35 PM
To: Struts Users Mailing List
Subject: Re: Validator and Dates


Client-side validation should supplement, not replace, server-side
validation - should it not?

I know several people who are certain that every web site they go to is
going to find out their deepest, darkest secrets if they enable
javascript/cookies.

While I agree that JavaScript is a handy tool, I feel it should be a
supplement to - not a replacement for - server-side validation.

Sorry I don't know of a date-validation routine for the validator, Juan, but
I just had to add my 2 cents in.


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 5:30 PM
Subject: RE: Validator and Dates


> Use JavaScript.
>
> Mark
>
> -Original Message-
> From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 6:16 PM
> To: Struts
> Subject: Validator and Dates
>
>
> Does anyone know if there is a date validator that can be plugged into the
> struts validator. What I need is to make sure that a user enters a valid
> date range. In other words the date range of november 4th, 1970 to
november
> 4th 1969 is invalid.
>
> Thanks in advance
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Validator and Dates

2002-04-23 Thread Galbreath, Mark

So write a custom tag for the date input.  No big deal.

Mark

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 6:35 PM
To: Struts Users Mailing List
Subject: Re: Validator and Dates


Client-side validation should supplement, not replace, server-side
validation - should it not?

I know several people who are certain that every web site they go to is
going to find out their deepest, darkest secrets if they enable
javascript/cookies.

While I agree that JavaScript is a handy tool, I feel it should be a
supplement to - not a replacement for - server-side validation.

Sorry I don't know of a date-validation routine for the validator, Juan, but
I just had to add my 2 cents in.


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 5:30 PM
Subject: RE: Validator and Dates


> Use JavaScript.
>
> Mark
>
> -Original Message-
> From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 6:16 PM
> To: Struts
> Subject: Validator and Dates
>
>
> Does anyone know if there is a date validator that can be plugged into the
> struts validator. What I need is to make sure that a user enters a valid
> date range. In other words the date range of november 4th, 1970 to
november
> 4th 1969 is invalid.
>
> Thanks in advance
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Validator and Dates

2002-04-23 Thread Eddie Bush

Client-side validation should supplement, not replace, server-side
validation - should it not?

I know several people who are certain that every web site they go to is
going to find out their deepest, darkest secrets if they enable
javascript/cookies.

While I agree that JavaScript is a handy tool, I feel it should be a
supplement to - not a replacement for - server-side validation.

Sorry I don't know of a date-validation routine for the validator, Juan, but
I just had to add my 2 cents in.


- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 5:30 PM
Subject: RE: Validator and Dates


> Use JavaScript.
>
> Mark
>
> -Original Message-
> From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 6:16 PM
> To: Struts
> Subject: Validator and Dates
>
>
> Does anyone know if there is a date validator that can be plugged into the
> struts validator. What I need is to make sure that a user enters a valid
> date range. In other words the date range of november 4th, 1970 to
november
> 4th 1969 is invalid.
>
> Thanks in advance
>
> **
> Juan Alvarado
> Internet Developer -- Manduca Management
> (786)552-0504
> [EMAIL PROTECTED]
> AOL Instant Messenger: [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Very Annoyed at Struts 1.1/Tiles - Nevermind

2002-04-23 Thread Eddie Bush

Man ... I've seen bad error messages - and I know there will always be those
times you have to just learn to "know" what the compiler is "trying to tell
you", but this was pretty hard to figure out:

Turns out I had pointed the 'config' initialization parameter to a
non-existant XML file.  THAT was the entire cause of the problem.

Sorry to have ... bothered? ... annoyed! ... you,

Eddie
- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 5:23 PM
Subject: Very Annoyed at Struts 1.1/Tiles


I've gone step-by-step through the Tiles tutorial, and I continue to same
servlet exception:

Can't get definitions factory from context.

Could someone please give me a heads up?  I'm almost certain I have
everything set up fine, but when I start using definitions it barfs all over
me.  Has nobody else had this problem?

I've looked and looked but I see nothing helpful that would help me resolve
this myself.

Thanks so much!

Eddie




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Validator and Dates

2002-04-23 Thread Galbreath, Mark

Use JavaScript.

Mark

-Original Message-
From: Juan Alvarado (Struts List) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 6:16 PM
To: Struts
Subject: Validator and Dates


Does anyone know if there is a date validator that can be plugged into the
struts validator. What I need is to make sure that a user enters a valid
date range. In other words the date range of november 4th, 1970 to november
4th 1969 is invalid.

Thanks in advance

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Very Annoyed at Struts 1.1/Tiles

2002-04-23 Thread Eddie Bush

I've gone step-by-step through the Tiles tutorial, and I continue to same servlet 
exception:

Can't get definitions factory from context.

Could someone please give me a heads up?  I'm almost certain I have everything set up 
fine, but when I start using definitions it barfs all over me.  Has nobody else had 
this problem?

I've looked and looked but I see nothing helpful that would help me resolve this 
myself.

Thanks so much!

Eddie




Validator and Dates

2002-04-23 Thread Juan Alvarado \(Struts List\)

Does anyone know if there is a date validator that can be plugged into the
struts validator. What I need is to make sure that a user enters a valid
date range. In other words the date range of november 4th, 1970 to november
4th 1969 is invalid.

Thanks in advance

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: CapitalOne

2002-04-23 Thread Xianzhong chen

since the parameter sent to login action is not recognized, the response is
a redirection to 
https://service.capitalone.com/non_compliant.html which was what you saw.

i guess this page is their only error sink :) i mean whener an error occurs,
display non_compliant.html

-Original Message-
From: Dennis Doubleday [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:07 PM
To: 'Struts Users Mailing List'
Subject: RE: CapitalOne


That isn't the error I got. Capital One thinks I have an unsupported
browser, but I don't. I have IE 5.5, 128-bit.

> -Original Message-
> From: Xianzhong chen [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, April 23, 2002 5:50 PM
> To: 'Struts Users Mailing List'
> Subject: RE: CapitalOne
> 
> 
> only because the hyper link is broken into 2 lines in Ethan's 
> message :)


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: CapitalOne

2002-04-23 Thread Dennis Doubleday

That isn't the error I got. Capital One thinks I have an unsupported
browser, but I don't. I have IE 5.5, 128-bit.

> -Original Message-
> From: Xianzhong chen [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, April 23, 2002 5:50 PM
> To: 'Struts Users Mailing List'
> Subject: RE: CapitalOne
> 
> 
> only because the hyper link is broken into 2 lines in Ethan's 
> message :)


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: CapitalOne

2002-04-23 Thread Xianzhong chen

only because the hyper link is broken into 2 lines in Ethan's message :)

should be 

https://service.capitalone.com/oas/login.do?objectclicked=LoginSplash

notice the different parameter

> > Hey,
> >
> > It looks like CapitalOne is using struts for their account
> > management.
> > https://service.capitalone.com/oas/login.do?objectclicked=Logi
> > nSplash



-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:24 PM
To: Struts Users Mailing List
Subject: Re: CapitalOne


I got the error too, but when I went to their main page and then clicked on
the login graphic it gave the the proper page.  Maybe they're trying to keep
folks from hitting the login page directly, but aren't handling it quite
right.


- Original Message -
From: "Robert" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 10:56 AM
Subject: RE: CapitalOne


> I believe 128bit encryption in IE5.x is an upgrade (free) from M$. I
> think the default is 56 bit, but I may be wrong.
>
> - Robert
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 9:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: CapitalOne
>
> But does your version of IE5.5 include 128bit encryption? I access
> capital
> often and have no problems.
>
> -Original Message-
> From: Dennis Doubleday [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 15:16
> To: 'Struts Users Mailing List'
> Subject: RE: CapitalOne
>
>
> I got this when I went there, even though I was using IE 5.5.
>
> 
> Browser Alert
> You cannot access Online Account Services with your current Web browser.
>
> Possible reasons for this could be one of the following:
>
>
> You are using Netscape 4.0 through 4.07 or Netscape 6.0, which we cannot
> support for online account transactions due to security reasons.
> You are using a browser that is incompatible with our Online Account
> Services system. We recommend you use Netscape versions 4.08 through 4.7
> or Internet Explorer versions 5.0 or higher.
> Your browser does not support 128-bit encryption.
> 
>
> > -Original Message-
> > From: Ethan Schroeder [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 22, 2002 6:37 PM
> > To: [EMAIL PROTECTED]
> > Subject: CapitalOne
> >
> >
> > Hey,
> >
> > It looks like CapitalOne is using struts for their account
> > management.
> > https://service.capitalone.com/oas/login.do?objectclicked=Logi
> > nSplash
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> 
> ---
>
> Copyright material and/or confidential and/or privileged information may
> be contained in this e-mail and any attached documents.  The material
> and information is intended for the use of the intended addressee only.
> If you are not the intended addressee, or the person responsible for
> delivering it to the intended addressee, you may not copy, disclose,
> distribute, disseminate or deliver it to anyone else or use it in any
> unauthorised manner or take or omit to take any action in reliance on
> it. To do so is prohibited and may be unlawful.   The views expressed in
> this e-mail may not be official policy but the personal views of the
> originator.  If you receive this e-mail in error, please advise the
> sender immediately by using the reply facility in your e-mail software,
> or contact [EMAIL PROTECTED]  Please also delete this e-mail and
> all documents attached immediately.
> Many thanks for your co-operation.
>
> BMW Financial Services (GB) Limited is registered in England and Wales
> under company number 01288537.
> Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
> 
> --
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Singleton vs ServletContext

2002-04-23 Thread Kipnis, Adam

I played around with two different versions of Poolman. The earlier one (I
don't remember exact version numbers) had problems with the XML parser it
was using. It worked fine standalone, but as soon as I tried to use it in
combination with Orion, it failed. The later version, which I believe was
the latest, fixed that problem and seemed to work fine. But then we would
get random closures of prepared statements. I swapped Poolman out with
Orion's connection pool and everything worked fine from then on.

-Original Message-
From: Mark Johnson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:34 PM
To: [EMAIL PROTECTED]
Subject: RE: Singleton vs ServletContext


-Original Message-
>From: Kipnis, Adam [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 23, 2002 12:37 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Singleton vs ServletContext
>
>I wouldn't recommend Poolman since I have found it to be pretty
problematic.
(... snip ...)

How so?
-- 

Mark Johnson
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JForms / Struts Console

2002-04-23 Thread Danilo Luiz Rheinheimer

At 13:55 23/4/2002 -0700, you wrote:
>Subject: [ANN] JForms - a visual tool for Struts-based Web forms
>From: "Dave Barber" <[EMAIL PROTECTED]>
>  ===
>Announcing SolanaSoft JForms, a visual tool for rapid creation of
>Struts-based Web forms.  JForms let you define the properties to capture in
>a form, along with data types, and basic validation, then generates all of
>the required Struts actions, forms, JSPs, application resources, error
>messages, and configuration files.  Finally, JForms compiles, packages, and
>deploys a WAR file to an embedded Tomcat app server for easy testing of the
>form.
>
>Its currently in beta, and we're still looking for a few volunteers to try
>it out.
>
>There is an online demonstration available at the website, and you can send
>an email to [EMAIL PROTECTED] to sign up for the beta program.

   I saw the online demo and I think this kind of tool is very useful.
   But I think this tool (as Struts Console) must be very integrated with 
the IDE to be really good.
   On JForm the demo talks about create a WAR file and do the deployment. I 
do not think this is the function of this tool. The IDE must do it. Even 
because create the form is just the begin of the job. After this you must 
create the code to forward the submited data, interate with the database 
and so on.
   The ideal tool to do this can be just like Struts console + some wizards 
to create forms (like JForms do) + better integration with the IDE.
   I use Struts Console in JBuilder but I feel a lack of integration with 
the IDE. For example on the type property of the forms beans I need to type 
my form class. Could be nice if I have a button to do the search of classes 
on my project.
   Of course to do it Struts must know about the classes avaliable on the 
project, so it must have some kind of callback functions to the IDE. But 
this can be implemented in a generic way so people can write this plugins 
to the IDE of choice.
   I know the creator of Struts console is a subscriber of this list so 
what he think about this idea ?



Danilo Luiz Rheinheimer
Florianopolis/SC Brasil
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Singleton vs ServletContext

2002-04-23 Thread Mark Johnson

-Original Message-
>From: Kipnis, Adam [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 23, 2002 12:37 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Singleton vs ServletContext
>
>I wouldn't recommend Poolman since I have found it to be pretty problematic.
(... snip ...)

How so?
-- 

Mark Johnson
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: CapitalOne

2002-04-23 Thread Eddie Bush

I got the error too, but when I went to their main page and then clicked on
the login graphic it gave the the proper page.  Maybe they're trying to keep
folks from hitting the login page directly, but aren't handling it quite
right.


- Original Message -
From: "Robert" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 10:56 AM
Subject: RE: CapitalOne


> I believe 128bit encryption in IE5.x is an upgrade (free) from M$. I
> think the default is 56 bit, but I may be wrong.
>
> - Robert
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 9:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: CapitalOne
>
> But does your version of IE5.5 include 128bit encryption? I access
> capital
> often and have no problems.
>
> -Original Message-
> From: Dennis Doubleday [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 15:16
> To: 'Struts Users Mailing List'
> Subject: RE: CapitalOne
>
>
> I got this when I went there, even though I was using IE 5.5.
>
> 
> Browser Alert
> You cannot access Online Account Services with your current Web browser.
>
> Possible reasons for this could be one of the following:
>
>
> You are using Netscape 4.0 through 4.07 or Netscape 6.0, which we cannot
> support for online account transactions due to security reasons.
> You are using a browser that is incompatible with our Online Account
> Services system. We recommend you use Netscape versions 4.08 through 4.7
> or Internet Explorer versions 5.0 or higher.
> Your browser does not support 128-bit encryption.
> 
>
> > -Original Message-
> > From: Ethan Schroeder [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 22, 2002 6:37 PM
> > To: [EMAIL PROTECTED]
> > Subject: CapitalOne
> >
> >
> > Hey,
> >
> > It looks like CapitalOne is using struts for their account
> > management.
> > https://service.capitalone.com/oas/login.do?objectclicked=Logi
> > nSplash
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> 
> ---
>
> Copyright material and/or confidential and/or privileged information may
> be contained in this e-mail and any attached documents.  The material
> and information is intended for the use of the intended addressee only.
> If you are not the intended addressee, or the person responsible for
> delivering it to the intended addressee, you may not copy, disclose,
> distribute, disseminate or deliver it to anyone else or use it in any
> unauthorised manner or take or omit to take any action in reliance on
> it. To do so is prohibited and may be unlawful.   The views expressed in
> this e-mail may not be official policy but the personal views of the
> originator.  If you receive this e-mail in error, please advise the
> sender immediately by using the reply facility in your e-mail software,
> or contact [EMAIL PROTECTED]  Please also delete this e-mail and
> all documents attached immediately.
> Many thanks for your co-operation.
>
> BMW Financial Services (GB) Limited is registered in England and Wales
> under company number 01288537.
> Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
> 
> --
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Singleton vs ServletContext

2002-04-23 Thread Eddie Bush

What sort of issues have you had with Poolman?

- Original Message -
From: "Kipnis, Adam" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 12:37 PM
Subject: RE: Singleton vs ServletContext


> I wouldn't recommend Poolman since I have found it to be pretty
problematic.
> As for the Singleton vs Servlet approach, I think that's really up to
> personal preference. If you put your connection pool logic inside a
servlet
> and have that servlet load on startup, you're not really that much
different
> than a standard singleton. Since there are usually more uses for an
> application level service other than a connection pool (ie, a global level
> internal data caching system), I wrote a services manager as a servlet
that
> loads all the application level services, including connection pools, on
> start-up based on configuration files. If you like, I can send you a copy
of
> the servlet and associated connection pool.
>
> -Adam Kipnis
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 12:20 AM
> To: Struts Users Mailing List
> Subject: Singleton vs ServletContext
>
>
> Hi !!
>
> My question is about the best way to implement a JDBC ConnectionPool for
> Struts.
> I've heard that the one that is already in Struts is not a good choice.
> I've also read many mails about PoolMan.
> In Servlets & JSP book from Marty Hall, he speaks also about Singleton.
>
> What's the easiest way ?
> Has anybody a simple sample ?
>
> Thanks All.
>
> Best
>
> Dams
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts 1.1/Tiles - Problem

2002-04-23 Thread Eddie Bush

Hi guys/gals,

I was hoping one of you might have a suggestion for why I continue to get the error:

Can't get definitions factory from context

I just began 'playing' with Struts 1.1/Tiles.  My previous experience is with Struts 
1.0.2.  I just searched my mailbox (I have been receiving struts-user mail for some 
time now, so I searched for an answer before sending this mail) but have found nothing 
useful.

I am using the nightly build distribution:  jakarta-struts-20020417.zip

Any suggestions are most appreciated.

Thanks so much!

Eddie





[ANN] JForms - a visual tool for Struts-based Web forms

2002-04-23 Thread @Basebeans.com

Subject: [ANN] JForms - a visual tool for Struts-based Web forms
From: "Dave Barber" <[EMAIL PROTECTED]>
 ===
Announcing SolanaSoft JForms, a visual tool for rapid creation of
Struts-based Web forms.  JForms let you define the properties to capture in
a form, along with data types, and basic validation, then generates all of
the required Struts actions, forms, JSPs, application resources, error
messages, and configuration files.  Finally, JForms compiles, packages, and
deploys a WAR file to an embedded Tomcat app server for easy testing of the
form.

Its currently in beta, and we're still looking for a few volunteers to try
it out.

There is an online demonstration available at the website, and you can send
an email to [EMAIL PROTECTED] to sign up for the beta program.

The site address is:
http://www.solanasoft.com

Thanks,

Dave



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Singleton vs ServletContext

2002-04-23 Thread Johannes Wolfgang Woger

Hi,
since I will have to implement a database access, I would like to know
what the problems are with PoolMan.
And I would be happy to see that code too.
Thanks in advance
Wolfgang



"Kipnis, Adam" schrieb:

> I wouldn't recommend Poolman since I have found it to be pretty problematic.
> As for the Singleton vs Servlet approach, I think that's really up to
> personal preference. If you put your connection pool logic inside a servlet
> and have that servlet load on startup, you're not really that much different
> than a standard singleton. Since there are usually more uses for an
> application level service other than a connection pool (ie, a global level
> internal data caching system), I wrote a services manager as a servlet that
> loads all the application level services, including connection pools, on
> start-up based on configuration files. If you like, I can send you a copy of
> the servlet and associated connection pool.
>
> -Adam Kipnis
> [EMAIL PROTECTED]
>
> -Original Message-
> From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 12:20 AM
> To: Struts Users Mailing List
> Subject: Singleton vs ServletContext
>
> Hi !!
>
> My question is about the best way to implement a JDBC ConnectionPool for
> Struts.
> I've heard that the one that is already in Struts is not a good choice.
> I've also read many mails about PoolMan.
> In Servlets & JSP book from Marty Hall, he speaks also about Singleton.
>
> What's the easiest way ?
> Has anybody a simple sample ?
>
> Thanks All.
>
> Best
>
> Dams
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Relative URIs To and From "Includes"

2002-04-23 Thread Micael Padraig Og mac Grene

I have a bit of an unusual problem, I think.

I have the following sequence

  --> forward to an html page --> which includes a relative URI to an swf 
page --> which refers in an array to other "included" swf pages.

I can pretty much figure out the first two within the struts framework, but 
have no clue on the last one, since we cannot use struts tags in the 
Macromedia created swf.

Micael



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Commons - source

2002-04-23 Thread Cinq - Cleiton Marques Bittencourt

Ok. Sorry. I got it.
There is a Jakarta Commons project 

- Original Message -
From: "Cinq - Cleiton Marques Bittencourt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 5:06 PM
Subject: Commons - source


Why the code of the commons* jars are not included in the source
distribution?
How can I get the source of the commons-logging.jar ?

Thanks
---
Cleiton Bittencourt
Cinq Technologies
---



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Commons - source

2002-04-23 Thread Cinq - Cleiton Marques Bittencourt

Why the code of the commons* jars are not included in the source distribution?
How can I get the source of the commons-logging.jar ?

Thanks
---
Cleiton Bittencourt
Cinq Technologies
---



Re: Stopping Tiles from logging

2002-04-23 Thread Dave Dribin

On Mon, Apr 22, 2002 at 06:00:38PM -0500, Dave Dribin wrote:
> Hello,
> 
> I'm using Struts 1.1-b1 with Tiles, and I keep getting these log
> entries to stdout:
> 
> [INFO] TilesRequestProcessor - -Processing a 'POST' for path 'xxx'

Ok, I figured out how to stop the logging:

1) Copy log4j.jar into WEB-INF/lib/
2) Create a log4j.properties in WEB-INF/classes/ that looks like:


log4j.rootCategory=warn, stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%d] %-5p: %m%n


The important bit is that "log4j.rootCategory" must have "warn" so
that only warnings and errors are logged.  This stops the info-level
entries.

What I don't understand is how this is all working.  Struts is using
the Jakarta Commons-Logging stuff.  According to it's Javadoc:

  
http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/package-summary.html

if no logging package is used (which was my case since I was using JDK
1.3.1 and I previously did not have log4j in WEB-INF/lib/), then
no-output logging should have been invoked.  Yet, I was still getting
output to stdout.  Does Struts fall back to SimpleLog somehow?  I
didn't see anything specifying SimpleLog.  Is there any way to have
the Commons-Logging spit out which logging package it ended up using?

-Dave

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Using tagib to print form bean member directly to page

2002-04-23 Thread Schmidt, Carl

Thank you.  Turns out I was using the right taglib (bean:write) but bad
syntax.

Carl

-Original Message-
From: Greg Nyberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:47 PM
To: Struts Users Mailing List
Subject: RE: Using tagib to print form bean member directly to page


The form bean has a name in the request equal to its name in the
struts-config file  element.

You can access attributes with  like so:



-Greg


> -Original Message-
> From: Schmidt, Carl [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 2:30 PM
> To: '[EMAIL PROTECTED]'
> Subject: Using tagib to print form bean member directly to page
>
>
> I've already looked through the html and bean taglib but I can't
> find a tag
> that will allow me to print the value from a form bean simply as
> is, without
> rendering a text box or other form item.  Does such a thing exist?
>
> Carl
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Using tagib to print form bean member directly to page

2002-04-23 Thread Greg Nyberg

The form bean has a name in the request equal to its name in the
struts-config file  element.

You can access attributes with  like so:



-Greg


> -Original Message-
> From: Schmidt, Carl [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 2:30 PM
> To: '[EMAIL PROTECTED]'
> Subject: Using tagib to print form bean member directly to page
>
>
> I've already looked through the html and bean taglib but I can't
> find a tag
> that will allow me to print the value from a form bean simply as
> is, without
> rendering a text box or other form item.  Does such a thing exist?
>
> Carl
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Forward after

2002-04-23 Thread Dave Dribin


This seems to work to build up a "done" parameter:

StringBuffer done = request.getRequestURL();
String query = request.getQueryString();
if (query != null)
{
done.append("?").append(query);
}
response.sendRedirect(request.getContextPath() +
  "/login.jsp?done=" + done.toString());

After login is successful, it redirects to the "done" parameter.  I
would have thought that the query would need to be URL-encoded, but I
have not had a problem, yet.

BTW, sticking this in the URL seems like the best way, IMO.  Sticking
this in the session has potential to be trashed if the user has 2
windows open.  I've noticed that Yahoo! places a URL as a parameter if
you try and access a page that requires authentication, too:

  https://bills.secure.yahoo.com/bpp?u

-Dave

On Tue, Apr 23, 2002 at 10:31:26AM -0700, Andy Timm wrote:
> Robert - I'm doing this now, I was hoping do find a
> better way to deal with parameters.  I can forward to
> the page just fine, but when that page needs
> parameters off the URL, it starts to get messy. 
> Anyone have a code snippet readily available that
> grabs everything but the hostname from the URL -
> including params?  Thanks again.
> 
> --- Robert <[EMAIL PROTECTED]> wrote:
> > I've done this by supplying the 'current' page as a
> > parameter to the
> > login page/service. After a successful login, a
> > forward is done to that
> > location. I'm not sure what your  tag
> > looks like, but this
> > could be a parameter of it, which is then supplied
> > to the login
> > mechanism. You could probably also supply the
> > current page in the
> > session.
> > 
> > - Robert
> > 
> > -Original Message-
> > From: Andy Timm [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, April 23, 2002 11:13 AM
> > To: [EMAIL PROTECTED]
> > Subject: Forward after 
> > 
> > I have some pages which require a user to be logged
> > in
> > and some which do not.  If the  tag
> > determines that there is no user logged in, the user
> > is forwarded to the login page.  I'd like to
> > remember
> > where the user came from and forward them there
> > after
> > a successful authentication.  I'm sure there are
> > multiple ways of doing this and I would like some
> > advice.  Thanks, Andrew Timm
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Games - play chess, backgammon, pool and more
> > http://games.yahoo.com/
> > 
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:  
> > 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




image button question

2002-04-23 Thread @Basebeans.com

Subject: image button question
From: "Monker" <[EMAIL PROTECTED]>
 ===
Hello,

I am trying to create an image button and set the img src within the action
class.  When I do this, I get a broken link to the picture...but, the link
back to the action class works.  I can display the pic as a regular image
(not a button), so I know the property exists and is the correct value.
Here is the code:



<%= displayterritory1 %> 

Can I not use a property like this within an image tag?  Is there a simple
work around?  I am using the current release of Struts, not the nightly
update or the Beta...and WSAD 4.02.

Thanks,

Britt



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Using tagib to print form bean member directly to page

2002-04-23 Thread Schmidt, Carl

I've already looked through the html and bean taglib but I can't find a tag
that will allow me to print the value from a form bean simply as is, without
rendering a text box or other form item.  Does such a thing exist?

Carl

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tiles: Can't get definitions factory from context

2002-04-23 Thread Eddie Bush

Hi guys/gals,

I was hoping one of you might have a suggestion for why I continue to get the error 
mentioned in the subject.  I just began 'playing' with Struts 1.1/Tiles.  My previous 
experience is with Struts 1.0.2.  I just searched my mailbox (I have been receiving 
struts-user mail for some time now, so I searched for an answer before sending this 
mail) but have found nothing useful.

I am using the nightly build distribution:  jakarta-struts-20020417.zip

Any suggestions are most appreciated.

Thanks so much!

Eddie




RE: Page has expired

2002-04-23 Thread test test


 Danny,
You are right, we don't want browser to cache any page. Also we have to use POST since 
the data is way over GET can handle.
Alex.
 
  "Trieu, Danny" <[EMAIL PROTECTED]> wrote: This happens when you set the 


nocache


true


inside your action servlet setting ... in the web.xml 

this mean there is no browser cache for the content you returned.
-Original Message-
From: test test [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:18 AM
To: [EMAIL PROTECTED]
Subject: Page has expired



Hi 

I am new to Struts, sorry if this question has been asked before.

When use "POST" in a form, if the "back" button is clicked, the browser will
display "Warning: page is expired" message, is there anyway to overcome this
problem, it would be good if someone can share an example.

Thanks

Alex



-
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more


RE: Singleton vs ServletContext

2002-04-23 Thread Hoang, Hai

I would like to see the code...can you send me a copy?

-Original Message-
From: Kipnis, Adam [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 12:37 PM
To: 'Struts Users Mailing List'
Subject: RE: Singleton vs ServletContext

I wouldn't recommend Poolman since I have found it to be pretty problematic.
As for the Singleton vs Servlet approach, I think that's really up to
personal preference. If you put your connection pool logic inside a servlet
and have that servlet load on startup, you're not really that much different
than a standard singleton. Since there are usually more uses for an
application level service other than a connection pool (ie, a global level
internal data caching system), I wrote a services manager as a servlet that
loads all the application level services, including connection pools, on
start-up based on configuration files. If you like, I can send you a copy of
the servlet and associated connection pool.

-Adam Kipnis
[EMAIL PROTECTED]


-Original Message-
From: Damien VIEL [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:20 AM
To: Struts Users Mailing List
Subject: Singleton vs ServletContext


Hi !!

My question is about the best way to implement a JDBC ConnectionPool for
Struts.
I've heard that the one that is already in Struts is not a good choice. 
I've also read many mails about PoolMan. 
In Servlets & JSP book from Marty Hall, he speaks also about Singleton.

What's the easiest way ? 
Has anybody a simple sample ?

Thanks All.

Best

Dams 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Forward after

2002-04-23 Thread Robert

Yes it can be messy :-)

-Original Message-
From: Andy Timm [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 12:31 PM
To: Struts Users Mailing List
Subject: RE: Forward after 

Robert - I'm doing this now, I was hoping do find a
better way to deal with parameters.  I can forward to
the page just fine, but when that page needs
parameters off the URL, it starts to get messy. 
Anyone have a code snippet readily available that
grabs everything but the hostname from the URL -
including params?  Thanks again.

--- Robert <[EMAIL PROTECTED]> wrote:
> I've done this by supplying the 'current' page as a
> parameter to the
> login page/service. After a successful login, a
> forward is done to that
> location. I'm not sure what your  tag
> looks like, but this
> could be a parameter of it, which is then supplied
> to the login
> mechanism. You could probably also supply the
> current page in the
> session.
> 
> - Robert
> 
> -Original Message-
> From: Andy Timm [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, April 23, 2002 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: Forward after 
> 
> I have some pages which require a user to be logged
> in
> and some which do not.  If the  tag
> determines that there is no user logged in, the user
> is forwarded to the login page.  I'd like to
> remember
> where the user came from and forward them there
> after
> a successful authentication.  I'm sure there are
> multiple ways of doing this and I would like some
> advice.  Thanks, Andrew Timm
> 
> __
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Singleton vs ServletContext

2002-04-23 Thread Kipnis, Adam

I wouldn't recommend Poolman since I have found it to be pretty problematic.
As for the Singleton vs Servlet approach, I think that's really up to
personal preference. If you put your connection pool logic inside a servlet
and have that servlet load on startup, you're not really that much different
than a standard singleton. Since there are usually more uses for an
application level service other than a connection pool (ie, a global level
internal data caching system), I wrote a services manager as a servlet that
loads all the application level services, including connection pools, on
start-up based on configuration files. If you like, I can send you a copy of
the servlet and associated connection pool.

-Adam Kipnis
[EMAIL PROTECTED]


-Original Message-
From: Damien VIEL [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:20 AM
To: Struts Users Mailing List
Subject: Singleton vs ServletContext


Hi !!

My question is about the best way to implement a JDBC ConnectionPool for
Struts.
I've heard that the one that is already in Struts is not a good choice. 
I've also read many mails about PoolMan. 
In Servlets & JSP book from Marty Hall, he speaks also about Singleton.

What's the easiest way ? 
Has anybody a simple sample ?

Thanks All.

Best

Dams 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Forward after

2002-04-23 Thread Andy Timm

Robert - I'm doing this now, I was hoping do find a
better way to deal with parameters.  I can forward to
the page just fine, but when that page needs
parameters off the URL, it starts to get messy. 
Anyone have a code snippet readily available that
grabs everything but the hostname from the URL -
including params?  Thanks again.

--- Robert <[EMAIL PROTECTED]> wrote:
> I've done this by supplying the 'current' page as a
> parameter to the
> login page/service. After a successful login, a
> forward is done to that
> location. I'm not sure what your  tag
> looks like, but this
> could be a parameter of it, which is then supplied
> to the login
> mechanism. You could probably also supply the
> current page in the
> session.
> 
> - Robert
> 
> -Original Message-
> From: Andy Timm [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, April 23, 2002 11:13 AM
> To: [EMAIL PROTECTED]
> Subject: Forward after 
> 
> I have some pages which require a user to be logged
> in
> and some which do not.  If the  tag
> determines that there is no user logged in, the user
> is forwarded to the login page.  I'd like to
> remember
> where the user came from and forward them there
> after
> a successful authentication.  I'm sure there are
> multiple ways of doing this and I would like some
> advice.  Thanks, Andrew Timm
> 
> __
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Page has expired

2002-04-23 Thread Trieu, Danny

This happens when you set the 
  
nocache
true
  
inside your action servlet setting ... in the web.xml 

this mean there is no browser cache for the content you returned.
-Original Message-
From: test test [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 10:18 AM
To: [EMAIL PROTECTED]
Subject: Page has expired



Hi 

I am new to Struts, sorry if this question has been asked before.

When use "POST" in a form, if the "back" button is clicked, the browser will
display "Warning: page is expired" message, is there anyway to overcome this
problem, it would be good if someone can share an example.

Thanks

Alex



-
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Page has expired

2002-04-23 Thread test test


Hi 

I am new to Struts, sorry if this question has been asked before.

When use "POST" in a form, if the "back" button is clicked, the browser will display 
"Warning: page is expired" message, is there anyway to overcome this problem, it would 
be good if someone can share an example.

Thanks

Alex



-
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more


RE: HTML taglib & Datetime taglib

2002-04-23 Thread Chen, Dean

Hmm... 
Now it's:

org.apache.jasper.compiler.CompileException: /protected/filter.jsp(38,3)
According to the TLD attribute property is mandatory for tag text

If I put "fmDt" for name, what would go in the property field?

Dean Chen

Dean Chen
Goldman Sachs & Co.
1 New York Plaza - 38th Floor, New York, NY  10004
(917) 343-8446
[EMAIL PROTECTED]


-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:03 PM
To: Struts Users Mailing List
Subject: RE: HTML taglib & Datetime taglib


 




Change the html:text tag to:


name=fmDt, the new scripting variable that you defined, instead of property.

-Original Message-
From: Chen, Dean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:51 PM
To: 'Struts Users Mailing List'
Subject: RE: HTML taglib & Datetime taglib


I tried:

 


The JSP page compiles but instead of a date, it displays Invalid Date 

However, if I do this:
 




I get an Exception: 
javax.servlet.ServletException: No getter method for property fmDt of bean
org.apache.struts.taglib.html.BEAN

Any ideas? 

Dean 

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:07 PM
To: Struts Users Mailing List
Subject: RE: HTML taglib & Datetime taglib


Try the following:

 







-Original Message-
From: Chen, Dean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 9:11 AM
To: '[EMAIL PROTECTED]'
Subject: HTML taglib & Datetime taglib


I'm trying to display a time value in the text box.
I'm using the struts html taglib and the jakarta datetime taglib

The time value is stored as a long in a form. Hence, 
 



work.

However, I want to do:

  
 


But this doesn't work. Any work arounds?
Thanks
Dean



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HTML taglib & Datetime taglib

2002-04-23 Thread Ady Das-O'Toole

 




Change the html:text tag to:


name=fmDt, the new scripting variable that you defined, instead of property.

-Original Message-
From: Chen, Dean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:51 PM
To: 'Struts Users Mailing List'
Subject: RE: HTML taglib & Datetime taglib


I tried:

 


The JSP page compiles but instead of a date, it displays Invalid Date 

However, if I do this:
 




I get an Exception: 
javax.servlet.ServletException: No getter method for property fmDt of bean
org.apache.struts.taglib.html.BEAN

Any ideas? 

Dean 

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:07 PM
To: Struts Users Mailing List
Subject: RE: HTML taglib & Datetime taglib


Try the following:

 







-Original Message-
From: Chen, Dean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 9:11 AM
To: '[EMAIL PROTECTED]'
Subject: HTML taglib & Datetime taglib


I'm trying to display a time value in the text box.
I'm using the struts html taglib and the jakarta datetime taglib

The time value is stored as a long in a form. Hence, 
 



work.

However, I want to do:

  
 


But this doesn't work. Any work arounds?
Thanks
Dean



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HTML taglib & Datetime taglib

2002-04-23 Thread Chen, Dean

I tried:

 


The JSP page compiles but instead of a date, it displays Invalid Date 

However, if I do this:
 




I get an Exception: 
javax.servlet.ServletException: No getter method for property fmDt of bean
org.apache.struts.taglib.html.BEAN

Any ideas? 

Dean 

-Original Message-
From: Ady Das-O'Toole [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 12:07 PM
To: Struts Users Mailing List
Subject: RE: HTML taglib & Datetime taglib


Try the following:

 







-Original Message-
From: Chen, Dean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 9:11 AM
To: '[EMAIL PROTECTED]'
Subject: HTML taglib & Datetime taglib


I'm trying to display a time value in the text box.
I'm using the struts html taglib and the jakarta datetime taglib

The time value is stored as a long in a form. Hence, 
 



work.

However, I want to do:

  
 


But this doesn't work. Any work arounds?
Thanks
Dean



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Unsubscribe Request-Please help me

2002-04-23 Thread Jim.W.Berg

You MUST reply to the response that is sent to you after you have sent a 
message to the unsubscribe mailbox.  If you do not confirm that you want 
to unsubscribe, you are not taken off the list.  Please RTFM!

Jim Berg 





"Jim Tyrrell" <[EMAIL PROTECTED]>

22-Apr-2002 13:03
Please respond to "Struts Users Mailing List" 
<[EMAIL PROTECTED]>

 
 

To: "'Struts Users Mailing List'"

cc: 
Subject:Unsubscribe Request-Please help me

Someone please help me,

I can not get unsubscribed.  I sent email to the address at the bottom and
for the list of other commands and yet I still get all these emails.

Pleae
Help

Jim

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 







Re: Fwd: Re: Images and STRUTS: Craig

2002-04-23 Thread Craig R. McClanahan



On Tue, 23 Apr 2002, Micael Padraig Og mac Grene wrote:

> Date: Tue, 23 Apr 2002 08:47:31 -0700
> From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Fwd: Re: Images and STRUTS: Craig
>
> Last sub-explanation:
>
> The reason the forwarding must be dynamic and not configured in an xml file
> is that the html and swf files are all created and destroyed dynamically
> with client purchases and expiration dates.
>

Two really easy ways to do "dynamic forwards":

* Although most Struts apps call mapping.findForward() to locate the
  correct logical forward, you can actually create one of your own:

return (new ActionForward("/context/relative/path.xml"));

* In addition, an Action can directly write the response itself, and
  then return null instead of an ActionForward instance.  This signals
  the controller that no forward is required.  You would
  do this in your Action just like you would from a servlet -- call
  response.getWriter() or response.getOutputStream().  It is
  particularly useful when your Action generates binary output (such
  as a dynamically created image file).

> Micael

Craig



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Creating beans dynamically from byte code in a byte[] withClassLoader.defineClass - how to do it right?

2002-04-23 Thread Craig R. McClanahan



On Tue, 23 Apr 2002, Struts Newsgroup wrote:

> Date: Tue, 23 Apr 2002 01:55:01 -0700
> From: Struts Newsgroup <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: Creating beans dynamically from byte code in a byte[] with
> ClassLoader.defineClass - how to do it right?
>
> Subject: Re: Creating beans dynamically from byte code in a byte[] with 
>ClassLoader.defineClass - how to do it right?
> From: "JM" <[EMAIL PROTECTED]>
>  ===
> Absolutely, how did ya do it?

One approach to dynamic class generation would be to use the BCEL package
at Jakarta:

  http://jakarta.apache.org/bcel

A second option is to take advantage of the new DynaActionForm
capabilities in Struts 1.1-b1 -- you declare the form bean properties in
struts-config.xml and don't actually have to write the form bean class
unless you need a custom reset() or validate() method.  Even if you do
need those, they are the only methods you have to write.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Forward after

2002-04-23 Thread Kevin . Bedell




I've done this using other approaches than Struts.

- Prior to checking for login, store the SUCCESS URL in a property on a
bean that's in request scope.
- Have the login process pull this bean from the request upon successful
login and forward to the SUCCESS URL

In this scenario I'd recommend modifying the  tag to allow the
following two parameters:

  - "successForward" - this would allow forwarding to a page defined as
a global forward in the struts-config
 - "successURL" - this would allow the developer to specify a URL where
the user should forwarded upon login.

You should have all the source code for the  tag - making
these changes should be about as easy as any other solution.





Andy Timm <[EMAIL PROTECTED]> on 04/23/2002 12:13:03 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Forward after 


I have some pages which require a user to be logged in
and some which do not.  If the  tag
determines that there is no user logged in, the user
is forwarded to the login page.  I'd like to remember
where the user came from and forward them there after
a successful authentication.  I'm sure there are
multiple ways of doing this and I would like some
advice.  Thanks, Andrew Timm

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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







---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Forward after

2002-04-23 Thread Robert

I've done this by supplying the 'current' page as a parameter to the
login page/service. After a successful login, a forward is done to that
location. I'm not sure what your  tag looks like, but this
could be a parameter of it, which is then supplied to the login
mechanism. You could probably also supply the current page in the
session.

- Robert

-Original Message-
From: Andy Timm [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 11:13 AM
To: [EMAIL PROTECTED]
Subject: Forward after 

I have some pages which require a user to be logged in
and some which do not.  If the  tag
determines that there is no user logged in, the user
is forwarded to the login page.  I'd like to remember
where the user came from and forward them there after
a successful authentication.  I'm sure there are
multiple ways of doing this and I would like some
advice.  Thanks, Andrew Timm

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts Workflow Extension with CactusServletTestCase

2002-04-23 Thread Homer, Christopher

Hi,

We're currently evaluating the Struts Workflow Extension
(http://www.livinglogic.de/Struts/index.html) to see whether we can use the
authentication (and maybe the workflow) mechanisms within our own
Struts-based application.  Our initial findings have been very positive and
we have found the authentication to be effective and easy to implement -
thanks Matthias.

We are now trying to run a CactusServletTestCase unit test on our prototype
using the Extension.  We know these unit tests ran successfully prior to
modifying the code to make use of the Workflow Extension, but unit testing
after the modifcations produced erroroneous results.

Has anyone managed to run Cactus Test Cases with the Workflow Extension
successfully?

The log of the unit test shows:

java.lang.ClassCastException: org.apache.struts.action.ActionMappingat
com.livinglogic.struts.workflow.GenericAction.perform(GenericAction.java:386
)   at servletunit.struts.CactusStrutsTestCase.actionPerform(Unknown
Source) at
com.serco.tih.common.tests.TestCactusLoginAction.testSuccessfulLogin(Unknown
Source)

Thanks for any help/advice,

Chris

For optimum solutions that save you time, visit www.ds-s.com.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Forward after

2002-04-23 Thread Andy Timm

I have some pages which require a user to be logged in
and some which do not.  If the  tag
determines that there is no user logged in, the user
is forwarded to the login page.  I'd like to remember
where the user came from and forward them there after
a successful authentication.  I'm sure there are
multiple ways of doing this and I would like some
advice.  Thanks, Andrew Timm

__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: HTML taglib & Datetime taglib

2002-04-23 Thread Ady Das-O'Toole

Try the following:

 







-Original Message-
From: Chen, Dean [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 9:11 AM
To: '[EMAIL PROTECTED]'
Subject: HTML taglib & Datetime taglib


I'm trying to display a time value in the text box.
I'm using the struts html taglib and the jakarta datetime taglib

The time value is stored as a long in a form. Hence, 
 



work.

However, I want to do:

  
 


But this doesn't work. Any work arounds?
Thanks
Dean



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: CapitalOne

2002-04-23 Thread Robert

I believe 128bit encryption in IE5.x is an upgrade (free) from M$. I
think the default is 56 bit, but I may be wrong.

- Robert

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 23, 2002 9:20 AM
To: [EMAIL PROTECTED]
Subject: RE: CapitalOne

But does your version of IE5.5 include 128bit encryption? I access
capital
often and have no problems. 

-Original Message-
From: Dennis Doubleday [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2002 15:16
To: 'Struts Users Mailing List'
Subject: RE: CapitalOne


I got this when I went there, even though I was using IE 5.5.


Browser Alert
You cannot access Online Account Services with your current Web browser.

Possible reasons for this could be one of the following:


You are using Netscape 4.0 through 4.07 or Netscape 6.0, which we cannot
support for online account transactions due to security reasons. 
You are using a browser that is incompatible with our Online Account
Services system. We recommend you use Netscape versions 4.08 through 4.7
or Internet Explorer versions 5.0 or higher. 
Your browser does not support 128-bit encryption. 


> -Original Message-
> From: Ethan Schroeder [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, April 22, 2002 6:37 PM
> To: [EMAIL PROTECTED]
> Subject: CapitalOne
> 
> 
> Hey,
> 
> It looks like CapitalOne is using struts for their account 
> management.  
> https://service.capitalone.com/oas/login.do?objectclicked=Logi
> nSplash 


--
To unsubscribe, e-mail:

For additional commands, e-mail:




---

Copyright material and/or confidential and/or privileged information may
be contained in this e-mail and any attached documents.  The material
and information is intended for the use of the intended addressee only.
If you are not the intended addressee, or the person responsible for
delivering it to the intended addressee, you may not copy, disclose,
distribute, disseminate or deliver it to anyone else or use it in any
unauthorised manner or take or omit to take any action in reliance on
it. To do so is prohibited and may be unlawful.   The views expressed in
this e-mail may not be official policy but the personal views of the
originator.  If you receive this e-mail in error, please advise the
sender immediately by using the reply facility in your e-mail software,
or contact [EMAIL PROTECTED]  Please also delete this e-mail and
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales
under company number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF

--

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Fwd: Re: Images and STRUTS: Craig

2002-04-23 Thread Micael Padraig Og mac Grene

Last sub-explanation:

The reason the forwarding must be dynamic and not configured in an xml file 
is that the html and swf files are all created and destroyed dynamically 
with client purchases and expiration dates.

Micael

>Date: Tue, 23 Apr 2002 08:35:04 -0700
>To: [EMAIL PROTECTED]
>From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
>Subject: Fwd: Re: Images and STRUTS: Craig
>
>The forwarding for this application, further, must be dynamic.
>
>
>>To: [EMAIL PROTECTED]
>>From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
>>Subject: Fwd: Re: Images and STRUTS: Craig
>>
>>
>>>Date: Tue, 23 Apr 2002 08:15:48 -0700
>>>To: [EMAIL PROTECTED]
>>>From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
>>>Subject: Fwd: Re: Images and STRUTS: Craig
>>>
>>>I have looked at this and have researched the area, Craig, and I have a 
>>>simple question, I think.  The suggested solution involving extension 
>>>mapping is the default behavior of struts, is it not?
>>>
>>>At least the standard servlet mapping that came with structs in my case is:
>>>
>>>
>>>   
>>>   
>>> action
>>> *.do
>>>   
>>>
>>>
>>>Essentially what I want to do is the following: access html pages which 
>>>reference .swf (Flash) files (templates) with relative references, e.g., 
>>>template1.swf, holding arrays of other .swf files (photos) which all 
>>>have relative references to the same directory by default, e.g. 
>>>photo1.swf, photo2.swf, photo3.swf, etc.  I want to forward to the html 
>>>pages through the controller and the ActionForward functionality in 
>>>order to preserve security and other matters.  But, my html pages are 
>>>not seeing the template pages.  I can solve that by using relative 
>>>references in the html pages, but not in the Flash template.swf 
>>>pages.  So, what to do?
>>>
>>>Why won't the relative references work when the default mapping is to 
>>>the extension *.do?
>>>
>>>Micael
>>>
>>>
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
List-Unsubscribe: 
List-Subscribe: 
List-Help: 
List-Post: 
List-Id: "Tomcat Users List" 
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Date: Wed, 3 Apr 2002 10:12:36 -0800 (PST)
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Images and STRUTS
X-Spam-Rating: localhost 1.6.2 0/1000/N
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N



On Tue, 2 Apr 2002, Micael Padraig Og mac Grene wrote:

 > Date: Tue, 02 Apr 2002 22:29:28 -0800
 > From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
 > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
 > To: [EMAIL PROTECTED]
 > Subject: Images and STRUTS
 >
 > I tried to do an ordinary image tag with the struts application, and 
 could
 > not.  What is happening with that?  I could not get the index.jsp 
 page to
 > reference an image in the same location.  I used the same page without
 > struts, and it worked.  I am just getting the clue on struts.  I am
 > familiar with the whole of Model 2 architectures, just not 
 struts.  Is it
 > the forwarding mechanism that is calling the problem?

You probably want to ask this sort of question on the STRUTS-USER list
instead of here, but here's a common scenario that can cause Struts users
(or anyone else using an architecture that uses RequestDispatcher.forward)
grief:  if you are using relative path references for your images, those
paths get resolved against the request URI that the browser submitted to
-- not the URI of the page itself.  This is because the browser has no
clue that a RequestDispatcher.forward() call was done on the server side.

Example:

- Your app is installed at "http://localhost:8080/myapp";

- You have a main page "index.jsp", which therefore has the absolute URI
   "http://localhost:8080/myapp/index.jsp";.

- You have an image in an "images" subdirectory, which therefore has the
   absolute URI "http://localhost:8080/myapp/images/logo.gif";.

- You have Struts set up to use path based mapping to the controller
   servlet, so you get URIs like 
 "http://localhost:8080/myapp/do/getCustomer";
   in it (to execute the "getCustomer" action).

Now, consider what happens if you have the following tag in index.jsp:

   

and you execute "http://localhost:8080/myapp/do/mainMenu";.  This fails to
retrieve the image.  Why?  Because the *browser* is the one that resolves
the absolute URI of the image -- and it resolves it against the URI that
it submitted for this request:

   http://localhost:8080/myapp/do/images/logo.gif

which is obviously wrong.  Ways to get around this:

- (Struts-sp

Re: Date fields in forms - what is the best way

2002-04-23 Thread Danny Mui

Personally I like to keep them as longs right now since the dateTime tag
library can format those in any way that is required
(http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html).  It seems
cleaner to transport them from/to html pages that way.


- Original Message -
From: "Brett Porter" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 2:51 AM
Subject: RE: Date fields in forms - what is the best way


> I can't speak authoritatively and haven't investigated Struts 1.1 yet, but
I
> keep them as strings, but modify the form "setXXX" function to also update
a
> private java.util.Date variable using a DateFormat. eg
>
> String birthDate;
> java.util.Date javaBirthDate;
>
> java.util.Date getJavaBirthDate() { return javaBirthDate; }
> // no setJavaBirthDate
> String getBirthDate() { return birthDate; }
> void setBirthDate( String birthDate ) {
> this.birthDate = birthDate;
> try {
> if ( birthDate != null ) {
> this.javaBirthDate = DATE_FORMAT.parse( birthDate );
> }
> else {
> this.javaBirthDate = null;
> }
> }
> catch ( ParseException e ) {
> this.javaBirthDate = null;
> }
>
> In validate:
> if ( javaBirthDate == null && birthDate != null ) {
> errors.add( "birthDate", "errors.birthDate.invalid" );
> }
>
> Hopefully you don't have too many dates in the forms, but it does give
full
> control over the date format they are allowed to input.
>
> HTH,
> Brett
>
> -Original Message-
> From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 23 April 2002 4:40 PM
> To: [EMAIL PROTECTED]
> Subject: Date fields in forms - what is the best way
>
>
> Subject: Date fields in forms - what is the best way
> From: "Lian Seng, Loh" <[EMAIL PROTECTED]>
>  ===
> I saw a post way back advising Dates be kept as Strings in the form field.
>
> If they are not kept as strings, what are the approaches one can take with
> date inputs ?Currently, I keep strings in the form, but transform them
> into the relevant types in the business logic.  But with xdoclet generated
> forms (Date fields are generated as Date in the form bean), this approach
> seems to be broken for me.
>
> In Struts 1.1, PropertyUtils seems to transform java.sql.Timestamp <->
> string properly, but does that mean that the user has to enter the dates
in
> the Timestamp format ?  It seems that java.util.Date is not handled.
>
> Thanks for any advice
> LS
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.349 / Virus Database: 195 - Release Date: 4/15/2002
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




nested Tag

2002-04-23 Thread Dragan Kocic

Hy I'm a newbie with Struts 

I think there is a simple answer to my question and I'm
sorry ... dont' wanted to disturb you 

following ...

I have a Hashtable that I fill with Beans (QuestionBean)  
I saved the hashtable into another Bean (StandardsForm) 
my QuestionBean has a getter-Method for a QuestionText 
I want to iterate through the hashtable and write the
QuestionText  

I tried it like this :


   


... but my Browser don't shows anything ... it don't even 
show an exception 

whats wrong ???

thank you in advance for you help

greetings

KiTaMa

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Fwd: Re: Images and STRUTS: Craig

2002-04-23 Thread Micael Padraig Og mac Grene

The forwarding for this application, further, must be dynamic.


>To: [EMAIL PROTECTED]
>From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
>Subject: Fwd: Re: Images and STRUTS: Craig
>
>
>>Date: Tue, 23 Apr 2002 08:15:48 -0700
>>To: [EMAIL PROTECTED]
>>From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
>>Subject: Fwd: Re: Images and STRUTS: Craig
>>
>>I have looked at this and have researched the area, Craig, and I have a 
>>simple question, I think.  The suggested solution involving extension 
>>mapping is the default behavior of struts, is it not?
>>
>>At least the standard servlet mapping that came with structs in my case is:
>>
>>
>>   
>>   
>> action
>> *.do
>>   
>>
>>
>>Essentially what I want to do is the following: access html pages which 
>>reference .swf (Flash) files (templates) with relative references, e.g., 
>>template1.swf, holding arrays of other .swf files (photos) which all have 
>>relative references to the same directory by default, e.g. photo1.swf, 
>>photo2.swf, photo3.swf, etc.  I want to forward to the html pages through 
>>the controller and the ActionForward functionality in order to preserve 
>>security and other matters.  But, my html pages are not seeing the 
>>template pages.  I can solve that by using relative references in the 
>>html pages, but not in the Flash template.swf pages.  So, what to do?
>>
>>Why won't the relative references work when the default mapping is to the 
>>extension *.do?
>>
>>Micael
>>
>>
>>>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>>>List-Unsubscribe: 
>>>List-Subscribe: 
>>>List-Help: 
>>>List-Post: 
>>>List-Id: "Tomcat Users List" 
>>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>Delivered-To: mailing list [EMAIL PROTECTED]
>>>Date: Wed, 3 Apr 2002 10:12:36 -0800 (PST)
>>>From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>>Subject: Re: Images and STRUTS
>>>X-Spam-Rating: localhost 1.6.2 0/1000/N
>>>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>>>
>>>
>>>
>>>On Tue, 2 Apr 2002, Micael Padraig Og mac Grene wrote:
>>>
>>> > Date: Tue, 02 Apr 2002 22:29:28 -0800
>>> > From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
>>> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>>> > To: [EMAIL PROTECTED]
>>> > Subject: Images and STRUTS
>>> >
>>> > I tried to do an ordinary image tag with the struts application, and 
>>> could
>>> > not.  What is happening with that?  I could not get the index.jsp page to
>>> > reference an image in the same location.  I used the same page without
>>> > struts, and it worked.  I am just getting the clue on struts.  I am
>>> > familiar with the whole of Model 2 architectures, just not struts.  Is it
>>> > the forwarding mechanism that is calling the problem?
>>>
>>>You probably want to ask this sort of question on the STRUTS-USER list
>>>instead of here, but here's a common scenario that can cause Struts users
>>>(or anyone else using an architecture that uses RequestDispatcher.forward)
>>>grief:  if you are using relative path references for your images, those
>>>paths get resolved against the request URI that the browser submitted to
>>>-- not the URI of the page itself.  This is because the browser has no
>>>clue that a RequestDispatcher.forward() call was done on the server side.
>>>
>>>Example:
>>>
>>>- Your app is installed at "http://localhost:8080/myapp";
>>>
>>>- You have a main page "index.jsp", which therefore has the absolute URI
>>>   "http://localhost:8080/myapp/index.jsp";.
>>>
>>>- You have an image in an "images" subdirectory, which therefore has the
>>>   absolute URI "http://localhost:8080/myapp/images/logo.gif";.
>>>
>>>- You have Struts set up to use path based mapping to the controller
>>>   servlet, so you get URIs like 
>>> "http://localhost:8080/myapp/do/getCustomer";
>>>   in it (to execute the "getCustomer" action).
>>>
>>>Now, consider what happens if you have the following tag in index.jsp:
>>>
>>>   
>>>
>>>and you execute "http://localhost:8080/myapp/do/mainMenu";.  This fails to
>>>retrieve the image.  Why?  Because the *browser* is the one that resolves
>>>the absolute URI of the image -- and it resolves it against the URI that
>>>it submitted for this request:
>>>
>>>   http://localhost:8080/myapp/do/images/logo.gif
>>>
>>>which is obviously wrong.  Ways to get around this:
>>>
>>>- (Struts-specific) Use extension mapping instead of path mapping
>>>   for the controller.  Then, all requests and pages are in the same
>>>   "directory level" and relative references work as expected.
>>>
>>>- (Struts-specific) Use the  tag in the  section
>>>   of your index.jsp page.  This creates an HTML  tag that tells
>>>   the browser to base relative references on *this* page, instead of
>>>   the request URI of the submit.
>>>
>>>- (Struts-specific) Use the Struts  tag instead, which knows
>>>   all about this prob

Fwd: Re: Images and STRUTS: Craig

2002-04-23 Thread Micael Padraig Og mac Grene


>Date: Tue, 23 Apr 2002 08:15:48 -0700
>To: [EMAIL PROTECTED]
>From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
>Subject: Fwd: Re: Images and STRUTS: Craig
>
>I have looked at this and have researched the area, Craig, and I have a 
>simple question, I think.  The suggested solution involving extension 
>mapping is the default behavior of struts, is it not?
>
>At least the standard servlet mapping that came with structs in my case is:
>
>
>   
>   
> action
> *.do
>   
>
>
>Essentially what I want to do is the following: access html pages which 
>reference .swf (Flash) files (templates) with relative references, e.g., 
>template1.swf, holding arrays of other .swf files (photos) which all have 
>relative references to the same directory by default, e.g. photo1.swf, 
>photo2.swf, photo3.swf, etc.  I want to forward to the html pages through 
>the controller and the ActionForward functionality in order to preserve 
>security and other matters.  But, my html pages are not seeing the 
>template pages.  I can solve that by using relative references in the html 
>pages, but not in the Flash template.swf pages.  So, what to do?
>
>Why won't the relative references work when the default mapping is to the 
>extension *.do?
>
>Micael
>
>
>>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>>List-Unsubscribe: 
>>List-Subscribe: 
>>List-Help: 
>>List-Post: 
>>List-Id: "Tomcat Users List" 
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>Delivered-To: mailing list [EMAIL PROTECTED]
>>Date: Wed, 3 Apr 2002 10:12:36 -0800 (PST)
>>From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>Subject: Re: Images and STRUTS
>>X-Spam-Rating: localhost 1.6.2 0/1000/N
>>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
>>
>>
>>
>>On Tue, 2 Apr 2002, Micael Padraig Og mac Grene wrote:
>>
>> > Date: Tue, 02 Apr 2002 22:29:28 -0800
>> > From: Micael Padraig Og mac Grene <[EMAIL PROTECTED]>
>> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>> > To: [EMAIL PROTECTED]
>> > Subject: Images and STRUTS
>> >
>> > I tried to do an ordinary image tag with the struts application, and could
>> > not.  What is happening with that?  I could not get the index.jsp page to
>> > reference an image in the same location.  I used the same page without
>> > struts, and it worked.  I am just getting the clue on struts.  I am
>> > familiar with the whole of Model 2 architectures, just not struts.  Is it
>> > the forwarding mechanism that is calling the problem?
>>
>>You probably want to ask this sort of question on the STRUTS-USER list
>>instead of here, but here's a common scenario that can cause Struts users
>>(or anyone else using an architecture that uses RequestDispatcher.forward)
>>grief:  if you are using relative path references for your images, those
>>paths get resolved against the request URI that the browser submitted to
>>-- not the URI of the page itself.  This is because the browser has no
>>clue that a RequestDispatcher.forward() call was done on the server side.
>>
>>Example:
>>
>>- Your app is installed at "http://localhost:8080/myapp";
>>
>>- You have a main page "index.jsp", which therefore has the absolute URI
>>   "http://localhost:8080/myapp/index.jsp";.
>>
>>- You have an image in an "images" subdirectory, which therefore has the
>>   absolute URI "http://localhost:8080/myapp/images/logo.gif";.
>>
>>- You have Struts set up to use path based mapping to the controller
>>   servlet, so you get URIs like "http://localhost:8080/myapp/do/getCustomer";
>>   in it (to execute the "getCustomer" action).
>>
>>Now, consider what happens if you have the following tag in index.jsp:
>>
>>   
>>
>>and you execute "http://localhost:8080/myapp/do/mainMenu";.  This fails to
>>retrieve the image.  Why?  Because the *browser* is the one that resolves
>>the absolute URI of the image -- and it resolves it against the URI that
>>it submitted for this request:
>>
>>   http://localhost:8080/myapp/do/images/logo.gif
>>
>>which is obviously wrong.  Ways to get around this:
>>
>>- (Struts-specific) Use extension mapping instead of path mapping
>>   for the controller.  Then, all requests and pages are in the same
>>   "directory level" and relative references work as expected.
>>
>>- (Struts-specific) Use the  tag in the  section
>>   of your index.jsp page.  This creates an HTML  tag that tells
>>   the browser to base relative references on *this* page, instead of
>>   the request URI of the submit.
>>
>>- (Struts-specific) Use the Struts  tag instead, which knows
>>   all about this problem and generates the correct URI automatically.
>>
>>- (General) Use a relative path like "../images/logo.gif" to convince
>>   the browser to do the path correctly.
>>
>>- (General) Include your own  tag to tell the browser what the
>>   absolute URL of this page is.
>>
>> >
>> > Micael
>> >
>>
>>Craig
>>
>>
>

RE: Accessing form bean from inside a custom tag, take 2

2002-04-23 Thread James Mitchell

Sorry if I'm late at getting you an answer.

But I hope others might find this helpful in the future as well.





If you follow the trail from the struts-example, you'll find just such an
example of what you are trying to do:
--
struts-config.xml
--
  



  




--
org.apache.struts.webapp.example.EditRegistrationAction
--

163 form = new RegistrationForm();
164if ("request".equals(mapping.getScope()))
165request.setAttribute(mapping.getAttribute(), form);
166else
167session.setAttribute(mapping.getAttribute(), form);

/*
 *Notice line 165 and line 167, the mapping.getAttribute is getting
"registrationForm" from above in the struts-config.xml and storing the form
in the request by that name.
 * Now assuming that all goes well (the user filled in the form correctly),
then we go to our jsp.
 */

201 }
202 return (mapping.findForward("success"));
203

--
registration.jsp
--
// Here the current bean instance is set into the pageContext by the name
"subscription"

143
144  

/* Then, down here we try to create our link tag, html:link works fine for
most
 * cases, however, we need have a special case.
 * Personally, I use a custom tag every time I need to pass an id to another
action
 * This works great for me because most of my detail records are unique by
their id and not
 * by some compound key
 * Basically, it appends "id=n" where n is the id of the database record
 * that I am using/changing
 */

158  
159
160  

/* app is defined as a custom tld. linkSubscription is of type
 * org.apache.struts.webapp.example.LinkSubscriptionTag
 */


--
org.apache.struts.webapp.example.LinkSubscriptionTag
--
173 Subscription subscription = null;
174 try {
175 subscription = (Subscription) pageContext.findAttribute(name);
176} catch (ClassCastException e) {
177 subscription = null;
178 }

/*
 * Notice here that we attempt to get the form from the pageContext.
 * the variable called "name" is set to a default value of "subscription"
 * in this class.  You can have given it any name you like
 * by changing it in the logic:iterate or if you are *not* within an
iteration,
 * by adding name="myName" to the app:linkSubscription tag in
registration.jsp
 *
 * I hope that this provides some insight into writing your own custom
(struts) tags.
 * They are really quite flexible and powerful.
 *
 * As you build your application, try to think ahead and consider every
possible use
 * of a new tag, that will provide for better reuse and it will make it more
maintainable
 * for the next guy (or gal).
 *
 */






> -Original Message-
> From: Bryan P. Glennon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 10:19 AM
> To: Struts Users Mailing List
> Subject: RE: Accessing form bean from inside a custom tag, take 2
>
>
> Christian -
> Those were the first two things I tried. In each case, I get a null
> returned from getAttribute. I even tried
> pageContext.findAttribute("beanName") and it also returned null. I am
> pretty sure I have things configured correctly:
> In struts-config.xml I define a form bean named fileXferBean. In the
> action mapping that will lead to the page with the custom tag, I specify
> fileXferBean for the name attribute. I see the bean get instantiated,
> but it is just not there when I try to get it from the doStartTag
> function (using ...getAttribute("fileXferBean")).
>
> I know I should be able to do this - what am I missing?
>
> Thanks again,
> Bryan
>
>
> --
> Bryan Glennon (mailto:[EMAIL PROTECTED])
> BPG Consulting, Inc. (http://www.bpgc.com)
> Tech Question? (mailto:[EMAIL PROTECTED])
>
>
> -Original Message-
> From: Christian Bouessay [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 8:53 AM
> To: Struts Users Mailing List
> Subject: Re: Accessing form bean from inside a custom tag, take 2
>
>
> Form-bean is stored in request/session.
> And in a custom tag, you can access the property pageContext.
>
> Why not using a code like :
>
> MyFormBean form = (MyFormBean)pageContext.getAttribute("myFormBeanName",
>PageContext.SESSION_SCOPE);
>
> or
>
> MyFormBean form = (MyFormBean)pageContext.getAttribute("myFormBeanName",
>PageContext.REQUEST_SCOPE);
>
> Don't know if it answer your question :-)
> --
> C. Bouessay
>
>
>
>
> Bryan P. Glennon wrote:
> > (I tried to post this to the list yesterday, but I don't think it made
>
> > it - it is not in the list archive. Sorry if this shows up twice.)
> >
> > Is there any way to access the form bean from within the
> > doStartTag/doAfterBody functions of a custom tag?
> >
> > Thanks,
> > Bryan
> >
> > --
> > To unsubscribe, e-mail:
> 

Struts and Torque commons-collection incompatibility

2002-04-23 Thread Robert Morse

The Struts 1.1 beta and the latest Torque use a different version of
commons-collection.jar.  You'll get a class not found exception for
StringStack if you use the version that comes with Struts.  I copied the
version that comes with Torque, and Struts seems to behave properly.

---
Robert D. Morse
[EMAIL PROTECTED]
PGP Key:  D9C4AA6A
PGP Finger Print:  ED56 DEEA 95CF AC99 C2B0  77D4 7D92 ACCA D9C4 AA6A


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Not Accepting Posts from Struts Forms

2002-04-23 Thread Daniel Jaffa

I believe this is an iis configuration error.

Can u write a simple asp page that accepts posts?
- Original Message -
From: "Mike Duffy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 10:26 AM
Subject: Not Accepting Posts from Struts Forms


> We are running Struts under Resin with IIS on the front end.
>
> Any type of "get" request processes fine.
>
> However, "post" requests generate the error below.
>
> Has anyone run into a similar problem?
>
> Thanks.
>
> Mike
>
>
> HTTP Error 405
> 405 Method Not Allowed
>
> The method specified in the Request Line is not allowed for the
> resource identified by the request. Please ensure that you have the
> proper MIME type set up for the resource you are requesting.
>
> Please contact the server's administrator if this problem persists.
>
>
> __
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Multiple error pages for a single action mapping

2002-04-23 Thread Schmidt, Carl

I have a reset password section of the web site where the user must go
through a set of pages, verifying their information and then have their
password reset.  Each page submits to the same action mapping, and I have a
session bean that tracks answers to each of the questions on each page.  As
each page is validated though, all I can use is just one input tag in the
action mapping to return the user back to some central error page.  What I'd
like to do is return the user back to the page which contained the errors,
dispaying the errors at the top.  How do I do this?

Carl

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Not Accepting Posts from Struts Forms

2002-04-23 Thread Mike Duffy

We are running Struts under Resin with IIS on the front end.

Any type of "get" request processes fine.

However, "post" requests generate the error below.

Has anyone run into a similar problem? 

Thanks.

Mike 


HTTP Error 405
405 Method Not Allowed

The method specified in the Request Line is not allowed for the
resource identified by the request. Please ensure that you have the
proper MIME type set up for the resource you are requesting.

Please contact the server's administrator if this problem persists.


__
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: CapitalOne

2002-04-23 Thread Stephen . Thompson

But does your version of IE5.5 include 128bit encryption? I access capital
often and have no problems. 

-Original Message-
From: Dennis Doubleday [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2002 15:16
To: 'Struts Users Mailing List'
Subject: RE: CapitalOne


I got this when I went there, even though I was using IE 5.5.


Browser Alert
You cannot access Online Account Services with your current Web browser.

Possible reasons for this could be one of the following:


You are using Netscape 4.0 through 4.07 or Netscape 6.0, which we cannot
support for online account transactions due to security reasons. 
You are using a browser that is incompatible with our Online Account
Services system. We recommend you use Netscape versions 4.08 through 4.7
or Internet Explorer versions 5.0 or higher. 
Your browser does not support 128-bit encryption. 


> -Original Message-
> From: Ethan Schroeder [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, April 22, 2002 6:37 PM
> To: [EMAIL PROTECTED]
> Subject: CapitalOne
> 
> 
> Hey,
> 
> It looks like CapitalOne is using struts for their account 
> management.  
> https://service.capitalone.com/oas/login.do?objectclicked=Logi
> nSplash 


--
To unsubscribe, e-mail:

For additional commands, e-mail:



---

Copyright material and/or confidential and/or privileged information may be contained 
in this e-mail and any attached documents.  The material and information is intended 
for the use of the intended addressee only.  If you are not the intended addressee, or 
the person responsible for delivering it to the intended addressee, you may not copy, 
disclose, distribute, disseminate or deliver it to anyone else or use it in any 
unauthorised manner or take or omit to take any action in reliance on it. To do so is 
prohibited and may be unlawful.   The views expressed in this e-mail may not be 
official policy but the personal views of the originator.  If you receive this e-mail 
in error, please advise the sender immediately by using the reply facility in your 
e-mail software, or contact [EMAIL PROTECTED]  Please also delete this e-mail and 
all documents attached immediately.  
Many thanks for your co-operation.

BMW Financial Services (GB) Limited is registered in England and Wales under company 
number 01288537.
Registered Offices : Europa House, Bartley Way, Hook, Hants, RG27 9UF
--

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: CapitalOne

2002-04-23 Thread Dennis Doubleday

I got this when I went there, even though I was using IE 5.5.


Browser Alert
You cannot access Online Account Services with your current Web browser.

Possible reasons for this could be one of the following:


You are using Netscape 4.0 through 4.07 or Netscape 6.0, which we cannot
support for online account transactions due to security reasons. 
You are using a browser that is incompatible with our Online Account
Services system. We recommend you use Netscape versions 4.08 through 4.7
or Internet Explorer versions 5.0 or higher. 
Your browser does not support 128-bit encryption. 


> -Original Message-
> From: Ethan Schroeder [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, April 22, 2002 6:37 PM
> To: [EMAIL PROTECTED]
> Subject: CapitalOne
> 
> 
> Hey,
> 
> It looks like CapitalOne is using struts for their account 
> management.  
> https://service.capitalone.com/oas/login.do?objectclicked=Logi
> nSplash 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: File upload

2002-04-23 Thread Stuart Jameson

Thanks Rob,

Problem was I hadn't found the struts docs for FormFile. 

  public void setMyFile(FormFile file) {
myFile = file;
  }
  public FormFile getMyFile() {
return myFile;
  }

 Struts deals with file upload for you.  Suspected it might but I didn;t rtfm 
sufficiently before posting a question.


-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2002 13:30
To: Struts Users Mailing List
Subject: RE: File upload


Try flushing the buffer before closing.

pw.flush();

or create the PrintWriter using the output stream and the autoflush flag set
to true.

PrintWriter pw = new PrintWriter(new BufferedWriter( new
FileWriter("C:\\Demo.out"), true);

HTH,

robert

> -Original Message-
> From: Stuart Jameson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 8:26 AM
> To: Struts Users Mailing List
> Subject: RE: File upload
>
>
> Hi,
>
> Got a problem with uploading files to the server.
>
> I don't get any errors but the files I try and upload are always empty
>
> Code I'm using in the Action::perform() method looks like this
>
>
>
> PrintWriter pw = new PrintWriter(
>
> )
> );
> int i = in.read();
> while (i != -1) {
> pw.print((char) i);
> i = in.read();
> }
> pw.close();
>
>
> Demo.out is created but empty.
>
> Any pointers of what I need to add to my jsp page or to my Action
> servlet greatly appreciateed.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




HTML taglib & Datetime taglib

2002-04-23 Thread Chen, Dean

I'm trying to display a time value in the text box.
I'm using the struts html taglib and the jakarta datetime taglib

The time value is stored as a long in a form. Hence, 
 



work.

However, I want to do:

  
 


But this doesn't work. Any work arounds?
Thanks
Dean



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Beans + Internationalization + Struts

2002-04-23 Thread Juan Alvarado \(Struts List\)

I am working on a site that is both in spanish and english.

Whenever tomcat starts up, I load into application scope a product list
class which contains an ArrayList of ProductBeans.  Since the user is going
to be presented with a choice of viewing the site in spanish or english, I
need to know if anyone has a clean way of displaying the correct ProductBean
properties in their respective locales. For example, I have a ProductBean
with two fields: descriptionEs and descriptionEn.

My solution was going to be to do a check in the JSP to see which locale the
user chose. Then I would use the struts logic tags to  pull out the correct
property from the bean for the correct locale

In my jsp I would have something like:

if( locale == es ){
productBean.getDescrtiptionEs();
}
of course the above would be changed to be used with the struts logic tags.

I don't particularly like this approach because it involves putting too much
logic into the JSPs. What I would like is to just call the
productBean.getDescription() method and have the correct value come back
according to what locale the user chose.

If anyone can give me any feedback or ideas I WOULD greatly appreciate it.


**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE) - Proxy problems?

2002-04-23 Thread Mike Dewhirst

No, going out to the internet directly. Have a "real" ip address. Am behind
a firewall however (same box). Bare in mind, though - fetch works ok.

Any more ideas?

Many thanks for the help so far and for (hopefully :) ) more in advance!

Mike

> -Original Message-
> From: Alex Jones [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 10:18
> To: 'Struts Users Mailing List'
> Subject: RE: can't register struts-config dtd on tomcat 4.0.3 
> (1.4 LE) -
> Proxy problems?
> 
> 
> Are you behind a proxy? If so, you'll need to make sure that the JVM
> knows about it before ActionServlet starts trying to read the DTD. One
> way of doing this would be to subclass ActionServlet and override the
> init method to something like this:
> 
> public class ProxyActionServlet extends ActionServlet
> {
>   public void init(ServletConfig config)
>   {
> System.setProperty ("http.proxyHost",proxyserver);
> System.setProperty ("http.proxyPort",proxyport);
> 
> System.setProperty ("https.proxyHost",secureproxy);
> System.setProperty ("https.proxyPort",secureproxyport);
> 
> System.setProperty ("http.proxyUserName",username);
> System.setProperty ("http.proxyPassword",password);
> 
> super.init(config);
>   }
> }
> 
> (I've typed this from memory so it may not work if you just cut and
> paste). Then you'll need to make sure your web.xml file points to your
> new class.
> 
> Cheers,
> Alex
> 
> -Original Message-
> From: Mike Dewhirst [mailto:[EMAIL PROTECTED]] 
> Sent: 23 April 2002 09:08
> To: 'Struts Users Mailing List'
> Subject: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE)
> Importance: High
> 
> Has anybody ever had this before? I am running struts on freebsd 4.4
> (custom), jdk1.4 (linux), tomcat 4.0.3 (1.4 LE), and struts 1.0.2
> (stable).
> 
> Does anybody have any idea what could be causing this and how could I
> fix
> it?
> 
> if i do a manual fetch of
> http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd - the file
> is
> downloaded no problem.
> 
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
> 'jar:file:/usr/local/tomcat4.0.3/webapps/callsystem/WEB-INF/li
> b/struts.j
> ar!/
> org/apache/struts/resources/web-app_2_3.dtd'
> resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
> 1.1//EN', 
> 'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd')
>  Not registered, use system identifier
> Parse Fatal Error at line 5 column -1: External entity not found:
> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";.
> java.net.UnknownHostException: jakarta.apache.org
> at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
> at
> org.apache.crimson.parser.Parser2.externalParameterEntity(Pars
> er2.java:2
> 870)
> at
> org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
> at
> org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
> at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
> at
> org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
> at
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:89)
> at 
> org.apache.struts.digester.Digester.parse(Digester.java:755)
> at
> org.apache.struts.action.ActionServlet.initMapping(ActionServl
> et.java:13
> 32)
> at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
> at javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.jav
> a:91
> 6)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
> java:808)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(Standar
> dContext.j
> ava:
> 3266)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:3395
> )
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
> java:785)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
> at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
> at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
> ig.java:23
> 2)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSu
> ppor
> t.java:155)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> at
> org.apache.catalina.core.StandardEngine.start(Standard

struts-validator and javascript bundle

2002-04-23 Thread Reynaldo Timonera

Hi All,

Is there a way to use the struts-validator javascript tag to use multi-resource bundle?

Thanks,

Reynaldo



RE: File upload

2002-04-23 Thread Robert Taylor

Try flushing the buffer before closing.

pw.flush();

or create the PrintWriter using the output stream and the autoflush flag set
to true.

PrintWriter pw = new PrintWriter(new BufferedWriter( new
FileWriter("C:\\Demo.out"), true);

HTH,

robert

> -Original Message-
> From: Stuart Jameson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 8:26 AM
> To: Struts Users Mailing List
> Subject: RE: File upload
>
>
> Hi,
>
> Got a problem with uploading files to the server.
>
> I don't get any errors but the files I try and upload are always empty
>
> Code I'm using in the Action::perform() method looks like this
>
>
>
> PrintWriter pw = new PrintWriter(
>
> )
> );
> int i = in.read();
> while (i != -1) {
> pw.print((char) i);
> i = in.read();
> }
> pw.close();
>
>
> Demo.out is created but empty.
>
> Any pointers of what I need to add to my jsp page or to my Action
> servlet greatly appreciateed.
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: File upload

2002-04-23 Thread Stuart Jameson

Hi,

Got a problem with uploading files to the server.

I don't get any errors but the files I try and upload are always empty

Code I'm using in the Action::perform() method looks like this



PrintWriter pw = new PrintWriter(

new BufferedWriter( new FileWriter("C:\\Demo.out") ) ); 
int i = in.read();
while (i != -1) {
pw.print((char) i);
i = in.read();
}
pw.close();


Demo.out is created but empty.

Any pointers of what I need to add to my jsp page or to my Action servlet greatly 
appreciateed.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Managing session info - WAS: Where is it best to populate default form beancollections

2002-04-23 Thread Kevin . Bedell




Steve -

Some of this depends on your app server.

Depending on the app server you're using the SSB's may be stored in the
equivalent of a session context in the ejb container. I know that managing
failover among app servers gets more complex if the app servers have to
synch a great deal of SSB replication - different servers handle it
differently. In other words, you likely haven't reduced the overall memory
requirements.

And you've likely added overhead related to serializing and unserializing
the bean info as it moves between the sevlet and ejb containers.

My approach is this:

 - Don't run from ghosts. That is, don't refactor until you've actually
enountered a problem - unless there are good other reasons to refactor.
 - Memory is much cheaper than development time. Have them load the box as
high as possible before re-writing.

Another approach:

If you're concerned about carrying session related stuff in the user
session, store it in a database keyed by a Session ID. I've seen this done
successfully. You probably don't need all that information on every page -
so some of it can likely be stored in the database and pulled back when
needed (if ever). This can be done via a session object, a SSB or even an
entity bean (primary key = Session ID). I wouldn't write this unless I
actually ran into a performance problem - but I'd design to make sure it
was easy to implement if I needed to.



It might be useful to explore the creation of Struts "model" classes to
facilitate persisting of session information via a jdbc connection. Maybe
this could become a standard Model class that could be subclassed for
particular implementations.


FWIW -
Kevin







Steve Earl <[EMAIL PROTECTED]> on 04/23/2002 04:38:27 AM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc:
Subject:  RE: Where is it best to populate default form bean collections et
   c?


Guys,

A bit off-topic but opinions appreciated...

I've recently changed an app I'm working on to no longer hold forms on the
session but instead store them within a stateful session bean. Prior to
displaying any jsp I've then got dedicated action classes which retrieve
the
correct form from the ssb and place it into the request.

We decided to do this because the application is likely to result in a
large
amount of data being held through a user session. In addition the app is
multi-frame (I know - try telling the client it's a pain in the arse...). I
was under the impression that storing forms on the session would mean that
a
bloated session object would have to be sent to each frame within the
application (sometimes we have 8 or more on a page) and this would be
detrimental to performance. Basically I thought the idea was to avoid
placing too much data on the session if at all possible. I appreciate that
a
remote call to a ssb is not likely to be the most rapid access method but I
was concerned about running a multi-framed app with a large session object.

Can someone tell me if my opinion is correct or have I just changed a whole
shedload of classes, config files etc for no reason!

go on, make my day!
steve

__
Steve Earl

InfoGain Limited

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 9:02 PM
To: 'Struts Users Mailing List'
Subject: RE: Where is it best to populate default form bean collections
et c?


Yep - the init method of the servlet or static initializers are better.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 3:28 PM
To: Struts Users Mailing List
Subject: RE: Where is it best to populate default form bean collections
et c?






I generally use a "static initializer" (also called an anonymous block) for
this stuff.

For example state codes could be done in a static class called States.java


public static class States {

private HashMap statesMap;

public HashMap getStates() {
return this.statesMap
}

public void setStates(HashMap states)
   {
this.statesMap = states;
}

// Begin anonymous block for initialization
{
 this.setStates(this.initializeStates());
}

private HashMap .initializeStates() {

 HashMap states;

 // put code here to initialize the hashmap via jdbc, xml parsing,
whatever...

 return states;
}
}


Then the first time you reference the States class it is automatically
initialized. After the first time it is referenced, everything is cached.














"Thinh Doan" <[EMAIL PROTECTED]> on 04/22/2002 03:24:35 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject:  RE: Where is it best to populate default form bean collections et
  c?


We did it using an init servlet, run when the app gets loaded and stay in
app. scope.

Thin

Re: response has already been committed - question/solution?

2002-04-23 Thread Klaus Thiele

thanks Jon,

yes, this is a nice feature...
 "This can be used to integrate Struts with other business logic components that are 
implemented as servlets..."
 
but this is not which i need :(

another (undocumented?) feature is to use include="..." instead of type="..."
from struts-config_1_0.dtd:
 include Context-relative path of the servlet or JSP resource that
 will process this request, instead of instantiating and
 calling the Action class specified by "type".  Exactly one
 of "forward", "include", or "type" must be specified.

but i think the result it's the same as the IncludeAction

what i need is only not to rd.forward to the jsp-page after the action but
rd.include it.

i've already done some easiest patches to do this
  as an init-param for the ActionServlet for the whole Application
or as ActionForward.setRdinclude(true).

because i'm not a struts/servlet specialist i'd like to know if there are
any side-effects, breaking struts rule or what else, if i do this.
if not, it was very helpful for us if such a method was integrated in
the struts-release.

tia
  klaus

Am Dienstag, 23. April 2002 11:47 schrieben Sie:
> Hi Klaus,
>
> My mistake; I was just reading about the
> org.apache.struts.actions.IncludeAction on this list. It looks like you can
> have an action extend this instead of a standard Action.
>
> Would this help in your case; it does a RequestDispatcher.include().
>
> Jon.
>
> -Original Message-
> From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 10:16
> To: Struts Users Mailing List
> Subject: Re: response has already been committed - question/solution?
>
> Hi Jon,
>
> thanks for responding.
>
> you mean  "" in
> struts-config.xml?
>
> this does an 'sendRedirect()', not a RequestDispatcher.include() and did
> not help.
>
> thanks
>   klaus
>
> Am Dienstag, 23. April 2002 10:59 schrieben Sie:
> > Hi Klaus,
> >
> > Struts already has a mechanism to switch between forward and include, add
> > redirect="true" or redirect="false" to your actions forward.
> >
> > Jon.
> >
> > -Original Message-
> > From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
> > Sent: 23 April 2002 07:59
> > To: Struts Users Mailing List
> > Subject: response has already been committed - question/solution?
> >
> > Hello,
> >
> > in our application was integrated a third_party portal software which
>
> don't
>
> > use
> > frames but includes (managed by a database) dynamicly parts of our
> > struts-application
> > via
> >  ...
> ><%jsp:include page="<%=incl%>">
> >  ...
> > this works fine with the Orion-AppServer but not with Tomcat4/JBoss
> > (Cannot forward after...)
> >
> > After reading the Mail-Archive and the Specs 'higgledy-piggledy' i'm
> > concluding that a Struts-Appl _cannot_ be included via
> > '<%jsp:include...'.
> >
> > Did i'm right? (It isn't very useful not be able to do this)
> >
> > Then the Light in the Dark(?):  rd.include instead of rd.forward
> >
> > i patched struts-1.0.2 that ActionServlet has a new init-parm "rdinclude"
> > and if this set to "true" it does an rc.include otherwise rc.forward.
> >
> > And our Application works FINE with Tomcat4!!!
> >
> > But where are the 'Hooks and Eyes'?
> > Is something like this already planned?,
> >
> > any help/hints are very appreciated
> > tia
> >   klaus

-- 
--
Klaus Thiele - Personal & Informatik AG
mailto:[EMAIL PROTECTED]

 "Your mouse has moved.
  Windows must be restarted for the change to take effect."

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with property in ActionForm

2002-04-23 Thread Remke Rutgers

Hi Dante,

Thanks for the answer. The explanation is clear and the suggestion to refer
to the property on the jsp as "ACompanyId" works, but I think the check for
(upper/lower)case should not be on the first two letters, but on the
complete string.

Remke Rutgers

> -Oorspronkelijk bericht-
> Van: Dante Briones [mailto:[EMAIL PROTECTED]]
> Verzonden: Monday, April 22, 2002 19:16
> Aan: Struts Users Mailing List
> Onderwerp: Re: Problem with property in ActionForm
> 
> 
> This is a feature of the JavaBeans property naming standards 
> that allows 
> you to have an all-caps property name.  To quote from the JavaBeans 
> specification:
> --
> Java programmers are accustomed to having normal identifiers 
> start with 
> lower case letters.
> Vigorous reviewer input has convinced us that we should 
> follow this same 
> conventional rule
> for property and event names.
> 
> Thus when we extract a property or event name from the middle of an 
> existing Java name, we
> normally convert the first character to lower case. However 
> to support the 
> occasional use of all
> upper-case names, we check if the first two characters of the 
> name are both 
> upper case and if
> so leave it alone. So for example,
> 
> "FooBah" becomes "fooBah"
> "Z" becomes "z"
> "URL" becomes "URL"
> --
> 
> So you would have to refer to the property on the jsp as 
> "ACompanyId" in 
> order to use the property as coded below.  Or you could 
> rename the property 
> something like "AdminCompanyId".
> 
> HTH,
> 
> db
> 
> 
> At 04:54 PM 22/4/2002 +0200, you wrote:
> 
> >Hi all,
> >
> >I seem to have found a strange bug in Struts (or I need more coffee).
> >
> >I have an ActionForm with a property "aCompanyId" (the 'a' stands for
> >admin), and thus have the following members:
> >public Integer aCompanyId;
> >public Integer getACompanyId();
> >public void setACompanyId( Integer someId );
> >
> >But, when I try to reference this form in a .jsp using
> >, I get the following error: javax.servlet.ServletException: 
> No getter 
> >method for property aCompanyId of bean 
> org.apache.struts.taglib.html.BEAN 
> >The strange part is that if I change the name of the 
> property and the form 
> >methods to "aaCompanyId" and "getAaCompanyId()" etc it 
> *does* work. What's 
> >wrong here? Greetings, Arjan Lamers 
> >- Notice: The 
> only person 
> >getting his work done by Friday was Robinson Crusoe. -- To 
> unsubscribe, 
> >e-mail: For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: anyone using declarative security? - even a pointer to a resource will do.

2002-04-23 Thread jfc100

Jon.Ridgway wrote:

>Hi Joe,
>
>Yes I use it extensively, what is it you want to do and what App Server/Web
>Container are you using?
>
>Jon.
>
>-Original Message-
>From: jfc100 [mailto:[EMAIL PROTECTED]] 
>Sent: 23 April 2002 12:21
>To: Struts Users Mailing List
>Subject: anyone using declarative security? - even a pointer to a resource
>will do.
>
>Hi again,
>
>I dont mean to sound as though I deserve anyone's attention but I can't 
>find any resource on this. I've searched all the forums I know of and 
>the net but still can't find any meaningful info on the subject. I've 
>also looked at the servlet and jsp specs which don't go into much 
>detail. The J2EE developers guide seems to be heavily slanted to 
>developing with specific tools.
>
>If someone can offer any suggestion as to how I use the declarative 
>security principle, roles and rolegroups to identify users and their 
>groups (as outlined below) I would be most grateful.
>
>Cheers
>Joe ;-)
>
>
>jfc100 wrote:
>
>>Hi,
>>
>>I would like to implement a user base (using J2EE declarative 
>>security) with the following relationship hierarchy :
>>
>>Users:
>>user = 100, usergroup = 11;
>>
>>UserGroups:
>>usergroup = 10, groupname=agent, parentgroup = 5;
>>usergroup = 11, groupname=privatesupplier, parentgroup = 5;
>>usergroup = 5, groupname=supplier, parentgroup = 1;
>>usergroup = 1, groupname=user, parentgroup=0;
>>
>>This is so that if I say userInRole(supplier) I know I'm dealing with 
>>all users in this group as well as all users in all child groups. Or 
>>in other words I need to know whether a user is a descendent of a 
>>particular ancestor.
>>
>>How could I implement this using principals, roles and rolegroups? I 
>>mean how do the three relate?
>>
>>Thanks
>>Joe
>>
>>
>>
>>-- 
>>To unsubscribe, e-mail:   
>>
>>For additional commands, e-mail: 
>>
>>
>>
>
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
Hi Jon!

I'm using tiles,struts,tomcat3.2.3+jboss2.4.1 on jdk1.3 on suse7.2. What 
I'm wanting to do is to be able to store user-specific jsp pages and 
reference them according to their position in the user hierarchy. Like this



/usr/registration/create/create.jsp
/usr/registration/create/anonymous/create.jsp
/usr/registration/create/loggedin/create.jsp
/usr/registration/create/supplier/create.jsp
/usr/registration/create/foodsupplier/create.jsp
/usr/registration/create/motorcarsupplier/create.jsp
/usr/registration/create/hammocksupplier/

So, if my user logs in and is authenticated as belonging to usergroup 
'foodsupplier', the group-specific page is selected. If there is no 
group-specific page defined, the parent group's page should be selected. 
If there is no parent group page defined then it's parent group page etc 
until (if there are no group specific jsp pages defined) a generic page 
(for that piece of use case) is selected.

To be honest I don't even know if declarative security is overkill for 
what I want but I thought it would be good to use for future development 
needs - i.e. making the system standard and extensible and reuseable and 
all that.

The template selection based on role I was hoping to implement using 
tiles but I first need to understand what for example a 'rolegroup' is 
and how it is /can be used to group users and then how do 'roles' and 
'principals' tie in to this?

I'm not sure whether form-based authentication is good enough for your 
average membership based web app due to the fact that username and 
password are apparantly shipped to and from the clients browser 
unencoded/unencrypted. We know that using ssl is slow so we reserve its 
use for sending credit card data which only happens from time to time as 
apposed to with every request.

Thoughts? (suggestions to alternative methods welcome)

Joe


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Exception display (using Tiles)

2002-04-23 Thread Karim D. Saloojee

Hi

I have a question on how Tiles and Struts propogate exceptions. If for
instance, I have a an exception in my body jsp, unless I declare a JSP error
page in that body, my error page will not display.

Is there a way to declare a JSP error page in the layout and then have all
the pages which use that layout use the same JSP error page?

Could someone clarify this behaviour? I have a hunch on how it works but I
would like to be certain.

Thanks
Karim


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: null in html on validation

2002-04-23 Thread Jesse Alexander (KADA 12)

Hi,

if you talk about Struts 1.0.x:

check in your application-resource-file whether you have the following 
keys with some value:

errors.header=Errors found:
errors.footer=

hope this helps
Alexander

-Original Message-
From: Team Gasoline [mailto:[EMAIL PROTECTED]]
Sent: Samstag, 20. April 2002 02:29
To: [EMAIL PROTECTED]
Subject: null in html on validation


Hello --

I'm having a problem  with errors being surrounded by "null" on my page 
after validation. Here is a snippet of the html when i view source of 
the page through the browser.

   
 
   User Name:
 
 
   
   null
<--Required 
Field
null

 
   

Here is what I have in my jsp.

   
 
   
 
 
   
   
 
   

and my form.

 public ActionErrors validate(ActionMapping mapping,
  HttpServletRequest request) {

 ActionErrors errors = new ActionErrors();
 if ((username == null) || (username.length() < 1))
 errors.add("username", new 
ActionError("error.username.required"));

 return errors;

 }

Has anyone ever seen this before. I have checked everywhere and have 
found no good answers.

Thanks.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: anyone using declarative security? - even a pointer to a resource will do.

2002-04-23 Thread Jon.Ridgway

Hi Joe,

Yes I use it extensively, what is it you want to do and what App Server/Web
Container are you using?

Jon.

-Original Message-
From: jfc100 [mailto:[EMAIL PROTECTED]] 
Sent: 23 April 2002 12:21
To: Struts Users Mailing List
Subject: anyone using declarative security? - even a pointer to a resource
will do.

Hi again,

I dont mean to sound as though I deserve anyone's attention but I can't 
find any resource on this. I've searched all the forums I know of and 
the net but still can't find any meaningful info on the subject. I've 
also looked at the servlet and jsp specs which don't go into much 
detail. The J2EE developers guide seems to be heavily slanted to 
developing with specific tools.

If someone can offer any suggestion as to how I use the declarative 
security principle, roles and rolegroups to identify users and their 
groups (as outlined below) I would be most grateful.

Cheers
Joe ;-)


jfc100 wrote:

> Hi,
>
> I would like to implement a user base (using J2EE declarative 
> security) with the following relationship hierarchy :
>
> Users:
> user = 100, usergroup = 11;
>
> UserGroups:
> usergroup = 10, groupname=agent, parentgroup = 5;
> usergroup = 11, groupname=privatesupplier, parentgroup = 5;
> usergroup = 5, groupname=supplier, parentgroup = 1;
> usergroup = 1, groupname=user, parentgroup=0;
>
> This is so that if I say userInRole(supplier) I know I'm dealing with 
> all users in this group as well as all users in all child groups. Or 
> in other words I need to know whether a user is a descendent of a 
> particular ancestor.
>
> How could I implement this using principals, roles and rolegroups? I 
> mean how do the three relate?
>
> Thanks
> Joe
>
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Caching IE revisited

2002-04-23 Thread Adolfo Miguelez


Cheers Todd,

it seems to work, so the problem looks like to be solved. However, I am 
still wondering, just for clarify my mind, if browser takes in account 
response HTTP headers or just ignore them.

AFAIK pragma info travels in the body of the HTTP response, within HTML 
content, as plain text, rather that in the HTTP headers. I am not sure that 
Websphere could be modyfing HTTP headers.

The fact that it works, does not clarify to me if server overrides HTTP 
headers.

Anyway, it works!!!

Adolfo.

>From: Todd Pierce <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Adolfo Miguelez' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: RE: Caching IE revisited
>Date: Tue, 23 Apr 2002 09:41:43 +1000
>
>I don't think this is a struts issue. It's also nothing to do with
>Websphere, or any other container for that issue.
>
>There is a known problem with IE and caching, particularly IE5.0. I burnt 
>up
>days on this bug a while back, using Weblogic and a different framework -
>screens not refreshing on reload, going to a form page and it's  already
>populated with the last submit.
>
>The problem was solved by inserting a second  with the Pragma stuff 
>in
>it after the body in the html, e.g:
>
>
>...
>   
>...
>
>
>
>...
>
>
>   
>
>
>You might want to read this:
>
>http://www.htmlgoodies.com/beyond/nocache.html
>
>I hope it fixes your problem.
>
>Cheers,
>
>Todd Pierce.
>-Original Message-
>From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, 23 April 2002 6:00
>To: [EMAIL PROTECTED]
>Subject: Caching IE revisited
>
>
>Hi All,
>
>we are facing serious problems with IE caching. We have tested everything:
>
>1. Initialization params.
>
> nocache
> true
>
>
>2. Set response headers
>
> response.setHeader("Cache-Control","no-store, no-cache,
>must-revalidate, post-check=0, pre-check=0"); //HTTP 1.1
> response.setHeader("Pragma","no-cache"); //HTTP 1.0
> response.setDateHeader ("Expires", 0); //prevents caching at the proxy
>server
>
>and problem seen to stay forever.
>
>However, above all, I think in the past I did have the same problem, and we
>concluded finally that Web server overrides, with its caching 
>configuration,
>
>headers PROPOSED programatically by the developer. So the problem would 
>fix,
>
>not in the JSPs or code for the response but in the web server
>configuration.
>
>We are using Websphere for production environment and WTE for developing
>tests.
>
>Could anyone throw a little light and validate or reject previous assert? I
>guess that we could mistaking where the problem is.
>
>Thanks in advance,
>
>Adolfo.
>
>
>
>
>
>_
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>





  
 Adolfo's signature
  
  
 Adolfo Rodriguez Miguelez

  
  





_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to access Application scope at servlet initialization

2002-04-23 Thread Nicolas De Loof

As I read my question it seems I would have to go to bed early toonight !
ServletContext() IS application scope ...

Excuse me for this mail. I think my mind is filled by French elections
disaster (I'm a french guy).



> I would like to use an InitServlet that runs before Struts ActionServlet,
to
> put some datas in application scope.
>
> In the init() method I can get the servletContext using
> ServletConfig.getServletContext(), but how to access Application scope ?
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to access Application scope at servlet initialization

2002-04-23 Thread Nicolas De Loof

I would like to use an InitServlet that runs before Struts ActionServlet, to
put some datas in application scope.

In the init() method I can get the servletContext using
ServletConfig.getServletContext(), but how to access Application scope ?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




anyone using declarative security? - even a pointer to a resource will do.

2002-04-23 Thread jfc100

Hi again,

I dont mean to sound as though I deserve anyone's attention but I can't 
find any resource on this. I've searched all the forums I know of and 
the net but still can't find any meaningful info on the subject. I've 
also looked at the servlet and jsp specs which don't go into much 
detail. The J2EE developers guide seems to be heavily slanted to 
developing with specific tools.

If someone can offer any suggestion as to how I use the declarative 
security principle, roles and rolegroups to identify users and their 
groups (as outlined below) I would be most grateful.

Cheers
Joe ;-)


jfc100 wrote:

> Hi,
>
> I would like to implement a user base (using J2EE declarative 
> security) with the following relationship hierarchy :
>
> Users:
> user = 100, usergroup = 11;
>
> UserGroups:
> usergroup = 10, groupname=agent, parentgroup = 5;
> usergroup = 11, groupname=privatesupplier, parentgroup = 5;
> usergroup = 5, groupname=supplier, parentgroup = 1;
> usergroup = 1, groupname=user, parentgroup=0;
>
> This is so that if I say userInRole(supplier) I know I'm dealing with 
> all users in this group as well as all users in all child groups. Or 
> in other words I need to know whether a user is a descendent of a 
> particular ancestor.
>
> How could I implement this using principals, roles and rolegroups? I 
> mean how do the three relate?
>
> Thanks
> Joe
>
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: response has already been committed - question/solution?

2002-04-23 Thread Jon.Ridgway

Hi Klaus,

My mistake; I was just reading about the
org.apache.struts.actions.IncludeAction on this list. It looks like you can
have an action extend this instead of a standard Action. 

Would this help in your case; it does a RequestDispatcher.include().

Jon.

-Original Message-
From: Klaus Thiele [mailto:[EMAIL PROTECTED]] 
Sent: 23 April 2002 10:16
To: Struts Users Mailing List
Subject: Re: response has already been committed - question/solution?

Hi Jon,

thanks for responding.

you mean  "" in
struts-config.xml?

this does an 'sendRedirect()', not a RequestDispatcher.include() and did not
help.

thanks
  klaus

Am Dienstag, 23. April 2002 10:59 schrieben Sie:
> Hi Klaus,
>
> Struts already has a mechanism to switch between forward and include, add
> redirect="true" or redirect="false" to your actions forward.
>
> Jon.
>
> -Original Message-
> From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 07:59
> To: Struts Users Mailing List
> Subject: response has already been committed - question/solution?
>
> Hello,
>
> in our application was integrated a third_party portal software which
don't
> use
> frames but includes (managed by a database) dynamicly parts of our
> struts-application
> via
>  ...
><%jsp:include page="<%=incl%>">
>  ...
> this works fine with the Orion-AppServer but not with Tomcat4/JBoss
> (Cannot forward after...)
>
> After reading the Mail-Archive and the Specs 'higgledy-piggledy' i'm
> concluding that a Struts-Appl _cannot_ be included via '<%jsp:include...'.
>
> Did i'm right? (It isn't very useful not be able to do this)
>
> Then the Light in the Dark(?):  rd.include instead of rd.forward
>
> i patched struts-1.0.2 that ActionServlet has a new init-parm "rdinclude"
> and if this set to "true" it does an rc.include otherwise rc.forward.
>
> And our Application works FINE with Tomcat4!!!
>
> But where are the 'Hooks and Eyes'?
> Is something like this already planned?,
>
> any help/hints are very appreciated
> tia
>   klaus

-- 
--
Klaus Thiele - Personal & Informatik AG
mailto:[EMAIL PROTECTED]

 "Your mouse has moved.
  Windows must be restarted for the change to take effect."

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE) - Proxy problems?

2002-04-23 Thread Alex Jones

Are you behind a proxy? If so, you'll need to make sure that the JVM
knows about it before ActionServlet starts trying to read the DTD. One
way of doing this would be to subclass ActionServlet and override the
init method to something like this:

public class ProxyActionServlet extends ActionServlet
{
  public void init(ServletConfig config)
  {
System.setProperty ("http.proxyHost",proxyserver);
System.setProperty ("http.proxyPort",proxyport);

System.setProperty ("https.proxyHost",secureproxy);
System.setProperty ("https.proxyPort",secureproxyport);

System.setProperty ("http.proxyUserName",username);
System.setProperty ("http.proxyPassword",password);

super.init(config);
  }
}

(I've typed this from memory so it may not work if you just cut and
paste). Then you'll need to make sure your web.xml file points to your
new class.

Cheers,
Alex

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]] 
Sent: 23 April 2002 09:08
To: 'Struts Users Mailing List'
Subject: can't register struts-config dtd on tomcat 4.0.3 (1.4 LE)
Importance: High

Has anybody ever had this before? I am running struts on freebsd 4.4
(custom), jdk1.4 (linux), tomcat 4.0.3 (1.4 LE), and struts 1.0.2
(stable).

Does anybody have any idea what could be causing this and how could I
fix
it?

if i do a manual fetch of
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd - the file
is
downloaded no problem.

register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'jar:file:/usr/local/tomcat4.0.3/webapps/callsystem/WEB-INF/lib/struts.j
ar!/
org/apache/struts/resources/web-app_2_3.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.1//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd')
 Not registered, use system identifier
Parse Fatal Error at line 5 column -1: External entity not found:
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";.
java.net.UnknownHostException: jakarta.apache.org
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2
870)
at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:89)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:13
32)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:91
6)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:
3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395
)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:23
2)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
ppor
t.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina

Re: response has already been committed - question/solution?

2002-04-23 Thread Klaus Thiele

Hi Jon,

thanks for responding.

you mean  "" in struts-config.xml?

this does an 'sendRedirect()', not a RequestDispatcher.include() and did not help.

thanks
  klaus

Am Dienstag, 23. April 2002 10:59 schrieben Sie:
> Hi Klaus,
>
> Struts already has a mechanism to switch between forward and include, add
> redirect="true" or redirect="false" to your actions forward.
>
> Jon.
>
> -Original Message-
> From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
> Sent: 23 April 2002 07:59
> To: Struts Users Mailing List
> Subject: response has already been committed - question/solution?
>
> Hello,
>
> in our application was integrated a third_party portal software which don't
> use
> frames but includes (managed by a database) dynamicly parts of our
> struts-application
> via
>  ...
><%jsp:include page="<%=incl%>">
>  ...
> this works fine with the Orion-AppServer but not with Tomcat4/JBoss
> (Cannot forward after...)
>
> After reading the Mail-Archive and the Specs 'higgledy-piggledy' i'm
> concluding that a Struts-Appl _cannot_ be included via '<%jsp:include...'.
>
> Did i'm right? (It isn't very useful not be able to do this)
>
> Then the Light in the Dark(?):  rd.include instead of rd.forward
>
> i patched struts-1.0.2 that ActionServlet has a new init-parm "rdinclude"
> and if this set to "true" it does an rc.include otherwise rc.forward.
>
> And our Application works FINE with Tomcat4!!!
>
> But where are the 'Hooks and Eyes'?
> Is something like this already planned?,
>
> any help/hints are very appreciated
> tia
>   klaus

-- 
--
Klaus Thiele - Personal & Informatik AG
mailto:[EMAIL PROTECTED]

 "Your mouse has moved.
  Windows must be restarted for the change to take effect."

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Where is it best to populate default form bean collections etc?

2002-04-23 Thread Peter Pilgrim



What I do is this. I take advantage of Java language, create a static final of a 
default primitive array
list

public final static String [] DEFAULT_STR_LIST = new String[0]

I can use that to initialise every form attribute that is a primitive string array.
This is useful for say `DefaultActionForm' base class, especially if you have
accessor and mutators that support multiple selection elements like checkbox, or 
multiple
selection list boxes

public String [] getSelectionItems() {  }

public void  setSelectionItems( String [] ) {  }


The same idea is can be used for Collections.

public final static ListDEFAULT_LIST = new ArrayList();

PS: But be careful if your List are not meant to be shared!

I fill up all the select elements from the database, so I query the database with SQL 
and
save the data using the accessor/mutators of nested business objects.

I also store the action form as `session' objects.

Now I have a question? Has any one implemented at `LeaseTimeContainer' that
effectively removes old `session' attributes from the HttpSession.

I have thinking of writing a super SessionLeaseTimeContainer that does this:

(1) Knows how to iterate through every httpsession in the wep app.
(2) Knows how to remove object from the HttpSession
that have the interface `LeaseTimeAttribute'

public interface LeaseTimeAttribute() {
  public void unlease( HttpSession session );
}

I have not done this, because we do not have say 1000's of users and 50 different
action forms. But I can see that this would be a problem for some big user sites?
How would you clean all those "Session" bean form objects that have not
been used for more 25 minutes or so? Assume the users stay log on the web app
for more than 30 minutes default.

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

 Swamped under electronic mails


 Message History 



From:  Rick R <[EMAIL PROTECTED]> on 22/04/2002 13:30 AST

Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:
Subject:Where is it best to populate default form bean collections etc?


The question I have is it ok to set up the default select lists inside the form bean 
by calls to some other business logic? For example...

private dogsArray = business.getDogsArray();

then your normal set and get method.

I tend to thin this probably isn't a good idea and it would be best to have some 
action class create the array and then call the appropriate form bean set method. I'm 
not sure though.






--

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:   
For additional commands, e-mail: 




RE: response has already been committed - question/solution?

2002-04-23 Thread Jon.Ridgway

Hi Klaus, 

Struts already has a mechanism to switch between forward and include, add
redirect="true" or redirect="false" to your actions forward.

Jon.

-Original Message-
From: Klaus Thiele [mailto:[EMAIL PROTECTED]] 
Sent: 23 April 2002 07:59
To: Struts Users Mailing List
Subject: response has already been committed - question/solution?

Hello,

in our application was integrated a third_party portal software which don't
use
frames but includes (managed by a database) dynamicly parts of our
struts-application
via
 ...
   <%jsp:include page="<%=incl%>">
 ...
this works fine with the Orion-AppServer but not with Tomcat4/JBoss
(Cannot forward after...)

After reading the Mail-Archive and the Specs 'higgledy-piggledy' i'm
concluding that a Struts-Appl _cannot_ be included via '<%jsp:include...'.

Did i'm right? (It isn't very useful not be able to do this)

Then the Light in the Dark(?):  rd.include instead of rd.forward

i patched struts-1.0.2 that ActionServlet has a new init-parm "rdinclude"
and if this set to "true" it does an rc.include otherwise rc.forward.

And our Application works FINE with Tomcat4!!!

But where are the 'Hooks and Eyes'?
Is something like this already planned?,

any help/hints are very appreciated
tia
  klaus

--
Klaus Thiele - Personal & Informatik AG
mailto:[EMAIL PROTECTED]

 "Your mouse has moved.
  Windows must be restarted for the change to take effect."

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Access to pageContext from Action?

2002-04-23 Thread Andreas Guillemot

Hi all.

Is it possible to access pageContext from Action?

--
Andreas Guillemot


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Creating beans dynamically from byte code in a byte[] with ClassLoader.defineClass - how to do it right?

2002-04-23 Thread @Basebeans.com

Subject: Re: Creating beans dynamically from byte code in a byte[] with 
ClassLoader.defineClass - how to do it right?
From: "JM" <[EMAIL PROTECTED]>
 ===
Absolutely, how did ya do it?
"Thorbjoern Andersen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Thorbjørn Ravn Andersen (Scandiatransplant) wrote:
>
> >I have spent some time lately figuring out how I can generate beans
> >on-the-fly with fields completely specified at run-time, since this would
> >be an enourmeous help when working with JDBC and Struts in an informal
> >matter (which is why I ask here :-)
> >
> I have now made it work with generating code automatically.  There are
> still some rough edges, but I can now take a JDBC-request, generate a
> bean for all the fields, and forward it to Struts without having to
> create beans in advance.  It complements the BeanUtils very well.
>
> Is this interesting to anybody but me :-) ?
>
> --
>   Thorbjoern
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Where is it best to populate default form bean collections et c?

2002-04-23 Thread Steve Earl

Guys, 

A bit off-topic but opinions appreciated...

I've recently changed an app I'm working on to no longer hold forms on the
session but instead store them within a stateful session bean. Prior to
displaying any jsp I've then got dedicated action classes which retrieve the
correct form from the ssb and place it into the request.

We decided to do this because the application is likely to result in a large
amount of data being held through a user session. In addition the app is
multi-frame (I know - try telling the client it's a pain in the arse...). I
was under the impression that storing forms on the session would mean that a
bloated session object would have to be sent to each frame within the
application (sometimes we have 8 or more on a page) and this would be
detrimental to performance. Basically I thought the idea was to avoid
placing too much data on the session if at all possible. I appreciate that a
remote call to a ssb is not likely to be the most rapid access method but I
was concerned about running a multi-framed app with a large session object.

Can someone tell me if my opinion is correct or have I just changed a whole
shedload of classes, config files etc for no reason!

go on, make my day!
steve

__ 
Steve Earl

InfoGain Limited

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 9:02 PM
To: 'Struts Users Mailing List'
Subject: RE: Where is it best to populate default form bean collections
et c?


Yep - the init method of the servlet or static initializers are better.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 3:28 PM
To: Struts Users Mailing List
Subject: RE: Where is it best to populate default form bean collections
et c?






I generally use a "static initializer" (also called an anonymous block) for
this stuff.

For example state codes could be done in a static class called States.java


public static class States {

private HashMap statesMap;

public HashMap getStates() {
return this.statesMap
}

public void setStates(HashMap states)
   {
this.statesMap = states;
}

// Begin anonymous block for initialization
{
 this.setStates(this.initializeStates());
}

private HashMap .initializeStates() {

 HashMap states;

 // put code here to initialize the hashmap via jdbc, xml parsing,
whatever...

 return states;
}
}


Then the first time you reference the States class it is automatically
initialized. After the first time it is referenced, everything is cached.














"Thinh Doan" <[EMAIL PROTECTED]> on 04/22/2002 03:24:35 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject:  RE: Where is it best to populate default form bean collections et
  c?


We did it using an init servlet, run when the app gets loaded and stay in
app. scope.

Thinh

-Original Message-
From: Schneider, Eric [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 22, 2002 1:13 PM
To: 'Struts Users Mailing List'
Subject: RE: Where is it best to populate default form bean collections
et c?


I'm curious about this too.  How are other developers initializing
application scope resources?

For example, maybe a list of cities or states.  Things that end up in
numerous forms that don't change often, but are large enough to be stored
in
the database.  These kind of things don't seem appropriate in a user's
session.

Thanks,
eric.

> -Original Message-
> From: Hoang, Hai [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 1:40 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Where is it best to populate default form bean
> collections
> et c?
>
>
> I've been using the Action classes to load the required data
> for the form
> and place it under session object if the data does change
> often and the
> dropdown is being used repeatedly.  This way, you don't have
> to when back to
> the database everytime.  The draw back to this technique is that the
> scalability issue.  Just be sure to remove these collections from the
> session object when you are done.
>
> I am very much interest in seeing other techniques being used.
>
> -Original Message-
> From: Rick R [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 12:30 PM
> To: [EMAIL PROTECTED]
> Subject: Where is it best to populate default form bean
> collections etc?
>
> Sorry if I'm not to clear here but I'm really curious about
> the best design
> principle to use under struts in the following situation...
>
> Say you want to set up a jsp form and on the form you have
> several select
> elements. Each set of select elements is created dynamically
> from a query to
> the database. I have a corresponding form bean that goes with
> this page.
>
> The question I have is it ok to set up the default select
> lists inside the

can't register struts-config dtd on tomcat 4.0.3 (1.4 LE)

2002-04-23 Thread Mike Dewhirst

Has anybody ever had this before? I am running struts on freebsd 4.4
(custom), jdk1.4 (linux), tomcat 4.0.3 (1.4 LE), and struts 1.0.2 (stable).

Does anybody have any idea what could be causing this and how could I fix
it?

if i do a manual fetch of
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd - the file is
downloaded no problem.

register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'jar:file:/usr/local/tomcat4.0.3/webapps/callsystem/WEB-INF/lib/struts.jar!/
org/apache/struts/resources/web-app_2_3.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.1//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd')
 Not registered, use system identifier
Parse Fatal Error at line 5 column -1: External entity not found:
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";.
java.net.UnknownHostException: jakarta.apache.org
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2870)
at
org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:89)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Starting service Tomcat-Apache
Apache Tomcat/4.0.3


Many thanks in advance!

Mike


=**

If you are not the intended recipient, employee or agent responsible for delivering 
the message to the intended recipient, you are hereby notified that any dissemination 
or copying of this communication and its attachments is strictly prohibited.

If you have received this communication and its attachments in error, please return 
the original message and attachments to the sender using the reply facility on e-mail.

Internet communications are not secure and therefore the UCLES Group does not accept 
legal responsibility for the contents of this message.  Any views or opinions 
presented are solely those of the author and do not necessarily represent those of the 
UCLES Group unless otherwise specifically stated.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses although this does not guarantee that 
this email is virus free.

*

Re: EDI ?

2002-04-23 Thread Brent Burgess

NetBeans (www.netbeans.org) rocks. for the price.

On Tue, 23 Apr 2002 17:23, Damien VIEL wrote:
> Hi !!
>
> What is the best EDI  for Struts ?
> - Eclpise
> - Forte for Java
> - other ?
>
> Thanks All
>
> Best
>
> Dams

-- 
Regards,

Brent Burgess
JP
#
Attention:
The information contained in this message and or attachments is intended
only for the person or entity to which it is addressed and may contain
confidential and/or privileged material. Any review, retransmission,
dissemination 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 in error, please contact the sender and
delete the material from any system and destroy and copies.
#

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: EDI ?

2002-04-23 Thread Oliver Reflé

I think this is not a relevant question. Take the IDE you prefer.
Some time ago on this list was a discussion that a vi or emacs
is also enough.

Oliver

-Original Message-
From: Damien VIEL [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 9:23 AM
To: Struts Users Mailing List
Subject: EDI ?


Hi !!

What is the best EDI  for Struts ?
- Eclpise
- Forte for Java
- other ?

Thanks All

Best 

Dams
 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Lame eBook Ripoff

2002-04-23 Thread Barr, Scott [IBM GSA]


Hey Micael

It was worse to buy to complete book, and actually get it :)

Regards
Scott

> -Original Message-
> From: Micael Padraig Og mac Grene [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, 23 April 2002 3:35 pm
> To:   [EMAIL PROTECTED]
> Subject:  Lame eBook Ripoff
> 
> I ordered and paid for the Struts ebook on line.  Never got the goods.  I 
> have written to them twice, with no answer.  Guess it works like this: I 
> send them money, and they spend the money.  Simple transaction.  Has
> anyone 
> else had the same experience.  I should not have bothered, since the 
> reviews were so bad.  To get ripped off on a bad book may be worse, what
> do 
> you think?
> 
> Micael
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




EDI ?

2002-04-23 Thread Damien VIEL

Hi !!

What is the best EDI  for Struts ?
- Eclpise
- Forte for Java
- other ?

Thanks All

Best 

Dams
 



Singleton vs ServletContext

2002-04-23 Thread Damien VIEL

Hi !!

My question is about the best way to implement a JDBC ConnectionPool for Struts.
I've heard that the one that is already in Struts is not a good choice. 
I've also read many mails about PoolMan. 
In Servlets & JSP book from Marty Hall, he speaks also about Singleton.

What's the easiest way ? 
Has anybody a simple sample ?

Thanks All.

Best

Dams