actions and business logic

2002-02-08 Thread Mike Dewhirst

I wanted to clarify something.

We are in the design stages of our project and have to make a decision what
role do Actions play in the framework.

We are using JRF for the database tier, and Struts for presentation one.

I want to get a clear-cut answer to decide how much business logic (such as
preparing data - determined by permissions, busines rules, etc.) we have in
the Actions. My understanding (from previous Struts projects) is that
Actions are mainly for processing the request and passing parameters onto
business logic classes. 

You may, for instance, get a request asking you do create a new business
object. The object may require checking of rules, permissions, look-ups,
etc. It is my understanding that this should be done in a separate, context
independent business object class.

Is this correct, or is it ok (in less complex projects) to have most
business logic in the Action class?

Many thanks in advance for advise!

Mike Dewhirst


=**

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.

**=




Controller and security

2002-02-08 Thread Mike Dewhirst

We are trying to come with a good security model in conjunction with Struts.

I was thinking of calling a business class method to check the user's
permission for the requested mapping from within the Controller, but I'm
sure custom-modifying source code of a generic frame work is not exactly
best-practice.

Any suggestions?

PS Thanks to those who did for the advice with "actions and business logic"!


=**

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.

**=




ActionForms and custom tags

2002-02-12 Thread Mike Dewhirst

Is it possible to use ActionForms without the tags?

E.g. I want to have a jsp page that does not use struts form tags and
submits to an Action. If I specify the ActionForm for the Action's mapping,
will the form get automatically populated like it does when I have a jsp
with custom tags that correspond to the form's fields?

Thanks in advance for any advice,

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.

**=



***

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.

***




bean:write

2002-02-18 Thread Mike Dewhirst

If I want to write out an html snippet (e.g. "


[offtopic] frames

2002-02-27 Thread Mike Dewhirst

just after your (everybody on this list) professional opinion regarding
frames.

If you could reply to me personally and not to the list, and just say "for"
or "against" and if you can also write why, I would be very greatful.

We have a slight dispute at work regarding this, and decided to solve it via
voting.

Sorry for the trouble and many thanks in advance.

Mike Dewhirst

++


=**

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.

**=



***

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.

***




checking action name

2002-03-27 Thread Mike Dewhirst

Is it possible to find in the JSP what action mapping has lead us there? Is
there a parameter in the request?

Thanks in advance,

Mike


> -Original Message-
> From: Martin Gross [mailto:[EMAIL PROTECTED]]
> Sent: 27 March 2002 12:17
> To: Struts Users Mailing List
> Subject: Re: Object Mapping w/ Struts?
> 
> 
> Try ObjectRelationalBridge:
> 
> http://objectbridge.sourceforge.net/
> 
>  Martin
>  [EMAIL PROTECTED]
> 
> .
>  EVOLT Internet Applications GmbH
>  Brüningstrasse 35
>  61350 Bad Homburg, Germany
>  http://www.evolt.de
> .
> 
> > I am looking for an object-mapping (to sql relational DB) 
> solution for
> > Struts.  
> 
> > I have a medium sized database application which I've developed in
> > struts.  (around 25 tables in PostgreSQL)  I've been using 
> a home-brew
> > lightweight data-access bean system -- using perl scripts 
> to generate
> > beans that interact with the database.  The java source 
> these scripts
> > generate need a lot of manual editing, so making changes to 
> the object
> > model can be a nightmare. 
> 
> > I tried downloading Torque 2.1, but had problems, so then I 
> tried Torque
> > 3.0b1.  It seems like Torque isn't going to integrate well with my
> > already existing tables.  I use some postgres types such as TEXT and
> > BOOLEAN, which I would expect to map to LONGVARCHAR and BIT
> > respectively, but in the SQL that torque spit out they were 
> "bytea" and
> > "".  I can't find mention of "bytea" in postgres docs, and 
> obviously ""
> > isn't going to do much for me. =) 
> 
> > After reading the Torque docs, I really like what it offers 
> but I'm not
> > sure that it will work for me.  Are there any other solutions that
> > people can recommend?  Or should I try modifying torque to 
> fit my needs?
> > I don't have any EJB experience but I've heard good things 
> about JBoss. 
> > I've also heard the going EJB can really slow an 
> application down. I've
> > also noticed some talk of Expresso on this list, would this be worth
> > trying?
> 
> > Thanks for any advice! 
> 
> > -james 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:



=**

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.

**=



***

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.

***




parameter in a request

2002-04-05 Thread Mike Dewhirst

I have an action:


  


the someInputPage has a hidden input called "type"

the someOutputPage does not have it (via request.getParameter())

Any ideas why it does not get passed through? I thought the request would
follow all the way through.

Any advice will be greatly appreciated.. We've got a code freeze in 3 hours
:)

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.

