Re: Getting collections of messages

2001-08-22 Thread Rakesh

Hi,

check the struts-validator extension at
http://home.earthlink.net/~dwinterfeldt/



 Rakesh Ayilliath

[EMAIL PROTECTED]

- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 4:06 AM
Subject: Getting collections of messages


> Hello,
> 
> Is it possible to return collections of messages from
> the ApplicationResources.properties file?
> 
> Eg the ApplicationResources.properties could be:
> page1.optionbox.1=Apples
> page1.optionbox.2=Oranges
> page1.optionbox.3=Pears
> ...
> ...
> 
> I would like to get page1.optionbox.* as a collection
> to populate an options tag.
> 
> I have looked through the JavaDoc for
> org.apache.struts.util.MessageResources and it doesn't
> have any methods that return collections or arrays so
> I guess the answer is probably no.
> 
> Is there a way to acheive this functionality?
> 
> Thanks Adam.
> 
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 



RE: looking for success stories

2001-08-22 Thread Dudley [EMAIL PROTECTED]

We've just finished phase1 of our system for the South African Revenue
Services, an online tax return system, check it out on www.ipayment.co.za
Unfortunately though, to get the full appreciation for the site one has to
register as a taxpayer, but basically we used Tomcat, Struts and JBoss. The
user is able to register and recieve and send their tax returns/payments
electronically

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 10:06 PM
To: [EMAIL PROTECTED]
Subject: looking for success stories


Hello,

We are currently in the early design stages of an extremely high profile
application and I am considering using Struts.  I have used it in the past
for several very small applications with no more than a couple concurrent
users.  But since we only get one

shot at making this application work (or we'll all be out on our arses) I
must make a very convincing case for Struts.

Does anyone have any success stories that they'd like to share?  Or can
anyone point me in the direction of any articles or web pages or whatever
where I may find info?

By the way, we are going to deploy on Websphere (we're currently on 3.5.3
but will hopefully move to 4.0 before we roll it out) so I'd be especially
interested if anyone has successfully deployed on WAS.

Thanks!
-Eric Stievater
[EMAIL PROTECTED]


*** IMPORTANT NOTE *
The opinions expressed in this message and/or any attachments are
those of the author and not necessarily those of Brown Brothers
Harriman & Co., its subsidiaries and affiliates ("BBH").  There is no
guarantee that this message is either private or confidential, and it
may have been altered by unauthorized sources without your or our
knowledge.  Nothing in the message is capable or intended to create
any legally binding obligations on either party and it is not intended
to provide legal advice.  BBH accepts no responsibility for loss or
damage from its use, including damage from virus.



**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



Re: Cannot find ActionMappings Error - second time I am posting -

2001-08-22 Thread Rakesh


Are you talking about the struts-example webapp or is it an app of your own
?

See to it that the struts.jar is not in your classpath while your tomcat
starts up.


 Rakesh Ayilliath

[EMAIL PROTECTED]


- Original Message -
From: "Bhamidi Krishna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 3:09 AM
Subject: Cannot find ActionMappings Error - second time I am posting -


> Hi,
>
> this is the second time I am posting this message. When I try to run
struts
> on Tomcat, I get the following error :
>
> Exception in: R( /examples + /jsp/logon/logon.jsp + null) -
> javax.servlet.ServletException: Cannot find ActionMappings or
> ActionFormBeans collection
>
> I tried all settings I could get hold of from the struts-user mail
archive.
>
> In the absence of a definitive guide to Struts, can someone please
enlighten
> me on how to overcome this error??
>
> thankyou,
> Krishna
>
>
>
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>




Re: "default action" and templates

2001-08-22 Thread Erik Hatcher

Why not use the Action to populate request scoped variables that you then
 inside  tags?

Or have a look at the source code to the  tag and
reverse-engineer it!  :)

Erik


- Original Message -
From: "Marcelo Vanzin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 12:12 PM
Subject: Re: "default action" and templates


>
> Hi guys, me again.
>
> Marcelo Vanzin wrote:
> > 2) I actually had some doubts with the templates, but while writing them
> > down I kind of saw some ways of doing what I wanted, so I'll try it and
> > later if I'm still stuck I'll cry for help. :-)
>
>
> So it came to be that what I had in mind did not work. :-) At least not
> the way I tried, but I could not find anything in the docs...
>
> Is there a way to do something similar to a " use in a JSP file, but inside an Action class?
>
> If that is possible, I'm done. :-) I tried "request.setAttribute()", but
> when I call " exception ("empty stack"), and all the examples I found were only JSP,
> not one using an Action class.
>
> --
> []'s
> Marcelo Vanzin
> Touch Tecnologia
> [EMAIL PROTECTED]
> "We're an underground revolution working overtime"
>




Re: automatically calling an Action

2001-08-22 Thread Erik Hatcher

Use a Filter part of Servlet 2.3.   I assume you could map all requests
to a custom ActionServlet also, but ultimately a Filter is the way to go.
I'm using Resin 2.0 which supports Servlet 2.3 and filters are working
great.

Erik


- Original Message -
From: "Calvin Lau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 6:10 PM
Subject: automatically calling an Action


> I have an ActionServlet that needs to be run everytime
> a user makes any http request to my site.  How and
> where should I tell the controller to do this?





Re: struts-user Digest 22 Aug 2001 16:40:53 -0000 Issue 668

2001-08-22 Thread Robert Parker

Would you be able to use a servlet filter out the front to do some custom
mapping of url's for your own purposes?

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 2:22 PM
Subject: Re: struts-user Digest 22 Aug 2001 16:40:53 - Issue 668


> Thanks for the idea Bill, this idea looks a little more elegant than my
Struts hack idea since it wouldn't involve having to re-hack Struts each
time it is re-released.  I'll want to mull it over some more but at first
glance this looks pretty doable.
>
> Also thanks to Tuesday's reply from Robert Parker.  I'm not sure we can
achieve the results we need using the static web app mappings in the war
file alone.  The reason is that we need to dynamically add a prefixing layer
to our URIs to distinguish between the app root and the doc root.  The
web.xml
> mapping file would indeed allow us to map from "/bar" to "/foo/bar", but
in our case we also need to dynamically map to other app root prefixes as
well.
>
> The main problem is that Struts [v1.0] seems to assume that the app root
is always going to be a simple hardcoded slash "/" when in our case, if it
is used at all, it is actually going to need to be dynamically generated as
something resembling "/prefixspec/".  As such, we either need a way to
> dynamically prefix to the app root, or we need to remove the app root
prefix altogether and enforce the use of
> relative URLs across all of our Struts based applications (which is also
problematic).  Bill's idea would provide a slicker way of undoing what
Struts does to the prefix layer of our URIs, but it would be nice if Struts
would allow us to dynamically map the absolute path prefix somehow to begin
with.
>
> Thanks again,
>
> David McLure
>
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> >
> > Date: Wed, 22 Aug 2001 10:01:47 -0400
> > To: [EMAIL PROTECTED]
> > From: Bill Clinton <[EMAIL PROTECTED]>
> > Subject: Re: Relative URL problem in action taglib processing
> > Message-ID: <[EMAIL PROTECTED]>
> >
> > David,
> >   I am doing something similiar in an application I am working on.
> > While I am not stripping the slash, I am modifying the path returned by
> > an action mapping by adding parameters to it without modifying any
> > Struts code.
> >
> > I recommend this solution (or something similar):  Write an extension of
> > ActionForward called SlashlessActionForward.  Make the constructor of
> > this object take an Action forward object like this:
> >
> >  public SlashlessActionForward(ActionForward forward) {
> >
> >  setName(forward.getName());
> >  setPath(forward.getPath());
> >  setRedirect(forward.getRedirect());
> >
> >  }
> >
> > now, override the getPath() method to return the path without the slash.
> > (you would also need to overide setPath() to set a String property in
> > your class)
> >
> > you can now use this in an ActionClass perform method like this:
> >
> > SlashlessActionForward forward =
> > new SlashlessActionForward(mapping.findForward("success"));
> > return forward;
> >
> > Bill
>
> > > --
>
> >
> > Date: Tue, 21 Aug 2001 15:21:05 +1000
> > To: <[EMAIL PROTECTED]>
> > From: "Robert Parker" <[EMAIL PROTECTED]>
> > Subject: Re: Relative URL problem in action taglib processing
> > Message-ID: <004a01c12a01$13b50990$[EMAIL PROTECTED]>
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 21, 2001 3:49 PM
> > Subject: Relative URL problem in action taglib processing
> >
> > >
> > > Preliminary testing would indicate that this hack does seem to work,
but
> > > I can't help but wonder: are we missing something?  Is there an
easier,
> > > more elegant way to achieve relative paths in action parameter
> > > references?
> > >
> >
> > I have been deploying my apps as webapps using a war file, that way, the
> > paths are relative to the root directory of the deployed webapp.
> >
> > regards
> >
> > Rob
>
>
>
>




Re: struts-user Digest 22 Aug 2001 16:40:53 -0000 Issue 668

2001-08-22 Thread [EMAIL PROTECTED]

Thanks for the idea Bill, this idea looks a little more elegant than my Struts hack 
idea since it wouldn't involve having to re-hack Struts each time it is re-released.  
I'll want to mull it over some more but at first glance this looks pretty doable.

Also thanks to Tuesday's reply from Robert Parker.  I'm not sure we can achieve the 
results we need using the static web app mappings in the war file alone.  The reason 
is that we need to dynamically add a prefixing layer to our URIs to distinguish 
between the app root and the doc root.  The web.xml
mapping file would indeed allow us to map from "/bar" to "/foo/bar", but in our case 
we also need to dynamically map to other app root prefixes as well.

The main problem is that Struts [v1.0] seems to assume that the app root is always 
going to be a simple hardcoded slash "/" when in our case, if it is used at all, it is 
actually going to need to be dynamically generated as something resembling 
"/prefixspec/".  As such, we either need a way to
dynamically prefix to the app root, or we need to remove the app root prefix 
altogether and enforce the use of
relative URLs across all of our Struts based applications (which is also problematic). 
 Bill's idea would provide a slicker way of undoing what Struts does to the prefix 
layer of our URIs, but it would be nice if Struts would allow us to dynamically map 
the absolute path prefix somehow to begin with.

Thanks again,

David McLure

[EMAIL PROTECTED]
[EMAIL PROTECTED]

>
> Date: Wed, 22 Aug 2001 10:01:47 -0400
> To: [EMAIL PROTECTED]
> From: Bill Clinton <[EMAIL PROTECTED]>
> Subject: Re: Relative URL problem in action taglib processing
> Message-ID: <[EMAIL PROTECTED]>
>
> David,
>   I am doing something similiar in an application I am working on.
> While I am not stripping the slash, I am modifying the path returned by
> an action mapping by adding parameters to it without modifying any
> Struts code.
>
> I recommend this solution (or something similar):  Write an extension of
> ActionForward called SlashlessActionForward.  Make the constructor of
> this object take an Action forward object like this:
>
>  public SlashlessActionForward(ActionForward forward) {
>
>  setName(forward.getName());
>  setPath(forward.getPath());
>  setRedirect(forward.getRedirect());
>
>  }
>
> now, override the getPath() method to return the path without the slash.
> (you would also need to overide setPath() to set a String property in
> your class)
>
> you can now use this in an ActionClass perform method like this:
>
> SlashlessActionForward forward =
> new SlashlessActionForward(mapping.findForward("success"));
> return forward;
>
> Bill

> > --

>
> Date: Tue, 21 Aug 2001 15:21:05 +1000
> To: <[EMAIL PROTECTED]>
> From: "Robert Parker" <[EMAIL PROTECTED]>
> Subject: Re: Relative URL problem in action taglib processing
> Message-ID: <004a01c12a01$13b50990$[EMAIL PROTECTED]>
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 21, 2001 3:49 PM
> Subject: Relative URL problem in action taglib processing
>
> >
> > Preliminary testing would indicate that this hack does seem to work, but
> > I can't help but wonder: are we missing something?  Is there an easier,
> > more elegant way to achieve relative paths in action parameter
> > references?
> >
>
> I have been deploying my apps as webapps using a war file, that way, the
> paths are relative to the root directory of the deployed webapp.
>
> regards
>
> Rob






