ProcessAction - Scaffold package

2003-01-13 Thread Senthivel U S

Greetings,

We are planning to use Scaffold package (ProcessAction and AccessLayer).
In the ProcessAction, sometimes we want to get some user data from
database and set it in cookie.  For another request we want to read it
from cookie and merge it with the form bean and send the bean for
process.  As per the Scaffold package document, we can set user data in
cookie using getUserProfile() of ProcessAction.  But the data need to be
retrieved from database for cookie.  For retrieval, i have to call
cookiebean.execute() method. Then I have to process with Collection to
get data. (Since Access layer will always give me
Collection/ProcessResult). Moreover I have to change the executelogic()
method of ProcessAction since all my form beans can not be of type
BaseForm. 

The next approach I planned to use to sort out this issue is as follows.
Configure two beans for one Action. i.e. one bean for actual processing
and other to get the cookie value from database. Here I can not use
getUserProfile() method to set cookie value. I have to use
checkOutCome().
In that also, I have to take some straight approach (outside framework)
to find out from which Collection, I should read the cookie data and set
it
In cookie.

Any suggestions is highly appreciated.

Note: I don't want to make much change in executelogic() of
ProcessAction then it will lead me to deviate from the Framework.

Thanks

Regards,
Sen.




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




RE: JSTL in Struts

2003-01-13 Thread Mouratidis, Georg
>I'd bet you forgot to add the <%@ taglib %> declaration for the XML
>library at the top of your page.  JSTL is made up of several tag
>libraries, not just one.

>  <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>


Hi Craig,

how much you will bet. i have this declaration. and i still do not know
why this not work.

thx georg

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




run-as

2003-01-13 Thread kiuma
Hello struts-guys,
can anybody tell me how to use run-as tag in web.xml?
I've tryed:

   struts
   org.apache.struts.action.ActionServlet  
   
 config
 /WEB-INF/struts-config.xml
   
   
 debug
 3
   
   
 detail
 3
   
   
 validating
 true
  
   1
   
   Admin
   


but the role is always the same when I try to access my ejb (i.e. User 
role remains User, not Admin as I wish)

thanks in advance,
kiuma


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



Xerces or Crimson in struts.

2003-01-13 Thread Simon Kelly
Hi,

Does any one know if there is Xerces or Crimson with the struts package?
One of these is need for the Digester, but I can't find any reference in the
documentation for struts as to whether there is a parser included in the
struts package.

Cheers

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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




RE: Xerces or Crimson in struts.

2003-01-13 Thread Andrew Hill
Afaik no, but your container should provide you a parser, or you can
download one seperately.


  
Crimson sux
  


-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: Monday, 13 January 2003 17:55
To: Struts Users Mailing List
Subject: Xerces or Crimson in struts.


Hi,

Does any one know if there is Xerces or Crimson with the struts package?
One of these is need for the Digester, but I can't find any reference in the
documentation for struts as to whether there is a parser included in the
struts package.

Cheers

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Xerces or Crimson in struts.

2003-01-13 Thread Simon Kelly
So you would suggest Xerces then :-)


- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 11:04 AM
Subject: RE: Xerces or Crimson in struts.


> Afaik no, but your container should provide you a parser, or you can
> download one seperately.
>
> 
>   
> Crimson sux
>   
> 
>
> -Original Message-
> From: Simon Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 13 January 2003 17:55
> To: Struts Users Mailing List
> Subject: Xerces or Crimson in struts.
>
>
> Hi,
>
> Does any one know if there is Xerces or Crimson with the struts package?
> One of these is need for the Digester, but I can't find any reference in
the
> documentation for struts as to whether there is a parser included in the
> struts package.
>
> Cheers
>
> Simon
>
> Institut fuer
> Prozessdatenverarbeitung
> und Elektronik,
> Forschungszentrum Karlsruhe GmbH,
> Postfach 3640,
> D-76021 Karlsruhe,
> Germany.
>
> Tel: (+49)/7247 82-4042
> E-mail : [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




RE: Xerces or Crimson in struts.

2003-01-13 Thread Andrew Hill
Yep.
Mind you thats a pretty subjective opinion ;-)
Ideally you would be using JAXP (Im pretty sure digester does) which makes
your parser pluggable, at which point its just a case of choosing the
fastest one you can find (that doesnt have bugs in the features your
using!).

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: Monday, 13 January 2003 18:04
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Xerces or Crimson in struts.


So you would suggest Xerces then :-)


- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 11:04 AM
Subject: RE: Xerces or Crimson in struts.


> Afaik no, but your container should provide you a parser, or you can
> download one seperately.
>
> 
>   
> Crimson sux
>   
> 
>
> -Original Message-
> From: Simon Kelly [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 13 January 2003 17:55
> To: Struts Users Mailing List
> Subject: Xerces or Crimson in struts.
>
>
> Hi,
>
> Does any one know if there is Xerces or Crimson with the struts package?
> One of these is need for the Digester, but I can't find any reference in
the
> documentation for struts as to whether there is a parser included in the
> struts package.
>
> Cheers
>
> Simon
>
> Institut fuer
> Prozessdatenverarbeitung
> und Elektronik,
> Forschungszentrum Karlsruhe GmbH,
> Postfach 3640,
> D-76021 Karlsruhe,
> Germany.
>
> Tel: (+49)/7247 82-4042
> E-mail : [EMAIL PROTECTED]
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Referring to resources elsewhere

2003-01-13 Thread JONATHAN PHILIP HOLLOWAY
I've currently got a problem with my template and it doesn't actually display
the pages that are referrred to in the parent folder.  I have the template 
defined as follows butI can't seem to reference mainmenu.html, 
message.html, submenu.html or footer.html in the following way.  Could 
somebody tell me exactly how it is defined.

My template resides in a folder called assessments whilst the other 
files reside in the folder above this.

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















Many thanks in advance,
Jon.

*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*



Re: Session Management

2003-01-13 Thread Puneet Agarwal
Re: Session ManagementAgree that hidden variables can be used to store some values, 
but this may lead to higher network trafic.
Yeah for large applications the session scope may become to big to be handled by 
memory.

So what is the workaround for such an application ?

We are currently in process of gathering the requirements of a BIG system.
At the same time we are deciding infrastructure related items.
What is the best practice in Large systems to handle the Session.

Regards
Puneet

- Original Message - 
  From: Phil Steitz 
  To: Struts Users Mailing List 
  Sent: Saturday, January 11, 2003 4:45 AM
  Subject: Re: Session Management


  Puneet Agarwal wrote:
  > Session Management is required to achieve persistence. there are two manner
  > in which persistence can be achieved.
  >
  > 1. storing the information in HTTP session (possibly in session scope)
  > 2. Storing the information using stateful session beans.

  You can also use hidden fields (basically client-side state management),
  or application-managed durable storage (e.g RDBMS).

  >
  > You have to take the decision based on your application's performance
  > expectations.
  >
  > The cleaner approach is to define the scope of form as "session" and storing
  > everything in formbeans, nowhere else.
  > some readonly information can be stored in application context also.
  >
  > Well you may choose to store some information in stateful session beans and
  > some in formbeans (HTTP session) but I would not suggest to keep the scope
  > of formbeans as "request" unless the screen is totally stateless.

  Or unless the application has to scale to very large volumes, in which
  case you want to be very careful about creating too many session-scoped
  objects.

  >
  > Regards
  > Puneet
  >
  > - Original Message -
  > From: "JONATHAN PHILIP HOLLOWAY" <[EMAIL PROTECTED]>
  > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
  > Sent: Friday, January 10, 2003 4:10 PM
  > Subject: Session Management
  >
  >
  > Hi everyone,
  >
  > I'm wondering about the ways of managing sessions in Struts and wanted
  > to know out of these two ways which was the better way of doing things:
  >
  > 1. Storing things within the standard servlet session
  >
  > 2. Using a UserWrapper object and storing that within the session.
  >
  > Is the second way more preformance intensive or not and which is best
  > practice?
  >
  > Many thanks,
  > Jon Holloway.
  >
  > *-*
  >  Jonathan Holloway,
  >  Dept. Of Computer Science,
  >  Aberystwyth University,
  >  Ceredigion,
  >  West Wales,
  >  SY23 3DV.
  >
  >  07968 902140
  >  http://users.aber.ac.uk/jph8
  > *-*
  >
  >
  >
  > --
  > To unsubscribe, e-mail:   
  > For additional commands, e-mail: 
  >




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







Re: ProcessAction - Scaffold package

2003-01-13 Thread Ted Husted
The ProcessAction and ProcessResult were designed to understand the idea 
 of storing something in a "scope". Originally, these set to the 
equivalent of request, session, and application. If you like, we could 
also add a fourth "scope" that would be the equivalent of a "cookie" (or 
maybe "client") scope.

So, the ProcessBean would return a ProcessResult with its data object 
set to whatever you wanted the cookie to store, its scope set to 
"client", and its "name" set to the prospective cookie's name. The 
ProcessAction.exposeInScope could handle the rest.

Of course, since ProcessResult can be an aggregate, you can return this 
along with whatever might need to be returned.

To get started, you could subclass ProcessAction and override 
exposeInScope so that it also looks for a "client" scope and then saves 
the data as a cookie under the given name.

To make the property accessible to future requests, I would put the 
cookie's property on the ActionForm and use reset() to check the request 
for the cookie. If the cookie exists, populate the ActionForm property.

If you have a corresponding property on the ProcessBean, it would be 
transferred automatically, so the domain logic would only need to check 
whether the corresonding property was null.

Meanwhile, I'm starting work today on a similar enterprise framework 
that uses the patterns nomenclature from Martin's Fowler's recent 
"Enterprise Architechtures" book. It will crib alot of the code I'm 
using now but use a vocabulary that's certain to become common before 
long. =:0) I'd also like to move my SQL stuff into the Commons SQL 
package and add support for DynaBeans.

Like the other Scaffold stuff, it will be designed to use Struts as a 
PlugIn for the web tier portion of a multi-tier application. The 
ProcessAction would be virtually the same. The two big changes are that

* I'd like to try adding properties through Composition rather than 
inheritence, and

* I would also like to try using the ActionForm validate to instantiate 
and populate the properties bean for the domain.

The ProcessAction can then just pass a populated, validated domain bean 
up to a gateway object that invokes the domain logic.

-T.

Senthivel U S wrote:
Greetings,

We are planning to use Scaffold package (ProcessAction and AccessLayer).
In the ProcessAction, sometimes we want to get some user data from
database and set it in cookie.  For another request we want to read it
from cookie and merge it with the form bean and send the bean for
process.  As per the Scaffold package document, we can set user data in
cookie using getUserProfile() of ProcessAction.  But the data need to be
retrieved from database for cookie.  For retrieval, i have to call
cookiebean.execute() method. Then I have to process with Collection to
get data. (Since Access layer will always give me
Collection/ProcessResult). Moreover I have to change the executelogic()
method of ProcessAction since all my form beans can not be of type
BaseForm. 

The next approach I planned to use to sort out this issue is as follows.
Configure two beans for one Action. i.e. one bean for actual processing
and other to get the cookie value from database. Here I can not use
getUserProfile() method to set cookie value. I have to use
checkOutCome().
In that also, I have to take some straight approach (outside framework)
to find out from which Collection, I should read the cookie data and set
it
In cookie.

Any suggestions is highly appreciated.

Note: I don't want to make much change in executelogic() of
ProcessAction then it will lead me to deviate from the Framework.

Thanks

Regards,
Sen.






--
Ted Husted,
Struts in Action 


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




Re: Session Management

2003-01-13 Thread Charles Fineman
Phil gave you the work around:

You can also use hidden fields (basically client-side state
management),
or application-managed durable storage (e.g RDBMS).

You can play around with a "reaper" thread too but this could be perilous.
You need to build up a bit of a framework around this and it's not a
foolproof system. In effect you end up re-implementing the session timeout
logic but presumably using a much shorter timeout for the data.

The bottom line is that you cannot hang on to a lot of state in the
app-server if you plan to support a lot of concurrent users.

IMO, the best thing is to use the hidden field approach since you "pay as
you play".

The DB solution is a viable option but you have to deal with marshalling the
data then and it's a lot more expensive. Plus you need to deal with cleaning
up the data if the app-server the user was on craps out (and there wasn't a
clustered rollover to another server).

There are various caching techniques one could employ as well but that
depends on the type of information you are trying to hang on to.

- Original Message -
From: "Puneet Agarwal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 7:07 AM
Subject: Re: Session Management


Re: Session ManagementAgree that hidden variables can be used to store some
values, but this may lead to higher network trafic.
Yeah for large applications the session scope may become to big to be
handled by memory.

So what is the workaround for such an application ?

We are currently in process of gathering the requirements of a BIG system.
At the same time we are deciding infrastructure related items.
What is the best practice in Large systems to handle the Session.

Regards
Puneet

- Original Message -
  From: Phil Steitz
  To: Struts Users Mailing List
  Sent: Saturday, January 11, 2003 4:45 AM
  Subject: Re: Session Management


  Puneet Agarwal wrote:
  > Session Management is required to achieve persistence. there are two