**=



***

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.

***




request persistance

2002-04-08 Thread Mike Dewhirst

Does the request object (containing submitted parameters) go all the way
through from the Action to the JSP without being re-created?

I have a parameter that seems to disappear from the request byt the time the
control gets to the JSP. The parameter is visible in the Action class
instance.

Is the request object perhaps re-created byt the controller, Action class,
etc?

Many thanks in advance (and by the way thank you very much to all the
developers for such an amazingly useful _free_ (!!) product!)

Mike


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

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.

**=



***

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.

***




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: 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(HostCon

the data flow

2001-08-14 Thread Mike Dewhirst

Just want to clarify the flow of data in Struts:

1. Controller receives request.
2. Controller looks up mapping for Action and what ActionForm to use.
3. Controller Creates a new instance of ActionForm, invokes it's reset
method.
3a. If request contains parameters, Controller populates form by mapping
property methods to setters (e.g. parameter "email" would be populated by
calling ".setEmail(..)" method in the form).
3b. If validate method contains code, run it (populating the errors object)
4. Controller invokes Action class' perform method.
5. As the instance of form ActionForm is supplied to the perform method,
populate/process form, invoke EJB's/DB access/etc.
6. return the appropriate mapping (success/failure/etc).
7. Controller looks up returned mapping and forwards to mapped URI.

Could somebody let me know if this is correct.

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.

**=



get/set on properties in a form bean

2001-08-14 Thread Mike Dewhirst

If I have a bean with int, long, etc. properties in an ActionForm, will
Struts cast/convert them to and from String automatically?


=**

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.

**=



ActionForm.reset() method

2001-08-14 Thread Mike Dewhirst

is automatically called when? When the form is first created by the
Controller?


=**

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: ActionForm.reset() method

2001-08-14 Thread Mike Dewhirst

so if I have old data in there, it will be overwritten, plus validate() will
be invoked afterwards if I have validate=true in the config?

-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: 14 August 2001 17:02
To: [EMAIL PROTECTED]
Subject: Re: ActionForm.reset() method


"Mike Dewhirst" <[EMAIL PROTECTED]>

> is automatically called when? When the form is first created by the
> Controller?

No, it is called always before the controller populates it from the
request.

--
gR



=**

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.

**=



form validation

2001-08-15 Thread Mike Dewhirst

How is it possible to validate input in struts for formatting?

What I mean is, is it possible to check when a string is entered into an
input field that populates an int? It seems that the Controller populates
the int with a 0, which makes it difficult to detect if this was an invalid
input, or a "real" 0.

Would we need to extend the framework if we want to be able to detect this?

Thanks for any advice!!


=**

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: form validation

2001-08-15 Thread Mike Dewhirst

Actually, it returns 0. So there is no way to distinguish between an invalid
input or a "real" 0.

> 
> What I mean is, is it possible to check when a string is entered into an
> input field that populates an int? It seems that the Controller populates
> the int with a 0, which makes it difficult to detect if this was an
invalid
> input, or a "real" 0.
> 
> Would we need to extend the framework if we want to be able to detect
this?
> 
> Thanks for any advice!!

You can either use String (in this way you can accept inputs like "2.001"),
or you can use Integer. It will be null, if no correct integer is has been 
entered.

--
gR


=**

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.

**=



multiple struts-config.xml

2001-08-15 Thread Mike Dewhirst

is it possible to have struts-config split over several files? and use some
xml include directive?


=**

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.

**=



reset() method

2001-08-15 Thread Mike Dewhirst

can someone give me a definitive answer as to when the reset() method of the
Action Form gets called?

Is it:

a) when the form is created
b) before the form is populated (if the request contains data that the form
can be populated with)
c) none of the above

If c), please specify :)

Thanks in advance


=**

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: problem

2001-08-15 Thread Mike Dewhirst

I think the problem stems from the fact that you are creating and populating
the ActionErrors object in the Action Class instead of the validate method()
of the Action Form. You should also turn on validation in the action maping
for this Action in strus-config.xml. 

Hope this helps!

Have a look at the user guide, it's very good and contains the details on
how to do the above: http://jakarta.apache.org/struts/userGuide/index.html

-Original Message-
From: Yang, Yexing [mailto:[EMAIL PROTECTED]]
Sent: 15 August 2001 15:31
To: '[EMAIL PROTECTED]'
Subject:  problem


Hi,everyone
I have a problem about using the , in Servlet side I use
something look like following:

ActionErrors errors = new ActionErrors();
errors.add("mike",new ActionError("Login Failed !"));
if(!errors.empty()){
saveErrors(request,errors);
System.out.println("Login Error: " +
mapping.getInput().toString());
return  (new ActionForward(mapping.getInput()));
}

   from the std.out I can check errors is not empty, but on Jsp page , I use
, it doesn't come out any error info. I am not quite sure if I
am doing the right way or not.

do someone can please give some advice about it

Thanks in advance


=**

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.

**=



passing a parameter

2001-08-15 Thread Mike Dewhirst

how would I have a list in struts with each item as a link to a uri (a
struts action) and a parameter to pass?

in jsp:

while (i < items.length) {

%>
item
<%=items[i].getId()%>
<%
i++;
}
%>

in struts:

?


=**

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: passing a parameter

2001-08-15 Thread Mike Dewhirst

So does this then generate html simmilar to what I gave as example?

item xx and so on...

how do I process the request in that uri, do I take the id that's passed out
of the request, or does the controller stuff it into the form somewhere?

Thanks

-Original Message-
From: Scott Ryan [mailto:[EMAIL PROTECTED]]
Sent: 15 August 2001 18:04
To: [EMAIL PROTECTED]
Subject: Re: passing a parameter


This is how I do it.  It uses a request list stored under the name
ListObject which is a Vector of objects.  The link passed the payeeId
value of the object in the request parameter userId.







  
>>> [EMAIL PROTECTED] 08/15/01 10:53AM >>>
how would I have a list in struts with each item as a link to a uri (a
struts action) and a parameter to pass?

in jsp:

while (i < items.length) {

%>
item
<%=items[i].getId()%>
<%
i++;
}
%>

in struts:

?


=**

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.

**=

Scott Ryan
Developer
First Bank Data Corporation
Work: (303) 235-1485
Cell:(303 263-3044



multiple struts-config.xml

2001-08-16 Thread Mike Dewhirst

is it possible to have struts-config split over several files? and use some
xml include directive?


=**

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: struts and castor

2001-08-16 Thread Mike Dewhirst

Erm... I was not giving an answer, I was aaking a question. I got the
impression that you have already implemented all this..

Sorry if I misunderstood. :|

-Original Message-
From: Zille Hassan [mailto:[EMAIL PROTECTED]]
Sent: 16 August 2001 15:09
To: [EMAIL PROTECTED]
Subject: Re: struts and castor


that was not the answer to my queries


- Original Message -
From: "Mike Dewhirst" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 16, 2001 3:05 PM
Subject: RE: struts and castor


> What's the performance like?
>
> Is it better than J2EE?
>
> Does it cluster seamlessly?
>
> Are transactions handled in a simmilar way to J2EE?
>
> Thanks,
>
> Mike
>
>
> -Original Message-
> From: Zille Hassan [mailto:[EMAIL PROTECTED]]
> Sent: 16 August 2001 15:02
> To: [EMAIL PROTECTED]
> Subject: struts and castor
>
> I am using struts with castor
>
> Now this is how I go about it
> 1. create the JSP
> 2. Then the XXXForm.java, XXXAction.java for struts
> In the XXXAction.java file I define the Query to be used with the
> Castor and make the castor connection.
> In the XXXAction.java file the forwarding to the URL or success or
> failure is defined.
> 3. Then I have the bean which is being refered to in the Query. Through
this
> bean data is being read and inserted into the datbase.
> 4. Mapping of the bean's attribute.
>
> No if I want to incorporate any business logic in any bean, which one
should
> it be, should i create a seperate bean or should i use the bean on Number
3.
>
>
> Any help would be appreciated more than ever
>
>
> =**
>
> 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: A bit of design help please?

2001-08-16 Thread Mike Dewhirst

may I ask exactly how you implement this? (Passing content in as a
parameter). D you have a paramter called, say "content_id", and dependent on
this you forward to the relevant action? Or include output from a relevant
jsp?

Thanks in advance.

-Original Message-
From: George, Carl [mailto:[EMAIL PROTECTED]]
Sent: 16 August 2001 15:11
To: '[EMAIL PROTECTED]'
Subject: RE: A bit of design help please?

I have always found that frames are bad, that is why I recommend using
templates.  We have a default template (with the nav bar, header, footer)
and then pass the content in as a parameter.

Carl

-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 8:59 AM
To: Struts
Subject: A bit of design help please?


Hi,

I am wondering how the following can be done in Struts.

You have a page with two frames, one being a navigation frame consisting of
a series of links that populate the second frame. On start-up the second
frame has a log in screen and the navigation frame just has a company image.
On successful login you want the navigation pane to have a series of links
to tasks that the user can do. They click on a task and the second frame
fills with a form etc. When the user logs out or the session is killed the
navigation frame links are removed.

How can I control and keep the navigation frame synchronised with what is
going on?

Any help is appreciated.

Alex


=**

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.

**=



Gauss Interprise VIP

2001-08-17 Thread Mike Dewhirst

has anyone ever used Struts with a Content Management system called Gauss
VIP?


=**

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.

**=



tag libs (html)

2001-08-17 Thread Mike Dewhirst

We are using an CM system which parses the files you put into it. Especially
it check HTML validity, and having more than two (close/open) "html" in the
page fails that validation. My idea was to rename the "html" custom tag to
"xhtml", but that would probably mean changing the struts-html.tld, as well
as struts source code? I don't really want to do that.. 

So, 2 questions:

1) Has anybody ever run into a simmilar problem?
2) If I did decide to rename the "html" tag to "xhtml", what would I need to
do?