call EJB from struts

2001-08-22 Thread May
Hello all !
Is there a recommended way to call EJB from the struts framework?

What I am doing now is...
I have StatefulSessionBean "EJB" and "EJB" has a
method getHello() which simply returns "Hello".

(1)ActionForm class
(a) create setEJB(EJB ejb) and getEJB() methods.

(2)Action class
(a) in the perform() method, first call the actionForm.getEJB() method.
(b) if the result of (a) is null, create javax.ejb.Context context and
lookup EJB,
create EJB instance.
(c) call actionForm.setEJB(EJB ejb) method and save the EJB instance you
have
created in (b).
(d) call ejb.getHello() method and set the result to
request.getSession().setAttribute("output from ejb",ejb.getHello).

(3)JSP
(a) from JSP, call session.getAttribute("output from ejb").

Is there better way rather than setting output from EJB in Attribute?

Your experiences and suggstions will certainly be a great help !!

Thank you.
May


Reading Japanese from Resource_jp.properties file

2001-08-22 Thread May
Hi all !
I have read about the trouble when reading Japanese from
Resource.properties file in the mail archive. Actually I had the same 
trouble myself too.

Finally I got through this with below solution.

1) Save the Resource.propeties file by "JIS" encoding.
2) Set the charset of jsp to "ISO2022JP", like below. 
<%@ page contentType="text/html; charset=ISO2022JP" %>

Viewing from IE results fine.
IE's encode is set to "default".


automatically calling an Action

2001-08-22 Thread Calvin Lau

I have an ActionServlet that needs to be run everytime
a user makes any http request to my site.  How and
where should I tell the controller to do this?

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Struts-----formbean-----petstore

2001-08-22 Thread Kurt Chen




Dear all
I'm using Struts as my webtier in MVC structure. 
now I've got a string of data from database. and load the string in my formbean 
successfully. but my problem ishow to load the string I got from the 
DB and show the string in a jsp(view). any suggestion will be greatly 
appreciatedthanks in advance
 
plus, does anyone has any successful case 
on implementing Struts as webtier in PetStore workflow, 
please let me know.thanks.
Kurt. 


Re:   with

2001-08-22 Thread Matt Raible

One thing I've done in the past is to always place a   before my closing
 - that way you're guaranteed a space "after" the data and it doesn't
affect your layout.  This is only necessary if you have borders on your tables.
 The other solution is to remove table borders, and then this is not a concern
;)


--- David Corbin <[EMAIL PROTECTED]> wrote:
> And I thought about that,  I was just shocked that there isn't already
> something for this.
> 
> - Original Message -
> From: "Patrick Vanden Driessche" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 22, 2001 7:35 PM
> Subject: RE:   with 
> 
> 
> > Hi David,
> >
> > I am assuming that you are using bean:write to retrieve data values from
> > your model beans. Your problem is purely related to the presentation
> > (view/jsp).
> > So, a clean solution would be to create a custom JSP tag, which would do
> the
> > same as the the Struts bean:write tag
> > (org.apache.struts.taglib.bean.WriteTag.java).
> > This new tag could then do the additional check on the property value, and
> > write the  default value " " to the output writer if the original
> bean
> > property's value is empty...
> >
> > Hope this inspires you :-)
> >
> > Patrick.
> >
> >
> > -Original Message-
> > From: David Corbin [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 22, 2001 14:36
> > To: Struts User
> > Subject:   with 
> >
> >
> > I'm using bean:write to populate a table.  When a string is empty, I
> > (sometimes) need to put out " " so that the tables borders look
> right.
> > I've found that I can do this directly (setting the bean property), so
> what
> > should I do?
> >
> > David Corbin
> >
> >
> >
> >
> >
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re:   with

2001-08-22 Thread David Corbin

And I thought about that,  I was just shocked that there isn't already
something for this.

- Original Message -
From: "Patrick Vanden Driessche" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 7:35 PM
Subject: RE:   with 


> Hi David,
>
> I am assuming that you are using bean:write to retrieve data values from
> your model beans. Your problem is purely related to the presentation
> (view/jsp).
> So, a clean solution would be to create a custom JSP tag, which would do
the
> same as the the Struts bean:write tag
> (org.apache.struts.taglib.bean.WriteTag.java).
> This new tag could then do the additional check on the property value, and
> write the  default value " " to the output writer if the original
bean
> property's value is empty...
>
> Hope this inspires you :-)
>
> Patrick.
>
>
> -Original Message-
> From: David Corbin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 22, 2001 14:36
> To: Struts User
> Subject:   with 
>
>
> I'm using bean:write to populate a table.  When a string is empty, I
> (sometimes) need to put out " " so that the tables borders look
right.
> I've found that I can do this directly (setting the bean property), so
what
> should I do?
>
> David Corbin
>
>
>
>
>




RE:   with

2001-08-22 Thread Patrick Vanden Driessche

Hi David,

I am assuming that you are using bean:write to retrieve data values from
your model beans. Your problem is purely related to the presentation
(view/jsp).
So, a clean solution would be to create a custom JSP tag, which would do the
same as the the Struts bean:write tag
(org.apache.struts.taglib.bean.WriteTag.java).
This new tag could then do the additional check on the property value, and
write the  default value " " to the output writer if the original bean
property's value is empty...

Hope this inspires you :-)

Patrick.


-Original Message-
From: David Corbin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 14:36
To: Struts User
Subject:   with 


I'm using bean:write to populate a table.  When a string is empty, I
(sometimes) need to put out " " so that the tables borders look right.
I've found that I can do this directly (setting the bean property), so what
should I do?

David Corbin






Struts with WebSphere 4.0 on Win2000

2001-08-22 Thread SLBrand
Any chance anyone has done this for WAS 4.0 on 2000?


RE: forwarding to another action

2001-08-22 Thread Allamsetty, Venkata

from with in the perform method of an action class,
call mapping.forward('success'); 
define the forward tag for 'success' in struts_config.xml


-va

-Original Message-
From: Jan Fredrik Overaasen
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 7:29 AM
To: '[EMAIL PROTECTED]'
Subject: forwarding to another action


Hi 
I want to forward to another action class from an actiondispatcher, how can
I accomplish this?

Thanks in advance

Jan Fredrik Overaasen
Norway



RE: how to integrate javascript in struts?

2001-08-22 Thread Allamsetty, Venkata



simply 
write your javascript between  tags, as you would 
do in the case of a normal html page.
 
thanks
-va

  -Original Message-From: Metehan Selvi 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 22, 2001 2:03 
  AMTo: [EMAIL PROTECTED]Subject: how to 
  integrate javascript in struts?
  How to integrate javascript in struts without 
  writing any java code in jsp-pages?
   


Getting collections of messages

2001-08-22 Thread Adam Hardy

Hello,

Is it possible to return collections of messages from
the ApplicationResources.properties file?

Eg the ApplicationResources.properties could be:
page1.optionbox.1=Apples
page1.optionbox.2=Oranges
page1.optionbox.3=Pears
...
...

I would like to get page1.optionbox.* as a collection
to populate an options tag.

I have looked through the JavaDoc for
org.apache.struts.util.MessageResources and it doesn't
have any methods that return collections or arrays so
I guess the answer is probably no.

Is there a way to acheive this functionality?

Thanks Adam.


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: How to Create an ActionError with a text message

2001-08-22 Thread Rama Krishna

may be not. as far as i know. but you can have a work around having one
general key and some default value and pass in a replacement value in
ActionError constructor
so all u r classes can use the same key but replace the default value. this
way u can use 

hope this helps,
rama.


- Original Message -
From: "Rajan Gupta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 3:12 PM
Subject: How to Create an ActionError with a text message


> ActionError normally takes a key to a property in ApplicationResources
> file. But I would like to report errors without putting all the errors in
> the properties file.
>
> I would like to continue to use the  tag.
>
> Is there a way of reporting errors from an Action which can be reported by
>  without putting the message string in the resource?
>
> Thanks for your help,
> Rajan
>
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>



Re: Cannot find ActionMappings Error - second time I am posting -

2001-08-22 Thread Rama Krishna

perhaps your type might be a problem

type should refer to complete java class type including any packages

eg: mypackage.LogonForm   & mypackage.LogonAction

also check, if your struts-config.xml is in your web-inf folder.
i guess u don't need "/" before ur path name 
it seems like u r trying to access jsp as ../jsp/logon/logon.jsp check your
forward too.


hope this helps,
rama.



- Original Message -
From: "Bhamidi Krishna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 3:00 PM
Subject: RE: Cannot find ActionMappings Error - second time I am posting -