manner
  > in which persistence can be achieved.
  >
  > 1. storing the information in HTTP session (possibly in session scope)
  > 2. Storing the information using stateful session beans.

  You can also use hidden fields (basically client-side state management),
  or application-managed durable storage (e.g RDBMS).

  >
  > You have to take the decision based on your application's performance
  > expectations.
  >
  > The cleaner approach is to define the scope of form as "session" and
storing
  > everything in formbeans, nowhere else.
  > some readonly information can be stored in application context also.
  >
  > Well you may choose to store some information in stateful session beans
and
  > some in formbeans (HTTP session) but I would not suggest to keep the
scope
  > of formbeans as "request" unless the screen is totally stateless.

  Or unless the application has to scale to very large volumes, in which
  case you want to be very careful about creating too many session-scoped
  objects.

  >
  > Regards
  > Puneet
  >
  > - Original Message -
  > From: "JONATHAN PHILIP HOLLOWAY" <[EMAIL PROTECTED]>
  > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
  > Sent: Friday, January 10, 2003 4:10 PM
  > Subject: Session Management
  >
  >
  > Hi everyone,
  >
  > I'm wondering about the ways of managing sessions in Struts and wanted
  > to know out of these two ways which was the better way of doing things:
  >
  > 1. Storing things within the standard servlet session
  >
  > 2. Using a UserWrapper object and storing that within the session.
  >
  > Is the second way more preformance intensive or not and which is best
  > practice?
  >
  > Many thanks,
  > Jon Holloway.
  >
  > *-*
  >  Jonathan Holloway,
  >  Dept. Of Computer Science,
  >  Aberystwyth University,
  >  Ceredigion,
  >  West Wales,
  >  SY23 3DV.
  >
  >  07968 902140
  >  http://users.aber.ac.uk/jph8
  > *-*
  >
  >
  >
  > --
  > To unsubscribe, e-mail:

  > For additional commands, e-mail:

  >




  --
  To unsubscribe, e-mail:

  For additional commands, e-mail:







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




Transforming a String to valid HTML encoding

2003-01-13 Thread Hirschmann, Bernhard

I still have the problem to transform a String containing national special
characters to the appropriate HTML encoding.

i.e.: "schön & reich" --> "schön & reich"

The class org.apache.struts.util.ResponseUtils only transforms the 4
characters <, >, & and " into their html representative. But in an
internationalized application we have 28 languages with all their special
characters to handle.

I guess we're not the first to solve this problem, but I can't find a
transformer for that. 

Any hints highly appreciated.

Regards,
Bernhard

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




Problems in html:link

2003-01-13 Thread Sangeetha Nagarjunan

Hi,
Am having problems submitting a form with action  property for html:link,
i have 2 links, a buton in my JSP.I try to set a value for an attribute
onclick of teh link / onlick of the button.
The property set for the button overrides the value for the value for link
wven wehn the button is not clicled.
Would anyone please help me thru this
Thanks
regards
Sangeetha Nagarjunan
IT Solutions India Pvt. Ltd.
Bangalore
080 - 6655122 X 2119



   
   
"Hirschmann, Bernhard" 
   

stems.com>  cc:
   
Subject: Transforming a String 
to valid HTML encoding 
01/13/03 06:03 PM  
   
Please respond to "Struts  
   
Users Mailing List"
   
   
   
   
   





I still have the problem to transform a String containing national special
characters to the appropriate HTML encoding.

i.e.: "schön & reich" --> "schön & reich"

The class org.apache.struts.util.ResponseUtils only transforms the 4
characters <, >, & and " into their html representative. But in an
internationalized application we have 28 languages with all their special
characters to handle.

I guess we're not the first to solve this problem, but I can't find a
transformer for that.

Any hints highly appreciated.

Regards,
Bernhard

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






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




RE: logic:iterate -tag

2003-01-13 Thread Sri Sankaran
You *can* use .  Be sure to look at the docs at 
http://jakarta.apache.org/struts/userGuide/struts-bean.html#define; it explains how 
this tag differs from .

Sri

-Original Message-
From: Matthias Weßendorf [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 2:59 AM
To: Struts Users Mailing List
Subject: AW: logic:iterate -tag


thank you,

is it possible to create a bean with the -tag? or must i you the 
-Tag?

greetings

Matthias



Matthias Weßendorf
Lange Strasse 17
D-44137 Dortmund
Tel.: (02 31) 1 89 15 95
Handy: (01 79) 1 11 89 79
Email: mailto:[EMAIL PROTECTED]
URL: http://www.wessendorf.NET


-Ursprüngliche Nachricht-
Von: David M. Karr [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 12. Januar 2003 23:26
An: [EMAIL PROTECTED]
Betreff: Re: logic:iterate -tag


> "Matthias" == Matthias Weßendorf <[EMAIL PROTECTED]>
writes:

Matthias> Hello everybody,
Matthias> i am just trying to use the -Tag

Matthias> this way was successfull:

Matthias> THE CODE:
Matthias> <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
Matthias> <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
Matthias>  scope="request"/>
Matthias> 
Matthias> 
Matthias> 

Matthias> END OF CODE

Matthias> but i didn´t want to use the -Tag
Matthias> so i tried this one:

Matthias> THE CODE:
Matthias> <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
Matthias> <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
Matthias>  type="access.Glossarbegriffsverwaltung">
Matthias> 
Matthias> 
Matthias> END OF CODE

Matthias> but i get this error:
Matthias> org.apache.jasper.JasperException: Cannot find bean menge in scope null

No surprise here.  The "logic:iterate" tag doesn't create beans, it just references 
them.  The error message says it can't find a bean named "menge" because you never 
created it.  You either have to use "jsp:useBean" or have the bean put into the 
request scope in the action that forwards to this jsp.

-- ===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




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


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


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




Struts view/JSP tags - List box

2003-01-13 Thread Heligon Sandra

For tomorrow I am searching a list box example to put in my Struts
application.
If the number of lines exceeds the control size, a vertical
scrollbar must be activated.
One column of this list is a check box.

If you have a such example, thanks to send it.
I am not sure that it is possible to design scrollbar in JSP page,
pagination
is probably more used. But the page displayed general parameters and
a list  
box with multiple records.

Thanks a lot for your help.
Sandra  

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




RE: How to reset session-scoped Dyna bean values

2003-01-13 Thread pqin
Can you discard this bean and instantiate a new one?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Affan Qureshi [mailto:[EMAIL PROTECTED]] 
Sent: January 13, 2003 12:07 AM
To: struts-user
Subject: How to reset session-scoped Dyna bean values

A rather basic question: How to reset/empty the property values in a session
bean when I get to page 1 in a wizard type interface?

I have a wizard type interface where I need to retain values throught
four/five screens. But when I want to start a new process from screen 1 I
get the same values back that I had entered in the prev process. How can I
reset them? My form bean is a DynaActionForm and I have tried setting the
initial property to "" and "false" but this does not seem to work. What am I
doing wrong?

Thanks in advance..

Affan



--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Cannot find bean...

2003-01-13 Thread pqin
In your struts conf xml, define the action and set scope to request.





Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Cohan, Sean [mailto:[EMAIL PROTECTED]] 
Sent: January 12, 2003 11:05 AM
To: Struts (E-mail)
Subject: Cannot find bean...

I'm struggling with the exception below trying to figure out how to resolve
it.  It appears when I add the following hidden parameter to the form.

  

I have the parameter getter and setters in the form class, and as a
parameter in the action mapping.  Can someone steer me in the right
direction? Thanks.

Here's the exception

org.apache.jasper.JasperException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope


--
To unsubscribe, e-mail:

For additional commands, e-mail:




Re: Referring to resources elsewhere

2003-01-13 Thread David Graham
If you're using Struts 1.1 you should change the template references to 
tiles because the template library is deprecated.  It seems like 
AssessmentMenuContent.jsp is in your root webapp directory because you 
precede it with a /.  Have you tried using an absolute path for the other 
jsps instead of the relative ../?

David






From: "JONATHAN PHILIP HOLLOWAY" <[EMAIL PROTECTED]>
Reply-To: "JONATHAN PHILIP HOLLOWAY" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Referring to resources elsewhere
Date: Mon, 13 Jan 2003 11:56:04 -

I've currently got a problem with my template and it doesn't actually 
display
the pages that are referrred to in the parent folder.  I have the template
defined as follows butI can't seem to reference mainmenu.html,
message.html, submenu.html or footer.html in the following way.  Could
somebody tell me exactly how it is defined.

My template resides in a folder called assessments whilst the other
files reside in the folder above this.

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















Many thanks in advance,
Jon.

*-*
 Jonathan Holloway,
 Dept. Of Computer Science,
 Aberystwyth University,
 Ceredigion,
 West Wales,
 SY23 3DV.

 07968 902140
 http://users.aber.ac.uk/jph8
*-*


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



HTML version used in Struts tags

2003-01-13 Thread Heligon Sandra

How can I know the HTML version used in Struts1.1b2 ?

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




Controlling Direct Access to jsp pages

2003-01-13 Thread Colquhoun, Adrian

Hi

If I have three pages in my view layer that must be called in sequence e.g.

 - step1.jsp then
 - step2.jsp then
 - step3.jsp

 How do I ensure that my users do not call step2 and step3 directly via a
web browser.  Do I need to use a custom tag in pages 2 and 3 to check this
or is there some way to force all requests for .jsp pages in my application
to route via the ActionServlet

Thanks

Adrian


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread James Mitchell
I place them all under /WEB-INF and force them to go through my action
classes.
There are other ways, but this is the most convenient for me. 


 Use at your own risk.
 Not all containers support doing it this way.




--
James Mitchell






> -Original Message-
> From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 10:41 AM
> To: '[EMAIL PROTECTED]'
> Subject: Controlling Direct Access to jsp pages
> 
> 
> 
> Hi
> 
> If I have three pages in my view layer that must be called in 
> sequence e.g.
> 
>  - step1.jsp then
>  - step2.jsp then
>  - step3.jsp
> 
>  How do I ensure that my users do not call step2 and step3 
> directly via a
> web browser.  Do I need to use a custom tag in pages 2 and 3 
> to check this
> or is there some way to force all requests for .jsp pages in 
> my application
> to route via the ActionServlet
> 
> Thanks
> 
> Adrian
> 
> 
> ==
> =
> Information in this email and any attachments are 
> confidential, and may
> not be copied or used by anyone other than the addressee, nor 
> disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment 
> through the use
> of this email.
> 
> Experian Limited (registration number 653331).  
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


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




One way of writing BaseAction

2003-01-13 Thread Chan, Charles
Hi, I just want to share with you my base action class implementation. I use
reflection to avoid putting .. logic in the execute() method. I
am not sure if somone has done this before, so I want to share fragement of
my codes here and ask for opinions.

I have used it to implement a simple site and am quite happy with it.

Let me know what you think or if you find it useful. :)

Cheers
Charles


/**
 * This class is an abstract Struts Action class that all
 * Action  classes should extend. A typical Action class
 * handles multiple actions (requests). For example, a EmailAction class
should
 * be able to handle all actions related to Emails (sending, replying,
viewing,
 * etc.). To avoid cluttering the execute method with
if...
 * else block, this base Action class calls individual
doXXX
 * methods in the derived class to perform the specific action. The exact
name
 * of the method (the XXX) is defined as a parameter in the
Action
 * mapping section of struts- config.xml.
 * 
 * An example of struts-config.xml for a EmailAction:
 * 
 * Calls EmailAction.doNew() when /email/new.do is requested.
 * 
 * 
 *   
 * 
 * 
 * 
 * Calls EmailAction.doView() when /email/view.do is requested.
 * 
 * 
 *   
 * 
 * 
 */

public abstract class BaseAction extends Action
{
/**
 *  Our default implementation. If parameter is specified in
ActionMapping,
 *  we will do the new processing mode and call the method
 *  "String doParameter()", e.g. if parameter is "edit", "String
doEdit()"
 *  is executed. The return String of that method is used to find the
 *  ActionForward from the mapping.
 *
 *  If no such parameter is found, we'll write some debugging
information
 *  to the response to let the programmer know that he forget to
 *  implement the perform() method.
 */
public final ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
boolean hasForm = (form != null);

/* Use our custom Request object to protect access to
HttpServletRequest */
Request req = new Request(request);

String mode = mapping.getParameter();

// invoke "doMode() with custom request object (using MethodUtils)
// based on hasForm, we can either invoke doMode(req) or doMode(req,
form)
}
}

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




Error: RequestProcessor

2003-01-13 Thread Oliver Kersten
Hi,
my program works fine and the internationalization seems to work too. But I
get still an Error on the JBoss Console every time when the JBoss processes
a request:

(Something like this!)
---
16:14:52,687 ERROR [STDERR] 13.01.2003 16:14:52
org.apache.struts.action.RequestProcessor process
INFO: Processing a 'GET' for path '/viewlogin'
16:14:57,484 ERROR [STDERR] 13.01.2003 16:14:57
org.apache.struts.action.RequestProcessor process
INFO: Processing a 'POST' for path '/login'
16:15:04,715 ERROR [STDERR] 13.01.2003 16:15:04
org.apache.struts.action.RequestProcessor process
INFO: Processing a 'GET' for path '/viewVersSearch'
16:15:07,349 ERROR [STDERR] 13.01.2003 16:15:07
org.apache.struts.action.RequestProcessor process
INFO: Processing a 'POST' for path '/searchVers'


I have two resources:
ApplicationResources_de_DE.properties
ApplicationResources.properties

And an entry in the struts-config.xml:


Does anyone know this Error???

I am using JBoss 3.0.0 with Tomcat 4.0.3 and Struts 1.1-b3

Thx Oliver.



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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Cory Newey
I've heard of this approach to protecting access to JSP pages but I've
never been able to get it to work.  How, exactly, do you route to a JSP
in the /WEB-INF directory?  Could you maybe provide a little of the
struts-config.xml file that would do this or the code in the Action
class that does this?

Thanks.

>>> [EMAIL PROTECTED] 01/13/03 08:50AM >>>
I place them all under /WEB-INF and force them to go through my action
classes.
There are other ways, but this is the most convenient for me. 


 Use at your own risk.
 Not all containers support doing it this way.




--
James Mitchell






> -Original Message-
> From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 10:41 AM
> To: '[EMAIL PROTECTED]' 
> Subject: Controlling Direct Access to jsp pages
> 
> 
> 
> Hi
> 
> If I have three pages in my view layer that must be called in 
> sequence e.g.
> 
>  - step1.jsp then
>  - step2.jsp then
>  - step3.jsp
> 
>  How do I ensure that my users do not call step2 and step3 
> directly via a
> web browser.  Do I need to use a custom tag in pages 2 and 3 
> to check this
> or is there some way to force all requests for .jsp pages in 
> my application
> to route via the ActionServlet
> 
> Thanks
> 
> Adrian
> 
> 
> ==
> =
> Information in this email and any attachments are 
> confidential, and may
> not be copied or used by anyone other than the addressee, nor 
> disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment 
> through the use
> of this email.
> 
> Experian Limited (registration number 653331).  
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:  

For additional commands, e-mail:



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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Fabrice . Bocquillon
Yes, you can use the struts-config.xml, actions or forwards
but if you don't want struts to know about (!) you can check by setting and
contextual attribute :
page1: request.setAttribute("referer", "true")
page 2: request.getAttribute("referer") = true ?

or use the http headers : getHeader("referer"); and check if the referer is
the right one.

Hopefully it will help,
fabrice.

-Original Message-
From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]]
Sent: lundi 13 janvier 2003 16:41
To: [EMAIL PROTECTED]
Subject: Controlling Direct Access to jsp pages



Hi

If I have three pages in my view layer that must be called in sequence e.g.

 - step1.jsp then
 - step2.jsp then
 - step3.jsp

 How do I ensure that my users do not call step2 and step3 directly via a
web browser.  Do I need to use a custom tag in pages 2 and 3 to check this
or is there some way to force all requests for .jsp pages in my application
to route via the ActionServlet

Thanks

Adrian


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Hoang, Hai
Last time I check, Weblogic is the only server I know that does not support
this feature.  Do you know other containers not support this feature?  

Thanks

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 9:50 AM
To: 'Struts Users Mailing List'
Subject: RE: Controlling Direct Access to jsp pages

I place them all under /WEB-INF and force them to go through my action
classes.
There are other ways, but this is the most convenient for me. 


 Use at your own risk.
 Not all containers support doing it this way.




--
James Mitchell






> -Original Message-
> From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 10:41 AM
> To: '[EMAIL PROTECTED]'
> Subject: Controlling Direct Access to jsp pages
> 
> 
> 
> Hi
> 
> If I have three pages in my view layer that must be called in 
> sequence e.g.
> 
>  - step1.jsp then
>  - step2.jsp then
>  - step3.jsp
> 
>  How do I ensure that my users do not call step2 and step3 
> directly via a
> web browser.  Do I need to use a custom tag in pages 2 and 3 
> to check this
> or is there some way to force all requests for .jsp pages in 
> my application
> to route via the ActionServlet
> 
> Thanks
> 
> Adrian
> 
> 
> ==
> =
> Information in this email and any attachments are 
> confidential, and may
> not be copied or used by anyone other than the addressee, nor 
> disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment 
> through the use
> of this email.
> 
> Experian Limited (registration number 653331).  
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:



_
Introducing the all new and improved continental.com.  With a totally new 
personalized design, it's the best place to go. Before you go.

Continental Airlines. Work Hard. Fly Right.

http://www.continental.com


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




Re: HTML version used in Struts tags

2003-01-13 Thread David Graham
Struts 1.1 tags adhere to the HTML 4.01 standard.  You can change this to 
use XHTML with the  tag.

David






From: Heligon Sandra <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: HTML version used in Struts tags
Date: Mon, 13 Jan 2003 16:29:36 +0100


	How can I know the HTML version used in Struts1.1b2 ?

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



RE: Error: RequestProcessor

2003-01-13 Thread James Mitchell
What Error are you getting?  All I see is Info.

Can you show us your logging configuration?

--
James Mitchell






> -Original Message-
> From: Oliver Kersten [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 10:53 AM
> To: [EMAIL PROTECTED]
> Subject: Error: RequestProcessor
> 
> 
> Hi,
> my program works fine and the internationalization seems to 
> work too. But I
> get still an Error on the JBoss Console every time when the 
> JBoss processes
> a request:
> 
> (Something like this!)
> ---
> 16:14:52,687 ERROR [STDERR] 13.01.2003 16:14:52
> org.apache.struts.action.RequestProcessor process
> INFO: Processing a 'GET' for path '/viewlogin'
> 16:14:57,484 ERROR [STDERR] 13.01.2003 16:14:57
> org.apache.struts.action.RequestProcessor process
> INFO: Processing a 'POST' for path '/login'
> 16:15:04,715 ERROR [STDERR] 13.01.2003 16:15:04
> org.apache.struts.action.RequestProcessor process
> INFO: Processing a 'GET' for path '/viewVersSearch'
> 16:15:07,349 ERROR [STDERR] 13.01.2003 16:15:07
> org.apache.struts.action.RequestProcessor process
> INFO: Processing a 'POST' for path '/searchVers'
> 
> 
> I have two resources:
> ApplicationResources_de_DE.properties
> ApplicationResources.properties
> 
> And an entry in the struts-config.xml:
> 
> 
> Does anyone know this Error???
> 
> I am using JBoss 3.0.0 with Tomcat 4.0.3 and Struts 1.1-b3
> 
> Thx Oliver.
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


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




Trying to use Struts sslext with WebSphere

2003-01-13 Thread pantichd
Hello,

Has anyone had any luck getting the Struts ssl extension
(http://sourceforge.net/project/showfiles.php?group_id=59967) working on
VisualAge for Java and/or WebSphere? I'm using VAJ 3.5.3 and WebSphere
3.5.4 advanced edition.

I have an app that works fine when I'm using Struts 1.0.2. I run into
problems when trying to use the ssl extension though. I've tried so many
things that I've gotten myself all confused.  : (

What I'd like to do is start again from scratch. I'm wondering if anyone
has seen any instructions for making the ssl extension work VAJ and WAS.

I would REALLY appreciate any help I can get.

Thanks!

PS - I don't really have a need for switching between http and https. My
app needs to be all https so if there is a better way for me to do this I'm
definitely open to suggestions. From my research it looked like the Struts
ssl extension was the way to go.





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




Re: Controlling Direct Access to jsp pages

2003-01-13 Thread David Graham
Put this security info at the bottom of your web.xml to prevent access to 
any *.jsp file:


		
			SecureAllJSPs
			*.jsp
		
		
			nobody
		
	

	
		No one should be put in this role.
		nobody
   


David






From: "Colquhoun, Adrian" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: Controlling Direct Access to jsp pages
Date: Mon, 13 Jan 2003 15:40:45 -


Hi

If I have three pages in my view layer that must be called in sequence e.g.

 - step1.jsp then
 - step2.jsp then
 - step3.jsp

 How do I ensure that my users do not call step2 and step3 directly via a
web browser.  Do I need to use a custom tag in pages 2 and 3 to check this
or is there some way to force all requests for .jsp pages in my application
to route via the ActionServlet

Thanks

Adrian


===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
http://join.msn.com/?page=features/virus


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



Display an option of a list with Nested

2003-01-13 Thread BARADAT Benoit



Hi !
 
I use the tag Nested Select for fill a 
list:
 
  
    
  

 
I grab this tag to a bean 
"rechercheInstancier" with an Arraylist:
 
  ArrayList listeAgents = new 
ArrayList();
 
To fill this ArrayList I use this 
instruction:
 
rechercheInstancierBean.addAgent(rs.getString("idAgent")); 
 
 
My problem: I would like to display a value of a 
list:
 
With HTML I use the word "selected":

    i1
    i2>

In this case I display "i1" on the 
screen.
 
How display i1 with the Nested ?
 
Tank in advance
 
 
 
 
 
 
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Exceptions in DispatchActions

2003-01-13 Thread Rick Reumann
Sorry to repost this yet another time. If maybe someone can just let
me know if they are successfully using declarative exception handling in
conjunction with DispatchAction methods that would be a start. Maybe
nobody even does this so I can just give up. If I know it is working
for others I'll persist. My original post was:


Hope someone could help with this..

If I use a normal Action and declare an exception in the action
configuration in the config file, everything works perfectly if that
Exception is thrown.

However, when normally I like to use DispatchAction and I'm having
trouble getting the declarative Exception handling to work in
DispatchAction methods. Apparently just adding the appropriate throws
clause to the DispatchAction method doesn't work. The log will show
that the exception was thrown but the DispatchAction didn't handle it.

Is there something I need to do differently to configure
DispatchAction methods to handle declaritive exceptions?

Thanks for the help?

-- 

Rick
mailto:[EMAIL PROTECTED]


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




RE: Display an option of a list with Nested

2003-01-13 Thread Sri Sankaran
This works the same way as it does with the  tags.  The default value (value 
that is shown selected when the page is loaded) is determined by the value of the 
's property attribute.  So, if 'rechercheInstancier.agent' is i1 and i1 
is one of the values of the , it will be displayed (selected).
 
Sri

-Original Message-
From: BARADAT Benoit [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 10:24 AM
To: Struts Users Mailing List
Subject: Display an option of a list with Nested


Hi !
 
I use the tag Nested Select for fill a list:
 
  

  
 
I grab this tag to a bean "rechercheInstancier" with an Arraylist:
 
  ArrayList listeAgents = new ArrayList();
 
To fill this ArrayList I use this instruction:
 
rechercheInstancierBean.addAgent(rs.getString("idAgent")); 
 
 
My problem: I would like to display a value of a list:
 
With HTML I use the word "selected":
i1i2>

In this case I display "i1" on the screen.
 
How display i1 with the Nested ?
 
Tank in advance
 
 
 
 
 
 




It lives....

2003-01-13 Thread Mark Galbreath
Hey guys!  Been away from the list for awhile.  Got sick of working in a
warehouse after the water main break on the T-Mobile/VoiceStream project and
split.  Now I'm the Senior Applications Engineer for QAT (www.qat.com) doing
systems integration using BizFlo (www.handysoft.com) and Java web services.
What an opportunity to spread the Struts faith!  I see the list is as active
as ever - been subscribed for 10 minutes and got 15 msgs

BTW: That was a pretty funny ACK in "Programming Jakarta Struts," Chuck!  It
was truly my pleasure to help.  I got Ted's book, too ("Struts in Action"),
and it is a good one!  Both are much better than "Mastering Jakarta Struts,"
though that's not to say the latter is bad

So, when's the next release, and did anybody ever get this stuff to run with
Flash???


Mark



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




Re: It lives....

2003-01-13 Thread Jeff_Mychasiw

I am sad.


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




RE: It lives....

2003-01-13 Thread Alvarado, Juan (c)
I had already wondered a few times what happened to you.

Glad to have you back...

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 11:36 AM
To: 'Struts Users Mailing List'
Subject: It lives


Hey guys!  Been away from the list for awhile.  Got sick of working in a
warehouse after the water main break on the T-Mobile/VoiceStream project and
split.  Now I'm the Senior Applications Engineer for QAT (www.qat.com) doing
systems integration using BizFlo (www.handysoft.com) and Java web services.
What an opportunity to spread the Struts faith!  I see the list is as active
as ever - been subscribed for 10 minutes and got 15 msgs

BTW: That was a pretty funny ACK in "Programming Jakarta Struts," Chuck!  It
was truly my pleasure to help.  I got Ted's book, too ("Struts in Action"),
and it is a good one!  Both are much better than "Mastering Jakarta Struts,"
though that's not to say the latter is bad

So, when's the next release, and did anybody ever get this stuff to run with
Flash???


Mark



--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Hoang, Hai
Your technique is powerful but the problem is that it even prevented
index.jsp from display as well.  Is there ways to work around?



-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 9:54 AM
To: [EMAIL PROTECTED]
Subject: Re: Controlling Direct Access to jsp pages

Put this security info at the bottom of your web.xml to prevent access to 
any *.jsp file:



SecureAllJSPs
*.jsp


nobody




No one should be put in this
role.
nobody



David






>From: "Colquhoun, Adrian" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Controlling Direct Access to jsp pages
>Date: Mon, 13 Jan 2003 15:40:45 -
>
>
>Hi
>
>If I have three pages in my view layer that must be called in sequence e.g.
>
>  - step1.jsp then
>  - step2.jsp then
>  - step3.jsp
>
>  How do I ensure that my users do not call step2 and step3 directly via a
>web browser.  Do I need to use a custom tag in pages 2 and 3 to check this
>or is there some way to force all requests for .jsp pages in my application
>to route via the ActionServlet
>
>Thanks
>
>Adrian
>
>
>===
>Information in this email and any attachments are confidential, and may
>not be copied or used by anyone other than the addressee, nor disclosed
>to any third party without our permission.  There is no intention to
>create any legally binding contract or other commitment through the use
>of this email.
>
>Experian Limited (registration number 653331).
>Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:

For additional commands, e-mail:



_
Introducing the all new and improved continental.com.  With a totally new 
personalized design, it's the best place to go. Before you go.

Continental Airlines. Work Hard. Fly Right.

http://www.continental.com


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




RE: It lives....

2003-01-13 Thread James Mitchell
Mark has his own fan club :D

Welcome back


--
James Mitchell






> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 11:36 AM
> To: Struts Users Mailing List
> Subject: Re: It lives
> 
> 
> 
> I am sad.
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


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




[OT] RE: It lives....

2003-01-13 Thread Sri Sankaran
Mark.. The [OT]meister...
Doing the [OT]

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 11:36 AM
To: 'Struts Users Mailing List'
Subject: It lives


Hey guys!  Been away from the list for awhile.  Got sick of working in a warehouse 
after the water main break on the T-Mobile/VoiceStream project and split.  Now I'm the 
Senior Applications Engineer for QAT (www.qat.com) doing systems integration using 
BizFlo (www.handysoft.com) and Java web services. What an opportunity to spread the 
Struts faith!  I see the list is as active as ever - been subscribed for 10 minutes 
and got 15 msgs

BTW: That was a pretty funny ACK in "Programming Jakarta Struts," Chuck!  It was truly 
my pleasure to help.  I got Ted's book, too ("Struts in Action"), and it is a good 
one!  Both are much better than "Mastering Jakarta Struts," though that's not to say 
the latter is bad

So, when's the next release, and did anybody ever get this stuff to run with Flash???


Mark



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


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




RE: It lives....

2003-01-13 Thread Amandeep Midha

well i am a new member ... i feel some giant has come out of hibernation
... as others are reacting














-
Amandeep Midha (CHARMIE)
IT Solutions (India) Pvt. Ltd.
No. 17, South End Road,
Basavanudi
Bangalore - 560 004. India
TEL : 91-80-6655122
MOBILE: +919844048126
FAX: 91-80-6655755
-
Visit my site @ http://newdelhi.topcities.com
-



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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Guido
IMO these are two bad solutions

  + Setting an attribute can be bypassed doing 
/page2.jsp?referer=true
  + I am almost sure HTTP headers can be modified easily, so using http
"referer" header may be unsafe...

See David Graham post in this thread to prevent access to any *.jsp file.

Regards from Spain,
Guido.

On Mon, 13 Jan 2003 [EMAIL PROTECTED] wrote:

} Yes, you can use the struts-config.xml, actions or forwards
} but if you don't want struts to know about (!) you can check by setting and
} contextual attribute :
} page1: request.setAttribute("referer", "true")
} page 2: request.getAttribute("referer") = true ?
} 
} or use the http headers : getHeader("referer"); and check if the referer is
} the right one.
} 
} Hopefully it will help,
} fabrice.
} 
} -Original Message-
} From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]]
} Sent: lundi 13 janvier 2003 16:41
} To: [EMAIL PROTECTED]
} Subject: Controlling Direct Access to jsp pages
} 
} 
} 
} Hi
} 
} If I have three pages in my view layer that must be called in sequence e.g.
} 
}  - step1.jsp then
}  - step2.jsp then
}  - step3.jsp
} 
}  How do I ensure that my users do not call step2 and step3 directly via a
} web browser.  Do I need to use a custom tag in pages 2 and 3 to check this
} or is there some way to force all requests for .jsp pages in my application
} to route via the ActionServlet
} 
} Thanks
} 
} Adrian
} 
} 
} ===
} Information in this email and any attachments are confidential, and may
} not be copied or used by anyone other than the addressee, nor disclosed
} to any third party without our permission.  There is no intention to
} create any legally binding contract or other commitment through the use
} of this email.
} 
} Experian Limited (registration number 653331).  
} Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
} 
} --
} To unsubscribe, e-mail:
} 
} For additional commands, e-mail:
} 
} 
} --
} To unsubscribe, e-mail:   
} For additional commands, e-mail: 
} 



