When's v1.1 coming out of beta?

2002-06-10 Thread lindsay . hamoudi

Hi,

I remember a message a while back that predicted a May/June release of a
stable Struts v1.1.  Is this still the case?
I've not upgraded to the beta version because I have an upcoming deadline to
meet and I'm pretty sure that switching from 1.0.2 to 1.1 will not be as
quick as I'd like.

Cheers.

Lindsay

(Underpaid) Student 
British Telecom

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




RE: Cannot find message resources - DESPERATION

2002-05-07 Thread lindsay . hamoudi

Your ApplicationResources file must be referred to as if it were a java
class.  Remove the /web-inf/ path.  It should be referred to using package
notation.  Since it is considered to be a java class - it must be put below
your /web-inf/classes/ directory.  If it is in the classes directory - you
can refer to it simply as ApplicationResources in your web.xml file.  If it
is in a package below your classes directory (say mypackage), then put
mypackage.ApplicationResources in your web.xml.



 -Original Message-
From:   Marius Gabor [mailto:[EMAIL PROTECTED]] 
Sent:   07 May 2002 11:00
To: Struts Users Mailing List
Subject:Re: Cannot find message resources - DESPERATION

Hi, Nico!

I've tried and didn't work also... :(((

Marius

Nicolas De Loof wrote:
 Your struts-config:
 message-resources
   key=org.apache.struts.action.MESSAGE
   name=ApplicationResources.properties /
 
 I'm using Struts 1.0.2, so I cannot test it, but i think your message
 ressource bundle should be declared in struts-config with a parameter
 attribute without the .properties extension:
 
   message-resources
   key=org.apache.struts.action.MESSAGE
   parameter=ApplicationResources/
 
 Struts_config_1_1.dtd don't have anay name attribute for
message-ressource
 element. Perhaps you may use struts-config validation at startup.
 
 
 Nico
 


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

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




RE: Cannot find message resources - DESPERATION

2002-05-07 Thread lindsay . hamoudi

Put your ApplicationResources.properties file under in WEB-INF/classes/
folder.

Right entry in web.xml is thus:

init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param


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




How do I pass an ActionForward's path into a button's onclick() h andler

2002-05-01 Thread lindsay . hamoudi

I have a form and it has a 'confirm' and a 'cancel' button.  The 'confirm'
button submits to the Action class.  I'd like the 'cancel' button to
redirect user to another Action, which has a global-forward named 'home'.

Here's what I'm attempting...

html:submit property=irrelevant value=Cancel
onclick=javascript:location.href='html:rewrite forward=home/';/

This does not work at all.

Does anyone know how I could do this?

Many thanks.

Lindsay

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




RE: How do I pass an ActionForward's path into a button's onclick () h andler

2002-05-01 Thread lindsay . hamoudi

I have tried detecting what type of submit (e.g. cancel) in the action and
then dealing with it from there (i.e. go back to another action).  But
when you do such detection in all your actions, then (unless you redirect)
the parameter is still there when you reach your forwarded-to action - and
this is not desirable in my case - because that action will then see this
'cancel' parameter and go back to another action, and so on.

I find explaining this very difficult - does it show?!

I really need a mechanism for handling back or cancel requests
effectively.  There's no way I'm using history.back() because it might not
point to the right place.  

I think I'll just go home and lose some sleep over it.

 -Original Message-
From:   Bill Page [mailto:[EMAIL PROTECTED]] 
Sent:   01 May 2002 18:31
To: Struts Users Mailing List
Subject:RE: How do I pass an ActionForward's path into a button's
onclick () h andler

you could just detect the kind of submit in your action and then if it's a
cancel, forward to the other action.  But if I understand what you're
saying, you could just check the submit type and global forward from the
first action.

bp

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 01, 2002 1:26 PM
 To: [EMAIL PROTECTED]
 Subject: How do I pass an ActionForward's path into a 
 button's onclick()
 h andler
 
 
 I have a form and it has a 'confirm' and a 'cancel' button.  
 The 'confirm'
 button submits to the Action class.  I'd like the 'cancel' button to
 redirect user to another Action, which has a global-forward 
 named 'home'.
 
 Here's what I'm attempting...
 
 html:submit property=irrelevant value=Cancel
 onclick=javascript:location.href='html:rewrite forward=home/';/
 
 This does not work at all.
 
 Does anyone know how I could do this?
 
 Many thanks.
 
 Lindsay
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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

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




Problem with forward redirection

2002-04-30 Thread lindsay . hamoudi

Hi,

I've been using struts for a while now (by my standards).

I prefer for all of my forwards to redirect - for two reasons:

1)  Because it keeps the browser's location bar up-to-date;

2)  To stop one action (accidentally) processing request parameters
intended for a previous action.  

For example, I tend to use a cancel parameter, in my forms or pages, to
indicate (to the action) that the user wishes to go back up a level.  If I
did not redirect, then this cancel parameter would still be there when the
request reaches this upper level action (causing it too to go back up a
level... and so on.).

This all worked fine, until I reached this dilemma:

I have an Action class called ControlAction which handles all actions
related to control (of a hypothetical software agent).
It handles the following actions (extension mapping is /app/*):

/app/control(top-level action that displays a page from which user can
choose a sub-action)
/app/control/viewResources  (sub-action which displays another page and
returns to above action when user hits cancel)
... more sub-actions

But all of these actions require a request parameter, agentName, to be
present.  This is a problem because when the 
/app/control/viewResources action forwards to /app/control - this parameter
is lost in the redirection.  

So is there any way to append a parameter to the ActionForward object?  In a
similar way to the tag html:rewrite forward=nameOfForward paramId=id
paramValue=value/

Any help is much appreciated. 

Cheers.

Lindsay

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




Do ALL html:form's actions need a form bean?

2002-03-19 Thread lindsay . hamoudi

Hi,

I have just a simple form that I have included purely because there are two
buttons that the user can press - Confirm or Cancel.  But this form does
not have any input fields (except the html:submit buttons).  It has a hidden
field which is populated by a request-scope bean, but that's all.  

When the page is compiled by the server I get the following exception:

Root cause:
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean
null
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:795)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
at confirmDelete_3._jspService(confirmDelete_3.java:763)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
 Blablabla


If I cannot use html:form without having a form bean associated with it's
action, then what is the alternative.  Can I have buttons that link to an
action?  Basically, I only need to be able to call the action through use of
a button (or two).  Can this be done without a form?


Cheers,

Lindsay

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




RE: applicationresource.properties

2002-03-19 Thread lindsay . hamoudi

I'm seeing:

2002-03-18 16:28:09 - /struts-SACT: action: init
2002-03-18 16:28:09 - /struts-SACT: action: Loading application resources
from resource ApplicationResources
2002-03-18 16:28:09 - /struts-SACT: action: Initializing configuration from
resource path /WEB-INF/struts-config.xml
2002-03-18 16:28:11 - /struts-SACT: action: Process servletName=action,
urlPattern=*.do
2002-03-18 16:28:11 - /struts-SACT: action: Mapping for servlet 'action' =
'*.do'

I don't know if the log file says this whether it is successful or not in
loading the file.

You may need to up the debug level from within your web.xml file.  See
below... (this will increase the amount of detail in your server's log file)

web-app
   !-- Standard Action Servlet Configuration (with debugging) --
   servlet
  servlet-nameaction/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
 param-nameapplication/param-name
 param-valueApplicationResources/param-value
  /init-param
  init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
  /init-param
  init-param
 param-namedebug/param-name
 param-value6/param-value
  /init-param
 Bla bla bla

Also check that you are referencing the file by it's correct name.  I
noticed you said applicationresource.properties in your message.
Therefore if it's stored in the /classes directory (not a subdirectory),
then the relevant web.xml excerpt should be

init-param
 param-nameapplication/param-name
 param-valueapplicationresource/param-value
/init-param

If this fails, then there may be an error in the file.

Hope this helps,

Lindsay

 -Original Message-
From:   Steven Dahlin [mailto:[EMAIL PROTECTED]] 
Sent:   19 March 2002 15:52
To: [EMAIL PROTECTED]
Subject:applicationresource.properties

How do I know if an applicationresource.properties file can be read?  I have

an applicationresource.properties file present in the WEB-INF/classes 
directory, but the messages are not being found.  Someone mentioned that the

log files would have a clue but I cannot find any indications in any of the 
log files that the file was found.  What specifically should I be seeing.

Thanks,
Steve



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


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

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




RE: Form beans in session scope

2002-03-19 Thread lindsay . hamoudi

If you're manually calling your formbean's setter methods then you'll need
to then re-add the formbean to the session (or request or whatever scope you
are using).  I don't know what you're trying to do, but I've never manually
called any such setter methods.  They're usually called automatically when
you submit a form to an Action class (i.e. the action-mapping element of
struts-config tells Struts which formbean to populate for the specified
action and what scope to give it).  

I'd stick with request scope for formbeans, but it does not sound like you
are using them in the conventional way - so maybe some more detail on what
you're trying to do would help. 

Lindsay

 -Original Message-
From:   Kevin J. Turner [mailto:[EMAIL PROTECTED]] 
Sent:   19 March 2002 15:26
To: Struts Users Mailing List
Subject:Form beans in session scope

I have configured my struts-config file to keep my form bean in
session scope. I don't know if this is good practice, but I wasn't
having much luck with the request scope.

In many of my action classes, if have to get a reference to my form 
bean to do some business logic processing. I do so by doing the
following:

   MyFormBean mfb =3D (MyFormBean) form

Then I call some methods

   mfb.setAlpha(beta);
   mfb.setGamma(delta);
   etc..

At this point do I need to explicitly re-add/reset the form bean by 
doing something like this:

   session.setAttribute(mapping.getAttribute(), mfb);

Or does calling the methods automatically update the form bean thats 
in the session?

k


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

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




RE: is applicationresources.properties being found?

2002-03-18 Thread lindsay . hamoudi

Your server log file (e.g. servlet-20020315.log) in %TOMCAT_HOME%/logs will
tell you what is being loaded when Tomcat starts.  

The null values may appear because you have not set the errors.header and
errors.footer keys in your properties file.

e.g.

errors.header=font color=red size=+1Validation Error(s)/fontul
errors.footer=/ul
errors.username=Blablabla


This gets rid of the null header and footer that you are seeing.  If you are
using html:errors/, then the header and footer will be displayed.  You can
also refer to error messages individually and place them in the relevant
part of your form/page.

Hope that helps.

Lindsay

 -Original Message-
From:   Steven Dahlin [mailto:[EMAIL PROTECTED]] 
Sent:   18 March 2002 04:56
To: 'Struts Users Mailing List'
Subject:is applicationresources.properties being found?

How do I know if the application has found the properties file?  I have a
file of the right name in the right place (WEB-INF/classes) and yet the
html:errors/ tag returns null null with no message in between.  I know
that I have created a message of the right description.  Do any of the
tomcat log files indicate that the properties file has been found?

Also, were is there proper documentation on all the possibilities in the
web.xml.  I have hunted all throughout all the docs I could find at the
jakarta website but could not find anything?

Thanks,
Steve

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

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




Groups of radio buttons

2002-03-15 Thread lindsay . hamoudi

Hi,

I noticed that this particular feature is on the Struts Project Wish-List,
but I really need it now!!  Well not really.  I could revert back to my ugly
scriptlets.

But anyway, the problem is - I have an array of Strings (each representing a
color - e.g. #33FFCC) and I'd like to present them in a table of radio
buttons, so that the user can choose a color to represent something.

I have begun by logic:iterating over the array.  I'd like the value of each
radio button to be the color (i.e. the current String from the array).  

It seems that there is no obvious support for something like this within the
current API, so I'm just wondering if anyone has found a way!

Cheers,

Lindsay

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




Do all action elements need to have a name (of form-bean) a ttribute?

2002-03-14 Thread lindsay . hamoudi

Hi,

I have an action that I would like to be performed directly after my
LoginAction has been successfully performed.  However, this action (called
HomeAction) is not associated with any form and merely prepares a bean for
use by home.jsp.  

But when I read the user's guide it states that each action element
requires path, type, and name to be specified - name being the name of the
form-bean element.  Is this right?

Here's my struts-config.xml.  At the moment I can't even create an instance
of LoginAction, but that's another story...

struts-config
   !-- == Form Bean Definitions ===
--
   form-beans
  !-- Login form bean --
  form-bean 
name=loginForm 
type=zeus.generator.web.model.LoginForm/
  /form-beans
   !-- == Global Forward Definitions ==
--
   global-forwards
  forward 
name=login 
path=/login.jsp/
  forward 
name=success 
path=/home.do/
   /global-forwards
   !-- == Action Mapping Definitions ==
--
   action-mappings
  !-- Process a user login --
  action 
path=/login 
type=zeus.generator.web.controller.LoginAction 
name=loginForm 
scope=request 
input=/login.jsp
forward 
 name=success 
 path=/home.do/
  /action
  !-- Process a request for home page--
  action 
path=/home 
type=zeus.generator.web.controller.HomeAction
forward 
 name=success 
 path=/home.jsp/
  /action

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




logic:present and logic:notPresent tags - both are being exec uted!

2002-03-14 Thread lindsay . hamoudi

Hi,

I have an action class (HomeAction) that sets a session attribute (can I
call this a bean!?) which is a java.util.Vector of my own custom Agent
objects.  This attribute is only set if the Vector, created by the action
class, is not empty.

Anyway - eventually the HomeAction class will forward to home.jsp which is
where I want to present this Vector in a table.  At present, this Vector is
always empty and so the HomeAction class will NOT add it to the session.  

Before I continue - here is the troublesome JSP code:


logic:notPresent name=myAgentsVector scope=session
type=java.util.Vector 
% System.out.println(Did not find session attribute myAgentsVector.  User
has no agents); %
  tr 
td width=3nbsp;/td
td 
  div align=centerYou currently have no agents./div
/td
  /tr
/logic:notPresent

logic:present name=myAgentsVector scope=session
type=java.util.Vector 
% System.out.println(Found session attribute myAgentsVector.  Creating
dynamic My Agents table); %
!-- START MY AGENTS TABLE DYNAMIC CONTENT --
  logic:iterate id=agent name=myAgentsVector
type=zeus.generator.web.model.object.Agent scope=page
  % System.out.println(Created a bean called agent - from
myAgentsVector); % 
tr 
  td width=3 bgcolor=bean:write name=agent property=color/
bordercolor=#CCnbsp;/td
  tdbean:write name=agent property=name scope=page//td
  tdbean:write name=agent property=type.name scope=page/
(vbean:write name=agent property=type.version scope=page/)/td
  tdbean:write name=agent property=status scope=page//td 
  tdTo be defined (using Struts)/td
/tr
  /logic:iterate 
!-- END MY AGENTS TABLE DYNAMIC CONTENT --
/logic:present


I'd expect only the body of the logic:notPresent tag to be executed, but
for some reason the logic:present tag's body is also being executed.  Here
is the console output to show it:


2002-03-14 16:08:30 - Ctx(/struts-SACT) : Compiling: /home.jsp to home_13
Did not find session attribute myAgentsVector.  User has no agents
Found session attribute myAgentsVector.  Creating dydnamic My Agents table
Created a bean called agent - from myAgentsVector
2002-03-14 16:08:32 - Ctx(/struts-SACT) : Exception in R( /struts-SACT +
/home.jsp + null) - javax.servlet.ServletException: Cannot find bean agent
in scope null



Do any of you wise people (   =oS   )  have any idea what I'm doing wrong in
this code.  

Many many thanks,

Lindsay

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




RE: logic:present and logic:notPresent tags - both are being exec uted!

2002-03-14 Thread lindsay . hamoudi

OK I've overcame this problem by (reluctantly) using

% if (session.getAttribute(myAgentsVector) == null ) { %
. display static html 
% } else { %
. logic:iterate thru the Vector and bean:write each element's properties
into a table 
% } %

But I keep getting an error message
Cannot find bean agent in scope null 
where the bean 'agent' is the id given in the logic:iterate tag.

By default - this bean will have page scope, so by using the default
bean:write tag - it should be located.

Here's the key tags that are causing this:

logic:iterate id=agent name=myAgentsVector
type=zeus.generator.web.model.object.Agent scope=session

bean:write name=agent property=name/

/logic:iterate


Oh I hope I don't need to begin yet another new subject thread!  : (

Cheers.

Lindsay

 -Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent:   14 March 2002 16:18
To: [EMAIL PROTECTED]
Subject:logic:present and logic:notPresent tags - both are being
exec uted!

Hi,

I have an action class (HomeAction) that sets a session attribute (can I
call this a bean!?) which is a java.util.Vector of my own custom Agent
objects.  This attribute is only set if the Vector, created by the action
class, is not empty.

Anyway - eventually the HomeAction class will forward to home.jsp which is
where I want to present this Vector in a table.  At present, this Vector is
always empty and so the HomeAction class will NOT add it to the session.  

Before I continue - here is the troublesome JSP code:


logic:notPresent name=myAgentsVector scope=session
type=java.util.Vector 
% System.out.println(Did not find session attribute myAgentsVector.  User
has no agents); %
  tr 
td width=3nbsp;/td
td 
  div align=centerYou currently have no agents./div
/td
  /tr
/logic:notPresent

logic:present name=myAgentsVector scope=session
type=java.util.Vector 
% System.out.println(Found session attribute myAgentsVector.  Creating
dynamic My Agents table); %
!-- START MY AGENTS TABLE DYNAMIC CONTENT --
  logic:iterate id=agent name=myAgentsVector
type=zeus.generator.web.model.object.Agent scope=page
  % System.out.println(Created a bean called agent - from
myAgentsVector); % 
tr 
  td width=3 bgcolor=bean:write name=agent property=color/
bordercolor=#CCnbsp;/td
  tdbean:write name=agent property=name scope=page//td
  tdbean:write name=agent property=type.name scope=page/
(vbean:write name=agent property=type.version scope=page/)/td
  tdbean:write name=agent property=status scope=page//td 
  tdTo be defined (using Struts)/td
/tr
  /logic:iterate 
!-- END MY AGENTS TABLE DYNAMIC CONTENT --
/logic:present


I'd expect only the body of the logic:notPresent tag to be executed, but
for some reason the logic:present tag's body is also being executed.  Here
is the console output to show it:


2002-03-14 16:08:30 - Ctx(/struts-SACT) : Compiling: /home.jsp to home_13
Did not find session attribute myAgentsVector.  User has no agents
Found session attribute myAgentsVector.  Creating dydnamic My Agents table
Created a bean called agent - from myAgentsVector
2002-03-14 16:08:32 - Ctx(/struts-SACT) : Exception in R( /struts-SACT +
/home.jsp + null) - javax.servlet.ServletException: Cannot find bean agent
in scope null



Do any of you wise people (   =oS   )  have any idea what I'm doing wrong in
this code.  

Many many thanks,

Lindsay

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

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




RE: logic:present and logic:notPresent tags - both are being exec uted!

2002-03-14 Thread lindsay . hamoudi

I am soo sorry!  I have been wasting your time.  All this time I have
been having problems with these logic tags - but only because I forgot to
import the structs-logic.tld file!!!  :oS

I have been constructing my JSPs from the structs-example JSPs and they
don't use the logic tags, but I should have spotted this.  

Well - now it all works so I'm happy.  But not happy about being such a
dumb-ass newbie.  : (

Lindsay

 -Original Message-
From:   Jin Bal [mailto:[EMAIL PROTECTED]] 
Sent:   14 March 2002 17:41
To: Struts Users Mailing List
Subject:Re: logic:present and logic:notPresent tags - both are
being exec uted!

You could try changing the logic that sets the myAgents Vector into the
session to either set the list or set a zero length list rather than
null...just a thought.  Try explicitly setting the scope in your bean write
tag
HTH  ;-)

Jin
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 14, 2002 5:20 PM
Subject: RE: logic:present and logic:notPresent tags - both are being
exec uted!


 OK I've overcame this problem by (reluctantly) using

 % if (session.getAttribute(myAgentsVector) == null ) { %
 . display static html 
 % } else { %
 . logic:iterate thru the Vector and bean:write each element's
properties
 into a table 
 % } %

 But I keep getting an error message
 Cannot find bean agent in scope null
 where the bean 'agent' is the id given in the logic:iterate tag.

 By default - this bean will have page scope, so by using the default
 bean:write tag - it should be located.

 Here's the key tags that are causing this:

 logic:iterate id=agent name=myAgentsVector
 type=zeus.generator.web.model.object.Agent scope=session
 
 bean:write name=agent property=name/
 
 /logic:iterate


 Oh I hope I don't need to begin yet another new subject thread!  : (

 Cheers.

 Lindsay

  -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 14 March 2002 16:18
 To: [EMAIL PROTECTED]
 Subject: logic:present and logic:notPresent tags - both are being
 exec uted!

 Hi,

 I have an action class (HomeAction) that sets a session attribute (can I
 call this a bean!?) which is a java.util.Vector of my own custom Agent
 objects.  This attribute is only set if the Vector, created by the action
 class, is not empty.

 Anyway - eventually the HomeAction class will forward to home.jsp which is
 where I want to present this Vector in a table.  At present, this Vector
is
 always empty and so the HomeAction class will NOT add it to the session.

 Before I continue - here is the troublesome JSP code:


 logic:notPresent name=myAgentsVector scope=session
 type=java.util.Vector
 % System.out.println(Did not find session attribute myAgentsVector.
User
 has no agents); %
   tr
 td width=3nbsp;/td
 td
   div align=centerYou currently have no agents./div
 /td
   /tr
 /logic:notPresent

 logic:present name=myAgentsVector scope=session
 type=java.util.Vector
 % System.out.println(Found session attribute myAgentsVector.  Creating
 dynamic My Agents table); %
 !-- START MY AGENTS TABLE DYNAMIC CONTENT --
   logic:iterate id=agent name=myAgentsVector
 type=zeus.generator.web.model.object.Agent scope=page
   % System.out.println(Created a bean called agent - from
 myAgentsVector); %
 tr
   td width=3 bgcolor=bean:write name=agent property=color/
 bordercolor=#CCnbsp;/td
   tdbean:write name=agent property=name scope=page//td
   tdbean:write name=agent property=type.name scope=page/
 (vbean:write name=agent property=type.version scope=page/)/td
   tdbean:write name=agent property=status scope=page//td
   tdTo be defined (using Struts)/td
 /tr
   /logic:iterate
 !-- END MY AGENTS TABLE DYNAMIC CONTENT --
 /logic:present


 I'd expect only the body of the logic:notPresent tag to be executed, but
 for some reason the logic:present tag's body is also being executed.
Here
 is the console output to show it:


 2002-03-14 16:08:30 - Ctx(/struts-SACT) : Compiling: /home.jsp to home_13
 Did not find session attribute myAgentsVector.  User has no agents
 Found session attribute myAgentsVector.  Creating dydnamic My Agents table
 Created a bean called agent - from myAgentsVector
 2002-03-14 16:08:32 - Ctx(/struts-SACT) : Exception in R( /struts-SACT +
 /home.jsp + null) - javax.servlet.ServletException: Cannot find bean agent
 in scope null



 Do any of you wise people (   =oS   )  have any idea what I'm doing wrong
in
 this code.

 Many many thanks,

 Lindsay

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

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



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

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

RE: logic:present and logic:notPresent tags - both are being exec uted!

2002-03-14 Thread lindsay . hamoudi

Well that is exactly what the problem was!  Thanks for your efforts.  Much
appreciated.

-Original Message-
From:   Dave J Dandeneau [mailto:[EMAIL PROTECTED]] 
Sent:   14 March 2002 17:57
To: Struts Users Mailing List
Subject:RE: logic:present and logic:notPresent tags - both are
being exec uted!

This probably isn't the case, but we had these symptoms once and it was
because we had forgot to include the logic tag tld. It drove us crazy until
we looked at the source and realized that it was spitting out the logic tags
in the html. i.e. if you have:


logic:equal test...
1
/logic:equal

logic:notEqual same test..
2
/logic:notEqual

You will see the same output since the logic tags are just ignored in the
HTML. This could also explain why the bean tag can't find the bean.  

dave



-Original Message-
From: Jin Bal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 12:41 PM
To: Struts Users Mailing List
Subject: Re: logic:present and logic:notPresent tags - both are
being exec uted!


You could try changing the logic that sets the myAgents Vector into the
session to either set the list or set a zero length list rather than
null...just a thought.  Try explicitly setting the scope in your bean write
tag
HTH  ;-)

Jin
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 14, 2002 5:20 PM
Subject: RE: logic:present and logic:notPresent tags - both are being
exec uted!


 OK I've overcame this problem by (reluctantly) using

 % if (session.getAttribute(myAgentsVector) == null ) { %
 . display static html 
 % } else { %
 . logic:iterate thru the Vector and bean:write each element's
properties
 into a table 
 % } %

 But I keep getting an error message
 Cannot find bean agent in scope null
 where the bean 'agent' is the id given in the logic:iterate tag.

 By default - this bean will have page scope, so by using the default
 bean:write tag - it should be located.

 Here's the key tags that are causing this:

 logic:iterate id=agent name=myAgentsVector
 type=zeus.generator.web.model.object.Agent scope=session
 
 bean:write name=agent property=name/
 
 /logic:iterate


 Oh I hope I don't need to begin yet another new subject thread!  : (

 Cheers.

 Lindsay

  -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 14 March 2002 16:18
 To: [EMAIL PROTECTED]
 Subject: logic:present and logic:notPresent tags - both are being
 exec uted!

 Hi,

 I have an action class (HomeAction) that sets a session attribute (can I
 call this a bean!?) which is a java.util.Vector of my own custom Agent
 objects.  This attribute is only set if the Vector, created by the action
 class, is not empty.

 Anyway - eventually the HomeAction class will forward to home.jsp which is
 where I want to present this Vector in a table.  At present, this Vector
is
 always empty and so the HomeAction class will NOT add it to the session.

 Before I continue - here is the troublesome JSP code:


 logic:notPresent name=myAgentsVector scope=session
 type=java.util.Vector
 % System.out.println(Did not find session attribute myAgentsVector.
User
 has no agents); %
   tr
 td width=3nbsp;/td
 td
   div align=centerYou currently have no agents./div
 /td
   /tr
 /logic:notPresent

 logic:present name=myAgentsVector scope=session
 type=java.util.Vector
 % System.out.println(Found session attribute myAgentsVector.  Creating
 dynamic My Agents table); %
 !-- START MY AGENTS TABLE DYNAMIC CONTENT --
   logic:iterate id=agent name=myAgentsVector
 type=zeus.generator.web.model.object.Agent scope=page
   % System.out.println(Created a bean called agent - from
 myAgentsVector); %
 tr
   td width=3 bgcolor=bean:write name=agent property=color/
 bordercolor=#CCnbsp;/td
   tdbean:write name=agent property=name scope=page//td
   tdbean:write name=agent property=type.name scope=page/
 (vbean:write name=agent property=type.version scope=page/)/td
   tdbean:write name=agent property=status scope=page//td
   tdTo be defined (using Struts)/td
 /tr
   /logic:iterate
 !-- END MY AGENTS TABLE DYNAMIC CONTENT --
 /logic:present


 I'd expect only the body of the logic:notPresent tag to be executed, but
 for some reason the logic:present tag's body is also being executed.
Here
 is the console output to show it:


 2002-03-14 16:08:30 - Ctx(/struts-SACT) : Compiling: /home.jsp to home_13
 Did not find session attribute myAgentsVector.  User has no agents
 Found session attribute myAgentsVector.  Creating dydnamic My Agents table
 Created a bean called agent - from myAgentsVector
 2002-03-14 16:08:32 - Ctx(/struts-SACT) : Exception in R( /struts-SACT +
 /home.jsp + null) - javax.servlet.ServletException: Cannot find bean agent
 in scope null



 Do any of you wise people (   =oS   )  have any idea what I'm doing wrong
in
 this code.

 Many many thanks,

 Lindsay

 --
 To unsubscribe, e-mail:
 

Need help with JspException: Missing message for key login.title

2002-03-13 Thread lindsay . hamoudi

Hi everyone,

I've just began using Struts this week and it seems very useful, but I am
totally lost for ideas when it comes to this exception:

Exception in R( /struts-SACT + /login.jsp + null) -
javax.servlet.ServletException: Missing message for key login.title

I have placed my ApplicationResources.properties in the /classes directory
and here's the relevant part of web.xml:

servlet
  servlet-nameaction/servlet-name
  servlet-classorg.apache.struts.action.ActionServlet/servlet-class
  init-param
 param-nameapplication/param-name
 param-valueApplicationResources/param-value
  /init-param
  .


Here's my ApplicationResources.properties (it is very simple at present -
which makes this error all the more annoying):

error.username.required=Username is required
error.password.required=Password is required
error.database.unknown=Sorry, an unknown database error occurred
errors.footer=/ulbr
errors.header=h2font color=redValidation Error/font/h2You must
correct the following error(s) before proceeding:ul
login.title=SME Agent Creation Tool - User Login
prompt.login.username=Username
prompt.login.password=Password


And here's a part of my login.jsp:

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
html:html
head
titlebean:message key=login.title//title 


I heard that this is a common problem and that I should look at the mailing
list archive, but I find no help there at all.

Many thanks for any input.

Lindsay



Lindsay Hamoudi
Web Application Developer
BTexact Technologies

e-mail: [EMAIL PROTECTED]
tel: (+44) (0)1473 605491
mobile: (+44) (0)7985 114296
 
Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, Ipswich
IP5 3RE, UK


BTexact Technologies is a trademark of British Telecommunications
plc
Registered office: 81 Newgate Street London EC1A 7AJ 
Registered in England no. 180 
This electronic message contains information from British
Telecommunications plc which may be privileged or confidential. The
information is intended to be for the use of the individual(s) or entity
named above. If you are not the intended recipient be aware that any
disclosure, copying, distribution or use of the contents of this information
is prohibited. If you have received this electronic message in error, please
notify us by telephone or email (to the numbers or address above)
immediately.




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




RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread lindsay . hamoudi

Thanks for the suggestions, but still no change.  I am using Tomcat-3.3 with
Struts-1.0.2 on Windows-2000 Pro.

Struts.jar is no longer in my system classpath and is only in web-inf/lib
directory of my webapp.  I have restarted the container, but still the same
story.

Any more suggestions.  I'll try rebooting but I'm desperate now!  Tomcat
overrides the system classpath anyway does it not?

 -Original Message-
From:   keithBacon [mailto:[EMAIL PROTECTED]] 
Sent:   13 March 2002 13:51
To: Struts Users Mailing List
Subject:Re: Need help with JspException: Missing message for key
login.title

not sure but might be one of those where your struts.jar is in the wrong
place.
Make sure it is in your web app's WEB-INF/lib  nowhere else where the
server
could find it (ie. not on your system or server classpath).


--- Alok Kumar [EMAIL PROTECTED] wrote:
 YOu should put one more line in Applicationproperties file that is 
 login.title=some text ouyt here
 
 Alok
 
 - Original Message -
 From: [EMAIL PROTECTED]
 Date: Wednesday, March 13, 2002 4:24 pm
 Subject: Need help with JspException: Missing message for key 
 login.title
 
  Hi everyone,
  
  I've just began using Struts this week and it seems very useful, 
  but I am
  totally lost for ideas when it comes to this exception:
  
  Exception in R( /struts-SACT + /login.jsp + null) -
  javax.servlet.ServletException: Missing message for key login.title
  
  I have placed my ApplicationResources.properties in the /classes 
  directoryand here's the relevant part of web.xml:
  
  servlet
   servlet-nameaction/servlet-name
   servlet-
  classorg.apache.struts.action.ActionServlet/servlet-class
   init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
   /init-param
   .
  
  
  Here's my ApplicationResources.properties (it is very simple at 
  present -
  which makes this error all the more annoying):
  
  error.username.required=Username is required
  error.password.required=Password is required
  error.database.unknown=Sorry, an unknown database error occurred
  errors.footer=/ulbr
  errors.header=h2font color=redValidation 
  Error/font/h2You must
  correct the following error(s) before proceeding:ul
  login.title=SME Agent Creation Tool - User Login
  prompt.login.username=Username
  prompt.login.password=Password
  
  
  And here's a part of my login.jsp:
  
  %@ page language=java %
  %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
  %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
  html:html
  head
  titlebean:message key=login.title//title 
  
  
  I heard that this is a common problem and that I should look at 
  the mailing
  list archive, but I find no help there at all.
  
  Many thanks for any input.
  
  Lindsay
  
  
  
  Lindsay Hamoudi
  Web Application Developer
  BTexact Technologies
  
  e-mail: [EMAIL PROTECTED]
  tel: (+44) (0)1473 605491
  mobile: (+44) (0)7985 114296
  
  Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, 
  IpswichIP5 3RE, UK
  
  
 BTexact Technologies is a trademark of British Telecommunications
  plc
 Registered office: 81 Newgate Street London EC1A 7AJ 
 Registered in England no. 180 
 This electronic message contains information from British
  Telecommunications plc which may be privileged or confidential. The
  information is intended to be for the use of the individual(s) or 
  entitynamed above. If you are not the intended recipient be aware 
  that any
  disclosure, copying, distribution or use of the contents of this 
  informationis prohibited. If you have received this electronic 
  message in error, please
  notify us by telephone or email (to the numbers or address above)
  immediately.
  
  
  
  
  --
  To unsubscribe, e-mail:   mailto:struts-user-
  [EMAIL PROTECTED]For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
  
 
  **Disclaimer
   
 
 
 Information contained in this E-MAIL being proprietary to Wipro Limited
 is 'privileged' and 'confidential' and intended for use only by the
 individual or entity to which it is addressed. You are notified that any
 use, copying or dissemination of the information contained in the E-MAIL
 in any manner whatsoever is strictly prohibited.
 
 
 
  
 
  --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com

RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread lindsay . hamoudi

Thanks but I've given up!

I don't care much for i18n at present so have abandoned the .properties file
and resorted to hardcoding.  Mind you - I do like how you can set the
errors.header and footer.  I will need that in the future I think.  But I
now have more problems (which I wont bother you with!).  

I'm going to make a fresh start and take each problem as it arises.  Cos
there's lots of stuff that I cant get my head around with any confidence -
like the struts-config.xml file!

Cheers.  You can release those straws now  =OD

Lindsay
 -Original Message-
From:   keithBacon [mailto:[EMAIL PROTECTED]] 
Sent:   13 March 2002 16:17
To: Struts Users Mailing List
Subject:RE: Need help with JspException: Missing message for key
login.ti tle

1 - does anything get data from ApplicationResources successfully?
2 - Try rename struts.jar on web-inf/lib  re-start (just to prove there is
no
other version - or even unzipped struts class files somewhere in the class
pth).
3 - reboot if on windows. (you have to it's traditional  really does
produce a
miracle sometimes!).
4 - I am clutching at straws now!!

--- [EMAIL PROTECTED] wrote:
 Thanks for the suggestions, but still no change.  I am using Tomcat-3.3
with
 Struts-1.0.2 on Windows-2000 Pro.
 
 Struts.jar is no longer in my system classpath and is only in web-inf/lib
 directory of my webapp.  I have restarted the container, but still the
same
 story.
 
 Any more suggestions.  I'll try rebooting but I'm desperate now!  Tomcat
 overrides the system classpath anyway does it not?
 
  -Original Message-
 From: keithBacon [mailto:[EMAIL PROTECTED]] 
 Sent: 13 March 2002 13:51
 To:   Struts Users Mailing List
 Subject:  Re: Need help with JspException: Missing message for key
 login.title
 
 not sure but might be one of those where your struts.jar is in the wrong
 place.
 Make sure it is in your web app's WEB-INF/lib  nowhere else where the
 server
 could find it (ie. not on your system or server classpath).
 
 
 --- Alok Kumar [EMAIL PROTECTED] wrote:
  YOu should put one more line in Applicationproperties file that is 
  login.title=some text ouyt here
  
  Alok
  
  - Original Message -
  From: [EMAIL PROTECTED]
  Date: Wednesday, March 13, 2002 4:24 pm
  Subject: Need help with JspException: Missing message for key 
  login.title
  
   Hi everyone,
   
   I've just began using Struts this week and it seems very useful, 
   but I am
   totally lost for ideas when it comes to this exception:
   
   Exception in R( /struts-SACT + /login.jsp + null) -
   javax.servlet.ServletException: Missing message for key login.title
   
   I have placed my ApplicationResources.properties in the /classes 
   directoryand here's the relevant part of web.xml:
   
   servlet
servlet-nameaction/servlet-name
servlet-
   classorg.apache.struts.action.ActionServlet/servlet-class
init-param
   param-nameapplication/param-name
   param-valueApplicationResources/param-value
/init-param
.
   
   
   Here's my ApplicationResources.properties (it is very simple at 
   present -
   which makes this error all the more annoying):
   
   error.username.required=Username is required
   error.password.required=Password is required
   error.database.unknown=Sorry, an unknown database error occurred
   errors.footer=/ulbr
   errors.header=h2font color=redValidation 
   Error/font/h2You must
   correct the following error(s) before proceeding:ul
   login.title=SME Agent Creation Tool - User Login
   prompt.login.username=Username
   prompt.login.password=Password
   
   
   And here's a part of my login.jsp:
   
   %@ page language=java %
   %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
   %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
   html:html
   head
   titlebean:message key=login.title//title 
   
   
   I heard that this is a common problem and that I should look at 
   the mailing
   list archive, but I find no help there at all.
   
   Many thanks for any input.
   
   Lindsay
   
   
   
   Lindsay Hamoudi
   Web Application Developer
   BTexact Technologies
   
   e-mail: [EMAIL PROTECTED]
   tel: (+44) (0)1473 605491
   mobile: (+44) (0)7985 114296
   
   Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, 
   IpswichIP5 3RE, UK
   
   
  BTexact Technologies is a trademark of British Telecommunications
   plc
  Registered office: 81 Newgate Street London EC1A 7AJ 
  Registered in England no. 180 
  This electronic message contains information from British
   Telecommunications plc which may be privileged or confidential. The
   information is intended to be for the use of the individual(s) or 
   entitynamed above. If you are not the intended recipient be aware 
   that any
   disclosure, copying, distribution or use of the contents of this 
   informationis prohibited. If you have received this electronic 
   message in error, please

Defining a forward path- not to a JSP, but to another Action

2002-03-13 Thread lindsay . hamoudi

Hi

In the examples I've seen - any forwards that are defined (whether
global-forwards or action-specific) seem to point to JSP pages, i.e.

global-forwards
  forward name=login path=/login.jsp/
  forward name=success path=/home.jsp/
/global-forwards

However I'd like for my user to login (handled by LoginAction) and then not
just be sent straight to home.jsp.  Instead, I'd like to forward to
HomeAction which will prepare the necessary beans for use by home.jsp.

How do I go about defining this in structs-config.xml?  I'm a bit lost
because I keep seeing elements called path but some look like /login.jsp
and some look like /login.  Why is this?  Can you put /home.do as a
forward path and it will forward to HomeAction?  Or is this done simply by
putting /home as the forward path.

I'm sure this is very simple, but I really need to figure it out before my
boss realises how little progress I've made this week!  =o(

Thanks.

Lindsay

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




RE: Need help with JspException: Missing message for key login.ti tle

2002-03-13 Thread lindsay . hamoudi
 for any input.

Lindsay



Lindsay Hamoudi
Web Application Developer
BTexact Technologies

e-mail: [EMAIL PROTECTED]
tel: (+44) (0)1473 605491
mobile: (+44) (0)7985 114296

Orion Building (B62-MH), PostPoint 12, Adastral Park, Martlesham, 
IpswichIP5 3RE, UK


   BTexact Technologies is a trademark of British Telecommunications
plc
   Registered office: 81 Newgate Street London EC1A 7AJ 
   Registered in England no. 180 
   This electronic message contains information from British
Telecommunications plc which may be privileged or confidential. The
information is intended to be for the use of the individual(s) or 
entitynamed above. If you are not the intended recipient be aware 
that any
disclosure, copying, distribution or use of the contents of this 
informationis prohibited. If you have received this electronic 
message in error, please
notify us by telephone or email (to the numbers or address above)
immediately.




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


   
   
 **Disclaimer
 
   
   
   Information contained in this E-MAIL being proprietary to Wipro
Limited
   is 'privileged' and 'confidential' and intended for use only by the
   individual or entity to which it is addressed. You are notified that
any
   use, copying or dissemination of the information contained in the
E-MAIL
   in any manner whatsoever is strictly prohibited.
   
   
   

   
--
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  =
  ~~
  Search the archive:-
  http://www.mail-archive.com/struts-user%40jakarta.apache.org/
  ~~
  Keith Bacon - Looking for struts work - South-East UK.
  phone UK 07960 011275
  
  __
  Do You Yahoo!?
  Try FREE Yahoo! Mail - the world's greatest free email!
  http://mail.yahoo.com/
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 
 =
 ~~
 Search the archive:-
 http://www.mail-archive.com/struts-user%40jakarta.apache.org/
 ~~
 Keith Bacon - Looking for struts work - South-East UK.
 phone UK 07960 011275
 
 __
 Do You Yahoo!?
 Try FREE Yahoo! Mail - the world's greatest free email!
 http://mail.yahoo.com/
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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

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

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




More problems: No action instance for path /login could be create d...

2002-03-13 Thread lindsay . hamoudi

Ok my login.jsp is loading fine, and the ActionForm (LoginForm) is working
OK because error messages are being returned OK.  But when I submit valid
entries (i.e. when my Action class, LoginAction, should kick in) - I get
this error message:

Status code:500 request:R( /struts-SACT + /login.do + null) msg:No action
instance for path /login could be created

I'm assuming this is not a problem with my LoginAction class because it
can't even create an instance.  It must be something to do with the dreaded
struts-config.xml file.  Here's what I've got:

struts-config
   !-- == Data Source Configuration ===
--
   !-- == Form Bean Definitions ===
--
   form-beans
  !-- Login form bean --
  form-bean name=loginForm
type=zeus.generator.web.model.LoginForm/
   /form-beans
   !-- == Global Forward Definitions ==
--
   global-forwards
  forward name=login path=/login.jsp/
  forward name=success path=/home.do/
   /global-forwards
   !-- == Action Mapping Definitions ==
--
   action-mappings
  !-- Process a user login --
  action path=/login type=zeus.generator.web.controller.LoginAction
name=loginForm validate=true scope=request input=/login.jsp
 forward name=success path=/home.do/
  /action
  !-- Process a request for home page--
  action path=/home type=zeus.generator.web.controller.HomeAction
 forward name=success path=/home.jsp/
  /action
  !-- The standard administrative actions available with Struts --
  !-- These would be either omitted or protected by security --
  !-- in a real application deployment --
  ... Bla bla bla (I never touched these so they're OK)
   /action-mappings
/struts-config


My classes are in the correct packages - I know this (erm...) for definite.
What ELSE could be causing this?  Incidentally, the JSP form submits to
/login using the html:form tag.

Many many thanks if someone can help

Lindsay

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