> My struts-config looks like :
>
> 
>"-//Apache Software Foundation//DTD Struts Configuration
>   1.0//EN"
>   "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> 
> 
> type="LogonForm"/>
> 
>
> 
>   type="LogonAction"
>name="logonForm">
>
>   
>
>   
>
> 
> 
> 
>
>
>
>
> >From: "Aparna Tula" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: RE: Cannot find ActionMappings Error - second time I am
posting -
> >Date: Wed, 22 Aug 2001 17:50:13 -0400
> >MIME-Version: 1.0
> >Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id
> >MHotMailBD4D749500294004325940D02A290F7D0; Wed, 22 Aug 2001
14:52:21 -0700
> >Received: (qmail 99660 invoked by uid 500); 22 Aug 2001 21:52:07 -
> >Received: (qmail 99653 invoked from network); 22 Aug 2001 21:52:06 -
> >Received: from unknown (HELO pastisr0100.synchronoss.net) (63.94.105.225)
> >by h31.sny.collab.net with SMTP; 22 Aug 2001 21:52:06 -
> >Received: from PASTI3CL5Z.synchronoss.net ([10.7.20.10]) by
> >pastisr0100.synchronoss.net with Microsoft SMTPSVC(5.0.2195.1600); Wed,
22
> >Aug 2001 17:50:14 -0400
> >From struts-user-return-15794-bhamidik Wed, 22 Aug 2001 14:53:21 -0700
> >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> >Precedence: bulk
> >list-help: 
> >list-unsubscribe: 
> >list-post: 
> >Delivered-To: mailing list [EMAIL PROTECTED]
> >X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
> >content-class: urn:content-classes:message
> >Message-ID:
> ><[EMAIL PROTECTED]>
> >X-MS-Has-Attach:
> >X-MS-TNEF-Correlator:
> >Thread-Topic: Cannot find ActionMappings Error - second time I am
posting -
> >Thread-Index: AcErUv7JGjZbAgBwT+qkybzPNFe2fAAADaxw
> >X-OriginalArrivalTime: 22 Aug 2001 21:50:14.0123 (UTC)
> >FILETIME=[6C88B3B0:01C12B54]
> >X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> >
> >I came across that error this morning(Cannot find ActionMappings or
> >ActionFormBeans collection).
> >
> >My mistake was that my stuts-config.xml file had a syntax error for ex:
> >
> >  >type="org.whatever.action.OrderAction"
> >name="orderForm"
> >scope="request"
> >validate="false">
> > (forgot the closing
> >/)
> > 
> >
> >I changed the forward tag to
> > 
> >
> >And it worked! If not exactly that, check if you are not making any
> >syntax errors anyplace else in your struts-config.
> >
> >Hope this helps!
> >
> >- Aparna
> >
> >
> >-Original Message-
> >From: Bhamidi Krishna [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, August 22, 2001 5:39 PM
> >To: [EMAIL PROTECTED]
> >Subject: Cannot find ActionMappings Error - second time I am posting -
> >
> >
> >Hi,
> >
> >this is the second time I am posting this message. When I try to run
> >struts
> >on Tomcat, I get the following error :
> >
> >Exception in: R( /examples + /jsp/logon/logon.jsp + null) -
> >javax.servlet.ServletException: Cannot find ActionMappings or
> >ActionFormBeans collection
> >
> >I tried all settings I could get hold of from the struts-user mail
> >archive.
> >
> >In the absence of a definitive guide to Struts, can someone please
> >enlighten
> >me on how to overcome this error??
> >
> >thankyou,
> >Krishna
> >
> >
> >
> >
> >_
> >Get your FREE download of MSN Explorer at
> >http://explorer.msn.com/intl.asp
>
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>



RE: Using multiple ActionServlet's

2001-08-22 Thread Allamsetty, Venkata

Bulk of the work gets done in the perform method of an action class.
ActionServlet is nothing but the controller.
If your question is reg. use of multiple action classes one delegating a
task to the other, the answer is yes.

we just need to forward from one action to the other. 

hope this helps.

thanks
-va

-Original Message-
From: Narayan, Anand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 5:43 PM
To: '[EMAIL PROTECTED]'
Subject: Using multiple ActionServlet's


Is anyone using multiple action servlets for one application.
For example,  if we have a main Action Servlet which delegates to
other Action Servlets, each of which accomplish substantial amount of
functionality.

Any suggestions on the Pros and Cons of this architecture?

Thanks
Anand Narayan



___ 

Juniper Bank 
"Rated #1 in Customer Confidence" 
Gomez Inc., Summer 2001 Internet Credit Card Scorecard 
www.juniper.com 
___ 

This e-mail and any files transmitted with it may contain confidential
and/or proprietary information. It is intended solely for the use of the
individual or entity who is the intended recipient. Unauthorized use of this
information is prohibited. If you have received this in error, please
contact the sender by replying to this message and delete this material from
any system it may be on.



RE: Cannot find ActionMappings Error - second time I am posting -

2001-08-22 Thread Aparna Tula

I am not sure about your package structure, but we include the package
in the type attribute

   

 
  
  
 

But if that's the problem, maybe it would have reported a
'ClassNotFoundException'. 

I am not really sure. Your struts-config file seems to be alright
otherwise(to me). 

I will let you know, if I figure out something. And do let me know, if
you figure it out first. 

- Aparna


-Original Message-
From: Bhamidi Krishna [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 6:00 PM
To: [EMAIL PROTECTED]
Subject: RE: Cannot find ActionMappings Error - second time I am posting
-


My struts-config looks like :


http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>


  



  

  

  








>From: "Aparna Tula" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: Cannot find ActionMappings Error - second time I am
posting -
>Date: Wed, 22 Aug 2001 17:50:13 -0400
>MIME-Version: 1.0
>Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id 
>MHotMailBD4D749500294004325940D02A290F7D0; Wed, 22 Aug 2001 14:52:21
-0700
>Received: (qmail 99660 invoked by uid 500); 22 Aug 2001 21:52:07 -
>Received: (qmail 99653 invoked from network); 22 Aug 2001 21:52:06
-
>Received: from unknown (HELO pastisr0100.synchronoss.net)
(63.94.105.225)  
>by h31.sny.collab.net with SMTP; 22 Aug 2001 21:52:06 -
>Received: from PASTI3CL5Z.synchronoss.net ([10.7.20.10]) by 
>pastisr0100.synchronoss.net with Microsoft SMTPSVC(5.0.2195.1600); Wed,
22 
>Aug 2001 17:50:14 -0400
>From struts-user-return-15794-bhamidik Wed, 22 Aug 2001 14:53:21 -0700
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>list-help: 
>list-unsubscribe: 
>list-post: 
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
>content-class: urn:content-classes:message
>Message-ID: 
><[EMAIL PROTECTED]>
>X-MS-Has-Attach:
>X-MS-TNEF-Correlator:
>Thread-Topic: Cannot find ActionMappings Error - second time I am
posting -
>Thread-Index: AcErUv7JGjZbAgBwT+qkybzPNFe2fAAADaxw
>X-OriginalArrivalTime: 22 Aug 2001 21:50:14.0123 (UTC) 
>FILETIME=[6C88B3B0:01C12B54]
>X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
>
>I came across that error this morning(Cannot find ActionMappings or
>ActionFormBeans collection).
>
>My mistake was that my stuts-config.xml file had a syntax error for ex:
>
> type="org.whatever.action.OrderAction"
>name="orderForm"
>scope="request"
>validate="false">
> (forgot the closing
>/)
> 
>
>I changed the forward tag to
> 
>
>And it worked! If not exactly that, check if you are not making any
>syntax errors anyplace else in your struts-config.
>
>Hope this helps!
>
>- Aparna
>
>
>-Original Message-
>From: Bhamidi Krishna [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 22, 2001 5:39 PM
>To: [EMAIL PROTECTED]
>Subject: Cannot find ActionMappings Error - second time I am posting -
>
>
>Hi,
>
>this is the second time I am posting this message. When I try to run
>struts
>on Tomcat, I get the following error :
>
>Exception in: R( /examples + /jsp/logon/logon.jsp + null) -
>javax.servlet.ServletException: Cannot find ActionMappings or
>ActionFormBeans collection
>
>I tried all settings I could get hold of from the struts-user mail
>archive.
>
>In the absence of a definitive guide to Struts, can someone please
>enlighten
>me on how to overcome this error??
>
>thankyou,
>Krishna
>
>
>
>
>_
>Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp


_
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp




Re: html:radio tag indexed?

2001-08-22 Thread dhay



Hi.  Have just replied to Nathan's post on the dev list.

I will make the changes to textAreas and radio buttons, and get them added to
nightly build.

Cheers,

Dave





"Princeton Lau" <[EMAIL PROTECTED]> on 08/22/2001 04:01:37 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  html:radio tag indexed?



Hello everyone and especially Dave Hays,

Has anyone tried updating the html:radio Struts tag to produce indexed
names?  I am currently making a multiple choice survey application and
having an indexed radio button would be great!

Thanks,

Princeton

>From http://husted.com/about/struts/indexed-tags.htm
.
.
.
I have now finished updating several html Struts tags to produce indexed
names
such as



when used within an iterate tag. These tags involve only minor changes to
the
existing tags, and to trigger them, "indexed=true" is added to the tag.
.
.
.










How to Create an ActionError with a text message

2001-08-22 Thread Rajan Gupta

ActionError normally takes a key to a property in ApplicationResources
file. But I would like to report errors without putting all the errors in
the properties file.

I would like to continue to use the  tag.

Is there a way of reporting errors from an Action which can be reported by
 without putting the message string in the resource?

Thanks for your help,
Rajan


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: Cannot find ActionMappings Error - second time I am posting -

2001-08-22 Thread Bhamidi Krishna

My struts-config looks like :


http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>


  



  

  

  








>From: "Aparna Tula" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: Cannot find ActionMappings Error - second time I am posting -
>Date: Wed, 22 Aug 2001 17:50:13 -0400
>MIME-Version: 1.0
>Received: from [64.208.42.41] by hotmail.com (3.2) with ESMTP id 
>MHotMailBD4D749500294004325940D02A290F7D0; Wed, 22 Aug 2001 14:52:21 -0700
>Received: (qmail 99660 invoked by uid 500); 22 Aug 2001 21:52:07 -
>Received: (qmail 99653 invoked from network); 22 Aug 2001 21:52:06 -
>Received: from unknown (HELO pastisr0100.synchronoss.net) (63.94.105.225)  
>by h31.sny.collab.net with SMTP; 22 Aug 2001 21:52:06 -
>Received: from PASTI3CL5Z.synchronoss.net ([10.7.20.10]) by 
>pastisr0100.synchronoss.net with Microsoft SMTPSVC(5.0.2195.1600); Wed, 22 
>Aug 2001 17:50:14 -0400
>From struts-user-return-15794-bhamidik Wed, 22 Aug 2001 14:53:21 -0700
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>Precedence: bulk
>list-help: 
>list-unsubscribe: 
>list-post: 
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
>content-class: urn:content-classes:message
>Message-ID: 
><[EMAIL PROTECTED]>
>X-MS-Has-Attach:
>X-MS-TNEF-Correlator:
>Thread-Topic: Cannot find ActionMappings Error - second time I am posting -
>Thread-Index: AcErUv7JGjZbAgBwT+qkybzPNFe2fAAADaxw
>X-OriginalArrivalTime: 22 Aug 2001 21:50:14.0123 (UTC) 
>FILETIME=[6C88B3B0:01C12B54]
>X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
>
>I came across that error this morning(Cannot find ActionMappings or
>ActionFormBeans collection).
>
>My mistake was that my stuts-config.xml file had a syntax error for ex:
>
> type="org.whatever.action.OrderAction"
>name="orderForm"
>scope="request"
>validate="false">
> (forgot the closing
>/)
> 
>
>I changed the forward tag to
> 
>
>And it worked! If not exactly that, check if you are not making any
>syntax errors anyplace else in your struts-config.
>
>Hope this helps!
>
>- Aparna
>
>
>-Original Message-
>From: Bhamidi Krishna [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 22, 2001 5:39 PM
>To: [EMAIL PROTECTED]
>Subject: Cannot find ActionMappings Error - second time I am posting -
>
>
>Hi,
>
>this is the second time I am posting this message. When I try to run
>struts
>on Tomcat, I get the following error :
>
>Exception in: R( /examples + /jsp/logon/logon.jsp + null) -
>javax.servlet.ServletException: Cannot find ActionMappings or
>ActionFormBeans collection
>
>I tried all settings I could get hold of from the struts-user mail
>archive.
>
>In the absence of a definitive guide to Struts, can someone please
>enlighten
>me on how to overcome this error??
>
>thankyou,
>Krishna
>
>
>
>
>_
>Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: Cannot find ActionMappings Error - second time I am posting -

2001-08-22 Thread Aparna Tula

I came across that error this morning(Cannot find ActionMappings or
ActionFormBeans collection).

My mistake was that my stuts-config.xml file had a syntax error for ex:


(forgot the closing
/)


I changed the forward tag to 
 

And it worked! If not exactly that, check if you are not making any
syntax errors anyplace else in your struts-config.

Hope this helps!

- Aparna


-Original Message-
From: Bhamidi Krishna [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 5:39 PM
To: [EMAIL PROTECTED]
Subject: Cannot find ActionMappings Error - second time I am posting -


Hi,

this is the second time I am posting this message. When I try to run
struts
on Tomcat, I get the following error :

Exception in: R( /examples + /jsp/logon/logon.jsp + null) -
javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection

I tried all settings I could get hold of from the struts-user mail
archive.

In the absence of a definitive guide to Struts, can someone please
enlighten
me on how to overcome this error??

thankyou,
Krishna




_
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp



Re: I am new to the mailing list, need help to get to list archive(s)

2001-08-22 Thread Matt Raible

http://www.mail-archive.com/struts-user%40jakarta.apache.org/

--- Venkat Jonnalagadda <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
>   I am new to the mailing list and need directions to get to the list
> archives(s)...
> 
> Thanks
> Venkat.
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: I am new to the mailing list, need help to get to list archive(s)

2001-08-22 Thread Matt Raible

http://www.mail-archive.com/struts-user%40jakarta.apache.org/

--- Venkat Jonnalagadda <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
>   I am new to the mailing list and need directions to get to the list
> archives(s)...
> 
> Thanks
> Venkat.
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



I am new to the mailing list, need help to get to list archive(s)

2001-08-22 Thread Venkat Jonnalagadda

Hi all,

I am new to the mailing list and need directions to get to the list
archives(s)...

Thanks
Venkat.




Using multiple ActionServlet's

2001-08-22 Thread Narayan, Anand

Is anyone using multiple action servlets for one application.
For example,  if we have a main Action Servlet which delegates to
other Action Servlets, each of which accomplish substantial amount of
functionality.

Any suggestions on the Pros and Cons of this architecture?

Thanks
Anand Narayan



___ 

Juniper Bank 
"Rated #1 in Customer Confidence" 
Gomez Inc., Summer 2001 Internet Credit Card Scorecard 
www.juniper.com 
___ 

This e-mail and any files transmitted with it may contain confidential
and/or proprietary information. It is intended solely for the use of the
individual or entity who is the intended recipient. Unauthorized use of this
information is prohibited. If you have received this in error, please
contact the sender by replying to this message and delete this material from
any system it may be on.



Cannot find ActionMappings Error - second time I am posting -

2001-08-22 Thread Bhamidi Krishna





Hi,

this is the second time I am posting this message. When I try to run
struts on Tomcat, I get the following error :

Exception in: R( /examples + /jsp/logon/logon.jsp + null) -
javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection

I tried all settings I could get hold of from the struts-user mail
archive.

In the absence of a definitive guide to Struts, can someone please
enlighten me on how to overcome this error?? I will be more than happy to 
provide any further information required.


thankyou,
Krishna






_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Cannot find ActionMappings Error - second time I am posting -

2001-08-22 Thread Bhamidi Krishna

Hi,

this is the second time I am posting this message. When I try to run struts 
on Tomcat, I get the following error :

Exception in: R( /examples + /jsp/logon/logon.jsp + null) - 
javax.servlet.ServletException: Cannot find ActionMappings or 
ActionFormBeans collection

I tried all settings I could get hold of from the struts-user mail archive.

In the absence of a definitive guide to Struts, can someone please enlighten 
me on how to overcome this error??

thankyou,
Krishna




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Newbie question: bean values in pages

2001-08-22 Thread Marcelo Vanzin


Hi, this is not particularly a question about Struts, but about JSP, and 
since I haven't found any answers in the literature I've been reading, 
and my tests have failed, I decided to ask.

Let's say I have some value stored in the request so I can use it in my 
JSP page. Generally, I'd do something like:



Using the Struts bean tag library. Now let's say that I want to write 
that same thing, but inside quotes, so as to pass it as a value to a 
tag's attribute:



I haven't found how to do this with the taglib syntax. Is there any way?

I was able to use a scriptlet to do it:



But it is pretty ugly, and if the bean is not in the request but in 
another scope, it would get worse to write a general case...

The taglib way (if there's a way to do it with taglibs) is not that 
beautiful (that's one thing i like about template engines), but much better.

Any help with that?

-- 
[]'s
Marcelo Vanzin
Touch Tecnologia
[EMAIL PROTECTED]
"We're an underground revolution working overtime"




RE: looking for success stories

2001-08-22 Thread Assenza, Chris

Eek, I gave you a bad link for Ted Husted's site, the correct one is:
http://www.husted.com/about/struts/

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 4:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: looking for success stories


Eric,

I can't really give you a success story yet, our first Struts application
isn't complete and I'd say we did some things wrong and did some things
right along the way - but overall things are going very well and Struts has
been very useful.  

Just hang around here for a bit and you'll get some good pointers.  Others
on the list have posted some excellent design patterns, success stories and
lessons learned as I'm sure they'll share.  :)  Check out
http://husted.com/struts for some good resources.

As for WebSphere, I can vouch for it with both 3.5.3 and 4.0.  There are a
few things to be aware of prior to moving forward.  First and foremost -
both WAS 3.5.x and 4.0 are using versions of Jasper that are slightly behind
the latest spec; unfortunately, Struts makes use of the parts of the spec
wherein WAS is lacking.  A very simple change has been made to the Form
taglib that will allow Struts 1.0 to work in a WAS environment.  It can be
downloaded at: http://www.enfused.com/struts.jar

Second, in 3.5.3 deployment requires some extra steps and some tweaking. A
list of the special steps can be found:
http://jakarta.apache.org/struts/installation-was352-x.html

As for 4.0, deployment is pretty straight forward.  The Application Assembly
tool is the nicest and most usable J2EE deployment tool I've seen to date
and will get the job done just fine.  The fact that 4.0 is J2EE compliant
helps a lot too - finally we can use EAR's and WAR's properly. :)

Hope that helps,

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: looking for success stories


Hello,

We are currently in the early design stages of an extremely high profile
application and I am considering using Struts.  I have used it in the past
for several very small applications with no more than a couple concurrent
users.  But since we only get one

shot at making this application work (or we'll all be out on our arses) I
must make a very convincing case for Struts.

Does anyone have any success stories that they'd like to share?  Or can
anyone point me in the direction of any articles or web pages or whatever
where I may find info?

By the way, we are going to deploy on Websphere (we're currently on 3.5.3
but will hopefully move to 4.0 before we roll it out) so I'd be especially
interested if anyone has successfully deployed on WAS.

Thanks!
-Eric Stievater
[EMAIL PROTECTED]


*** IMPORTANT NOTE *
The opinions expressed in this message and/or any attachments are
those of the author and not necessarily those of Brown Brothers
Harriman & Co., its subsidiaries and affiliates ("BBH").  There is no
guarantee that this message is either private or confidential, and it
may have been altered by unauthorized sources without your or our
knowledge.  Nothing in the message is capable or intended to create
any legally binding obligations on either party and it is not intended
to provide legal advice.  BBH accepts no responsibility for loss or
damage from its use, including damage from virus.




RE: looking for success stories

2001-08-22 Thread Assenza, Chris

Eric,

I can't really give you a success story yet, our first Struts application
isn't complete and I'd say we did some things wrong and did some things
right along the way - but overall things are going very well and Struts has
been very useful.  

Just hang around here for a bit and you'll get some good pointers.  Others
on the list have posted some excellent design patterns, success stories and
lessons learned as I'm sure they'll share.  :)  Check out
http://husted.com/struts for some good resources.

As for WebSphere, I can vouch for it with both 3.5.3 and 4.0.  There are a
few things to be aware of prior to moving forward.  First and foremost -
both WAS 3.5.x and 4.0 are using versions of Jasper that are slightly behind
the latest spec; unfortunately, Struts makes use of the parts of the spec
wherein WAS is lacking.  A very simple change has been made to the Form
taglib that will allow Struts 1.0 to work in a WAS environment.  It can be
downloaded at: http://www.enfused.com/struts.jar

Second, in 3.5.3 deployment requires some extra steps and some tweaking. A
list of the special steps can be found:
http://jakarta.apache.org/struts/installation-was352-x.html

As for 4.0, deployment is pretty straight forward.  The Application Assembly
tool is the nicest and most usable J2EE deployment tool I've seen to date
and will get the job done just fine.  The fact that 4.0 is J2EE compliant
helps a lot too - finally we can use EAR's and WAR's properly. :)

Hope that helps,

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: looking for success stories


Hello,

We are currently in the early design stages of an extremely high profile
application and I am considering using Struts.  I have used it in the past
for several very small applications with no more than a couple concurrent
users.  But since we only get one

shot at making this application work (or we'll all be out on our arses) I
must make a very convincing case for Struts.

Does anyone have any success stories that they'd like to share?  Or can
anyone point me in the direction of any articles or web pages or whatever
where I may find info?

By the way, we are going to deploy on Websphere (we're currently on 3.5.3
but will hopefully move to 4.0 before we roll it out) so I'd be especially
interested if anyone has successfully deployed on WAS.

Thanks!
-Eric Stievater
[EMAIL PROTECTED]


*** IMPORTANT NOTE *
The opinions expressed in this message and/or any attachments are
those of the author and not necessarily those of Brown Brothers
Harriman & Co., its subsidiaries and affiliates ("BBH").  There is no
guarantee that this message is either private or confidential, and it
may have been altered by unauthorized sources without your or our
knowledge.  Nothing in the message is capable or intended to create
any legally binding obligations on either party and it is not intended
to provide legal advice.  BBH accepts no responsibility for loss or
damage from its use, including damage from virus.




looking for success stories

2001-08-22 Thread Eric . Stievater

Hello,

We are currently in the early design stages of an extremely high profile application 
and I am considering using Struts.  I have used it in the past for several very small 
applications with no more than a couple concurrent users.  But since we only get one

shot at making this application work (or we'll all be out on our arses) I must make a 
very convincing case for Struts.

Does anyone have any success stories that they'd like to share?  Or can anyone point 
me in the direction of any articles or web pages or whatever where I may find info?

By the way, we are going to deploy on Websphere (we're currently on 3.5.3 but will 
hopefully move to 4.0 before we roll it out) so I'd be especially interested if anyone 
has successfully deployed on WAS.

Thanks!
-Eric Stievater
[EMAIL PROTECTED]


*** IMPORTANT NOTE *
The opinions expressed in this message and/or any attachments are
those of the author and not necessarily those of Brown Brothers
Harriman & Co., its subsidiaries and affiliates ("BBH").  There is no
guarantee that this message is either private or confidential, and it
may have been altered by unauthorized sources without your or our
knowledge.  Nothing in the message is capable or intended to create
any legally binding obligations on either party and it is not intended
to provide legal advice.  BBH accepts no responsibility for loss or
damage from its use, including damage from virus.




html:radio tag indexed?

2001-08-22 Thread Princeton Lau

Hello everyone and especially Dave Hays,

Has anyone tried updating the html:radio Struts tag to produce indexed
names?  I am currently making a multiple choice survey application and
having an indexed radio button would be great!

Thanks,

Princeton

>From http://husted.com/about/struts/indexed-tags.htm
.
.
.
I have now finished updating several html Struts tags to produce indexed
names
such as



when used within an iterate tag. These tags involve only minor changes to
the
existing tags, and to trigger them, "indexed=true" is added to the tag.
.
.
.




Re: radio select

2001-08-22 Thread martin . cooper

I'm not sure I understand your warning. For a set of radio buttons, there
should not be an array in the form bean, just a simple string property,
since only one radio button from a set can be selected at any time.

--
Martin Cooper


- Original Message -
From: "SUPRIYA MISRA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 6:35 AM
Subject: Re: radio select


> suggestion:-you may need to reset the value in the form bean
>
>
> WARNING: In order to correctly recognize cases where none of the
associated
> radios are selected, the ActionForm bean associated with this form must
> include a statement setting the corresponding array to zero length in the
> reset() method.
>
>
>
>
> >From: "Bille Madsen" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: <[EMAIL PROTECTED]>
> >Subject: radio select
> >Date: Wed, 22 Aug 2001 11:35:14 +0200
> >
> >
> >Hi,
> >
> >I have the following code:
> >
> >
> >
> >
> >
> >
> >Just two normal radiobuttons, have do I use the 'selected'-option which
> >html
> >provide?
> >If the user select one the radio-buttons and come back to the page later,
> >none of the radio-buttons are selected, but all other info is still
> >presented(struts text-fields and so on).
> >By the way, I get the values correct in the formbean, so no problem
> >there...
> >
> >Anyone having a answer?
> >
> >Thanks
> >
> >Bille
> >
>
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>





Re: radio select

2001-08-22 Thread martin . cooper

Which radio button is selected when the JSP is displayed depends on the
value of the property in your form bean. For example, if your form bean's
'radioBtn' property is set to "credit", then the second radio button in your
example will appear selected. You should set this up in your Action before
forwarding to the JSP for display.

--
Martin Cooper


- Original Message -
From: "Bille Madsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 2:35 AM
Subject: radio select


>
> Hi,
>
> I have the following code:
>
> 
>
> 
> 
>
> Just two normal radiobuttons, have do I use the 'selected'-option which
html
> provide?
> If the user select one the radio-buttons and come back to the page later,
> none of the radio-buttons are selected, but all other info is still
> presented(struts text-fields and so on).
> By the way, I get the values correct in the formbean, so no problem
there...
>
> Anyone having a answer?
>
> Thanks
>
> Bille
>
>





RE: Va Java and Struts

2001-08-22 Thread Assenza, Chris

Here it is:
http://www7.software.ibm.com/vad.nsf/data/document2558?OpenDocument&p=1&BCT

:)

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 2:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Va Java and Struts


MaryAnne,

I can't help you as I am new to Struts as well as VAJ and Websphere, but I
would be very grateful if you could send me that article.

Thanks,

Robert

-Original Message-
From: MARYANNE B. SMITH [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 11:19 AM
To: [EMAIL PROTECTED]
Subject: Va Java and Struts


I was trying to run the sample app from the article
"Making Struts work in the VisualAge for Java 3.5.3 WebSphere Test
Environment" in the Va Java 3.5.3 Test Environment.

I installed the binary distribution file (Struts 1.0b)so I do not
have the source to fix or change. This is the error I get upon
requesting the employee.search.jsp page.

Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes from
request scope
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
java.lang.IllegalArgumentException(java.lang.String)
void
org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lan
g.String, int)
int org.apache.struts.taglib.html.FormTag.doEndTag()
void
jsp._employeeEdit_xjsp._jspService(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletReques
t, javax.servlet.ServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(jav
ax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.
http.HttpServletRequest



Any suggestions?

Maryanne



RE: Va Java and Struts

2001-08-22 Thread Robert . Ceja

MaryAnne,

I can't help you as I am new to Struts as well as VAJ and Websphere, but I
would be very grateful if you could send me that article.

Thanks,

Robert

-Original Message-
From: MARYANNE B. SMITH [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 11:19 AM
To: [EMAIL PROTECTED]
Subject: Va Java and Struts


I was trying to run the sample app from the article
"Making Struts work in the VisualAge for Java 3.5.3 WebSphere Test
Environment" in the Va Java 3.5.3 Test Environment.

I installed the binary distribution file (Struts 1.0b)so I do not
have the source to fix or change. This is the error I get upon
requesting the employee.search.jsp page.

Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes from
request scope
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
java.lang.IllegalArgumentException(java.lang.String)
void
org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lan
g.String, int)
int org.apache.struts.taglib.html.FormTag.doEndTag()
void
jsp._employeeEdit_xjsp._jspService(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletReques
t, javax.servlet.ServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(jav
ax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.
http.HttpServletRequest



Any suggestions?

Maryanne



Subclass ActionServlet to behave as central controller: Solution

2001-08-22 Thread Matt Raible



In reply to message: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12014.html
 
I am trying to proxy to my action class via /do/* 
rather than *.do
 
Therefore, I need to make some modifications to my 
DefaultAction.java - but I'm having a little difficulty.
 
String forwardPath = requestURI.substring( 
contextPath.length());forwardPath = forwardPath.substring( 
0,forwardPath.indexOf("do")) + "jsp";
 
 
So I'd imagine the following should work - 
right?
 
String requestURI = 
"/NASApp/timetracker/do/timesheetList";
 
forwardPath = 
forwardPath.substring(forwardPath.substring(forwardPath.indexOf("do/")+3, 
forwardPath.length());
 
 
    


prefix for forward parameter

2001-08-22 Thread Mike Dewhirst

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

Thanks for any advice!







=**

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

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

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

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

**=



RE: Va Java and Struts

2001-08-22 Thread Assenza, Chris

You need a special struts.jar with a slight modification to the form tag,
which you can download from: http://www.enfused.com/struts.jar

Chris

Christopher Assenza
Phone:  412.201.6026
Fax: 412.201.6060
Email:  [EMAIL PROTECTED]
ACCESSDATA
Moving Your Business from Point A to Point e.SM
http://www.accessdc.com/



-Original Message-
From: MARYANNE B. SMITH [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 2:19 PM
To: [EMAIL PROTECTED]
Subject: Va Java and Struts


I was trying to run the sample app from the article
"Making Struts work in the VisualAge for Java 3.5.3 WebSphere Test
Environment" in the Va Java 3.5.3 Test Environment.

I installed the binary distribution file (Struts 1.0b)so I do not
have the source to fix or change. This is the error I get upon
requesting the employee.search.jsp page.

Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes from
request scope
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
java.lang.IllegalArgumentException(java.lang.String)
void
org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lan
g.String, int)
int org.apache.struts.taglib.html.FormTag.doEndTag()
void
jsp._employeeEdit_xjsp._jspService(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletReques
t, javax.servlet.ServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(jav
ax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.
http.HttpServletRequest



Any suggestions?

Maryanne



Va Java and Struts

2001-08-22 Thread MARYANNE B. SMITH

I was trying to run the sample app from the article
"Making Struts work in the VisualAge for Java 3.5.3 WebSphere Test
Environment" in the Va Java 3.5.3 Test Environment.

I installed the binary distribution file (Struts 1.0b)so I do not
have the source to fix or change. This is the error I get upon
requesting the employee.search.jsp page.

Root Error-1: cant remove Attributes from request scope

java.lang.IllegalArgumentException: cant remove Attributes from
request scope
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
java.lang.IllegalArgumentException(java.lang.String)
void
org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lan
g.String, int)
int org.apache.struts.taglib.html.FormTag.doEndTag()
void
jsp._employeeEdit_xjsp._jspService(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.H
ttpServletRequest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletReques
t, javax.servlet.ServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(jav
ax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.
http.HttpServletRequest



Any suggestions?

Maryanne



the perform method in LogonAction never reachs!!!

2001-08-22 Thread Inés Pederiva

hi.
This is my situation:

-I create a blank application.
-I modify the struts-config.xml with:
  



  
and with


-Obviously I have the classes named: LogonAction and LogonForm.

This is my problem
-In my logon.jsp page I enter my data and press the button of the form which
was defined like: ...
-Then.. if it passes the validation the page blocks in:
myproyectname/logon.do;jsessionid=rc4r81mbr1

I check the validate method from the LogonForm and it works ok.
But the perform method in LogonAction never reachs!!!

Can anybody help me with this?

Thanks a lot!!

Inés from La Plata.




Re: Help with logic:iterate

2001-08-22 Thread Brian K. Buckley

Wow, that's nice!

One minor fix I needed was to put the collection onto the request prior to


<% Collection songs = SongCache.getInstance().fetchAll(); %>

  <% pageContext.setAttribute("songs", songs); %>
  


- Brian





Quick question / indexed iterate tag / Text area

2001-08-22 Thread Nathan Coast

Hi,

Are indexed tags implemented for text areas as part of Dave Hays indexed tag
patch?

is there a reason why they weren't included in the patch?

Cheers
Nathan


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**



RE: caching custom tag results

2001-08-22 Thread Laine Donlan

Mike -

We sometimes use the page context to store tag results under a key name.
If tag executes multiple times per page then it checks the page context
for something under that key before going forward with processing.  One
thing though, if the results of the tag depend on the attributes
provided to it, then you have to some sort of intelligent keying so that
the tags with similar attributes will be cached correctly.

Laine

-Original Message-
From: Mike Dewhirst [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 12:19 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: caching custom tag results


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

Thanks for any advice/suggestion.


=**

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

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

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

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

**=



custom tags and Action servlet

2001-08-22 Thread Mike D

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

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

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




caching custom tag results

2001-08-22 Thread Mike Dewhirst

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

Thanks for any advice/suggestion.


=**

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

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

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

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

**=



web.XML - lookup values?

2001-08-22 Thread Ben Jessell

Slightly off-subject, but does anyone know how you can define values in xml
and then look them up in your actionForm? Or if it can't be done in web.xml,
how about application.properties?

Basically, I want to format a date according to a time format string eg,
"dd, MMM,  hh:mm". However, I want to be able to configure this via a
setting. I'd imagine there'd be something in web.xml  like



myTimeFormatVar



java.lang.String



"dd, MMM,  hh:mm




failing that, can I do it in JDNI?

Thanks

-b


=**

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

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

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

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

**=



custom tags and Action servlet

2001-08-22 Thread Mike Dewhirst

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

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


=**

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

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

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

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

**=



String and Multiboxes

2001-08-22 Thread Becky Moyer

I think this is what you need.  This is talked about in other messages in 
the mailing list, but this is hopefully a summary.

The array of strings that represents the checked boxes will only contain 
strings representing the boxed that were checked.
As an example - the X's represent checked boxes.

String 1 X
String 2
String 3 X
String 4


You'd then have 2 arrays.  The one array contains the labels (String 1, 
String 2, String 3, String 4), and the checked array would have (String 1, 
String 3).  Thus, you always have to pass along your labels as well as the 
checked values.

I don't really have time to look through your source, and will be out of 
town for a while, but from your email, this seems to be the issue.

Hope it helps,
Becky


-Original Message-
From: Mrinal Ghosh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 10:26 AM
To: '[EMAIL PROTECTED]'
Subject:


Hi Becky,

My name is Mrinal. I was going thru Multibox confusion after reading Struts
mail-archive . Seems like you have resolved the problem. Same type of
problem I am facing while using multibox in Struts framework. Let me give
you little details :

I have an array of object which I want to display on my jsp page, also I
want to show check box, which I have defined as a String array in my Form
Bean.

Page is coming fine but after clicking some of the check box and submitting
the form, I am getting the String Array for check box with different length.

May be I am unable to make you understand my problem therefore I am sending
you my ActionClass, ActionForm and JSP.

My Question is : How I can get the Same String Array for check box with
changed value ?


<>  <>
<>

It will be grate if you can help to resolv the problem

Thanks

Mrinal



_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: problem in including file in INCLUDE TAG in jsp

2001-08-22 Thread Dave Van Even
Title: AW: SilverStream behind firewall



take a look at this little info I wrote on 
wsabstract.com
 
http://freewarejava.com/ubb/Forum5/HTML/002761.html

  - Original Message - 
  From: 
  Anwar 
  Sadat 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Wednesday, August 22, 2001 1:28 
  PM
  Subject: RE: problem in including file in 
  INCLUDE TAG in jsp
  
  Hi
    Thanx for the response.
   
  Still  i am having a problem in running the 
  jsp.
  I am 
  running this on WebSphere 3.5. I am using the servlet engine of WebSphere to 
  run my jsp's.
  The 
  rest of the lines are being compiled except for this.
   
  The 
  error that it throws is SERVLET EXCEPTION
   
  regards
  Anwar
  
-Original Message-From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]]Sent: 
Wednesday, August 22, 2001 4:09 PMTo: 
[EMAIL PROTECTED]Subject: RE: problem in including 
file in INCLUDE TAG in jsp
Hi 
Anwar,
 
If 
you want to include dynamically, you should use this 
action
 

 
Regards,
Thai 

  -Original Message-From: Anwar Sadat 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 22, 
  2001 5:21 PMTo: 
  '[EMAIL PROTECTED]'Subject: problem in including 
  file in INCLUDE TAG in jsp
  Hi all,
     I have a problem in including a html 
  file in the JSP file. 
  I have a 2 jsp's. The first jsp has a submit 
  button.
  When i click on this submit button, I pass the 
  filename as hidden type.
  I get this hidden variable in my next 
  jsp.
  I will am trying to include this 
  hidden variable in my include tag.
   
  here is the code 
  snippet.
   
  first JSP.
   
  
  
   
  My second JSP 
  <% String sUrl = request.getParameter("url"); 
  %>
   
  <%@ include file="<%=sUrl%>" 
  %>
   
   
  Is this correct.. I am having 
  problems in compiling the second JSP..
   
  Kindly help me regarding this. 
  
  Quick response is 
  appreciated.
   
  Thanx in 
advance.
   
  Regards
  Anwar 
K


Re: caching

2001-08-22 Thread Craig R. McClanahan



On Wed, 22 Aug 2001, Rakesh wrote:

> what would it take to make parts of the struts-config readable from a
> database ?
>

You would need to subclass ActionServlet and override the initMapping()
method (where struts-config.xml is actually parsed), and replace it with
appropriate functionality to configure the mappings (and so on) from your
database instead.

The rest of Struts does not care at all where these things were configured
from -- it only wants the collections that are made available as servlet
context attributes, so this is conceptually pretty straightforward -- just
iterate through rows in your database tables and configure objects like
ActionMapping instances, and call methods like addMapping() to register
them.

>
>  Rakesh Ayilliath
> (Software Engineer)
>

Craig McClanahan




Re: HELP : Old HTML property tag for readonly field doesn't existin the new release of strust

2001-08-22 Thread Craig R. McClanahan



On Wed, 22 Aug 2001, MALBEQUI Stephane wrote:

> Hi,
>
> the old Struts User's Guide talk about a html tag call property, see the
> description below :
>
> property displays the named bean property within a form -- use it instead of
> text for properties that should be read only.
>
> My problem is that this tag doesn't exist in the new release of strust, so
> my question is :
>
> which tag to use to perform this task without using a html:text tag with a
> readonly=true ?
>

You can use  to generate read-only output from properties of
your form bean, just like you can from any other bean -- so that is
probably the easiest way to do it.

At present, you have to code the name of the form bean into the
 tag for this.  In 1.1 development we'll look at how to avoid
the need for this, and/or provide an  tag that does it for
you.

> Thanx in advance.
>
> Regards
> Stephane M.

Craig





RE: location of ApplicationResources.properties...

2001-08-22 Thread MALBEQUI Stephane

Hi,

in the web.xml file when you configure the action servlet, the parameter
application says where to find the ApplicationResources.properties file
(like a java class), in the case below the ApplicationResources.properties
must be in the WEB-INF/classes/org/apache/struts/webapp/example directory


  
  
action
org.apache.struts.action.ActionServlet

  application
 
org.apache.struts.webapp.example.ApplicationResources



Hope this helps.

Stephane M

-Message d'origine-
De : Howie [mailto:[EMAIL PROTECTED]]
Envoyé : Wednesday, August 22, 2001 5:15 PM
À : [EMAIL PROTECTED]
Cc : [EMAIL PROTECTED]
Objet : location of ApplicationResources.properties...



where does ApplicationResources.properties have to be to get things to
Just Work(tm) ?  i've put it in
WEB-INF/classes/my/package/tree/ApplicationResources.properties,
WEB-INF/classes, WEB-INF, the app root, etc.  but struts ( bean:message )
still cant manage to find something thats in the .properties file.
interestingly, the struts example apps have no problems with grabbing info
from the .properties file.  they can even look at _my_ properties file,
but as soon as i try to use it in my app, no go.

---
Howie <[EMAIL PROTECTED]>   URL: http://www.toodarkpark.org
 "This sort of thing has cropped up before and has always been
  due to human error." -- HAL



- (on srvmtp01.unibail.fr)

This message is confidential; its contents do not constitute a commitment 
by the sender's society except where provided for in a written agreement
between you and sender's society. Any unauthorised disclosure, use or 
dissemination, either whole or partial, is prohibited. If you are not the intended 
recipient of the message, please notify the sender immediately.

Ce message est confidentiel ; son contenu ne represente en aucun cas un 
engagement de la part de la societe de l'emetteur sous reserve de tout accord 
conclu par ecrit entre vous et la societe de l'emetteur. Toute publication, 
utilisation ou diffusion, meme  partielle, doit etre autorisee prealablement. 
Si vous n'etes pas destinataire de ce message, merci d'en avertir immediatement 
l'expediteur.  

-



RE: location of ApplicationResources.properties...

2001-08-22 Thread Toni Charlot

Did you also put the new uri in the web.xml file as a parameter value for
the ActionServlet?

-Original Message-
From: Howie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 11:15 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: location of ApplicationResources.properties...



where does ApplicationResources.properties have to be to get things to
Just Work(tm) ?  i've put it in
WEB-INF/classes/my/package/tree/ApplicationResources.properties,
WEB-INF/classes, WEB-INF, the app root, etc.  but struts ( bean:message )
still cant manage to find something thats in the .properties file.
interestingly, the struts example apps have no problems with grabbing info
from the .properties file.  they can even look at _my_ properties file,
but as soon as i try to use it in my app, no go.

---
Howie <[EMAIL PROTECTED]>   URL: http://www.toodarkpark.org
 "This sort of thing has cropped up before and has always been
  due to human error." -- HAL









RE: [URI];jsessionid=iyn9hmlc31

2001-08-22 Thread Marcel Andres

this is the session-id you are working with.

marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 5:12 PM
To: [EMAIL PROTECTED]
Subject: [URI];jsessionid=iyn9hmlc31


Hi,

When a construct a form with tag 

 

I've got this : 


  

What is jsessionid ?


___
Do You Yahoo!? -- Vos albums photos en ligne, 
Yahoo! Photos : http://fr.photos.yahoo.com



Re: Work Flow Question

2001-08-22 Thread Bob Byron

Although I have not yet tried it, you might consider
subclassing your WizardAction.  WizardAction would
have all of the methods necessary to perform the
entire task, then have one subclass for each of the
steps all the while using the same WizardForm.

WizardAction extends Action
WizardStep1Action extends WizardAction.
WizardStep2Action extends WizardAction.

This would allow you to map the seperate steps into
the struts-config file where they are identifiable and
the forwards are configurable, but still maintain the
majaority of the business logic in one class.

Bob Byron


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


Re: location of ApplicationResources.properties...

2001-08-22 Thread Jonathan M Crater

are you passing your properties file to your action servlet in web.xml? for
example:


action
org.apache.struts.action.ActionServlet


application
fullyQualified.pathTo.propertiesFile





Howie wrote:

> where does ApplicationResources.properties have to be to get things to
> Just Work(tm) ?  i've put it in
> WEB-INF/classes/my/package/tree/ApplicationResources.properties,
> WEB-INF/classes, WEB-INF, the app root, etc.  but struts ( bean:message )
> still cant manage to find something thats in the .properties file.
> interestingly, the struts example apps have no problems with grabbing info
> from the .properties file.  they can even look at _my_ properties file,
> but as soon as i try to use it in my app, no go.
>
> ---
> Howie <[EMAIL PROTECTED]>   URL: http://www.toodarkpark.org
>  "This sort of thing has cropped up before and has always been
>   due to human error." -- HAL





location of ApplicationResources.properties...

2001-08-22 Thread Howie


where does ApplicationResources.properties have to be to get things to
Just Work(tm) ?  i've put it in
WEB-INF/classes/my/package/tree/ApplicationResources.properties,
WEB-INF/classes, WEB-INF, the app root, etc.  but struts ( bean:message )
still cant manage to find something thats in the .properties file.
interestingly, the struts example apps have no problems with grabbing info
from the .properties file.  they can even look at _my_ properties file,
but as soon as i try to use it in my app, no go.

---
Howie <[EMAIL PROTECTED]>   URL: http://www.toodarkpark.org
 "This sort of thing has cropped up before and has always been
  due to human error." -- HAL






RE: Help with logic:iterate

2001-08-22 Thread Aparna Tula

If you use the  tag, it should be pretty simple. Since you
already have a collection of "songs" with each "song" having properties
for the label and value, you should be able to use this.

<% Collection songs = SongCache.getInstance().fetchAll(); %>

  


- Aparna


-Original Message-
From: Shriver, Ryan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 11:03 AM
To: '[EMAIL PROTECTED]'
Subject: Help with logic:iterate


Hello,
I have a Collection that I'd like to iterate over and display using
Struts.
I've been unsuccessful to this point and I'm in hopes someone can tell
me
what's wrong.

This works for populating a select list with values from the collection:

<% Collection songs = SongCache.getInstance().fetchAll(); %>

 <% 
 Iterator iterator = songs.iterator();
 while (iterator.hasNext()) {
   Song song = (Song)iterator.next();
 %>
  
<%= song.getName() %>
  
 <%
 } // while
 %>


This is what I'm trying and does not work. Any clues?

<% Collection songs = SongCache.getInstance().fetchAll(); %>

 
  ">

  
 


I get the error:
org.apache.jasper.compiler.ParseException: Attribute element has no
value

Also, does anyone know how to convert:
  <% Collection songs = SongCache.getInstance().fetchAll(); %>
into a ? After reading the documentation it doesn't seem
possible. songs can't be set with request.setAttribute() b/c this page
is
loaded via a hyperlink that doesn't go through an Action.

Thanks in advance.

-ryan

PS. Struts 1.0 on JBoss 2.2.2 w/embedded Tomcat 3.2.2




[URI];jsessionid=iyn9hmlc31

2001-08-22 Thread emmanuel.boudrant

Hi,

When a construct a form with tag 

 

I've got this : 


  

What is jsessionid ?


___
Do You Yahoo!? -- Vos albums photos en ligne, 
Yahoo! Photos : http://fr.photos.yahoo.com


Help with logic:iterate

2001-08-22 Thread Shriver, Ryan

Hello,
I have a Collection that I'd like to iterate over and display using Struts.
I've been unsuccessful to this point and I'm in hopes someone can tell me
what's wrong.

This works for populating a select list with values from the collection:

<% Collection songs = SongCache.getInstance().fetchAll(); %>

 <% 
 Iterator iterator = songs.iterator();
 while (iterator.hasNext()) {
   Song song = (Song)iterator.next();
 %>
  
<%= song.getName() %>
  
 <%
 } // while
 %>


This is what I'm trying and does not work. Any clues?

<% Collection songs = SongCache.getInstance().fetchAll(); %>

 
  ">

  
 


I get the error:
org.apache.jasper.compiler.ParseException: Attribute element has no value

Also, does anyone know how to convert:
  <% Collection songs = SongCache.getInstance().fetchAll(); %>
into a ? After reading the documentation it doesn't seem
possible. songs can't be set with request.setAttribute() b/c this page is
loaded via a hyperlink that doesn't go through an Action.

Thanks in advance.

-ryan

PS. Struts 1.0 on JBoss 2.2.2 w/embedded Tomcat 3.2.2




Re: Population of form in case of errors

2001-08-22 Thread Gregor Rayman

"Ralph vd Houdt" <[EMAIL PROTECTED]> wrote:



> Hi All,
> 
> I have a form wich get default values from a bean. with the name and
> property tags of the html:text tag. When the form has errors using the
> validate(ActionMapping mapping,HttpServletRequest request) method the field
> don't get repopulated with the text I it changed to. But it gets the calues
> from the bean again.
> 
> Is there a workaround?

If it is a request scoped form, then the form bean you use to display
values in JSP differs from the one which is populated from the request.

Each request gets its own fresh and empty form bean and this bean is
then populated from the request. No action is activated to pre-populate
the form.

One possible sulution for this problem would be to insert a 
for each . This assures, the form properties to be filled.


Groetjes

--
gR




Re: Relative URL problem in action taglib processing

2001-08-22 Thread Bill Clinton

David,
  I am doing something similiar in an application I am working on. 
While I am not stripping the slash, I am modifying the path returned by 
an action mapping by adding parameters to it without modifying any 
Struts code.

I recommend this solution (or something similar):  Write an extension of 
ActionForward called SlashlessActionForward.  Make the constructor of 
this object take an Action forward object like this:

 public SlashlessActionForward(ActionForward forward) {

 setName(forward.getName());
 setPath(forward.getPath());
 setRedirect(forward.getRedirect());

 }

now, override the getPath() method to return the path without the slash.
(you would also need to overide setPath() to set a String property in 
your class)

you can now use this in an ActionClass perform method like this:

SlashlessActionForward forward =
new SlashlessActionForward(mapping.findForward("success"));
return forward;


Bill

[EMAIL PROTECTED] wrote:

-snip-
> As a result, we are considering hacking the Struts code in a couple of
> places to strip the absolute slash off of the front of the action
> reference path name before writing the HTML, and then re-adding it back
> again on the action mapping.  After some investigation, it appears that
> this hack can be isolated to two spots:
> ew taglibs for the rest of time.
-snip-
> Preliminary testing would indicate that this hack does seem to work, but
> I can't help but wonder: are we missing something?  Is there an easier,
> more elegant way to achieve relative paths in action parameter
> references?
> 
> Thanks,
> 
> David McLure
> 
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]




Population of form in case of errors

2001-08-22 Thread Ralph vd Houdt

Hi All,

I have a form wich get default values from a bean. with the name and
property tags of the html:text tag. When the form has errors using the
validate(ActionMapping mapping,HttpServletRequest request) method the field
don't get repopulated with the text I it changed to. But it gets the calues
from the bean again.

Is there a workaround?

Greetings Ralph





RE: Dates and Struts

2001-08-22 Thread Ravindran Ramaiah

We have developed a utility class for Date manipulation.
Attached the java file.

Hope this helps.
Thanks
Ravi


-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 8:01 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Dates and Struts


"Matt Raible" <[EMAIL PROTECTED]> wrote:


> Is it true that Struts cannot handle a java.sql.Date or java.util.Date
> datatype?  I seem to get errors everytime I try to have one in my form.
>
> Thanks,
>
> Matt

No it cannot. Date is not so easy to parse since it is locale dependent.
Also the displaying a date is not easy.

This brings me to one general architecture question:

Where do you (I mean all struts users) put the formatting/parsing´of
values?

For display only data, I try to put it into the JSP (with custom tags).

But what about the editable data? Is the ActionForm the right place?

I store the data in non-string form (like Date) and the get/set methods
operate with strings. The language dependent formats use an addiotional
property "locale" which I set either in the reset() method (from request
and session).

It could be done simpler, I used only string aware ActionForms and the
whole formatting were done in Action.perform, but this wouldn't be conform
with the MVC pattern, woul'd it?

--
gR


 StrutsDate.java


Re: radio select

2001-08-22 Thread SUPRIYA MISRA

suggestion:-you may need to reset the value in the form bean


WARNING: In order to correctly recognize cases where none of the associated 
radios are selected, the ActionForm bean associated with this form must 
include a statement setting the corresponding array to zero length in the 
reset() method.




>From: "Bille Madsen" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: radio select
>Date: Wed, 22 Aug 2001 11:35:14 +0200
>
>
>Hi,
>
>I have the following code:
>
>
>
>
>
>
>Just two normal radiobuttons, have do I use the 'selected'-option which 
>html
>provide?
>If the user select one the radio-buttons and come back to the page later,
>none of the radio-buttons are selected, but all other info is still
>presented(struts text-fields and so on).
>By the way, I get the values correct in the formbean, so no problem 
>there...
>
>Anyone having a answer?
>
>Thanks
>
>Bille
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Struts+Jbuilder5 : Invocation error

2001-08-22 Thread bruno . o . faure

Hi all,

I'm trying to use Struts with JBuilder5. I've followed the steps described
by Anthony Martin (http://www1.tramsasp.com/?section=dev), but I get an
invocation error on index.jsp when I right-click WebRun :

C:\jbuilder5\jdk1.3\bin\java -classpath "[...]" org.apache.jasper.JspC
-d 
"D:/jbuilder5/jakarta-tomcat-3.2.1/webapps/strutsblank/classes/Temporary_Files/_jsp_/strutsBlank"
-p "" -c index_0002ejsp_jsp -uriroot 
"D:/jbuilder5/jakarta-tomcat-3.2.1/webapps/strutsblank"
"D:/jbuilder5/jakarta-tomcat-3.2.1/webapps/strutsblank/index.jsp"
"index.jsp": Invocation Error

If I access the application web directly through Tomcat, everything is Ok,
so it's should something with JBuider environnement...

Any idea ?

Regards

Bruno



This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.



  with

2001-08-22 Thread David Corbin

I'm using bean:write to populate a table.  When a string is empty, I
(sometimes) need to put out " " so that the tables borders look right.
I've found that I can do this directly (setting the bean property), so what
should I do?

David Corbin





Problem with html:select multiple=true and enctype=multipart/from-data

2001-08-22 Thread Bar³omiej Paw³owski

Hi everyone
I have the following in a form in a jsp:
  
  
   
 
  

 In ActionFrom I have following methods:
public void setKeys(Object[] keys) {
this.keys = keys;
}
public Object[] getKeys() {
return this.keys;
}

and when I hit submit everything is OK.
i.e. keys.length = 0,1,2,3,4,5,6,

but when I add
method="post" enctype="multipart/form-data"
keys.length always equals 0 or 1
why?

could someone point me to the solution, please ?

Thanx
Bartek
Poland




Re: Dates and Struts

2001-08-22 Thread Gregor Rayman

"Matt Raible" <[EMAIL PROTECTED]> wrote:


> Is it true that Struts cannot handle a java.sql.Date or java.util.Date
> datatype?  I seem to get errors everytime I try to have one in my form.
>
> Thanks,
>
> Matt

No it cannot. Date is not so easy to parse since it is locale dependent.
Also the displaying a date is not easy.

This brings me to one general architecture question:

Where do you (I mean all struts users) put the formatting/parsing´of
values?

For display only data, I try to put it into the JSP (with custom tags).

But what about the editable data? Is the ActionForm the right place?

I store the data in non-string form (like Date) and the get/set methods
operate with strings. The language dependent formats use an addiotional
property "locale" which I set either in the reset() method (from request
and session).

It could be done simpler, I used only string aware ActionForms and the
whole formatting were done in Action.perform, but this wouldn't be conform
with the MVC pattern, woul'd it?

--
gR




FW: Dates and Struts

2001-08-22 Thread Ben Jessell



-Original Message-
From: Ben Jessel 
Sent: 22 August 2001 12:44
To: '[EMAIL PROTECTED]'
Subject: RE: Dates and Struts


Yes - I've looked at the code and it doesn't. Best bet is to have a String
injector/selector, then validate this in the validate() method of the form.
The way I have done it is to have 'String only' injectors/selectors,
validate the fields in validate() method of the form, then write a procedure
'toBean' in my form, which is called by perform() in my Action class, which
returns a representation of my form with the correct types.

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: 22 August 2001 12:39
To: [EMAIL PROTECTED]
Subject: Dates and Struts


Is it true that Struts cannot handle a java.sql.Date or java.util.Date
datatype?  I seem to get errors everytime I try to have one in my form.

Thanks,

Matt

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


=**

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

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

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

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

**=



RE: Dates and Struts

2001-08-22 Thread Ben Jessell

Yes - I've looked at the code and it doesn't. Best bet is to have a String
injector/selector, then validate this in the validate() method of the form.
The way I have done it is to have 'String only' injectors/selectors,
validate the fields in validate() method of the form, then write a procedure
'toBean' in my form, which is called by perform() in my Action class, which
returns a representation of my form with the correct types.

-Original Message-
From: Matt Raible [mailto:[EMAIL PROTECTED]]
Sent: 22 August 2001 12:39
To: [EMAIL PROTECTED]
Subject: Dates and Struts


Is it true that Struts cannot handle a java.sql.Date or java.util.Date
datatype?  I seem to get errors everytime I try to have one in my form.

Thanks,

Matt

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


=**

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

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

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

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

**=



Dates and Struts

2001-08-22 Thread Matt Raible

Is it true that Struts cannot handle a java.sql.Date or java.util.Date
datatype?  I seem to get errors everytime I try to have one in my form.

Thanks,

Matt

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


RE: problem in including file in INCLUDE TAG in jsp

2001-08-22 Thread Anwar Sadat
Title: AW: SilverStream behind firewall



Hi
  
Thanx for the response.
 
Still  i am having a problem in running the 
jsp.
I am 
running this on WebSphere 3.5. I am using the servlet engine of WebSphere to run 
my jsp's.
The 
rest of the lines are being compiled except for this.
 
The 
error that it throws is SERVLET EXCEPTION
 
regards
Anwar

  -Original Message-From: Thai Thanh Ha 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 22, 2001 4:09 
  PMTo: [EMAIL PROTECTED]Subject: RE: problem 
  in including file in INCLUDE TAG in jsp
  Hi 
  Anwar,
   
  If 
  you want to include dynamically, you should use this 
action
   
  
   
  Regards,
  Thai 
  
  
-Original Message-From: Anwar Sadat 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 22, 2001 
5:21 PMTo: '[EMAIL PROTECTED]'Subject: 
problem in including file in INCLUDE TAG in jsp
Hi 
all,
   I have a problem in including a html 
file in the JSP file. 
I 
have a 2 jsp's. The first jsp has a submit button.
When i click on this submit button, I pass the 
filename as hidden type.
I 
get this hidden variable in my next jsp.
I will am trying to include this hidden variable in 
my include tag.
 
here is the code snippet.
 
first JSP.
 


 
My second JSP 
<% String sUrl = request.getParameter("url"); 
%>
 
<%@ include file="<%=sUrl%>" 
%>
 
 
Is this correct.. I am having problems in compiling 
the second JSP..
 
Kindly help 
me regarding this. 
Quick response is appreciated.
 
Thanx in advance.
 
Regards
Anwar 
K


Re: caching

2001-08-22 Thread Rakesh

what would it take to make parts of the struts-config readable from a
database ?


 Rakesh Ayilliath
(Software Engineer)

Synergy IT Innovations Pvt Ltd,
#196, 1st Floor, 9th Cross,
HMT Layout, RT Nagar
Bangalore 560032

[EMAIL PROTECTED]

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Struts User" <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 4:42 AM
Subject: Re: caching


>
>
> On Tue, 21 Aug 2001, David Corbin wrote:
>
> > Will Struts detect that the struts-configl.xml file has changed and
reload
> > it automatically?
> >
>
> Not at present.
>
> There is a standard action (org.apache.struts.actions.ReloadAction) that
> you can arrange to trigger when you know this has happened (if you
> configure it in your original struts-config.xml first :-), or you can use
> the application reload facilities of your servlet container.
>
> > Thanks.
> >
> >
>
> Craig
>
>
>



RE: problem in including file in INCLUDE TAG in jsp

2001-08-22 Thread Malcolm Wise
Title: AW: SilverStream behind firewall



Anwar,
 
I don't think you can use expressions in an include 
directive.
Try

 
Malc
 
-Original Message-From: Anwar Sadat 
[mailto:[EMAIL PROTECTED]]Sent: 22 August 2001 
11:21To: '[EMAIL PROTECTED]'Subject: problem 
in including file in INCLUDE TAG in jsp
Hi 
all,
   I have a problem in including a html file 
in the JSP file. 
I have 
a 2 jsp's. The first jsp has a submit button.
When i 
click on this submit button, I pass the filename as hidden 
type.
I get 
this hidden variable in my next jsp.
I will am trying to include this hidden variable in my 
include tag.
 
here is the code snippet.
 
first JSP.
 


 
My second JSP 
<% 
String sUrl = request.getParameter("url"); %>
 
<%@ 
include file="<%=sUrl%>" %>
 
 
Is this correct.. I am having problems in compiling the 
second JSP..
 
Kindly help me 
regarding this. 
Quick response is appreciated.
 
Thanx in advance.
 
Regards
Anwar K


RE: problem in including file in INCLUDE TAG in jsp

2001-08-22 Thread Thai Thanh Ha
Title: AW: SilverStream behind firewall



Hi 
Anwar,
 
If you 
want to include dynamically, you should use this action
 

 
Regards,
Thai 


  -Original Message-From: Anwar Sadat 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, August 22, 2001 
  5:21 PMTo: '[EMAIL PROTECTED]'Subject: 
  problem in including file in INCLUDE TAG in jsp
  Hi 
  all,
     I have a problem in including a html 
  file in the JSP file. 
  I 
  have a 2 jsp's. The first jsp has a submit button.
  When 
  i click on this submit button, I pass the filename as hidden 
  type.
  I 
  get this hidden variable in my next jsp.
  I will am trying to include this hidden variable in my 
  include tag.
   
  here is the code snippet.
   
  first JSP.
   
  
  
   
  My second JSP 
  <% String sUrl = request.getParameter("url"); 
  %>
   
  <%@ include file="<%=sUrl%>" 
  %>
   
   
  Is this correct.. I am having problems in compiling 
  the second JSP..
   
  Kindly help me 
  regarding this. 
  Quick response is appreciated.
   
  Thanx in advance.
   
  Regards
  Anwar 
K


problem in including file in INCLUDE TAG in jsp

2001-08-22 Thread Anwar Sadat
Title: AW: SilverStream behind firewall



Hi 
all,
   I have a problem in including a html file 
in the JSP file. 
I have 
a 2 jsp's. The first jsp has a submit button.
When i 
click on this submit button, I pass the filename as hidden 
type.
I get 
this hidden variable in my next jsp.
I will am trying to include this hidden variable in my 
include tag.
 
here is the code snippet.
 
first JSP.
 


 
My second JSP 
<% 
String sUrl = request.getParameter("url"); %>
 
<%@ 
include file="<%=sUrl%>" %>
 
 
Is this correct.. I am having problems in compiling the 
second JSP..
 
Kindly help me 
regarding this. 
Quick response is appreciated.
 
Thanx in advance.
 
Regards
Anwar K


HELP : Old HTML property tag for readonly field doesn't exist in the new release of strust

2001-08-22 Thread MALBEQUI Stephane

Hi,

the old Struts User's Guide talk about a html tag call property, see the
description below :

property displays the named bean property within a form -- use it instead of
text for properties that should be read only. 

My problem is that this tag doesn't exist in the new release of strust, so
my question is : 

which tag to use to perform this task without using a html:text tag with a
readonly=true ?

Thanx in advance.
 
Regards
Stephane M.

- (on srvmtp01.unibail.fr)

This message is confidential; its contents do not constitute a commitment 
by the sender's society except where provided for in a written agreement
between you and sender's society. Any unauthorised disclosure, use or 
dissemination, either whole or partial, is prohibited. If you are not the intended 
recipient of the message, please notify the sender immediately.

Ce message est confidentiel ; son contenu ne represente en aucun cas un 
engagement de la part de la societe de l'emetteur sous reserve de tout accord 
conclu par ecrit entre vous et la societe de l'emetteur. Toute publication, 
utilisation ou diffusion, meme  partielle, doit etre autorisee prealablement. 
Si vous n'etes pas destinataire de ce message, merci d'en avertir immediatement 
l'expediteur.  

-



Problem with templates(?)

2001-08-22 Thread keilhofh

Hello,

I am using weblogic server 5.1 (sp8) and struts 1.0 with jdk1.3.0_02
In a startup.jsp I'm putting a bean into the session and then I forward to the login page where I want to use the bean.

If I do this the very first time after server startup, the constructor for the bean I am using is called twice (!!). 

After startup.jsp I enter the page login.jsp which calls the constructor another time and my settings are gone :-(

This happens only if the pages (_startup.java, _login.java) are not generated (only the first time). If I enter the startup 
page later, then the constructor is only called once (if I have a new client) or never if the client remains the same.
This is the expected behavior.

Does anybody have similar experiences?? 

Do I have to change settings in weblogic.properties  or  web.xml ??? Is this a struts problem??

What makes matters more complicated I use templates: the login page uses the struts template and fills the page with 
sidebar.jsp and loginContent.jsp. In the loginContent.jsp I include a header.jsp page which uses the bean I initialized 
in startup.jsp.

In the logs I can see the constructor-log just after the following lines:

Mi Aug 22 10:52:11 GMT+02:00 2001:  resolving taglib uri '/WEB-INF/struts-bean.tld' to tagl
ib-location /WEB-INF/struts-bean.tld:
Mi Aug 22 10:52:11 GMT+02:00 2001:  resolving taglib uri '/WEB-INF/struts-html.tld' to tagl
ib-location /WEB-INF/struts-html.tld:
Mi Aug 22 10:52:12 GMT+02:00 2001:  resolving taglib uri '/WEB-INF/struts-logic.tld' to tag
lib-location /WEB-INF/struts-logic.tld:
[DEBUG] 2001-08-22 10:52:13,633 navigation.navigation  <<->> constructor call

I added logs after every jsp:usebean -tag but these logs are documenting that no constructor is called, if the bean is already in the session.
So I don't know where this constructor call really comes from?? I couldn't find a class.instantiate in the _template.java 
nor in other pages where it shouldn't happen...

Any help is appreciated.






AW: SilverStream behind firewall

2001-08-22 Thread Stuber Urs

We got the following explanations from SilverStream:


If the server running the struts application does not have access to the
apache site for to get the dtd, the dtd must effectively be placed on the
local file system.

SilverStream searches relative to the $SILVERSTREAM_HOME/bin directory

For

 

struts-config_1_0.dtd must be placed in $SILVERSTREAM_HOME/bin.


To place struts-config_1_0.dtd in $SILVERSTREAM_HOME/dtd_catalog use
 


Another possibility is to avoid dtd validation at all when deploying to
production. Only validate the dtd at development and test where the place of
the dtd is not that important, but where checking validity can be inportant.
To do this:

Add a new init parameter to web.xml for the action servlet...


validating
false


This is DIFFERENT that the 'validate' param which you probably already have.
Don't include the DTD reference in you struts-config.xml file and this
should all work. For more info on the validating param see the javadoc for
the main action controller servlet. You won't need to bother with the
resource DTD catalog stuff, and your WAR should now be portable to any J2EE
app server without requiring pre-configuring. 
===

As a matter of fact, we got the struts-example running either with this
information or with your suggestion. We still advice not to use a reference
to localhost because afterwards the app server 3.7.3 definitely hangs and a
silvermasterinit is necessary.

Urs

> -Ursprüngliche Nachricht-
> Von:  Ryan Cornia [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Freitag, 17. August 2001 23:04
> An:   [EMAIL PROTECTED]
> Betreff:  Re: SilverStream behind firewall
> 
> I have the same problem with SilverStream 3.7.2.
> 
> My solution was to change the  DOCTYPE to -
> 
> 
> 
> Then put struts-config_1_0.dtd in the SilverStream37\bin directory. I'm
> not satisfied with this solution, but it's the best I could come up
> with... Let me know if you find a better solution.
> 
> 
> HTH,
> Ryan
> 
> >>> [EMAIL PROTECTED] 08/17/01 01:26PM >>>
> Hi
> 
> Like some other people before, I get the error 
> 
>  resolveEntity('-//Apache Software Foundation//DTD Struts
> Configuration 1.0//EN',
> 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd') 
>  Not registered, use system identifier
> 
> when I want to deploy a struts app, sitting behind a firewall. I've tried
> several possibilities which helped users with other app servers, but I
> was't
> able to get it running with SilverStream. Neither worked e.g. using
> "http://localhost:80/myDB/app/dtd/struts-config_1_0.dtd"; nor using
> "c://SilverStream37/Resources/DTDCatalog/struts-config_1_0.dtd". I tried
> to
> add a struts-config_1_0.dtd entry to the index.props file in the
> DTDCatalog
> directory, but this didn't help either.
> 
> Has anybody a solution which works with SilverStream (I use 3.7.3)? Or did
> I
> do something wrong?
> 
> Thanks
> Urs
> 
> 
> 
>>> Rentenanstalt/Swiss Life - Official Partner Expo.02 <<<



radio select

2001-08-22 Thread Bille Madsen


Hi,

I have the following code:






Just two normal radiobuttons, have do I use the 'selected'-option which html
provide?
If the user select one the radio-buttons and come back to the page later,
none of the radio-buttons are selected, but all other info is still
presented(struts text-fields and so on).
By the way, I get the values correct in the formbean, so no problem there...

Anyone having a answer?

Thanks

Bille




RE: html:link

2001-08-22 Thread Marcel Andres

Hello Bernhard,

I am not sure if I got your problem right. Do you want to format the link name or the 
link itself?

If you want to format the link, I would try to do someting like:

">

I did not create a link like this before, but I use a similar construct, where I 
access the value of a bean property. This is not using the sturts  tag, but 
it should work, too.

Marcel

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 10:28 AM
To: [EMAIL PROTECTED]
Subject: html:link



I have a  tag in which I list items to a table. In a column
at the right side I want to add a "details" link which should link to
detailed information of this item.

How can I use the  tag delivering a code of an item in my
iteration loop to my action?



  

  
  



   details
  





This is my iteration tag. In the 3rd row I want a link which calls the
action "main" and the "code" from the 1st row should be delivered.

Thanks for any help!

B.



RE: Struts with WebSphere 3.5.4 on AIX

2001-08-22 Thread Edelmiro Estevez

This works fine for me

1 Start up the adminserver.
2 Start up Admin Console.
3 Select "Servlet 2.2/JSP 1.1 Full Compliance Mode for the Default Servlet
Engine. Restart the Default Server.
4 Use the Convert War file task to convert the struts-example.war from the
struts distrib as-is.
Convert to the default_server, default servlet engine and standard install
directory
5 Click on struts-example in the Admin Console under Default Server/Default
Servlet Engine and click the advanced tab on the right hand side of the
screen.
   -Add ./AppServer/hosts/default_host/struts-example/web to the
ClassPath
   -Down where it says Default Error Page, enter /ErrorReporter and then
click Apply.
6 Edit the struts-config.xml and web.xml to point the DTD file to local
system as:
   
   
7 Copy struts-config_1_0.dtd, web-app_2_2.dtd and web-app_2_3.dtd from
struts.jar to /AppServer/dtd (you have to create this dir).
8 Replace the struts.jar at
.../AppServer/hosts/default_host/struts-example/servlets with the one update
the FormTag from Chris: http://www.enfused.com/struts.jar
9 Start the Default Server via the Admin Console. You should see a whole
bunch of ActionServlet messages in the default_host_stdout.log file with no
exceptions.
10 Via a browser accessed the app using
http://youraix/struts-example/index.jsp.


The other question is what is the difference between the original
FormTag.java and the modified by Chris???. The original does not work.

Edel.


-Mensaje original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Enviado el: martes 21 de agosto de 2001 12:14
Para: [EMAIL PROTECTED]
Asunto: Struts with WebSphere 3.5.4 on AIX



Hi, all

Have anyone successfully run Struts samples on AIX with WebSphere 3.5.4? I
can run the sample with WebSphere 3.5.4 on NT4 but get various errors on
AIX3.4. The error seems all related to the XML parser. I've tried
JAXP1.0.1, IBM parser and the even the one come with WebSphere, but all
failed.

Any idea? Thanks.

JiRong




html:link

2001-08-22 Thread Bernhard J. Hirschmann


I have a  tag in which I list items to a table. In a column
at the right side I want to add a "details" link which should link to
detailed information of this item.

How can I use the  tag delivering a code of an item in my
iteration loop to my action?



  

  
  



   details
  





This is my iteration tag. In the 3rd row I want a link which calls the
action "main" and the "code" from the 1st row should be delivered.

Thanks for any help!

B.




iterate in a template

2001-08-22 Thread Marion Schwarz

Hello world,

I'm trying to fill a struts template with an interate tag. The collection, an 
ArrayList, is set in the jsp page.
My Code looks like this:

JSP-Page
=
...
<%
  ArrayList testList = new ArrayList();
  testList.add("test_1");
  testList.add("test_2");
  testList.add("test_3");

  pageContext.setAttribute("testList", testList, PageContext.PAGE_SCOPE);
%>
  
  

...





Template- Page
===
<%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
<%@ taglib uri='/WEB-INF/struts-logic.tld' prefix='logic' %>
<%@ taglib uri='/WEB-INF/struts-bean.tld' prefix='bean' %>
<% Object testList = pageContext.getAttribute("testList", PageContext.PAGE_SCOPE );  %>


...
  



 




Unfortunatly I keep getting a  PageContextImpl.handlePageException.
What am I doing wrong ??


Marion






Error 500 - silly me

2001-08-22 Thread Marion Schwarz

hi ,

going through my code over and over again, I finally realized that the path of my 
action class had changed...
@-}

thanx a lot, anyway
Marion