Guido Garcia Bernardo
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"stat rosa pristina
nomine, nomina nuda tenemus."

http://members.ud.com/services/teams/team.htm?id=D8624419-BFB6-4772-A01A-0045631F979F


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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Fabrice . Bocquillon
yes you're right, considering any security issue.
I first wrongly understood the question, thinking the author wanted to
bypass struts action: I read to fast ;)
sorry for that spam ...
fab'

-Original Message-
From: Guido [mailto:[EMAIL PROTECTED]]
Sent: lundi 13 janvier 2003 17:44
To: Struts Users Mailing List
Subject: RE: Controlling Direct Access to jsp pages


IMO these are two bad solutions

  + Setting an attribute can be bypassed doing 
/page2.jsp?referer=true
  + I am almost sure HTTP headers can be modified easily, so using http
"referer" header may be unsafe...

See David Graham post in this thread to prevent access to any *.jsp file.

Regards from Spain,
Guido.

On Mon, 13 Jan 2003 [EMAIL PROTECTED] wrote:

} Yes, you can use the struts-config.xml, actions or forwards
} but if you don't want struts to know about (!) you can check by setting
and
} contextual attribute :
} page1: request.setAttribute("referer", "true")
} page 2: request.getAttribute("referer") = true ?
} 
} or use the http headers : getHeader("referer"); and check if the referer
is
} the right one.
} 
} Hopefully it will help,
} fabrice.
} 
} -Original Message-
} From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]]
} Sent: lundi 13 janvier 2003 16:41
} To: [EMAIL PROTECTED]
} Subject: Controlling Direct Access to jsp pages
} 
} 
} 
} Hi
} 
} If I have three pages in my view layer that must be called in sequence
e.g.
} 
}  - step1.jsp then
}  - step2.jsp then
}  - step3.jsp
} 
}  How do I ensure that my users do not call step2 and step3 directly via a
} web browser.  Do I need to use a custom tag in pages 2 and 3 to check this
} or is there some way to force all requests for .jsp pages in my
application
} to route via the ActionServlet
} 
} Thanks
} 
} Adrian
} 
} 
} ===
} Information in this email and any attachments are confidential, and may
} not be copied or used by anyone other than the addressee, nor disclosed
} to any third party without our permission.  There is no intention to
} create any legally binding contract or other commitment through the use
} of this email.
} 
} Experian Limited (registration number 653331).  
} Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
} 
} --
} To unsubscribe, e-mail:
} 
} For additional commands, e-mail:
} 
} 
} --
} To unsubscribe, e-mail:

} For additional commands, e-mail:

} 



Guido Garcia Bernardo
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"stat rosa pristina
nomine, nomina nuda tenemus."

http://members.ud.com/services/teams/team.htm?id=D8624419-BFB6-4772-A01A-004
5631F979F


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: [REPOST] NoClassDefFound exception in JBoss3 with integratedTomCat when instantiating Actions

2003-01-13 Thread Craig R. McClanahan


On Mon, 13 Jan 2003, Andrew Hill wrote:

>
> It appears that the classloader is having trouble with the EntityListAction
> class rather than its subclass. The relevant classes are of course in the
> war file...
>

Where is struts.jar itself?  It will need to be in the WAR also --
especially if you're using 1.0 -- and nowhere else in the class loader
hierarchy.

Craig


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




[REQUEST] Corrections for "Struts Kick Start"

2003-01-13 Thread James Turner
Kevin and I have been informed that "Struts Kick Start" will be going
into a second printing in February, and because of the just-in-time
printing method that SAMS uses, we have an opportunity to make
corrections.  So, if you've come across typos, errors or general
unclearness in the text, please let us know so that we can get the fixes
into the second printing. 

Unfortunately, what we can change is limited by the desire not to
heavily repaginate, so "A chapter on Struts-EL" is the kind of request
that falls outside the scope of what we can get done.  

James



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




Building Web Service Adapter for Struts app.

2003-01-13 Thread Greg Hess
Hi All,
 
I am building an adapter on my Struts app to allow Web Service calls
from remote parties. A remote call constructs a XML and sends the
request via http to my Struts app. My app processes the request by
parsing the XML data posted and returns the XML result. This is all
working but my spec states that I use DTD and a validating parser to
ensure that the request's and responses contain valid data elements. I
would like to be able to build the XML data completely dynamically and
then return that DOM to the client.
 
My problem is that the DOM built must contain the DOCTYPE declaration
for the server to use in parsing(validating). When I build a document
using the DOMImplementation using a DocType and output that DOM to some
OutputStream the DOCTYPE declaration is missing. I have read some
reports that state the ability to build a DOM data structure with a
DOCTYPE declaration is not yet supported by parser implementations. I am
using latest version of Xerces/Xalan and unfortunately there archives
are down and that mailing list is dead.
 
Does anyone know how I can achieve this and what parser implementation
supports the dynamic building of a DOM with a DOCTYPE. 
 
Many thanks for your help,
 
Greg



RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Colquhoun, Adrian

I have had a go at this - I get a 500 error message "Cannot perform access
control without an authenticated principal" - presumably I need to do
something else as well ?


-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: 13 January 2003 15:54
To: [EMAIL PROTECTED]
Subject: Re: Controlling Direct Access to jsp pages


Put this security info at the bottom of your web.xml to prevent access to 
any *.jsp file:



SecureAllJSPs
*.jsp


nobody




No one should be put in this
role.
nobody



David






>From: "Colquhoun, Adrian" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Controlling Direct Access to jsp pages
>Date: Mon, 13 Jan 2003 15:40:45 -
>
>
>Hi
>
>If I have three pages in my view layer that must be called in sequence e.g.
>
>  - step1.jsp then
>  - step2.jsp then
>  - step3.jsp
>
>  How do I ensure that my users do not call step2 and step3 directly via a
>web browser.  Do I need to use a custom tag in pages 2 and 3 to check this
>or is there some way to force all requests for .jsp pages in my application
>to route via the ActionServlet
>
>Thanks
>
>Adrian
>
>
>===
>Information in this email and any attachments are confidential, and may
>not be copied or used by anyone other than the addressee, nor disclosed
>to any third party without our permission.  There is no intention to
>create any legally binding contract or other commitment through the use
>of this email.
>
>Experian Limited (registration number 653331).
>Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:

For additional commands, e-mail:



===
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

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




RE: It lives....

2003-01-13 Thread Greg.Reddin
I never thought I'd say this, but it's good to hear from ya... :-)

> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 13, 2003 10:36 AM
> To: 'Struts Users Mailing List'
> Subject: It lives
> 
> 
> Hey guys!  Been away from the list for awhile.  Got sick of 
> working in a
> warehouse after the water main break on the 
> T-Mobile/VoiceStream project and
> split.  Now I'm the Senior Applications Engineer for QAT 
> (www.qat.com) doing
> systems integration using BizFlo (www.handysoft.com) and Java 
> web services.
> What an opportunity to spread the Struts faith!  I see the 
> list is as active
> as ever - been subscribed for 10 minutes and got 15 msgs
> 
> BTW: That was a pretty funny ACK in "Programming Jakarta 
> Struts," Chuck!  It
> was truly my pleasure to help.  I got Ted's book, too 
> ("Struts in Action"),
> and it is a good one!  Both are much better than "Mastering 
> Jakarta Struts,"
> though that's not to say the latter is bad
> 
> So, when's the next release, and did anybody ever get this 
> stuff to run with
> Flash???
> 
> 
> Mark
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Help using the logic iterate tag in struts

2003-01-13 Thread Mani, Jaya (J.)
Hi,

  I am new to struts and I trying to use the logic iterate tag.  The task
that I have to do is to loop through a collection and display some
properties.


 I am obtaining the collection on my jsp page itself. The collection is made
of objects.

Here is how I obtain the collection:

<%
  
 Collection uriLanguages=
UriFactory.getInstance().getUri("257").getUriLanguages().values();
  
%>

Below is how my iterate tag is defined: 




  






   


