Re: Using Struts Validator on Map-backed ActionForms

2005-02-13 Thread Andrew Waite
Niall,

Thanks again for the reply. I am afraid this is not going to work for
me, however.  The problem is I don't see how I can "do nothing
different than normal validation".  Normal validation requires the
field names and validations to be declared in the validation.xml file.
 I do not know in advance what those values will be. :(

If I am missing something let me know but I am just not able to comply
with the validation.xml declaration requirement since I don't know
what to put in the property value:







Andrew


On Sun, 13 Feb 2005 02:25:04 -, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
> There isn't anything different you need to do from normal validation.
> 
> http://struts.apache.org/userGuide/dev_validator.html
> 
> The only issue you might hit is if you want to validate according to the
> Action Mapping's path, rather than the form name. Then you would need a
> custom ActionForm - but thats very straight forward. Just extend either
> BeanValidatorForm or LazyValidatorForm and instantiate the LazyDynaMap in
> the constructor and fix the validation key (use setPathValidation(true)
> method) to use the mapping's path. Something like...
> 
> public class MyLazyForm extends LazyValidatorForm() {
> public MyLazyForm() {
> super(new LazyDynaMap());
> setPathValidation(true);
> }
> }
> 
> Some people don't like using the setPathValidation() because
> BeanValidatorForm automatically removes the leading "/" - if thats the case
> you can just override getValidationKey() method
> 
> public String getValidationKey(ActionMapping mapping,
>HttpServletRequest request) {
>  return mapping.getPath();
> }
> 
> Obviously in your struts-config you need to specify this new form
> 
>  
> 
> Niall
> 
> - Original Message -
> From: "Andrew Waite" <[EMAIL PROTECTED]>
> Sent: Saturday, February 12, 2005 10:50 PM
> 
> > Thanks for the response. This is looking promising - excellent work, btw.
> >
> > I have the Action and Struts communicating with this "form".  Do you
> > have any example of how to apply the Validaror against it?  Looking
> > for some samples but given how new this is it's hard to come by.
> >
> > Thanks,
> > Andrew
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Struts Menu and SSLEXT

2005-02-13 Thread Tim Christopher
Hi,

Can someone tell me if Struts-Menu is compatible with SSLEXT?

I've just started to look through a basic tutorial on Struts menu and
as links are defined as links are defined in an xml file the sslext
tags cannot be used.  Is it clever enough to use SSLEXT if I just send
it to the correct action?

Cheers,

Tim Christopher

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



which tier?

2005-02-13 Thread Robin Ericsson
Hi,
I'm doing a small timesheet app with struts using PostgreSQL as backend 
and as I'm new to struts and also somewhat new to Java I'm trying to 
decide where I should put the logic.

Each row contains a day, start time, end time and break time. Now, I 
want the business layer to calculate the duration between start time, 
end time minus the break.

Should this be placed in the SQL-side using a special query, or should I 
do this in Java? If so, is it possible to calculate durations and 
intervals in Java without using third-party packages?

I know the question is pretty vague but I'm on thin ice at the moment 
and not really knowing what I'm doing :)

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


Re: which tier?

2005-02-13 Thread Vic
You need to write object/class that you can unit test outside of 
Stuts.Lets call it Calc.java.
It would call a DAO (such as iBatis, there are tutorials to iBatis all 
over the place, try Rick Reuman (spelling?)).
That would call SQL.

So in Calc you might have private methods:
private long getStartTime(Interger userID);
private long getEndTime(Integer userID);

or just
private Map  getTimes(Integer userID) to get all the times at once.
Unit test that.
Then write method to compute. Unit test.
Then place in Struts.
(But before I would implement above, I would create a JSP /Struts mock 
up with fake data displayed (no db, just hard code), just to get the 
look and feel right, navigation, etc. That is allways the hard part but 
it ensurse sucess. Once you know that's what you want, then do above impl.)

.V
Robin Ericsson wrote:
Hi,
I'm doing a small timesheet app with struts using PostgreSQL as 
backend and as I'm new to struts and also somewhat new to Java I'm 
trying to decide where I should put the logic.

Each row contains a day, start time, end time and break time. Now, I 
want the business layer to calculate the duration between start time, 
end time minus the break.

Should this be placed in the SQL-side using a special query, or should 
I do this in Java? If so, is it possible to calculate durations and 
intervals in Java without using third-party packages?

I know the question is pretty vague but I'm on thin ice at the moment 
and not really knowing what I'm doing :)

regards,
Robin

--
Forums, Boards, Blogs and News in RiA 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: which tier?

2005-02-13 Thread Martin Gainty
Hello Robin
I would recommend starting with an example on how to setup your first Struts 
webapp..there are many examples but the login form example on the Struts 
website can be easily modified to fit your situation
http://struts.apache.org/faqs/actionForm.html
then I would use whatever DB tools to concentrate build a SQL Query view (I 
use Toad and SQLPlus) . The query should do the calculations for you and 
deliver the delta in the returned resultset
Then I would concentrate on your ActionForm bean accessor
where you would be connecting to the DB and pulling the results back

For getting a high level abstract view for connecting via JDBC Connection go 
to
http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/connection.html
then to jump into actual example take a look at
http://java.sun.com/docs/books/tutorial/jdbc/basics/index.html
If you get stuck on any or all parts of understanding the implementation I 
would be more than happy to provide you with any assistance you may need 
offline..

HTH,
Martin-
001-617-852-7822
- Original Message - 
From: "Robin Ericsson" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Sunday, February 13, 2005 10:00 AM
Subject: which tier?


Hi,
I'm doing a small timesheet app with struts using PostgreSQL as backend 
and as I'm new to struts and also somewhat new to Java I'm trying to 
decide where I should put the logic.

Each row contains a day, start time, end time and break time. Now, I want 
the business layer to calculate the duration between start time, end time 
minus the break.

Should this be placed in the SQL-side using a special query, or should I 
do this in Java? If so, is it possible to calculate durations and 
intervals in Java without using third-party packages?

I know the question is pretty vague but I'm on thin ice at the moment and 
not really knowing what I'm doing :)

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

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


RequestProcessor instantiation doubt ( in .NET)

2005-02-13 Thread Leandro Melo
Hi all.
The last days I've been working in a Struts like
framework for .NET. I guess most people that work for
companies that develop both in Java and in .NET whish
they had something like Struts for .NET projects.
The framework is almost ready (when I finish and
publish it, in few days, I'll send an e-mail to the
list).
My framework is a lot simpler than Struts. Although I
got a lot of ideas from Struts, it's not that similar
when we talk about coding. And here's comes my
question.
In Struts, when a http request hits the ActionServlet,
it delegates to a single RequestProcessor instance to
handle the request. There's only one RequestProcessor
instance per module in a Struts application because
this instance keeps a lot of information about
actions, module config, etc...
In my framework, when a http requests hits my Front
controller it delegates, in the same way as Struts, to
the RequestProcessor. However the RequestProcessor is
not responsible for keeping application configuration
information. Basically, I get a singleton class wich
keeps all this data. 
So, is it necessary for me to have only one instance
of the RequestProcessor??? Or should I just
instantiante one RequestProcessor for each http
request that hits my front controller What would
be the impact on performance for both approaches???
Well, that's it. I'm looking to hear some opinions on
that.
Thanks all and sorry for using Struts list for this,
but I really think it's here i can get the best
information.
Leandro




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



Problem with front controller for redirecting to a Struts action

2005-02-13 Thread Tuan H. Le
Hi,

PROBLEM:
Please help with my servlet mapping issue. It's
calling my redirector class repeately and the
redirector does not work.

REQUIREMENTS:
I want to give my client a personalized URL like
http://www.mydomain.com/myWebApp/FirstName_LastName
(NOTE: no file extension).

When the user enters that URL above, it would be
processed by a servlet
RequestProfileRedirectorServlet, which is defined in
web.xml and it has a servlet mapping to "/*" (NOTE:
see servlet code and web.xml config below). 

The main task for the RequestProfileRedirectorServlet
is to get the request path info (NOTE: in my case it's
/FirstName_LastName), build a redirect URL, and
redirect it to a Struts welcome action (welcome.do) to
query the user profile from the database and display
the user profile in a welcome view. An example of a
redirect URL would be

http://www.mydomain.com/myWebApp/welcome.do?cid=FirstName_LastName

SOURCE:
public final class RequestProfileRedirectorServlet
extends HttpServlet implements IConstants {

/**
 * Commons Logging instance.
 */
private Log log = LogFactory.getLog(PACKAGE);

public RequestProfileRedirectorServlet() {
super();
}

public void doPost(HttpServletRequest request, 
   HttpServletResponse  response) 
   throws IOException,
ServletException {
}

/**
 * This method handles the GET requests from the
client.
 */
public void doGet(HttpServletRequest request, 
  HttpServletResponse  response)
  throws IOException,
ServletException {
  
String servletPath = request.getServletPath();
String contextPath = request.getContextPath();
String pathInfo = request.getPathInfo();
String queryString = request.getQueryString();
String requestURL =
request.getRequestURL().toString();
String requestURI = request.getRequestURI();

log.debug("servletPath --> " + servletPath);
log.debug("contextPath --> " + contextPath);
log.debug("pathInfo --> " + pathInfo);
log.debug("queryString --> " + queryString);
log.debug("requestURL --> " + requestURL);
log.debug("requestURI --> " + requestURI);

String customerId = pathInfo;
StringBuffer sbURL = new StringBuffer();
   
sbURL.append("http://localhost:8080/msa/welcome.do?";);
sbURL.append("&cid=" + customerId);
   
response.sendRedirect(response.encodeRedirectURL(sbURL.toString()));
   
}
}

WEB.XML


http://java.sun.com/dtd/web-app_2_3.dtd";>
  

  My Application
   
  
Log4jInitServlet
   
com.pps.msa.actions.Log4jInitServlet

   LOG4J_CONFIG_FILE
  
WEB-INF/classes/com/pps/msa/resources/log4j.properties

1
  

  
redirector
com.pps.msa.actions.RequestProfileRedirectorServlet
1
  

  
action
org.apache.struts.action.ActionServlet
2
  
 
  
redirector
/*
  
  
  
action
*.do
  




Do you know what I'm missing?

Thanks in advance for your help!
Tuan

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



Re: Using Struts Validator on Map-backed ActionForms

2005-02-13 Thread Niall Pemberton
OK I see what you mean and I agree its not possible to configure validator
in the traditional way. So the question is what mechanism do you have that
tells you how to validate these fields? You must be getting some meta data
that indicates what validation needs to be done for a specific property? My
first thought would be that when you receive that meta data, you use it to
create the validator resources - basically doing the job that the
ValidatorPlugIn does when it parses the validation.xml and loads the
validators resources.

Niall

- Original Message - 
From: "Andrew Waite" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Sunday, February 13, 2005 11:30 AM
Subject: Re: Using Struts Validator on Map-backed ActionForms


> Niall,
>
> Thanks again for the reply. I am afraid this is not going to work for
> me, however.  The problem is I don't see how I can "do nothing
> different than normal validation".  Normal validation requires the
> field names and validations to be declared in the validation.xml file.
>  I do not know in advance what those values will be. :(
>
> If I am missing something let me know but I am just not able to comply
> with the validation.xml declaration requirement since I don't know
> what to put in the property value:
>
> 
> 
> 
> 
> 
>
> Andrew



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



formbean with List field

2005-02-13 Thread Hamster
 
I'm wondering if I can have a formbean containing a List of Strings. Is
that recognized by Struts correctly?
 
I need that for a shopping cart implementation, where the user can
modify the amount of the articles in the shopping cart. For each article
should be a text field for entering a number. So I think I need here a
List of Strings in the form bean, right?
 
How does the implementaion look like in the form bean?


ActionServlet creating action mapping extension not calling set property(s)

2005-02-13 Thread Stephen Peck
Hi,
I am currently trying to set up a custom security model using struts 
which involves extending ActionMapping
with a class called SecureActionMapping using Tomcat 5.0 and Struts 1.2.

My problem is that after initialisation of the actions, which definitely 
creates and parses the extended action mapping for each action because 
the bean property is checked for exuistence in the extending class, the 
property's set method is not called on execution of an action.  
Therefore rendering the vector that is initialised with the value 
parameter as empty instead of placing the value in it.

After searching for some alternate solutions on the web at JavaWorld and 
the struts.apache.org FAQ I was unable to find a solution to this.  The 
following is how I have set this up;

in my web.xml file I tried adding a initialisation parameter for the 
ActionServlet as mentioned at JavaWorld


mapping  
au.com.common.struts.action.mapping.SecureActionMapping


and in the struts-config.xml

   

  

 


Where my property is securityRoles.  The java class is as follows;
package au.com.common.struts.action.mapping;
import java.util.StringTokenizer;
import java.util.Vector;
import org.apache.struts.action.ActionMapping;
public class SecureActionMapping extends ActionMapping
{
   private Vector myRoles = new Vector();
  
   public SecureActionMapping() {}
  
   public void setSecurityRoles(String aRolesString)
   {
   System.out.println("WTF ?");
 
   StringTokenizer st = new StringTokenizer(aRolesString, ",", false);
  
   while (st.hasMoreTokens())
   {
   myRoles.add(st.nextToken().trim());
   }
   }
  
   public Vector getSecurityRoles()
   {
   return myRoles;
   }
}

As the the System.out.println in my set method does not display I assume 
that this method is not being correctly called by the ActionServlet when 
creating the ActionMapping.

Any help would be great.
Thanks in advance
Steve Peck.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Struts Menu and SSLEXT

2005-02-13 Thread Tim Christopher
I've decided to give struts menu a go anyway, but does anyone know
where I can get a dtd for the menu-config.xml file?

I'm having problems getting it to work.  It refuses to stay anything
other than something resembling "???en_GB.Contact???" as the menu
name, and the link does work.  Also when I include an Item nested
within a Menu it causes an error whilst the server is loading.

Any ideas anyone?


On Sun, 13 Feb 2005 13:51:13 +, Tim Christopher
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> Can someone tell me if Struts-Menu is compatible with SSLEXT?
> 
> I've just started to look through a basic tutorial on Struts menu and
> as links are defined as links are defined in an xml file the sslext
> tags cannot be used.  Is it clever enough to use SSLEXT if I just send
> it to the correct action?
> 
> Cheers,
> 
> Tim Christopher
>

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



Struts In Action - Still up to date?

2005-02-13 Thread David Johnson
Hi all

I've looked at Ted Husted's book "Struts in Action" and I think it's
what I'm looking for, but it's a bit long in the tooth, publushed in 
Nov 2004.

Does anyone (including Ted) have any idea when a new version is going
to come out with authoritative coverage of 1.2?

Very much want this book, but bery much want the latest version!

Thanks

-Dave
[EMAIL PROTECTED]

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



Re: Struts In Action - Still up to date?

2005-02-13 Thread Larry Meadors
very soon


On Sun, 13 Feb 2005 18:36:55 -0500, David Johnson <[EMAIL PROTECTED]> wrote:
> Hi all
> 
> I've looked at Ted Husted's book "Struts in Action" and I think it's
> what I'm looking for, but it's a bit long in the tooth, publushed in
> Nov 2004.
> 
> Does anyone (including Ted) have any idea when a new version is going
> to come out with authoritative coverage of 1.2?
> 
> Very much want this book, but bery much want the latest version!
> 
> Thanks
> 
> -Dave
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: ActionServlet creating action mapping extension not calling set property(s)

2005-02-13 Thread Niall Pemberton
Many of the configuration options available using  in the
web.xml were deprecated in Struts 1.1 and removed in Struts 1.2, including
the "mapping" one you're trying to use. The upgrade notes on the wiki have a
full list:

http://wiki.apache.org/struts/StrutsUpgradeNotes11to124

However having said that, you are setting the type on 
element in the struts-config - so the fact that the above is ignored is
irrelevant. If you didn't want to use the "type" on the 
element, but install a default implementation on a strust-wide replacement,
then you the replacement mechanism for a "mapping"  would be to
use a custom ModuleConfigFactory, as follows...

 
   configFactory
   myPackage.MyConfigFactory
 

Your custom factory might look something like this...

public class MyConfigFactory extends DefaultModuleConfigFactory {
   public ModuleConfig createModuleConfig(String prefix) {
ModuleConfig config = super.createModuleConfig(prefix);

config.setActionMappingClass("au.com.common.struts.action.mapping.SecureActi
onMapping");
return config;
}
}

Having said that, none of the above addresses why what you're expecting to
happen isn't being done. You say "the property's set method is not called on
execution of an action" - but thats not what happens. Struts should be
calling your setSecurityRoles() method when Struts starts up and parses the
struts-config.xml - thats when the ActionMapping gets instantiated and
intialized, not when the Action's execute method is called on receving a
request. Are you sure you're not getting your message displayed when Tomcat
starts up?

Niall

- Original Message - 
From: "Stephen Peck" <[EMAIL PROTECTED]>
Sent: Sunday, February 13, 2005 11:18 PM


> Hi,
>
> I am currently trying to set up a custom security model using struts
> which involves extending ActionMapping
> with a class called SecureActionMapping using Tomcat 5.0 and Struts 1.2.
>
> My problem is that after initialisation of the actions, which definitely
> creates and parses the extended action mapping for each action because
> the bean property is checked for exuistence in the extending class, the
> property's set method is not called on execution of an action.
> Therefore rendering the vector that is initialised with the value
> parameter as empty instead of placing the value in it.
>
> After searching for some alternate solutions on the web at JavaWorld and
> the struts.apache.org FAQ I was unable to find a solution to this.  The
> following is how I have set this up;
>
> in my web.xml file I tried adding a initialisation parameter for the
> ActionServlet as mentioned at JavaWorld
>
> 
> mapping
>
au.com.common.struts.action.mapping.SecureActionMapping
> 
>
> and in the struts-config.xml
>
> 
type="au.com.plantechnology.common.struts.action.mapping.SecureActionMapping
">
>  type="au.com.plantechnology.finance.struts.action.SecureAction">
> value="admin,manager,finance"/>
>
>
>   
> 
>
> Where my property is securityRoles.  The java class is as follows;
>
> package au.com.common.struts.action.mapping;
>
> import java.util.StringTokenizer;
> import java.util.Vector;
>
> import org.apache.struts.action.ActionMapping;
>
> public class SecureActionMapping extends ActionMapping
> {
> private Vector myRoles = new Vector();
>
> public SecureActionMapping() {}
>
> public void setSecurityRoles(String aRolesString)
> {
> System.out.println("WTF ?");
>
> StringTokenizer st = new StringTokenizer(aRolesString, ",",
false);
>
> while (st.hasMoreTokens())
> {
> myRoles.add(st.nextToken().trim());
> }
> }
>
> public Vector getSecurityRoles()
> {
> return myRoles;
> }
> }
>
> As the the System.out.println in my set method does not display I assume
> that this method is not being correctly called by the ActionServlet when
> creating the ActionMapping.



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



Re: ActionServlet creating action mapping extension not calling set property(s)

2005-02-13 Thread Stephen Peck
Niall Pemberton wrote:
Many of the configuration options available using  in the
web.xml were deprecated in Struts 1.1 and removed in Struts 1.2, including
the "mapping" one you're trying to use. The upgrade notes on the wiki have a
full list:
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124
However having said that, you are setting the type on 
element in the struts-config - so the fact that the above is ignored is
irrelevant. If you didn't want to use the "type" on the 
element, but install a default implementation on a strust-wide replacement,
then you the replacement mechanism for a "mapping"  would be to
use a custom ModuleConfigFactory, as follows...

  configFactory
  myPackage.MyConfigFactory

Your custom factory might look something like this...
public class MyConfigFactory extends DefaultModuleConfigFactory {
  public ModuleConfig createModuleConfig(String prefix) {
   ModuleConfig config = super.createModuleConfig(prefix);
config.setActionMappingClass("au.com.common.struts.action.mapping.SecureActi
onMapping");
   return config;
   }
}
Having said that, none of the above addresses why what you're expecting to
happen isn't being done. You say "the property's set method is not called on
execution of an action" - but thats not what happens. Struts should be
calling your setSecurityRoles() method when Struts starts up and parses the
struts-config.xml - thats when the ActionMapping gets instantiated and
intialized, not when the Action's execute method is called on receving a
request. Are you sure you're not getting your message displayed when Tomcat
starts up?
Niall
- Original Message - 
From: "Stephen Peck" <[EMAIL PROTECTED]>
Sent: Sunday, February 13, 2005 11:18 PM

 

Hi,
I am currently trying to set up a custom security model using struts
which involves extending ActionMapping
with a class called SecureActionMapping using Tomcat 5.0 and Struts 1.2.
My problem is that after initialisation of the actions, which definitely
creates and parses the extended action mapping for each action because
the bean property is checked for exuistence in the extending class, the
property's set method is not called on execution of an action.
Therefore rendering the vector that is initialised with the value
parameter as empty instead of placing the value in it.
After searching for some alternate solutions on the web at JavaWorld and
the struts.apache.org FAQ I was unable to find a solution to this.  The
following is how I have set this up;
in my web.xml file I tried adding a initialisation parameter for the
ActionServlet as mentioned at JavaWorld

mapping
   

au.com.common.struts.action.mapping.SecureActionMapping
value>
 


and in the struts-config.xml

   

type="au.com.plantechnology.common.struts.action.mapping.SecureActionMapping
">
 

   
  
  
  
 

Where my property is securityRoles.  The java class is as follows;
package au.com.common.struts.action.mapping;
import java.util.StringTokenizer;
import java.util.Vector;
import org.apache.struts.action.ActionMapping;
public class SecureActionMapping extends ActionMapping
{
   private Vector myRoles = new Vector();
   public SecureActionMapping() {}
   public void setSecurityRoles(String aRolesString)
   {
   System.out.println("WTF ?");
   StringTokenizer st = new StringTokenizer(aRolesString, ",",
   

false);
 

   while (st.hasMoreTokens())
   {
   myRoles.add(st.nextToken().trim());
   }
   }
   public Vector getSecurityRoles()
   {
   return myRoles;
   }
}
As the the System.out.println in my set method does not display I assume
that this method is not being correctly called by the ActionServlet when
creating the ActionMapping.
   


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

Thanks for the reply Niall,
Yes I am sure that the message is not being displayed in the output of 
Tomcat's startup ;

- Initializing Coyote HTTP/1.1 on http-8080
- Initialization processed in 2406 ms
- Starting service Catalina
- Starting Servlet Engine: Apache Tomcat/5.0.24
- XML validation disabled
- Create Host deployer for direct deployment ( non-jmx )
- Processing Context configuration file URL file:C:\Program Files\Apache 
Software Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
- Initializing, config='org.apache.struts.util.LocalStrings', 
returnNull=true
- Initializing, config='org.apache.struts.action.ActionResources', 
returnNull=true
- Initializing, config='org.apache.webapp.admin.ApplicationResources', 
returnNull=true
- Processing Context configuration file URL file:C:\Program Files\Apache 
Software Foundation\Tomcat 5.0\conf\Catalina\localhost\finance_revamp.xml
- Tiles definition factory loaded for module ''.
- Loading validation rules file from '/WEB-INF/validator-rules.xml'
- Loading validation rules file from '/WEB-INF/validation.xml'
- Processing Context configuration fi

Re: Struts In Action - Still up to date?

2005-02-13 Thread J Q
On Sun, 13 Feb 2005 17:22:01 -0700, Larry Meadors
<[EMAIL PROTECTED]> wrote:
> very soon

Very soon as in months or weeks? How do you know this and could you be
a bit more specific? What's the latest that you think it might come
out?

JQ.

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



Re: ActionServlet creating action mapping extension not calling set property(s)

2005-02-13 Thread Niall Pemberton
I'd switch on logging in debug mode - digester I think tells you loads about
what its doing, maybe you can work out from that whats happening at startup.

Niall

- Original Message - 
From: "Stephen Peck" <[EMAIL PROTECTED]>
Sent: Monday, February 14, 2005 1:23 AM
> Thanks for the reply Niall,
>
> Yes I am sure that the message is not being displayed in the output of
> Tomcat's startup ;
>
> - Initializing Coyote HTTP/1.1 on http-8080
> - Initialization processed in 2406 ms
> - Starting service Catalina
> - Starting Servlet Engine: Apache Tomcat/5.0.24
> - XML validation disabled
> - Create Host deployer for direct deployment ( non-jmx )
> - Processing Context configuration file URL file:C:\Program Files\Apache
> Software Foundation\Tomcat 5.0\conf\Catalina\localhost\admin.xml
> - Initializing, config='org.apache.struts.util.LocalStrings',
> returnNull=true
> - Initializing, config='org.apache.struts.action.ActionResources',
> returnNull=true
> - Initializing, config='org.apache.webapp.admin.ApplicationResources',
> returnNull=true
> - Processing Context configuration file URL file:C:\Program Files\Apache
> Software Foundation\Tomcat 5.0\conf\Catalina\localhost\finance_revamp.xml
> - Tiles definition factory loaded for module ''.
> - Loading validation rules file from '/WEB-INF/validator-rules.xml'
> - Loading validation rules file from '/WEB-INF/validation.xml'
> - Processing Context configuration file URL file:C:\Program Files\Apache
> Software Foundation\Tomcat 5.0\conf\Catalina\localhost\ROOT.xml
> - Processing Context configuration file URL file:C:\Program Files\Apache
> Software Foundation\Tomcat 5.0\conf\Catalina\localhost\tomcat-docs.xml
> - Starting Coyote HTTP/1.1 on http-8080
> - JK2: ajp13 listening on /0.0.0.0:8009
> - Jk running ID=0 time=0/235  config=C:\Program Files\Apache Software
> Foundation\Tomcat 5.0\conf\jk2.properties
> - Server startup in 13110 ms
> found mapping type
> au.com.plantechnology.common.struts.action.mapping.SecureActionMapping
>
> The last line is displayed on a call to SecureAction which is expecting
> a SecureActionMapping.
>
> It just doesn't seem to make sense.  I have continued searching the web
> and have still found nada.  The configuration seems to be correct, I
> have changed the name of the property, added new ones and still
> nothing.  It is definitely creating the correct mapping type but just
> not initialising it.
>
> Steve.



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



Re: Struts In Action - Still up to date?

2005-02-13 Thread Don Brown
Funny you should mention this...Nick Heudecker (Hibernate Quickly) and
I have just agreed to write Struts in Action, 2nd Edition which will
target 1.2 and 1.3 as appropriate.  Our goal is to bring the trusted
tome up to date, and include more practical solutions to common
problems that arise on this list and others.

Don


On Sun, 13 Feb 2005 17:22:01 -0700, Larry Meadors
<[EMAIL PROTECTED]> wrote:
> very soon
> 
> 
> On Sun, 13 Feb 2005 18:36:55 -0500, David Johnson <[EMAIL PROTECTED]> wrote:
> > Hi all
> >
> > I've looked at Ted Husted's book "Struts in Action" and I think it's
> > what I'm looking for, but it's a bit long in the tooth, publushed in
> > Nov 2004.
> >
> > Does anyone (including Ted) have any idea when a new version is going
> > to come out with authoritative coverage of 1.2?
> >
> > Very much want this book, but bery much want the latest version!
> >
> > Thanks
> >
> > -Dave
> > [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Object in request

2005-02-13 Thread Sab

MyCart mycart = new MyCart(...);
request.setAttribute("cart", mycart); 

is immediately visible to a JSP page which this servlet forwards to,
using a standard action tag like this: 

 

I have 2 layers
One.jsp uses this mycart object and gets this object.
This page links to another jsp say- two.jsp (which is not using the
mycart object)
Two.jsp again calls one.jsp.

When I put mapping from two.jsp to one.jsp it says the mycart is not
found.

What may be causing this? 



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