=**

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: MS SQL JDBC Drivers?

2001-08-17 Thread Mike Dewhirst

sun has a searchable database of available jdbc drivers for various
databases at http://industry.java.sun.com/products/jdbc/drivers

There are quite a few MS SQL ones...

-Original Message-
From: Mikkel Bruun [mailto:[EMAIL PROTECTED]]
Sent: 17 August 2001 11:05
To: '[EMAIL PROTECTED]'
Subject: OT: MS SQL JDBC Drivers?

Hi Guys,

A little of topic, but anyways...

On a current project we will be running an webapp on Solaris, using
Iplanet...

Our application needs to connect to a MS Sql 7.0 running on a win 2k
server...

can you recommend any jdbc drivers???

thanks a lot...

:: 
  Mikkel Bruun
  Senior IT Developer
  [EMAIL PROTECTED]
  Direct: +45 32 88 22 73

  Valtech A/S
  Kanonbaadsvej 10
  DK-1437 Copenhagen
  Tel  +45 32 88 20 00
  Fax +45 32 88 20 20



=**

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: tag libs (html)

2001-08-17 Thread Mike Dewhirst

I tried xhtml just in the jsp tag lib definition, but then after looking
through the struts-html.tld, I realised that there is an element within the
html library called xhtml. I renamed the "html" custom tags to "xxhtml" in
the jsp (and the jsp library declaration) and it seems to be working fine
now...

as in:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="xxhtml" %>

and 





-Original Message-
From: mohan sreeram [mailto:[EMAIL PROTECTED]]
Sent: 17 August 2001 11:41
To: [EMAIL PROTECTED]
Subject: Re: tag libs (html)

Hi

   I think u can rename with any prefix with any name you would like. It is
something like this

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="xhtml" %>

  The same way if you dont want "html" in "struts-html.tld" . you can
rename the file with any name and put that name in the taglib directive.
<%@ taglib uri="/WEB-INF/struts-xhtml.tld" prefix="xhtml" %>


I hope this works

Regards
Sreeram Mohan

- Original Message -
From: "Mike Dewhirst" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 17, 2001 4:06 PM
Subject: tag libs (html)


> We are using an CM system which parses the files you put into it.
Especially
> it check HTML validity, and having more than two (close/open) "html" in
the
> page fails that validation. My idea was to rename the "html" custom tag to
> "xhtml", but that would probably mean changing the struts-html.tld, as
well
> as struts source code? I don't really want to do that..
>
> So, 2 questions:
>
> 1) Has anybody ever run into a simmilar problem?
> 2) If I did decide to rename the "html" tag to "xhtml", what would I need
to
> do?
>
>
> =**
>
> 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: unsubscribe me, please!!!!!!!!!!!!!!!!!!!

2001-08-17 Thread Mike Dewhirst

it's a very simple process, you write a blank email to:
 
[EMAIL PROTECTED] 

you will receive a confirmation email; reply to that and you will be
unsubscribed...

RTFM?


=**

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: unsubscribe me, please!!!!!!!!!!!!!!!!!!!

2001-08-17 Thread Mike Dewhirst

I would say you're probably subscribed under another name to it, and have
that other email address redirect to your main one.

-Original Message-
From: Siping Liu [mailto:[EMAIL PROTECTED]]
Sent: 17 August 2001 13:43
To: [EMAIL PROTECTED]
Subject: Re: unsubscribe me, please!!!


sent several emails to it, got confirms back. And that's it.
Still getting tons of messages. I have tried this several times
in the last few monthes. Anyway I'll keep trying. Thanks.

Mike Dewhirst wrote:

> it's a very simple process, you write a blank email to:
>
> [EMAIL PROTECTED]
>
> you will receive a confirmation email; reply to that and you will be
> unsubscribed...
>
> RTFM?
>
> =**
>
> 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.
>
> **=