Set as Default


  
   

I have two questions regarding this.
1.Do I have to use the useBean tag to define "uriLanguage".If I don't
specify that I get the error message that uriLanguage is not defined in any
scope.
2.Am I using iterate tag correctly? After I started using the useBean tag I
no longer get exceptions, but I do not get the value for link label property
in uriLanguage class.

Thanks in advance for your help.




error page

2003-01-13 Thread Zhang, Larry (L.)

I am using struts 1.1b3. When the validation fails, the error can be shown on the page 
using . Now I have an action form page(say book.jsp, on this page there 
is a  required field-- book title), I want an error.jsp, when the validation (example, 
title field is null) fails, the error page is invoked. 

I tried to define a  attribute in struts-config.xml and put the target of it 
as the error.jsp, but struts still shows the action form page (book.jsp) when 
validation fails. However, when validation passes, the error.jsp is invoked correctly.

Any ideas on How to invoke an error.jsp when the validation fails?

Thanks.

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




RE: One way of writing BaseAction

2003-01-13 Thread Siggelkow, Bill
Isn't this similar to what the Dispatch action does?

-Original Message-
From: Chan, Charles [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 10:18 AM
To: 'Struts Users Mailing List'
Subject: One way of writing BaseAction


Hi, I just want to share with you my base action class implementation. I use
reflection to avoid putting .. logic in the execute() method. I
am not sure if somone has done this before, so I want to share fragement of
my codes here and ask for opinions.

I have used it to implement a simple site and am quite happy with it.

Let me know what you think or if you find it useful. :)

Cheers
Charles


/**
 * This class is an abstract Struts Action class that all
 * Action  classes should extend. A typical Action class
 * handles multiple actions (requests). For example, a EmailAction class
should
 * be able to handle all actions related to Emails (sending, replying,
viewing,
 * etc.). To avoid cluttering the execute method with
if...
 * else block, this base Action class calls individual
doXXX
 * methods in the derived class to perform the specific action. The exact
name
 * of the method (the XXX) is defined as a parameter in the
Action
 * mapping section of struts- config.xml.
 * 
 * An example of struts-config.xml for a EmailAction:
 * 
 * Calls EmailAction.doNew() when /email/new.do is requested.
 * 
 * 
 *   
 * 
 * 
 * 
 * Calls EmailAction.doView() when /email/view.do is requested.
 * 
 * 
 *   
 * 
 * 
 */

public abstract class BaseAction extends Action
{
/**
 *  Our default implementation. If parameter is specified in
ActionMapping,
 *  we will do the new processing mode and call the method
 *  "String doParameter()", e.g. if parameter is "edit", "String
doEdit()"
 *  is executed. The return String of that method is used to find the
 *  ActionForward from the mapping.
 *
 *  If no such parameter is found, we'll write some debugging
information
 *  to the response to let the programmer know that he forget to
 *  implement the perform() method.
 */
public final ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
boolean hasForm = (form != null);

/* Use our custom Request object to protect access to
HttpServletRequest */
Request req = new Request(request);

String mode = mapping.getParameter();

// invoke "doMode() with custom request object (using MethodUtils)
// based on hasForm, we can either invoke doMode(req) or doMode(req,
form)
}
}

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

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




using javascript

2003-01-13 Thread LUCERO,DENNIS (HP-Boise,ex1)
 
Hello, I am trying to call a java script function and it is not working, are
there any known issues with this sort of thing.
 
 
Here is some code:
 




 

function reset()
{
  alert("woo woo");  
}

 
 
 
 
We come from the land of the ice and snow
With the midnight sun, where the hot springs glow
The hammer of the gods, will drive our ships to new lands
Fight the horde, Sing and cry
Valhalla I am coming
 



RE: It lives....

2003-01-13 Thread Chappell, Simon P
Welcome back Mark! Fridays have just not been the same lately.

Did ya like my Slashdot review of Struts Kick Start? :-)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 13, 2003 10:36 AM
>To: 'Struts Users Mailing List'
>Subject: It lives
>
>
>Hey guys!  Been away from the list for awhile.  Got sick of 
>working in a
>warehouse after the water main break on the 
>T-Mobile/VoiceStream project and
>split.  Now I'm the Senior Applications Engineer for QAT 
>(www.qat.com) doing
>systems integration using BizFlo (www.handysoft.com) and Java 
>web services.
>What an opportunity to spread the Struts faith!  I see the 
>list is as active
>as ever - been subscribed for 10 minutes and got 15 msgs
>
>BTW: That was a pretty funny ACK in "Programming Jakarta 
>Struts," Chuck!  It
>was truly my pleasure to help.  I got Ted's book, too ("Struts 
>in Action"),
>and it is a good one!  Both are much better than "Mastering 
>Jakarta Struts,"
>though that's not to say the latter is bad
>
>So, when's the next release, and did anybody ever get this 
>stuff to run with
>Flash???
>
>
>Mark
>
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




Re: using javascript

2003-01-13 Thread Brian Lee
I think the problem here is that there is a built-in javascript reset() 
method that's overriding your custom reset().

Try calling your method doReset() or something else.

BAL

From: "LUCERO,DENNIS (HP-Boise,ex1)" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "' ([EMAIL PROTECTED])'" <[EMAIL PROTECTED]>
Subject: using javascript
Date: Mon, 13 Jan 2003 12:58:24 -0500


Hello, I am trying to call a java script function and it is not working, 
are
there any known issues with this sort of thing.


Here is some code:




collection="aCollection"
property="key"
labelProperty="value"
 />






function reset()
{
alert("woo woo");
}
We come from the land of the ice and snow With the midnight sun, where the hot springs glow The hammer of the gods, will drive our ships to new lands Fight the horde, Sing and cry Valhalla I am coming _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: error page

2003-01-13 Thread Mark Galbreath
My first thought is that if you are testing for null, you will never trap an
error.  Form objects are passed as Strings - empty or not.  Test for
titleField.length() > 0 rather than != null.

Mark

-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 12:37 PM

I am using struts 1.1b3. When the validation fails, the error can be shown
on the page using . Now I have an action form page(say
book.jsp, on this page there is a  required field-- book title), I want an
error.jsp, when the validation (example, title field is null) fails, the
error page is invoked. 

I tried to define a  attribute in struts-config.xml and put the
target of it as the error.jsp, but struts still shows the action form page
(book.jsp) when validation fails. However, when validation passes, the
error.jsp is invoked correctly.



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




What's new in 1.1 Beta 3?

2003-01-13 Thread Giri Alwar
Hi all! I am trying to find out what exactly has changed in 1.1b3 since 1.1b2. The 
release notes is not exactly helpful since it lists three items that have changed. The 
rest of the release notes document lists the changes since 1.0.2. Is there a document 
that lists all the bug fixes/enhancements specific to 1.1b3? If not, is someone 
putting one together? Such a document would be very useful.
Thanks.




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.435 / Virus Database: 244 - Release Date: 12/30/2002


RE: One way of writing BaseAction

2003-01-13 Thread Chan, Charles
Yes, I think you're right! :) That's the good thing about posting ideas to
mailing list. I probably will still go with my approach instead of using
DispatchAction because:

1. I don't need to specify a method parameter in request URL.
2. I can pass my custom Request object to protect HttpServletRequest.

Thanks,
Charles


-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 12:50 PM
To: 'Struts Users Mailing List'
Subject: RE: One way of writing BaseAction


Isn't this similar to what the Dispatch action does?

-Original Message-
From: Chan, Charles [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 10:18 AM
To: 'Struts Users Mailing List'
Subject: One way of writing BaseAction


Hi, I just want to share with you my base action class implementation. I use
reflection to avoid putting .. logic in the execute() method. I
am not sure if somone has done this before, so I want to share fragement of
my codes here and ask for opinions.

I have used it to implement a simple site and am quite happy with it.

Let me know what you think or if you find it useful. :)

Cheers
Charles


/**
 * This class is an abstract Struts Action class that all
 * Action  classes should extend. A typical Action class
 * handles multiple actions (requests). For example, a EmailAction class
should
 * be able to handle all actions related to Emails (sending, replying,
viewing,
 * etc.). To avoid cluttering the execute method with
if...
 * else block, this base Action class calls individual
doXXX
 * methods in the derived class to perform the specific action. The exact
name
 * of the method (the XXX) is defined as a parameter in the
Action
 * mapping section of struts- config.xml.
 * 
 * An example of struts-config.xml for a EmailAction:
 * 
 * Calls EmailAction.doNew() when /email/new.do is requested.
 * 
 * 
 *   
 * 
 * 
 * 
 * Calls EmailAction.doView() when /email/view.do is requested.
 * 
 * 
 *   
 * 
 * 
 */

public abstract class BaseAction extends Action
{
/**
 *  Our default implementation. If parameter is specified in
ActionMapping,
 *  we will do the new processing mode and call the method
 *  "String doParameter()", e.g. if parameter is "edit", "String
doEdit()"
 *  is executed. The return String of that method is used to find the
 *  ActionForward from the mapping.
 *
 *  If no such parameter is found, we'll write some debugging
information
 *  to the response to let the programmer know that he forget to
 *  implement the perform() method.
 */
public final ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
boolean hasForm = (form != null);

/* Use our custom Request object to protect access to
HttpServletRequest */
Request req = new Request(request);

String mode = mapping.getParameter();

// invoke "doMode() with custom request object (using MethodUtils)
// based on hasForm, we can either invoke doMode(req) or doMode(req,
form)
}
}

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: error page

2003-01-13 Thread Zhang, Larry (L.)
I used the struts validator CheckFields. 

Here is the entries in validation.xml





 
  
 


Here is the entries in validation-rules.xml




The FieldChecks is the struts default validator for required field.

Thanks.


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 1:05 PM
To: 'Struts Users Mailing List'
Subject: RE: error page


My first thought is that if you are testing for null, you will never trap an
error.  Form objects are passed as Strings - empty or not.  Test for
titleField.length() > 0 rather than != null.

Mark

-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 12:37 PM

I am using struts 1.1b3. When the validation fails, the error can be shown
on the page using . Now I have an action form page(say
book.jsp, on this page there is a  required field-- book title), I want an
error.jsp, when the validation (example, title field is null) fails, the
error page is invoked. 

I tried to define a  attribute in struts-config.xml and put the
target of it as the error.jsp, but struts still shows the action form page
(book.jsp) when validation fails. However, when validation passes, the
error.jsp is invoked correctly.



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

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




RE: Struts book reviews