action mapping re-loading

2001-08-17 Thread Mike Dewhirst

Does the Action Servlet in Struts automatically reload the mappings xml if
it changes? Or do I need to use ActionServlet.reload()?

Is it possible to dynamically update a mapping, for instance the success URI
of a mapping?


=**

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.

**=



session id

2001-08-21 Thread Mike Dewhirst

how can i get the user session id within an Action class?


=**

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: using classes from a struts jsp

2001-08-21 Thread Mike Dewhirst

or do I need to use ?

-Original Message-
From: Mike Dewhirst 
Sent: 21 August 2001 15:10
To: '[EMAIL PROTECTED]'
Subject: 

If I just want to use a standard java class in a page, and it's called
SomeThing.class, do I just call it with 
tag? Key being a parameter to pass to SomeThing.class. Or do I have to
define this class in some xml config file first?


=**

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.

**=



custom tags

2001-08-21 Thread Mike Dewhirst

if I'm writing a custom tag, do I have the request object available from
within the tag class? How do I access it?


=**

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.

**=



prefix for forward parameter

2001-08-22 Thread Mike Dewhirst

Is it be possible to add a prefix to the "forward" parameter in an action
mapping. I'm not too hot with xml, so could you explain how to do this? I
presume you could define _something_ in the struts-config.xml/web.xml and
include it in the forward value...

Thanks for any advice!







=**

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: menu displayer

2001-08-23 Thread Mike Dewhirst

I would recommend doing something like this with a JSP/Servlet (in Struts)
generating arrays of items and subitems, so you could decide in the Action
Servlet what to put and what not to put in the arrays.

Does that make sense?


-Original Message-
From: Pritish Kanagalekar [mailto:[EMAIL PROTECTED]]
Sent: 23 August 2001 17:30
To: [EMAIL PROTECTED]
Subject: menu displayer

Dear all,

I would like to know if anyone has done,using struts, an implementation of a
menu displayer either collapsable or heirarchial
that will look at user permissions.Based on the users permissions,it should
display appropriate menu components
Any information in this regard is welcome.

thanks 
Pritish


=**

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: menu displayer

2001-08-23 Thread Mike Dewhirst

I meant writing out an array of items and subitems within a JavaScript
function :), so the menus would be generated dynamically in DHTML.

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: 23 August 2001 09:36
To: '[EMAIL PROTECTED]'
Subject: RE: menu displayer


I would recommend doing something like this with a JSP/Servlet (in Struts)
generating arrays of items and subitems, so you could decide in the Action
Servlet what to put and what not to put in the arrays.

Does that make sense?


-Original Message-
From: Pritish Kanagalekar [mailto:[EMAIL PROTECTED]]
Sent: 23 August 2001 17:30
To: [EMAIL PROTECTED]
Subject: menu displayer

Dear all,

I would like to know if anyone has done,using struts, an implementation of a
menu displayer either collapsable or heirarchial
that will look at user permissions.Based on the users permissions,it should
display appropriate menu components
Any information in this regard is welcome.

thanks 
Pritish


=**

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.

**=



custom tags and Action servlet

2001-08-22 Thread Mike Dewhirst

I have a custom tag that I've written, and I want it to talk to the Action
Servlet (to get mappings out). How can I do this?

When I'm in the Jsp, can I access the action servlet? Or is it out of scope
by then?


=**

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.

**=



caching custom tag results

2001-08-22 Thread Mike Dewhirst

If anybody has done this before, what is a good way of caching custom tag
results? For instance, I have a custom tag, that generates image tags (by
dynamically building up the url). I'd rather it didn't go through the same
process 4 times for the same image. How can I get around this?

Thanks for any advice/suggestion.


=**

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.

**=



prefix for struts-config.xml

2001-08-23 Thread Mike Dewhirst

Is it be possible to add a prefix to the "forward" parameter in an action
mapping. I'm not too hot with xml, so could you explain how to do this? I
presume you could define _something_ in the struts-config.xml/web.xml and
include it in the forward value...

Thanks for any advice!


=**

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.

**=



forms, formbeans and JavaScript

2001-02-12 Thread Mike Dewhirst


As a lot of forms may have JavaScript in them to dynamically rebuild menus, etc. Is it 
possible to combine this with the Struts tag-styled form design?

Thanks in advance for your help,

Mike


--

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 unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.




Struts user base

2001-02-12 Thread Mike Dewhirst


I am working on the same project as Mark Mclaren, and have some additional questions 
regarding Struts:

1. Does anyone have an idea of how many people are developing/using Struts?

I have checked the bug list and indeed it is very small, but I want to know that that 
is due to product stability, not because of the lack of users. Don't mean to be rude, 
just cautious.

2. Are there any European users?
3. Does anyone run Struts on commercial servers, e.g. BEA's Weblogic?
4. What is the envisaged frequency of update releases? (just a rough idea, e.g. every 
2 quarters, years, etc.)

Thanks in advance for your help!

Mike Dewhirst


--

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 unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.




RE: Help with Struts and EJBS..

2001-09-24 Thread Mike Dewhirst

> I need some serious help.
> I am a novice Java and Struts developer.
> I am trying to develope a prototype that will work with backend EJBS..

taken those 3 into account, I think you really do need serious help. Not
being funny, but usually people either working with other experienced
developers or simply with a few years of Java and some EJB exposure should
be endevouring with such a task.

> 1) Is this the appropriate way to call EJBS (in an action class)?? 

yes, it's fine to call EJB's from the action class.

> 2) How do I get what is returned from the EJB back into my actionform
bean?

you (presumably) will get back an object/collection of data back from the
EJB. you can parse it and populatev the form with it/add to the request -
then pull it out in the jsp with the struts cust tags.


> 3) If I want a list of matching customers retruned...what is the best
format
> for these to be returned from the EJB so that I can
> forward to another jsp and show them..  Currently the EJB is returning a
> string.

see above. To reiterate, put it an Collection (ArrayList for example) or in
a custom Object (JavaBean.. not Enterprise Java Bean!!)

> 4) Is there any sample applications out there that I can look at that use
> EJBs?

as far as I know not of Struts/EJB. Weblogic comes with a good load of
examples, so does the Struts install.


Mike


===
Thanks in advance for ANY help.
Beth.


public ActionForward perform
(ActionMapping mapping, ActionForm form, 
HttpServletRequest request, HttpServletResponse response) 
{   
ActionForward fwdAction = null;
CustomerSearchForm searchForm = (CustomerSearchForm) form;
try {

// Get an InitialContext
Properties initProps = new Properties();
initProps.put (Context.INITIAL_CONTEXT_FACTORY, 
"weblogic.jndi.WLInitialContextFactory");
initProps.put(Context.PROVIDER_URL,  
"t3://yshen:7001");
Context ctx =  new InitialContext(initProps);

Object home = (CustomerFacadeHome)
ctx.lookup("sov/CustomerFacade");
CustomerFacadeHome customerFacadeHome = (CustomerFacadeHome)
PortableRemoteObject.narrow
(home, CustomerFacadeHome.class);

CustomerFacade facade = (CustomerFacade)
PortableRemoteObject.narrow
(customerFacadeHome.create(), CustomerFacade.class);

String[] found  = facade.findCustomer
(searchForm.getCustomerName (), 
searchForm.getSsn (), searchForm.getAlphaKey (), 
searchForm.getBank ());

for (int i=0; i


RE: Submitting a form bean

2001-12-10 Thread Mike Dewhirst

just do from the page: 

request.addAttribute("beanName", beanObject);

then, when you want to add more stuff to it in another page:

((BeanObject)request.getAttribute("beanName")).setSomeProperty(someValue);

That's it.

Might want to do it in the form validate method though, to only save entered
values once they have been validated.

Hope this helps.

> -Original Message-
> From: Joanna Chan [mailto:[EMAIL PROTECTED]]
> Sent: 10 December 2001 18:00
> To: [EMAIL PROTECTED]
> Subject: Submitting a form bean
> 
> 
> Dear all,
> 
> Wonder if anybody knows how to attach a form bean to the HTTP 
> session so that the bean can be submitted at the end of a 
> series of jsp input form pages?
> The bean basically has fields which span over several jsp 
> pages. I want to instantiate the bean only at the first page 
> and populates its fields along the way. Then I will submit 
> the bean at the end page.
> 
> Thanks
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 



=**

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.

**=




ghost action

2002-05-13 Thread Mike Dewhirst

Hello and thanks in advance for reading :)

I have an action, which contains as one of it's first lines a log statement.

When the action is called, all I get is this:

action: Processing a GET for /{myaction}>
action:  Looking for Action instance for class {myclass}>

that's it. no page is displayed. there are no exceptions, no error messages.
nothing. as if the action is empty. 

this is the source of the page:

 start 




- end -

this is my struts config entry for the action:

 start 



  
  


- end -

If anybody has any ideas as to what I could try tp figure out why _nothing_
is happening, I would be very greatful.

Thanks in advance,

m


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

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.

**=



***

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: ghost action

2002-05-13 Thread Mike Dewhirst

Thanks for the suggestions. Unfortunately they did not help.

just checked. the path for the jsp in the struts-config.xml is correct - if
I cut and paste - the page does come up (though with erorrs - since it
expects stuff from the action). It's as if the action is found but not
processed.

Any more ideas?

Thanks again,

Mike

> -Original Message-
> From: Adam Hardy [mailto:[EMAIL PROTECTED]]
> Sent: 13 May 2002 12:05
> To: Struts Users Mailing List
> Subject: Re: ghost action
> 
> 
> Hi Mike,
> are you sure those pages you've configured in struts-config.xml are 
> correct? Do they have anything in them?
> 
> Check in your action.perform whether you are returning a 
> valid Forward 
> as a return parameter. Perhaps you've misspelt one and your 
> mapping.findForward doesn't find anything.
> 
> Adam
> 
> Mike Dewhirst wrote:
> 
> >Hello and thanks in advance for reading :)
> >
> >I have an action, which contains as one of it's first lines 
> a log statement.
> >
> >When the action is called, all I get is this:
> >
> >action: Processing a GET for /{myaction}>
> >action:  Looking for Action instance for class {myclass}>
> >
> >that's it. no page is displayed. there are no exceptions, no 
> error messages.
> >nothing. as if the action is empty. 
> >
> >this is the source of the page:
> >
> > start 
> >
> >
> >
> >
> >- end -
> >
> >this is my struts config entry for the action:
> >
> > start 
> >
> > >  type="{myActionClass}"
> >  scope="request">
> >
> >  
> >  
> >
> >
> >- end -
> >
> >If anybody has any ideas as to what I could try tp figure 
> out why _nothing_
> >is happening, I would be very greatful.
> >
> >Thanks in advance,
> >
> >m
> >
> >
> >This message was written in plain text mode. 
> >Everything below the dotted line was not 
> >written by the author of this email. 
> >-- 
> >
> >
> >=**
> >
> >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.
> >
> >**=
> >
> >
> >
> >***
> >
> >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.
> >
> >***
> >
> >
> >  
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


=

RE: ghost action

2002-05-13 Thread Mike Dewhirst

I've just found the error... It' embarassing :)