2003-01-13 Thread Mark Galbreath
I liked "Duct-tape Engineering," but "Read The FINE Manual???"  Bloody Brits
can't even get RTFM right!
(http://books.slashdot.org/article.pl?sid=02/12/27/1559200&mode=thread&tid=1
08 for anybody who's interested). Seriously, I haven't got this one yet, but
will after reading your review.  I'm due to write 3 reviews on Amazon
myself.

I just got "Java Enterprise Best Practices" (O'Reilly, 2003) and was very
disappointed that Craig didn't have a best practices essay included,
especially when there are chapters on servlets (Jason Hunter), JSP (Hans
Bergsten), and internationalization (Czarnecki and Deitsch).

Mark

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 1:01 PM


Welcome back Mark! Fridays have just not been the same lately.

Did ya like my Slashdot review of Struts Kick Start? :-)

Simon



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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Kris Schneider
Here's an approach that works with WebLogic 7. All the JSP's except index.jsp
(the welcome page) are kept in a directory called pages. index.jsp simply contains:

<%@ taglib prefix="logic" uri="http://jakarta.apache.org/struts/tags-logic"; %>


Where "main" is the name of a global forward that represents the true entry
point into the app. web.xml contains:


  
Pages
/pages/*
  
  


An empty auth-constraint is interpreted to mean deny all access.

Quoting "Colquhoun, Adrian" <[EMAIL PROTECTED]>:

> 
> I have had a go at this - I get a 500 error message "Cannot perform access
> control without an authenticated principal" - presumably I need to do
> something else as well ?
> 
> 
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2003 15:54
> To: [EMAIL PROTECTED]
> Subject: Re: Controlling Direct Access to jsp pages
> 
> 
> Put this security info at the bottom of your web.xml to prevent access to 
> any *.jsp file:
> 
> 
>   
>   SecureAllJSPs
>   *.jsp
>   
>   
>   nobody
>   
>   
> 
>   
>   No one should be put in this
> role.
>   nobody
> 
> 
> 
> David
> 
> 
> 
> 
> 
> 
> >From: "Colquhoun, Adrian" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: Controlling Direct Access to jsp pages
> >Date: Mon, 13 Jan 2003 15:40:45 -
> >
> >
> >Hi
> >
> >If I have three pages in my view layer that must be called in sequence
> e.g.
> >
> >  - step1.jsp then
> >  - step2.jsp then
> >  - step3.jsp
> >
> >  How do I ensure that my users do not call step2 and step3 directly via a
> >web browser.  Do I need to use a custom tag in pages 2 and 3 to check this
> >or is there some way to force all requests for .jsp pages in my
> application
> >to route via the ActionServlet
> >
> >Thanks
> >
> >Adrian
> >
> >
> >===
> >Information in this email and any attachments are confidential, and may
> >not be copied or used by anyone other than the addressee, nor disclosed
> >to any third party without our permission.  There is no intention to
> >create any legally binding contract or other commitment through the use
> >of this email.
> >
> >Experian Limited (registration number 653331).
> >Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
> _
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
> http://join.msn.com/?page=features/virus
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> ===
> Information in this email and any attachments are confidential, and may
> not be copied or used by anyone other than the addressee, nor disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment through the use
> of this email.
> 
> Experian Limited (registration number 653331).  
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

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




RE: using javascript

2003-01-13 Thread LUCERO,DENNIS (HP-Boise,ex1)

Thanks Brian, 


"the only stupid question, is the one you ask without knowing the api"



-Original Message-
From: Brian Lee [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 11:04 AM
To: [EMAIL PROTECTED]
Subject: Re: using javascript

I think the problem here is that there is a built-in javascript reset() 
method that's overriding your custom reset().

Try calling your method doReset() or something else.

BAL

>From: "LUCERO,DENNIS (HP-Boise,ex1)" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "' ([EMAIL PROTECTED])'" <[EMAIL PROTECTED]>
>Subject: using javascript
>Date: Mon, 13 Jan 2003 12:58:24 -0500
>
>
>Hello, I am trying to call a java script function and it is not working, 
>are
>there any known issues with this sort of thing.
>
>
>Here is some code:
>
>
>
> collection="aCollection"
> property="key"
> labelProperty="value"
>  />
>
>
>
>
>function reset()
>{
>   alert("woo woo");
>}
>
>
>
>
>
>We come from the land of the ice and snow
>With the midnight sun, where the hot springs glow
>The hammer of the gods, will drive our ships to new lands
>Fight the horde, Sing and cry
>Valhalla I am coming
>


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


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Colquhoun, Adrian

I have got this to work under tomcat 4.1 - I modified my struts config file
as follows


 



  



-Original Message-
From: Cory Newey [mailto:[EMAIL PROTECTED]]
Sent: 13 January 2003 15:57
To: [EMAIL PROTECTED]
Subject: RE: Controlling Direct Access to jsp pages


I've heard of this approach to protecting access to JSP pages but I've
never been able to get it to work.  How, exactly, do you route to a JSP
in the /WEB-INF directory?  Could you maybe provide a little of the
struts-config.xml file that would do this or the code in the Action
class that does this?

Thanks.

>>> [EMAIL PROTECTED] 01/13/03 08:50AM >>>
I place them all under /WEB-INF and force them to go through my action
classes.
There are other ways, but this is the most convenient for me. 


 Use at your own risk.
 Not all containers support doing it this way.




--
James Mitchell






> -Original Message-
> From: Colquhoun, Adrian [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 10:41 AM
> To: '[EMAIL PROTECTED]' 
> Subject: Controlling Direct Access to jsp pages
> 
> 
> 
> Hi
> 
> If I have three pages in my view layer that must be called in 
> sequence e.g.
> 
>  - step1.jsp then
>  - step2.jsp then
>  - step3.jsp
> 
>  How do I ensure that my users do not call step2 and step3 
> directly via a
> web browser.  Do I need to use a custom tag in pages 2 and 3 
> to check this
> or is there some way to force all requests for .jsp pages in 
> my application
> to route via the ActionServlet
> 
> Thanks
> 
> Adrian
> 
> 
> ==
> =
> Information in this email and any attachments are 
> confidential, and may
> not be copied or used by anyone other than the addressee, nor 
> disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment 
> through the use
> of this email.
> 
> Experian Limited (registration number 653331).  
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


--
To unsubscribe, e-mail:  

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Hoang, Hai
Instead of /pages/* can I have something like the
following?


  
Pages
/app1/*
/app2/*
/app3/*
/app4/*
  
  




-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 12:25 PM
To: Struts Users Mailing List
Subject: RE: Controlling Direct Access to jsp pages

Here's an approach that works with WebLogic 7. All the JSP's except
index.jsp
(the welcome page) are kept in a directory called pages. index.jsp simply
contains:

<%@ taglib prefix="logic" uri="http://jakarta.apache.org/struts/tags-logic";
%>


Where "main" is the name of a global forward that represents the true entry
point into the app. web.xml contains:


  
Pages
/pages/*
  
  


An empty auth-constraint is interpreted to mean deny all access.

Quoting "Colquhoun, Adrian" <[EMAIL PROTECTED]>:

> 
> I have had a go at this - I get a 500 error message "Cannot perform access
> control without an authenticated principal" - presumably I need to do
> something else as well ?
> 
> 
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2003 15:54
> To: [EMAIL PROTECTED]
> Subject: Re: Controlling Direct Access to jsp pages
> 
> 
> Put this security info at the bottom of your web.xml to prevent access to 
> any *.jsp file:
> 
> 
>   
>   SecureAllJSPs
>   *.jsp
>   
>   
>   nobody
>   
>   
> 
>   
>   No one should be put in this
> role.
>   nobody
> 
> 
> 
> David
> 
> 
> 
> 
> 
> 
> >From: "Colquhoun, Adrian" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: Controlling Direct Access to jsp pages
> >Date: Mon, 13 Jan 2003 15:40:45 -
> >
> >
> >Hi
> >
> >If I have three pages in my view layer that must be called in sequence
> e.g.
> >
> >  - step1.jsp then
> >  - step2.jsp then
> >  - step3.jsp
> >
> >  How do I ensure that my users do not call step2 and step3 directly via
a
> >web browser.  Do I need to use a custom tag in pages 2 and 3 to check
this
> >or is there some way to force all requests for .jsp pages in my
> application
> >to route via the ActionServlet
> >
> >Thanks
> >
> >Adrian
> >
> >
> >===
> >Information in this email and any attachments are confidential, and may
> >not be copied or used by anyone other than the addressee, nor disclosed
> >to any third party without our permission.  There is no intention to
> >create any legally binding contract or other commitment through the use
> >of this email.
> >
> >Experian Limited (registration number 653331).
> >Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
> _
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
> http://join.msn.com/?page=features/virus
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> ===
> Information in this email and any attachments are confidential, and may
> not be copied or used by anyone other than the addressee, nor disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment through the use
> of this email.
> 
> Experian Limited (registration number 653331).  
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

--
To unsubscribe, e-mail:

For additional commands, e-mail:



_
Introducing the all new and improved continental.com.  With a totally new 
personalized design, it's the best place to go. Before you go.

Continental Airlines. Work Hard. Fly Right.

http://www.continental.com


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




How to detect Input Image

2003-01-13 Thread Billy Ng
Is there a way to find a  is hit?  I am using 
the following code which is working very good.

(!"0".equals(getRequest().getParameter("delete.y")) && 
!"0".equals(getRequest().getParameter("delete.x"))) 

However, this looks really urgly.  Is there any get() and set() methods that I can use 
in ActionForm to get x and y int?

Thanks!

Billy Ng



Application Modules and message-resources

2003-01-13 Thread ajTreece
Folks... I've got a couple of good Struts books that talk about setting 
up application modules and allowing each of those modules to have it's 
own set of message resources files. The problem is... I can't get the 
message resources to work. I've looked at the 1.1b3 webapps example 
apps, but nothing seems to fit.

Can anyone point me to an example that shows how to set up application 
modules along with message resource properties files for the different 
modules?

Thanks, ajTreece



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



nested tiles, I think

2003-01-13 Thread Jonathan Hodges
Hello,

I have a tile definition as follows:


  
  
  
  
  


I want the sidebar to reference a list of items to build the menu.  I accomplished it 
by adding a menu definition and menu.jsp as follows:


  



  


<%@ include file="/jsp/global/init.jsp" %>


  
 
  
  
  <%-- Push tiles attributes in page context --%>
  
  
   
 

  <%=item.getValue()%>


   


   

  



I then reference the menu definition in sidebar.jsp like this:

<%@ include file="/jsp/global/init.jsp" %>



I was wondering if there would be a way to reference the menu tile definition directly 
in sidebar.jsp without having to create the menu.jsp.  I hope my question is clear.  I 
have heard people speak of nested tile definitions, but I have been unable to find an 
example.

Any help with this would be greatly appreciated,

Jonathan



RE: Application Modules and message-resources

2003-01-13 Thread James Mitchell
There are known issues with this.
Perhaps you could help us:
 
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11932



--
James Mitchell






> -Original Message-
> From: ajTreece [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 2:06 PM
> To: Struts Users Mailing List
> Subject: Application Modules and message-resources
> 
> 
> Folks... I've got a couple of good Struts books that talk 
> about setting 
> up application modules and allowing each of those modules to 
> have it's 
> own set of message resources files. The problem is... I can't get the 
> message resources to work. I've looked at the 1.1b3 webapps example 
> apps, but nothing seems to fit.
> 
> Can anyone point me to an example that shows how to set up 
> application 
> modules along with message resource properties files for the 
> different 
> modules?
> 
> Thanks, ajTreece
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


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




RE: Controlling Direct Access to jsp pages

2003-01-13 Thread Kris Schneider
Here's the definition of the web-resource-collection element:



So, yes, it looks like that would be fine. Just to be sure it's clear, assuming
your app context is "myapp", your example would restrict access to something
like the following URL's:

http://www.myhost.com/myapp/app1/*
http://www.myhost.com/myapp/app2/*
http://www.myhost.com/myapp/app3/*
http://www.myhost.com/myapp/app4/*

Quoting "Hoang, Hai" <[EMAIL PROTECTED]>:

> Instead of /pages/* can I have something like
> the
> following?
> 
> 
>   
> Pages
>   /app1/*
>   /app2/*
>   /app3/*
>   /app4/*
>   
>   
> 
> 
> 
> 
> -Original Message-
> From: Kris Schneider [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 12:25 PM
> To: Struts Users Mailing List
> Subject: RE: Controlling Direct Access to jsp pages
> 
> Here's an approach that works with WebLogic 7. All the JSP's except
> index.jsp
> (the welcome page) are kept in a directory called pages. index.jsp simply
> contains:
> 
> <%@ taglib prefix="logic" uri="http://jakarta.apache.org/struts/tags-logic";
> %>
> 
> 
> Where "main" is the name of a global forward that represents the true entry
> point into the app. web.xml contains:
> 
> 
>   
> Pages
> /pages/*
>   
>   
> 
> 
> An empty auth-constraint is interpreted to mean deny all access.
> 
> Quoting "Colquhoun, Adrian" <[EMAIL PROTECTED]>:
> 
> > 
> > I have had a go at this - I get a 500 error message "Cannot perform
> access
> > control without an authenticated principal" - presumably I need to do
> > something else as well ?
> > 
> > 
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]]
> > Sent: 13 January 2003 15:54
> > To: [EMAIL PROTECTED]
> > Subject: Re: Controlling Direct Access to jsp pages
> > 
> > 
> > Put this security info at the bottom of your web.xml to prevent access to
> 
> > any *.jsp file:
> > 
> > 
> > 
> > SecureAllJSPs
> > *.jsp
> > 
> > 
> > nobody
> > 
> > 
> > 
> > 
> > No one should be put in this
> > role.
> > nobody
> > 
> > 
> > 
> > David
> > 
> > 
> > 
> > 
> > 
> > 
> > >From: "Colquhoun, Adrian" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > >Subject: Controlling Direct Access to jsp pages
> > >Date: Mon, 13 Jan 2003 15:40:45 -
> > >
> > >
> > >Hi
> > >
> > >If I have three pages in my view layer that must be called in sequence
> > e.g.
> > >
> > >  - step1.jsp then
> > >  - step2.jsp then
> > >  - step3.jsp
> > >
> > >  How do I ensure that my users do not call step2 and step3 directly via
> a
> > >web browser.  Do I need to use a custom tag in pages 2 and 3 to check
> this
> > >or is there some way to force all requests for .jsp pages in my
> > application
> > >to route via the ActionServlet
> > >
> > >Thanks
> > >
> > >Adrian
> > >
> > >
> > >===
> > >Information in this email and any attachments are confidential, and may
> > >not be copied or used by anyone other than the addressee, nor disclosed
> > >to any third party without our permission.  There is no intention to
> > >create any legally binding contract or other commitment through the use
> > >of this email.
> > >
> > >Experian Limited (registration number 653331).
> > >Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> > >
> > >--
> > >To unsubscribe, e-mail:   
> > >
> > >For additional commands, e-mail: 
> > >
> > 
> > 
> > _
> > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* 
> > http://join.msn.com/?page=features/virus
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> > 
> > 
> > ===
> > Information in this email and any attachments are confidential, and may
> > not be copied or used by anyone other than the addressee, nor disclosed
> > to any third party without our permission.  There is no intention to
> > create any legally binding contract or other commitment through the use
> > of this email.
> > 
> > Experian Limited (registration number 653331).  
> > Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> > 
> > --
> > To unsubscribe, e-mail:  
> > 
> > For additional commands, e-mail:
> > 
> > 
> 
> 
> -- 
> Kris Schneider 
> D.O.Tech   
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 

RE: How to detect Input Image

2003-01-13 Thread Robert Taylor
See http://husted.com/struts/tips/001.html

robert

> -Original Message-
> From: Billy Ng [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 13, 2003 1:58 PM
> To: [EMAIL PROTECTED]
> Subject: How to detect Input Image
> 
> 
> Is there a way to find a  
> is hit?  I am using the following code which is working very good.
> 
> 
> (!"0".equals(getRequest().getParameter("delete.y")) && 
> !"0".equals(getRequest().getParameter("delete.x"))) 
> 
> However, this looks really urgly.  Is there any get() and set() 
> methods that I can use in ActionForm to get x and y int?
> 
> Thanks!
> 
> Billy Ng
> 

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




Re: Building Web Service Adapter for Struts app.

2003-01-13 Thread John Loring
Greg,

If you are using xerces to serialize the DOM, you can use the OutputFormat
class to add the DOCTYPE declaration,
ie:
   OutputFormat format  = new OutputFormat(document); // Document
document
format.setDoctype(publicId, systemId); //
String publicId,systemId
(Sets the document type public and system identifiers);  // system
identifier would be the DTD

Then use the format when constructing a serializer,
   XMLSerializer serial = new XMLSerializer(output, format); //
FileOutputStream output

http://xml.apache.org/xerces-j/apiDocs/org/apache/xml/serialize/OutputFormat.html

--John




Greg Hess wrote:

> Hi All,
>
> I am building an adapter on my Struts app to allow Web Service calls
> from remote parties. A remote call constructs a XML and sends the
> request via http to my Struts app. My app processes the request by
> parsing the XML data posted and returns the XML result. This is all
> working but my spec states that I use DTD and a validating parser to
> ensure that the request's and responses contain valid data elements. I
> would like to be able to build the XML data completely dynamically and
> then return that DOM to the client.
>
> My problem is that the DOM built must contain the DOCTYPE declaration
> for the server to use in parsing(validating). When I build a document
> using the DOMImplementation using a DocType and output that DOM to some
> OutputStream the DOCTYPE declaration is missing. I have read some
> reports that state the ability to build a DOM data structure with a
> DOCTYPE declaration is not yet supported by parser implementations. I am
> using latest version of Xerces/Xalan and unfortunately there archives
> are down and that mailing list is dead.
>
> Does anyone know how I can achieve this and what parser implementation
> supports the dynamic building of a DOM with a DOCTYPE.
>
> Many thanks for your help,
>
> Greg


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




trying to define a session scope form bean

2003-01-13 Thread Heather Buch
 Hi,

What is the proper way to do this in struts-config.xml?

Say I have this bean:


  type="mysite.myapp.ScheduleForm"/>

and I want to use it in two actions, editSchedule, and saveSchedule.

On editSchedule, I want scheduleform to be stored in the session.

On saveSchedule, I want scheduleform to be pulled out of the session that
editSchedule stored it in, but I do not need it stored back into the
session after it's used by SaveScheduleAction.

  
type="mysite.myapp.student.ViewScheduleAction"
name="scheduleform"
scope="request"
 validate="true"
input="/mainmenu.jsp">
   
  

  
type="mysite.myapp.student.SaveScheduleAction"
name="scheduleform"
scope="request"
 validate="true"
input="/editschedule.jsp">
   
  

So where do I define the session scope for this form?


Also, is a session-scope form bean an acceptable place to transport 
objects from
one Action to another?

There is more to this story, but I'll explain that after I (hopefully 
:-)) have an answer to this question.

Thanks,

Heather Buch


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



Custom Message Resources

2003-01-13 Thread Pat Quinn
Hi Guys,

Has anyone ever extended the functionality as offered by the 
org.apache.struts.util.RequestUtils? I want to be able to substituted 
keywords in my messages as loaded from my properties file with values from 
the database. I got this up an running by extending the MessageReources and 
defining my custom message factory in my Struts-config.xml.

So when getMessage() is called my keyword are loaded from the database via a 
thread etc.. My problem with this is as follows:

My keywords are substituted before my message keys are substituted.

Example in my properties file i have the following:
error.invalidtypes=Invalid {0} entered

//creating my ActionError
new ActionError("error.invalidtypes","#ACCOUNT");


So in my messageRecourse i have a hashMap of values as loaded from the 
database eg.
#ACCOUNT_EN - account code

This works fine if i had my message defined as the following in my 
properties file:
error.invalidtypes=Invalid #ACCOUNT entered


But i want to control the actual keyword i.e. #ACCOUNT, #SORT-CODE etc

So in short i want to check my messages for keywords (i.e. Anything starting 
with a #) after message keys have been substituted. After some initial 
investigation the best place to add this functionality would be in the 
RequestUtils.message() after it makes the call to 
resources.getMessage(userLocale, key, args)... It doesn't seem like a wise 
idea to extend RequestUtil. any ideas or suggestions gratefully 
appreciated??





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


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



RE: trying to define a session scope form bean

2003-01-13 Thread Mark Galbreath
You do not have to define a scope for a session scoped form bean - just omit
the scope.  Session scope is the default.


Mark

-Original Message-
From: Heather Buch [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 2:42 PM


  Hi,

What is the proper way to do this in struts-config.xml?

Say I have this bean:



and I want to use it in two actions, editSchedule, and saveSchedule.

On editSchedule, I want scheduleform to be stored in the session.

On saveSchedule, I want scheduleform to be pulled out of the session that
editSchedule stored it in, but I do not need it stored back into the session
after it's used by SaveScheduleAction.

   

   

   

   

So where do I define the session scope for this form?


Also, is a session-scope form bean an acceptable place to transport 
objects from
one Action to another?

There is more to this story, but I'll explain that after I (hopefully 
:-)) have an answer to this question.

Thanks,

Heather Buch


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: How to detect Input Image

2003-01-13 Thread Billy Ng
Wow, looks cool!  However, if I can get the request object in the
ActionForm, the code can be much shorter.

Billy Ng

- Original Message -
From: "Robert Taylor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 11:21 AM
Subject: RE: How to detect Input Image


> See http://husted.com/struts/tips/001.html
>
> robert
>
> > -Original Message-
> > From: Billy Ng [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 13, 2003 1:58 PM
> > To: [EMAIL PROTECTED]
> > Subject: How to detect Input Image
> >
> >
> > Is there a way to find a 
> > is hit?  I am using the following code which is working very good.
> >
> >
> > (!"0".equals(getRequest().getParameter("delete.y")) &&
> > !"0".equals(getRequest().getParameter("delete.x")))
> >
> > However, this looks really urgly.  Is there any get() and set()
> > methods that I can use in ActionForm to get x and y int?
> >
> > Thanks!
> >
> > Billy Ng
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: using javascript

2003-01-13 Thread Mark Galbreath
Good quote!

http://developer.netscape.com/docs/manuals/


Mark

-Original Message-
From: LUCERO,DENNIS (HP-Boise,ex1) [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 1:35 PM


"the only stupid question, is the one you ask without knowing the api"



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




Precompiling JSPs

2003-01-13 Thread William W

Hi All,

My app has more than 2,000 JSPs. I can precompile my JSP and map it into the 
web.xml file. But I think that it would become a little big.

Sugestions ???

Thanks,

William.






_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


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



Re: Precompiling JSPs

2003-01-13 Thread David Graham
Why does it matter if you have a large web.xml file for a large application? 
 You could let them compile at runtime instead of precompiling if you 
really don't want a large web.xml file.

David






From: "William W" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Precompiling JSPs
Date: Mon, 13 Jan 2003 20:01:04 +


Hi All,

My app has more than 2,000 JSPs. I can precompile my JSP and map it into 
the web.xml file. But I think that it would become a little big.

Sugestions ???

Thanks,

William.






_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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



RE: Precompiling JSPs

2003-01-13 Thread Siggelkow, Bill
Some containers support a container-specific flag for precompiling.  As I recall you 
can do with this weblogic without having to declare all your JSPs in the web.xml.  Of 
course, I would not do this in development mode as it will take a long time for server 
restarts!

-Original Message-
From: William W [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 3:01 PM
To: [EMAIL PROTECTED]
Subject: Precompiling JSPs



Hi All,

My app has more than 2,000 JSPs. I can precompile my JSP and map it into the 
web.xml file. But I think that it would become a little big.

Sugestions ???

Thanks,

William.






_
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


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

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




RE: Precompiling JSPs

2003-01-13 Thread Mark Galbreath
Use Ant to precompile whole directories in one line of script with your
container's JSP pre-compiler.

Mark

-Original Message-
From: William W [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 3:01 PM

My app has more than 2,000 JSPs. I can precompile my JSP and map it into the

web.xml file. But I think that it would become a little big.

Sugestions ???



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




Re: Custom Message Resources

2003-01-13 Thread Pat Quinn
Sorry Guys --- Please ignore my last email all i needed to do was overload 
the

getMessage(Locale pLocale, String pKey, Object pArgs[])

and add my keyword replacement there also previously i only overloaded
getMessage(Locale pLocale, String pKey) I hang my head in shame, but it 
is late hear so time to go home me thinks







From: "Pat Quinn" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Custom Message Resources
Date: Mon, 13 Jan 2003 19:52:23 +

Hi Guys,

Has anyone ever extended the functionality as offered by the 
org.apache.struts.util.RequestUtils? I want to be able to substituted 
keywords in my messages as loaded from my properties file with values from 
the database. I got this up an running by extending the MessageReources and 
defining my custom message factory in my Struts-config.xml.

So when getMessage() is called my keyword are loaded from the database via 
a thread etc.. My problem with this is as follows:

My keywords are substituted before my message keys are substituted.

Example in my properties file i have the following:
error.invalidtypes=Invalid {0} entered

//creating my ActionError
new ActionError("error.invalidtypes","#ACCOUNT");


So in my messageRecourse i have a hashMap of values as loaded from the 
database eg.
#ACCOUNT_EN - account code

This works fine if i had my message defined as the following in my 
properties file:
error.invalidtypes=Invalid #ACCOUNT entered


But i want to control the actual keyword i.e. #ACCOUNT, #SORT-CODE etc

So in short i want to check my messages for keywords (i.e. Anything 
starting with a #) after message keys have been substituted. After some 
initial investigation the best place to add this functionality would be in 
the RequestUtils.message() after it makes the call to 
resources.getMessage(userLocale, key, args)... It doesn't seem like a wise 
idea to extend RequestUtil. any ideas or suggestions gratefully 
appreciated??





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


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



How to integrate servlet with parameters into tiles definition

2003-01-13 Thread bdealy1 <[EMAIL PROTECTED]>
Hi, I have been having a problem integrating a servlet into
a tiles definition. It takes a config file as parameter "config" and 
I have tried to directly call the servlet by putting it in the 
tiles-def.xml file like this:


   http://localhost:8080/gradebooktest/servlet/Forum"/>

All I get is a blank content area even though when I call the servlet 
directly with that URL , it works ok. Next I tried to make a jsp that 
extends this servlet. almost the same thing. It can display through 
the browser direct, but says cannot read config file when I put it in 
the tiles 
definition as a JSP.  is there some issue with struts/tiles as far as 
passing paramters down to the parts of a tiles-def?  any work arounds 
or hints greatly appreciated. thanks Brian



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




Unmarshalling using the Digester

2003-01-13 Thread Toni Charlot
Can anyone figure out what I'm doing wrong here?  Oh, please?

001
digester.addObjectCreate("rules/definition/enforcerClassName", 
002
biz.isman.rule.engine.EnforcerDefinition.class);
003
004//
005digester.addCallMethod("rules/definition/enforcer",
"setEnforcerClassName", 0);
006digester.addSetProperty("rules/definition", "name",
"setObjectClassName");
007digester.addSetProperties("rules/definition/enforcer");
008//
009digester.addSetNext("rules/definition/enforcer",
"addDefinition");

Here is the file I'm trying unmarshall:

  
  
  net.pnh.rule.GroupRuleEnforcer
  net.pnh.rule.GroupRuleEnforcer2
  
   
  net.pnh.rule.IndividualRuleEnforcer
  net.pnh.rule.IndividualRuleEnforcer2
  
 
  

I would like to end up with a list of definitions objects where

Definition1: name="net.pnh.base.Group";
enforcer="net.pnh.rule.GroupRuleEnforcer"; priority="5"
Definition2: name="net.pnh.base.Group";
enforcer="net.pnh.rule.GroupRuleEnforcer2"; priority="9"
..

Thank you.



A Struts Haiku

2003-01-13 Thread Mark Lepkowski
a Struts Haiku

model view control
struts is good for this model
simple it is not





Re: Precompiling JSPs

2003-01-13 Thread Billy Ng
I used Ant to precompile the JSPs before.  It was very good but took much
longer to compile a build.  If you have 2,000 JSPs, mm...

And I can tell how hard to maintain 2000 entries in the web.xml.

Billy Ng

- Original Message -
From: "William W" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 12:01 PM
Subject: Precompiling JSPs


>
> Hi All,
>
> My app has more than 2,000 JSPs. I can precompile my JSP and map it into
the
> web.xml file. But I think that it would become a little big.
>
> Sugestions ???
>
> Thanks,
>
> William.
>
>
>
>
>
>
> _
> The new MSN 8 is here: Try it free* for 2 months
> http://join.msn.com/?page=dept/dialup
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: A Struts Haiku

2003-01-13 Thread James Turner
Your action is null.
So your form will not process.
Edit struts-config.

> -Original Message-
> From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 4:05 PM
> To: Struts
> Subject: A Struts Haiku
> 
> 
> a Struts Haiku
> 
> model view control
> struts is good for this model
> simple it is not
> 
> 
> 



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




RE: A Struts Haiku

2003-01-13 Thread James Mitchell
Interesting post.
What does all this mean to me?
I have errors now.

--
James Mitchell


> -Original Message-
> From: James Turner [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 4:11 PM
> To: 'Struts Users Mailing List'
> Subject: RE: A Struts Haiku
> 
> 
> Your action is null.
> So your form will not process.
> Edit struts-config.
> 
> > -Original Message-
> > From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, January 13, 2003 4:05 PM
> > To: Struts
> > Subject: A Struts Haiku
> > 
> > 
> > a Struts Haiku
> > 
> > model view control
> > struts is good for this model
> > simple it is not
> > 
> > 
> > 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


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




Re: A Struts Haiku

2003-01-13 Thread Mark Lepkowski
JT,

pearls of wisdom 

> Your action is null.
> So your form will not process.
> Edit struts-config.



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




org.apache.struts.validator package

2003-01-13 Thread Ginger Cheng
Can someone tell me where to download the latest version of 
org.apache.struts.validator package? Thank you. ginger
 


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



Re[2]: A Struts Haiku

2003-01-13 Thread Rick Reumann
Time, too much have you
major geeks these people are
boss know you do this? :)


On Monday, January 13, 2003, 4:17:13 PM, James wrote:

JM> Interesting post. What does all this mean to me? I have errors
JM> now.

JM> --
JM> James Mitchell


>> -Original Message-
>> From: James Turner [mailto:[EMAIL PROTECTED]] 
>> Sent: Monday, January 13, 2003 4:11 PM
>> To: 'Struts Users Mailing List'
>> Subject: RE: A Struts Haiku
>> 
>> 
>> Your action is null.
>> So your form will not process.
>> Edit struts-config.
>> 
>> > -Original Message-
>> > From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] 
>> > Sent: Monday, January 13, 2003 4:05 PM
>> > To: Struts
>> > Subject: A Struts Haiku
>> > 
>> > 
>> > a Struts Haiku
>> > 
>> > model view control
>> > struts is good for this model
>> > simple it is not
>> > 
>> > 
>> > 
>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   
>>  [EMAIL PROTECTED]>
>> For 
>> additional commands, 
>> e-mail: 
>> 
>> 


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



-- 

Rick
mailto:[EMAIL PROTECTED]


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




RE: Re[2]: A Struts Haiku

2003-01-13 Thread James Mitchell
Concern have not I.
My boss is on vacation.
I'll buy the next round



--
James Mitchell






> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 4:33 PM
> To: Struts Users Mailing List
> Subject: Re[2]: A Struts Haiku
> 
> 
> Time, too much have you
> major geeks these people are
> boss know you do this? :)
> 
> 
> On Monday, January 13, 2003, 4:17:13 PM, James wrote:
> 
> JM> Interesting post. What does all this mean to me? I have errors
> JM> now.
> 
> JM> --
> JM> James Mitchell
> 
> 
> >> -Original Message-
> >> From: James Turner [mailto:[EMAIL PROTECTED]] 
> >> Sent: Monday, January 13, 2003 4:11 PM
> >> To: 'Struts Users Mailing List'
> >> Subject: RE: A Struts Haiku
> >> 
> >> 
> >> Your action is null.
> >> So your form will not process.
> >> Edit struts-config.
> >> 
> >> > -Original Message-
> >> > From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] 
> >> > Sent: Monday, January 13, 2003 4:05 PM
> >> > To: Struts
> >> > Subject: A Struts Haiku
> >> > 
> >> > 
> >> > a Struts Haiku
> >> > 
> >> > model view control
> >> > struts is good for this model
> >> > simple it is not
> >> > 
> >> > 
> >> > 
> >> 
> >> 
> >> 
> >> --
> >> To unsubscribe, e-mail:   
> >>  [EMAIL PROTECTED]>
> >> For 
> >> additional commands, 
> >> e-mail: 
> >> 
> >> 
> 
> 
> JM> --
> JM> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> JM> For 
> additional commands, 
> e-mail: 
> 
> 
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


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




RE: A Struts Haiku

2003-01-13 Thread Mark Galbreath
Jakarta Struts rules
learn it, code it, live it
.NET is evil

-Original Message-
From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 4:05 PM

model view control
struts is good for this model
simple it is not





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




RE: Re[2]: A Struts Haiku

2003-01-13 Thread James Turner
Or, moving to a slightly less elevated form.

There once was a form validation.
That wasn't invoked, consternation!
The class I'd extended,
Keyed on form as intended.
But the formset was the action variation.



> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 4:33 PM
> To: Struts Users Mailing List
> Subject: Re[2]: A Struts Haiku
> 
> 
> Time, too much have you
> major geeks these people are
> boss know you do this? :)
> 
> 
> On Monday, January 13, 2003, 4:17:13 PM, James wrote:
> 
> JM> Interesting post. What does all this mean to me? I have 
> errors now.
> 
> JM> --
> JM> James Mitchell
> 
> 
> >> -Original Message-
> >> From: James Turner [mailto:[EMAIL PROTECTED]]
> >> Sent: Monday, January 13, 2003 4:11 PM
> >> To: 'Struts Users Mailing List'
> >> Subject: RE: A Struts Haiku
> >> 
> >> 
> >> Your action is null.
> >> So your form will not process.
> >> Edit struts-config.
> >> 
> >> > -Original Message-
> >> > From: Mark Lepkowski [mailto:[EMAIL PROTECTED]]
> >> > Sent: Monday, January 13, 2003 4:05 PM
> >> > To: Struts
> >> > Subject: A Struts Haiku
> >> > 
> >> > 
> >> > a Struts Haiku
> >> > 
> >> > model view control
> >> > struts is good for this model
> >> > simple it is not
> >> > 
> >> > 
> >> > 
> >> 
> >> 
> >> 
> >> --
> >> To unsubscribe, e-mail:   
> >>  [EMAIL PROTECTED]>
> >> For
> >> additional commands, 
> >> e-mail: 
> >> 
> >> 
> 
> 
> JM> --
> JM> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> JM> For 
> additional commands, e-mail: 
> JM> 
> 
> 
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 



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




OT/ Friday: A Struts Haiku

2003-01-13 Thread V. Cekvenich
action does not fire, jsp is a mess
take a deep breath and redirect ...oh I how wonder, should one unit test

Rick Reumann wrote:

Time, too much have you
major geeks these people are
boss know you do this? :)


On Monday, January 13, 2003, 4:17:13 PM, James wrote:

JM> Interesting post. What does all this mean to me? I have errors
JM> now.

JM> --
JM> James Mitchell




-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 4:11 PM
To: 'Struts Users Mailing List'
Subject: RE: A Struts Haiku


Your action is null.
So your form will not process.
Edit struts-config.


-Original Message-
From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 13, 2003 4:05 PM
To: Struts
Subject: A Struts Haiku


a Struts Haiku

model view control
struts is good for this model
simple it is not






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




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







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




RE: A Struts Haiku

2003-01-13 Thread James Turner
> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 4:37 PM
> To: 'Struts Users Mailing List'
> Subject: RE: A Struts Haiku
> 
> 
> Jakarta Struts rules
> learn it, code it, live it
> .NET is evil

HaikuParsingException: Line 2 must contain 7 sylables
in WasteEnormousAmountsOfTime.composePoems

James



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




[OT] Re: A Struts Haiku

2003-01-13 Thread Rick Reumann
Yoda think hard now..
Me think this Friday yes hmmm?
topic cause these thinks

On Monday, January 13, 2003, 4:04:51 PM, Mark wrote:

ML> a Struts Haiku

ML> model view control
ML> struts is good for this model
ML> simple it is not



-- 

Rick
mailto:[EMAIL PROTECTED]


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




Re[4]: A Struts Haiku

2003-01-13 Thread Rick Reumann

On Monday, January 13, 2003, 4:44:47 PM, James wrote:

JT> Or, moving to a slightly less elevated form.

JT> There once was a form validation.
JT> That wasn't invoked, consternation!
JT> The class I'd extended,
JT> Keyed on form as intended.
JT> But the formset was the action variation.

There was once was a man from Nantucket,
Struts he tried to learn but said:)


-- 

Rick
mailto:[EMAIL PROTECTED]


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




Re[2]: A Struts Haiku

2003-01-13 Thread Rick Reumann


On Monday, January 13, 2003, 4:47:06 PM, James wrote:

>> -Original Message- From: Mark Galbreath
>> [mailto:[EMAIL PROTECTED]]  Sent: Monday, January 13, 2003
>> 4:37 PM To: 'Struts Users Mailing List' Subject: RE: A Struts Haiku
>> 
>> 
>> Jakarta Struts rules
>> learn it, code it, live it
>> .NET is evil

JT> HaikuParsingException: Line 2 must contain 7 sylables
JT> in WasteEnormousAmountsOfTime.composePoems

try {
  System.out.println("Why do I persist");
  System.out.println("Crazy, this now has become");
  System.out.println("Must shoot myself now");
}
catch( HaikuParsingException e ) {
  log.error( e.toString() );
}


-- 

Rick
mailto:[EMAIL PROTECTED]


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




Re: A Struts Haiku

2003-01-13 Thread Mark Lepkowski
This bug is fixed in v1.1

version one point one
it's pre-prod but it's better
waiting for its time

> > Jakarta Struts rules
> > learn it, code it, live it
> > .NET is evil
> 
> HaikuParsingException: Line 2 must contain 7 sylables
> in WasteEnormousAmountsOfTime.composePoems
> 
> James



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




RE: Re[4]: A Struts Haiku

2003-01-13 Thread James Mitchell
I once knew a man good with css files
His struts-config went on for miles
Then Cedric came along
With a book and a song
Now he does everything with Tiles.


Oh great!!!  Geek Poets!!!


--
James Mitchell






> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 4:48 PM
> To: James Turner
> Cc: 'Struts Users Mailing List'
> Subject: Re[4]: A Struts Haiku
> 
> 
> 
> On Monday, January 13, 2003, 4:44:47 PM, James wrote:
> 
> JT> Or, moving to a slightly less elevated form.
> 
> JT> There once was a form validation.
> JT> That wasn't invoked, consternation!
> JT> The class I'd extended,
> JT> Keyed on form as intended.
> JT> But the formset was the action variation.
> 
> There was once was a man from Nantucket,
> Struts he tried to learn but said:)
> 
> 
> -- 
> 
> Rick
> mailto:[EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 


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




RE: Re[4]: A Struts Haiku

2003-01-13 Thread Chappell, Simon P
Mark returns to list
Limericks Haiku explode
a coincidence?

>-Original Message-
>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 13, 2003 3:59 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Re[4]: A Struts Haiku
>
>
>I once knew a man good with css files
>His struts-config went on for miles
>Then Cedric came along
>With a book and a song
>Now he does everything with Tiles.
>
>
>Oh great!!!  Geek Poets!!!
>
>
>--
>James Mitchell
>
>
>
>
>
>
>> -Original Message-
>> From: Rick Reumann [mailto:[EMAIL PROTECTED]] 
>> Sent: Monday, January 13, 2003 4:48 PM
>> To: James Turner
>> Cc: 'Struts Users Mailing List'
>> Subject: Re[4]: A Struts Haiku
>> 
>> 
>> 
>> On Monday, January 13, 2003, 4:44:47 PM, James wrote:
>> 
>> JT> Or, moving to a slightly less elevated form.
>> 
>> JT> There once was a form validation.
>> JT> That wasn't invoked, consternation!
>> JT> The class I'd extended,
>> JT> Keyed on form as intended.
>> JT> But the formset was the action variation.
>> 
>> There was once was a man from Nantucket,
>> Struts he tried to learn but said:)
>> 
>> 
>> -- 
>> 
>> Rick
>> mailto:[EMAIL PROTECTED]
>> 
>> 
>> --
>> To unsubscribe, e-mail:   
>>  [EMAIL PROTECTED]>
>> For 
>> additional commands, 
>> e-mail: 
>> 
>> 
>
>
>--
>To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: 
>
>

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




RE: Re[4]: A Struts Haiku

2003-01-13 Thread Nelson, Laird
> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> Mark returns to list
> Limericks Haiku explode
> a coincidence?

A small proposal:
Release Struts under the new
Poetic License.

Laird

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




  1   2   >