we have written a parent action here which most others implement. The
perform method calls an execute method of the child. I was implementing the
execute method, though  extending the standard Struts Action.

Sorry for the false alarm/stupidity! Took me 2 days to spot!! :(

Thanks again!

Mike


> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: 13 May 2002 15:32
> To: Struts Users Mailing List
> Subject: RE: ghost action
> 
> 
> What version of Struts are you using?
> 
> Can you paste a few lines ( perform()/execute() ) from your 
> Action class???
> 
> JM 
> 
> > -Original Message-
> > From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, May 13, 2002 7:12 AM
> > To: 'Struts Users Mailing List'
> > Cc: '[EMAIL PROTECTED]'
> > Subject: RE: ghost action
> > 
> > 
> > Thanks for the suggestions. Unfortunately they did not help.
> > 
> > just checked. the path for the jsp in the struts-config.xml is 
> > correct - if
> > I cut and paste - the page does come up (though with erorrs 
> - since it
> > expects stuff from the action). It's as if the action is 
> found but not
> > processed.
> > 
> > Any more ideas?
> > 
> > Thanks again,
> > 
> > Mike
> > 
> > > -Original Message-
> > > From: Adam Hardy [mailto:[EMAIL PROTECTED]]
> > > Sent: 13 May 2002 12:05
> > > To: Struts Users Mailing List
> > > Subject: Re: ghost action
> > > 
> > > 
> > > Hi Mike,
> > > are you sure those pages you've configured in 
> struts-config.xml are 
> > > correct? Do they have anything in them?
> > > 
> > > Check in your action.perform whether you are returning a 
> > > valid Forward 
> > > as a return parameter. Perhaps you've misspelt one and your 
> > > mapping.findForward doesn't find anything.
> > > 
> > > Adam
> > > 
> > > Mike Dewhirst wrote:
> > > 
> > > >Hello and thanks in advance for reading :)
> > > >
> > > >I have an action, which contains as one of it's first lines 
> > > a log statement.
> > > >
> > > >When the action is called, all I get is this:
> > > >
> > > >action: Processing a GET for /{myaction}>
> > > >action:  Looking for Action instance for class {myclass}>
> > > >
> > > >that's it. no page is displayed. there are no exceptions, no 
> > > error messages.
> > > >nothing. as if the action is empty. 
> > > >
> > > >this is the source of the page:
> > > >
> > > > start 
> > > >
> > > >
> > > >
> > > >
> > > >- end -
> > > >
> > > >this is my struts config entry for the action:
> > > >
> > > > start 
> > > >
> > > > > > >  type="{myActionClass}"
> > > >  scope="request">
> > > >
> > > >  
> > > >  
> > > >
> > > >
> > > >- end -
> > > >
> > > >If anybody has any ideas as to what I could try tp figure 
> > > out why _nothing_
> > > >is happening, I would be very greatful.
> > > >
> > > >Thanks in advance,
> > > >
> > > >m
> > > >
> > > >
> > > >This message was written in plain text mode. 
> > > >Everything below the dotted line was not 
> > > >written by the author of this email. 
> > > >-- 
> > > >
> > > >
> > > >=**
> > > >
> > > >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 l

option groups

2002-05-14 Thread Mike Dewhirst

Hello and thank you very much in advance for reading! A quick one first -
been using Struts for over a year now - what a brilliant code base!! Saves
time and forces elegance. Fantastic.

Could somebody tell me, is the following possible to implement using sta?

I want to use the Struts model correctly to implement a page that has this
layout:



















...



what would then be in the ActionForm?

Say if I have a HashMap in the ActionForm that contained the Names and
Values pairs, would Struts populate the HashMap with the values from the
form?

Is there a standard mechanism for writing out the radios from a HashMap?
I've been racking my brain over this for a few days now, and can't see a
"tidy" solution based purely onsdtandard Struts custom tags and classes.

Any advice/ideas about how to do this would be very greatfully
appreciatted!!

Thanks,

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.

**=



***

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.

***




option groups

2002-05-14 Thread Mike Dewhirst

Could somebody tell me, is the following possible to implement using sta?

I want to use the Struts model correctly to implement a page that has this
layout:



















...



what would then be in the ActionForm?

Say if I have a HashMap in the ActionForm that contained the Names and
Values pairs, would Struts populate the HashMap with the values from the
form?

Is there a standard mechanism for writing out the radios from a HashMap?
I've been racking my brain over this for a few days now, and can't see a
"tidy" solution based purely onsdtandard Struts custom tags and classes.

Any advice/ideas about how to do this would be very greatfully
appreciatted!!

Thanks,

Mike


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

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.

**=



***

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.

***




radio buttons

2002-05-16 Thread Mike Dewhirst

Hello and thanks for reading!

I have a form that contains a Collection of objects. The Objects have these
String properties:

ownAccess, roleAccess and allAccess.

How can I write this out using the html:radio tags? Can use them at all for
this? Each property will need a radio button group, something like:





If I just iterate round the Collection and write these out, how can do it in
such a way that will make Struts populate the collection in the Form? Or is
this not possible?

Many thanks in advance for any help/advice on this.

Mike


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

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.

**=



***

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: JDK 1.4 Logging with Struts

2002-05-16 Thread Mike Dewhirst

We use Tomcat 4.0.3 / Struts 1.0.2 and Log4J. Before we went down that road,
we compared the 2 logging mechanisms, and in terms of usability, log4j seems
to come out at the top. Not sure about performance though. 

Anyway, my recommendation is log4j.

Hope this helps.

> -Original Message-
> From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]]
> Sent: 16 May 2002 14:40
> To: 'Struts Users Mailing List'
> Subject: JDK 1.4 Logging with Struts
> 
> 
> Has anyone implemented JDK 1.4's Logging features with Struts? We used
> Log4J, but since 1.4 has Logging incorporated, we are 
> investigating this
> option, any suggestions? The examples on Sun's web site 
> aren't too helpful
> because it doesn't give you examples of configuration files. 
> Also, how can
> this be integrated with Tomcat or Weblogic?
> 
> Thanks,
> 
> Dean Chen
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


=**

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.

**=



***

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: radio buttons

2002-05-17 Thread Mike Dewhirst

Hello and thanks for reading!

I have a form that contains a Collection of objects. The 
Objects have these String properties:
 
ownAccess, roleAccess and allAccess.

How can I write this out using the html:radio tags? Can use 
them at all for
this? Each property will need a radio button group, something like:





If I just iterate round the Collection and write these out, 
how can do it in
such a way that will make Struts populate the collection in 
the Form? Or is
this not possible?

Many thanks in advance for any help/advice on this.

(Sorry for the re-post)

Mike


This message was written in plain text mode. 
Everything below the dotted line was not 
written by the author of this email. 
-- 


=**

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.

**=



***

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: How do I unsubscribe.... tried Web site unsubscribe

2002-05-17 Thread Mike Dewhirst

If you look at the bottom of _every_ email, it tells you how to do it there.

> -Original Message-
> From: Wright, Doris [mailto:[EMAIL PROTECTED]]
> Sent: 17 May 2002 15:31
> To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
> Subject: How do I unsubscribe tried Web site unsubscribe
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


=**

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.

**=



***

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.

***