Re: Tiles

2002-07-22 Thread Kevin Viet

Le mar 23/07/2002 à 08:32, Adarsh a écrit :
> Hi all,
> Can any body guide me on what tiles is all about...where can it be used?and
> how can it be used with struts
> Adarsh Gupta
> Software Engineer
> Patni Computer Systems Limited
> SDF-7, 4th Floor, Unit 17, SEEPZ
> Tel : (022)-8290479/8291454  Extn : 5741
> Mobile : 9820224341
> www.patni.com
> World-Wide Partnerships.World-Class Solutions.
> 
> 

Sorry I am not responding to your question but I just use your thread to
ask an another question that could help you too:
What is the difference between struts-template and tiles ?




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




Tiles

2002-07-22 Thread Adarsh

Hi all,
Can any body guide me on what tiles is all about...where can it be used?and
how can it be used with struts
Adarsh Gupta
Software Engineer
Patni Computer Systems Limited
SDF-7, 4th Floor, Unit 17, SEEPZ
Tel : (022)-8290479/8291454  Extn : 5741
Mobile : 9820224341
www.patni.com
World-Wide Partnerships.World-Class Solutions.





Not necessary to specify Tiles plugin in struts-config.xml?

2002-07-22 Thread David M. Karr

Isn't it the case that as of the latest Struts distribution, you do NOT have to
add the Tiles plugin specification to the "struts-config.xml" file?  I never
did this, and my rather simple application using Tiles works with no problem.

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


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




RE: struts-user Digest 22 Jul 2002 20:10:07 -0000 Issue 1701

2002-07-22 Thread James Mitchell

2 steps...

You must follow the link here:

mailto:[EMAIL PROTECTED]

then you must reply to the confirm-unsubscribe when it arrives.




James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Shankar, Lakshmi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 1:43 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: struts-user Digest 22 Jul 2002 20:10:07 - Issue 1701
>
>
> Please remove my mail id for the list.
>
> > -Original Message-
> > From:   James Turner [SMTP:[EMAIL PROTECTED]]
> > Sent:   Tuesday, July 23, 2002 2:44 AM
> > To: Struts Users Mailing List
> > Subject:Re: struts-user Digest 22 Jul 2002 20:10:07 - Issue 1701
> >
> >
> > >Chappell, Simon P wrote:
> > > > I say that we ask Craig McClanahan if he has a favourite
> animal ... it
> > >worked for Linus Torvalds.
> > > >
> > > > My second vote was going to be for a Rhino (my favourite), but that
> > one's
> > >taken. The only other vote I could cast would be to use a
> picture of Mark
> > >Galbreath! ;-)
> > > >
> >
> > You guys are lucky, SAMS made me take a crystal for my JSP book (I was
> > Vanilin, BTW)
> >
> > Our Struts book is going to come out under a new SAMS line,
> "Rapid Working
> >
> > Knowledge", I  have no idea what the cover style is going to be for
> > those.  The Yellow Bellied Marmot would be tempting though, given the
> > choice.
> >
> > James
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> WARNING: The information in this message is confidential and may
> be legally
> privileged. It is intended solely for the addressee.  Access to
> this message
> by anyone else is unauthorised.  If you are not the intended
> recipient, any
> disclosure, copying, or distribution of the message, or any action or
> omission taken by you in reliance on it, is prohibited and may be
> unlawful.
> Please immediately contact the sender if you have received this message in
> error. Thank you.
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread @Basebeans.com

Subject: Re: Open Source Object Caching Systems compatible with Struts
From: "Vic C." <[EMAIL PROTECTED]>
 ===
Struts CMS, issue tracking, *standard* security, etc. is at 
http://basicportal.sourceforge.net or search sourceforge for basicportal
(I work on it daily, will fix up web site)
Vic

Phase Web and Multimedia wrote:
> What is the name of the sourceforge CMS project. I would like to view it.
> Where can I get it?
> 
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws
> 
> 
> 
>>-Original Message-
>>From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
>>Sent: Monday, July 22, 2002 12:40 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: Open Source Object Caching Systems compatible with Struts
>>
>>
>>Subject: Re: Open Source Object Caching Systems compatible with Struts
>>From: "Vic C." <[EMAIL PROTECTED]>
>> ===
>>In that case I would use reg exp to replace the tokens and use Symphony
>>cache tag to store active content.
>>I would not cache inactive content.
>>And most people have very small load, less than 1000 concurrent users,
>>you might not need any caching. Only add it after you need it, I think.
>>Or maybe multiple Linux boxes are cheaper than 20 hours of en engineers
>>time to optimize it.
>>
>>hth,
>>Vic
>>
>>ps: Poolman rules!! Don't cofuse time tested and proven, with stale.
>>
>>I have a sample CMS posted on sourceforge as you know (not article
>>managment but web site content managment)
>>
>>
>>Phase Web and Multimedia wrote:
>>
>>>Basically I am developing an article management system that
>>
>>allows you to
>>
>>>interject Assests into the text of the aricle usin a token.
>>
>>When the article
>>
>>>is read from the database it goes through a parsing mechanism
>>
>>that replaced
>>
>>>the tokens with the assigned asset. The main articles will
>>
>>probably be hit
>>
>>>the most. So, it is acutally quite simple what I want to do.
>>
>>Content that is
>>
>>>not super active will be cached. I know that Commons has a pool
>>
>>api and I
>>
>>>have used poolman in the past. I was not sure if there is a difference
>>>between pooling and object caching. It seems to me that there is. Maybe
>>>someone can expound on that. Alos, I need something that can be
>>
>>implemented
>>
>>>on a webapp specific basis. Can poolman do that? P.S. I thought
>>
>>poolman was
>>
>>>done and not being actively developed anymore. I wouldn't want
>>
>>to get into a
>>
>>>stale api.
>>>
>>>Brandon Goodin
>>>Phase Web and Multimedia
>>>P (406) 862-2245
>>>F (406) 862-0354
>>>[EMAIL PROTECTED]
>>>http://www.phase.ws
>>>
>>>
>>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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




RE: struts-user Digest 22 Jul 2002 20:10:07 -0000 Issue 1701

2002-07-22 Thread Shankar, Lakshmi

Please remove my mail id for the list.

> -Original Message-
> From: James Turner [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 2:44 AM
> To:   Struts Users Mailing List
> Subject:  Re: struts-user Digest 22 Jul 2002 20:10:07 - Issue 1701
> 
> 
> >Chappell, Simon P wrote:
> > > I say that we ask Craig McClanahan if he has a favourite animal ... it
> >worked for Linus Torvalds.
> > >
> > > My second vote was going to be for a Rhino (my favourite), but that
> one's
> >taken. The only other vote I could cast would be to use a picture of Mark
> >Galbreath! ;-)
> > >
> 
> You guys are lucky, SAMS made me take a crystal for my JSP book (I was 
> Vanilin, BTW)
> 
> Our Struts book is going to come out under a new SAMS line, "Rapid Working
> 
> Knowledge", I  have no idea what the cover style is going to be for 
> those.  The Yellow Bellied Marmot would be tempting though, given the
> choice.
> 
> James
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee.  Access to this message
by anyone else is unauthorised.  If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you.

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




RE: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread James Mitchell

cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/basicporta
l login

or

cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/basicp
ortal co modulename


...password is empty [hit enter]


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 1:11 AM
> To: Struts Users Mailing List
> Subject: RE: Open Source Object Caching Systems compatible with Struts
>
>
> What is the name of the sourceforge CMS project. I would like to view it.
> Where can I get it?
>
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws
>
>
> > -Original Message-
> > From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> > Sent: Monday, July 22, 2002 12:40 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Open Source Object Caching Systems compatible with Struts
> >
> >
> > Subject: Re: Open Source Object Caching Systems compatible with Struts
> > From: "Vic C." <[EMAIL PROTECTED]>
> >  ===
> > In that case I would use reg exp to replace the tokens and use Symphony
> > cache tag to store active content.
> > I would not cache inactive content.
> > And most people have very small load, less than 1000 concurrent users,
> > you might not need any caching. Only add it after you need it, I think.
> > Or maybe multiple Linux boxes are cheaper than 20 hours of en engineers
> > time to optimize it.
> >
> > hth,
> > Vic
> >
> > ps: Poolman rules!! Don't cofuse time tested and proven, with stale.
> >
> > I have a sample CMS posted on sourceforge as you know (not article
> > managment but web site content managment)
> >
> >
> > Phase Web and Multimedia wrote:
> > > Basically I am developing an article management system that
> > allows you to
> > > interject Assests into the text of the aricle usin a token.
> > When the article
> > > is read from the database it goes through a parsing mechanism
> > that replaced
> > > the tokens with the assigned asset. The main articles will
> > probably be hit
> > > the most. So, it is acutally quite simple what I want to do.
> > Content that is
> > > not super active will be cached. I know that Commons has a pool
> > api and I
> > > have used poolman in the past. I was not sure if there is a difference
> > > between pooling and object caching. It seems to me that there
> is. Maybe
> > > someone can expound on that. Alos, I need something that can be
> > implemented
> > > on a webapp specific basis. Can poolman do that? P.S. I thought
> > poolman was
> > > done and not being actively developed anymore. I wouldn't want
> > to get into a
> > > stale api.
> > >
> > > Brandon Goodin
> > > Phase Web and Multimedia
> > > P (406) 862-2245
> > > F (406) 862-0354
> > > [EMAIL PROTECTED]
> > > http://www.phase.ws
> > >
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




August 16th, Struts Training in Atlanta, GA

2002-07-22 Thread James Mitchell

As some of you might be aware, the folks at baseBeans Engineering have
agreed to come to Atlanta.

"Discover how the Model View Control (MVC)/J2EE platform provides a number
of benefits for organizations developing intranet and Internet applications,
including a simplified development model, and greater choices in servers,
tools, and components."
  http://www.basebeans.com/


Scheduled date is 8/16.

I've already signed up.  Have you?



James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta


P.S.  If I get flamed for this.so be it.  Just trying to spread the
news.


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




RE: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread Phase Web and Multimedia

What is the name of the sourceforge CMS project. I would like to view it.
Where can I get it?

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 12:40 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Open Source Object Caching Systems compatible with Struts
>
>
> Subject: Re: Open Source Object Caching Systems compatible with Struts
> From: "Vic C." <[EMAIL PROTECTED]>
>  ===
> In that case I would use reg exp to replace the tokens and use Symphony
> cache tag to store active content.
> I would not cache inactive content.
> And most people have very small load, less than 1000 concurrent users,
> you might not need any caching. Only add it after you need it, I think.
> Or maybe multiple Linux boxes are cheaper than 20 hours of en engineers
> time to optimize it.
>
> hth,
> Vic
>
> ps: Poolman rules!! Don't cofuse time tested and proven, with stale.
>
> I have a sample CMS posted on sourceforge as you know (not article
> managment but web site content managment)
>
>
> Phase Web and Multimedia wrote:
> > Basically I am developing an article management system that
> allows you to
> > interject Assests into the text of the aricle usin a token.
> When the article
> > is read from the database it goes through a parsing mechanism
> that replaced
> > the tokens with the assigned asset. The main articles will
> probably be hit
> > the most. So, it is acutally quite simple what I want to do.
> Content that is
> > not super active will be cached. I know that Commons has a pool
> api and I
> > have used poolman in the past. I was not sure if there is a difference
> > between pooling and object caching. It seems to me that there is. Maybe
> > someone can expound on that. Alos, I need something that can be
> implemented
> > on a webapp specific basis. Can poolman do that? P.S. I thought
> poolman was
> > done and not being actively developed anymore. I wouldn't want
> to get into a
> > stale api.
> >
> > Brandon Goodin
> > Phase Web and Multimedia
> > P (406) 862-2245
> > F (406) 862-0354
> > [EMAIL PROTECTED]
> > http://www.phase.ws
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>


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




How to bind a request parameter to a tile definition ?

2002-07-22 Thread Slava_L

I often use tile's definition name as a forward in my action mappings.
Since this is not an url to direct jsp file how am i suppose to pass any request 
parametrs 
i.e 




RE: JSP Completion for Struts tags using NetBeans?

2002-07-22 Thread James Mitchell

Do you mean like this?

http://www.open-tools.org/struts-atlanta/images/convince-me.gif


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Scott Linford [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 6:09 PM
> To: Struts Users Mailing List
> Subject: RE: JSP Completion for Struts tags using NetBeans?
> 
> 
> That works for .java coding but not for JSPs.  I want to be able to type:
> 
> 
> and press Ctrl+Space and get a list of valid attributes.
> 
> - Scott
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 3:53 PM
> To: Struts Users Mailing List
> Subject: Re: JSP Completion for Struts tags using NetBeans?
> 
> 
> 
> I have found that it works well. If you right click on the struts.jar and
> update the parser database it should do what you need.
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: Tiles + ActionForm.validation - problem !

2002-07-22 Thread Slava_L

the date of my tilesForStruts1.0.jar  is 20 june 2002
which one should i use therefor if that one duz not preffered for
struts1.0.x?

- Original Message -
From: "Cedric Dumoulin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, July 22, 2002 5:58 PM
Subject: Re: Tiles + ActionForm.validation - problem !


>
>   What is the date of your tilesForStruts1.0.jar ? It looks like the
> ActionComponentServlet chocks on a new call to
> getMultipartRequestHandler(...), which has been added in Struts1.1
>
> Slava_L wrote:
>
> >Nobody meets this problem ?
> >
> >- Original Message -
> >From: "Slava_L" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, July 19, 2002 7:08 PM
> >Subject: Tiles + ActionForm.validation - problem !
> >
> >
> >Hi, list
> >I'm very new to Tiles and when i tried to bind this cool stuff to my
> >previously designed app, i  met a problem with validation.
> >I'm usin' Struts 1.0.2 stable ver. + tilesForStruts1.0.jar (external
tiles
> >lib).
> >I need my action to forward back to the same page, when any errors
appeared
> >
> >in struts-config.xml i have an action:
> >
> > >   type="mypackage.LoadSomethingAction"
> >   name="someForm" >
> > 
> >
> >to load source page and another action mapping
> > >   type="mypackage.SaveSomethingAction"
> >   name="someForm"
> >   scope="request"
> >   validate="true"
> >   input="somePage">
> > 
> >
> >for savin entered data
> >
> >in tiles-def.xml i have definition:
> >
> >  
> >
> >  
> >where some_page.jsp contains an input form.
> >
> >When validation method returns not empty ActionErrors i recieve
> >internal server error message like this one:
> >java.lang.IllegalAccessError: try to access method
>
>org.apache.struts.action.ActionForm.getMultipartRequestHandler()Lorg/apache
/
> >struts/upload/MultipartRequestHandler; from class
> >org.apache.struts.tiles.ActionComponentServlet
> > at
>
>org.apache.struts.tiles.ActionComponentServlet.processValidate(ActionCompon
e
> >ntServlet.java:167)
> > at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565)
> > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
> >
> >the question is How am i suppose to describe error page in action mapping
?
> >input ? or somehow else .
> >Help needed! (thanx a lot)
> >
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

> >
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




RE: Out of Office Response: RE: Can I read internationalized messages in Action classes ?

2002-07-22 Thread Barry Glasco


Kind of strong language for a self proclaimed "evangelist"... what 
would jesus Say?

-- Original Message --
From: "James Mitchell" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Date:  Mon, 22 Jul 2002 11:57:35 -0400

>Would someone mind removing this idiot?
>
>James Mitchell
>Software Engineer\Struts Evangelist
>Struts-Atlanta, the "Open Minded Developer Network"
>http://www.open-tools.org/struts-atlanta
>
>
>
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, July 22, 2002 10:59 AM
>> To: [EMAIL PROTECTED]
>> Subject: Out of Office Response: RE: Can I read internationalized
>> messages in Action classes ?
>> 
>> 
>> Giles Hinchliff will be away on Monday July 22, 2002
>> 
>> 
>> 
>> 
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

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




Re: Code generation

2002-07-22 Thread @Basebeans.com

Subject: Re: Code generation
From: Owen <[EMAIL PROTECTED]>
 ===
I have something for sale.

Based on the struts Framework. We call it Foundation Stone. Comes in two 
parts.

1. Web Foundation. All the classes, JSP pages, tags and configuration 
files to get the application up and running. We use Apache Tomcat with 
struts 1.0. It includes in no particular order

Connection Pooling
User Maintenance
Object Security
Menus
Database based message (taken them away from the struts XML version)

2. My favourite bit as I did most of the work for this. A Code Generator.

Utilising the Meta Data generated from a JDBC connection we are able to 
create

Browse Page (JSP)
Edit Page (JSP)
All the servlets to connect into our Foundation classes
Edits the Struts XML configuration file to set it up correctly for you.

The Browse screen includes Search functionality and the ability to delete 
a record. Also provides a hyperlink to the edit screen. And a new button 
(also to the edit screen).
The edit screen has Insert, Update functionality.
Page names and field names are based on the table names.

This is all working fully mainly on Oracle but have ported first Module 
to run against a SqlServer database using JRUN. If you're interested you 
can contact me on [EMAIL PROTECTED] I can provide you with some 
Marketing data or if you have some specific questions some real data.

We will even consider resellers.

Look forward to hearing from you

Owen Thomas


Elderclei R Reami wrote:
> Hi folks,
> 
> I am new to Struts development and am looking for tools to help me being 
> productive. Right now, I'm downloading binaries for Adalon and EasyStruts.
> 
> I'd like to know if there's any tool out there to generate a Struts 
> application, including view and model, based on database schema.
> 
> Thanks in advance.
> Elderclei R Reami
> Vertis Tecnologia - Brasil
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




Re: Code generation

2002-07-22 Thread Thomas L Roche

"Elderclei R Reami" <[EMAIL PROTECTED]> Mon, 22 Jul 2002 16:50:36
> I'd like to know if there's any tool out there to generate a Struts
> application, including view and model, based on database schema.

Just wondering: I can see how tooling might generate a model (one or
more Beans) from your schema. But how would tooling be able to know
what view you want to provide, just from your schema?


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




Re: Define Pre-selected items in

2002-07-22 Thread Billy Ng

Hey, Martin!  You've saved my life, thanks a million!

Billy Ng

- Original Message -
From: "Martin Cooper" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, July 22, 2002 2:49 PM
Subject: RE: Define Pre-selected items in 


> As long as you don't specify the 'value' attribute, and do specify the
> 'multiple' attribute, the tag will pick up the array of values from your
> name+property, and use those values to preselect the corresponding
options.
>
> --
> Martin Cooper
>
>
> > -Original Message-
> > From: Billy Ng [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 22, 2002 2:49 PM
> > To: Struts Users Mailing List
> > Subject: Define Pre-selected items in 
> >
> >
> > I have tried so many different ways to pre-selected multiple
> > items in the  tag, but no luck.  Would any body
> > please tell me how to do it, thanks!
> >
> > Billy
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>

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




RE: JSP Completion for Struts tags using NetBeans?

2002-07-22 Thread Scott Linford

Proud to be a "code weenie".

- Scott

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:57 PM
To: 'Struts Users Mailing List'
Subject: RE: JSP Completion for Struts tags using NetBeans?


dot completion is for code weenies; learn the API.

Mark

-Original Message-
From: Scott Linford [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 4:40 PM

Is there a way to enable JSP Completion (e.g. pressing Ctrl+Space for
contextual options) for Struts tags?  I'm using NetBeans 3.3.2.  If not, is
there an IDE that is Struts savvy or generally supports custom tags?

- Scott

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: JSP Completion for Struts tags using NetBeans?

2002-07-22 Thread Scott Linford

That works for .java coding but not for JSPs.  I want to be able to type:

   mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:53 PM
To: Struts Users Mailing List
Subject: Re: JSP Completion for Struts tags using NetBeans?



I have found that it works well. If you right click on the struts.jar and
update the parser database it should do what you need.


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: JSP Completion for Struts tags using NetBeans?

2002-07-22 Thread Chappell, Simon P

But how do you REALLY feel about that Mark? ;-)

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 4:57 PM
>To: 'Struts Users Mailing List'
>Subject: RE: JSP Completion for Struts tags using NetBeans?
>
>
>dot completion is for code weenies; learn the API.
>
>Mark
>
>-Original Message-
>From: Scott Linford [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 4:40 PM
>
>Is there a way to enable JSP Completion (e.g. pressing Ctrl+Space for
>contextual options) for Struts tags?  I'm using NetBeans 
>3.3.2.  If not, is
>there an IDE that is Struts savvy or generally supports custom tags?
>
>- Scott
>
>--
>To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: 
>
>

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




Re: JSP Completion for Struts tags using NetBeans?

2002-07-22 Thread Jeff_Mychasiw


I have found that it works well. If you right click on the struts.jar and
update the parser database it should do what you need.


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




RE: JSP Completion for Struts tags using NetBeans?

2002-07-22 Thread Galbreath, Mark

dot completion is for code weenies; learn the API.

Mark

-Original Message-
From: Scott Linford [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 4:40 PM

Is there a way to enable JSP Completion (e.g. pressing Ctrl+Space for
contextual options) for Struts tags?  I'm using NetBeans 3.3.2.  If not, is
there an IDE that is Struts savvy or generally supports custom tags?

- Scott

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




RE: Define Pre-selected items in

2002-07-22 Thread Martin Cooper

As long as you don't specify the 'value' attribute, and do specify the
'multiple' attribute, the tag will pick up the array of values from your
name+property, and use those values to preselect the corresponding options.

--
Martin Cooper


> -Original Message-
> From: Billy Ng [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 2:49 PM
> To: Struts Users Mailing List
> Subject: Define Pre-selected items in 
> 
> 
> I have tried so many different ways to pre-selected multiple 
> items in the  tag, but no luck.  Would any body 
> please tell me how to do it, thanks!
> 
> Billy
> 


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




Re: Code generation

2002-07-22 Thread Joe Germuska

StrutsBuilder does not do generation from database schema, but it can 
import a struts-config.xml file and then generate stub Action 
classes, JSPs, and FormBeans.  You can also specify your own struts 
config information in a SWING GUI.

Generation is driven  via Jakarta Velocity templates.  The GUI 
doesn't make it too obvious where they are right now, but in theory, 
you could use your own templates in place of ours, for example to 
include common licensing or your own local code style rules. 
(Exposing these more clearly will be part of a full 1.0 release, 
although we have no idea when that would be.)

We're designing StrutsBuilder to be able to import and build a basic 
struts model from a variety of sources.  We hadn't thought about 
doing it from a database schema, but we'd be happy to take 
suggestions such as that. (I could hazard some guesses at a Struts 
app modeled from a database, but I'd rather take input from someone 
who was actually looking at a use case for such a thing.)

StrutsBuilder is an open source project hosted at SourceForge 
  Bug reports and 
feature requests are welcome, as are developers interested in helping 
build out the application...

We expect to do a small incremental release this week to add in some 
useful functionality, including better coverage of new features of 
Struts 1.1, but you can get all of that from the SourceForge CVS if 
you're impatient...

Joe


At 1:03 PM -0700 2002/07/22, James Holmes wrote:
>The Struts Console software is good for managing
>Struts configuration files, but doesn't have any code
>generation capabilities.
>
>http://www.jamesholmes.com/struts/
>
>-james
>[EMAIL PROTECTED]
>
>
>--- Elderclei R Reami <[EMAIL PROTECTED]> wrote:
>>  Hi folks,
>>
>>  I am new to Struts development and am looking for
>>  tools to help me being
>>  productive. Right now, I'm downloading binaries for
>>  Adalon and EasyStruts.
>>
>>  I'd like to know if there's any tool out there to
>>  generate a Struts
>>  application, including view and model, based on
>>  database schema.
>>
>>  Thanks in advance.
>>  Elderclei R Reami
>>  Vertis Tecnologia - Brasil
>>
>>  --
>>  To unsubscribe, e-mail: 
>>  
>>  For additional commands, e-mail:
>>  
>>
>
>
>__
>Do You Yahoo!?
>Yahoo! Health - Feel better, live better
>http://health.yahoo.com
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 


-- 
--
* Joe Germuska{ [EMAIL PROTECTED] }
"It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records."
--Sam Goody, 1956
tune in posse radio: 

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




Define Pre-selected items in

2002-07-22 Thread Billy Ng

I have tried so many different ways to pre-selected multiple items in the 
 tag, but no luck.  Would any body please tell me how to do it, thanks!

Billy



RE: Struts OReilly Book....

2002-07-22 Thread Scott Linford

A cat is already on OReilly's UML book, but maybe you could sell them on a
different breed.

- Scott

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: Struts OReilly Book




>
> I say that we ask Craig McClanahan if he has a favourite animal ... it
> worked for Linus Torvalds.
>

My favorite animal is kinda boring (and I haven't checked it O'Reilly has
used it already), but it's a cat.

After all, cats know that they are the real "controller" of the world
... they just give you the illusion that you are in charge, by
"configuring" their food appropriate to their tastes :-).

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Struts OReilly Book....

2002-07-22 Thread Chappell, Simon P

I am also a cat lover (used to have seven back in England) and would greatly 
appreciate such a creature on the front cover. Just don't let them talk you into one 
of those fluffy ones. How about a nice Mackerel Tabby? That's my absolute favourite 
breed.

Simon

>-Original Message-
>From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 4:21 PM
>To: Struts Users Mailing List
>Subject: RE: Struts OReilly Book
>
>
>
>
>>
>> I say that we ask Craig McClanahan if he has a favourite 
>animal ... it
>> worked for Linus Torvalds.
>>
>
>My favorite animal is kinda boring (and I haven't checked it 
>O'Reilly has
>used it already), but it's a cat.
>
>After all, cats know that they are the real "controller" of the world
>... they just give you the illusion that you are in charge, by
>"configuring" their food appropriate to their tastes :-).
>
>Craig
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Struts OReilly Book....

2002-07-22 Thread Craig R. McClanahan



>
> I say that we ask Craig McClanahan if he has a favourite animal ... it
> worked for Linus Torvalds.
>

My favorite animal is kinda boring (and I haven't checked it O'Reilly has
used it already), but it's a cat.

After all, cats know that they are the real "controller" of the world
... they just give you the illusion that you are in charge, by
"configuring" their food appropriate to their tastes :-).

Craig


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




Re: struts-user Digest 22 Jul 2002 20:10:07 -0000 Issue 1701

2002-07-22 Thread James Turner


>Chappell, Simon P wrote:
> > I say that we ask Craig McClanahan if he has a favourite animal ... it
>worked for Linus Torvalds.
> >
> > My second vote was going to be for a Rhino (my favourite), but that one's
>taken. The only other vote I could cast would be to use a picture of Mark
>Galbreath! ;-)
> >

You guys are lucky, SAMS made me take a crystal for my JSP book (I was 
Vanilin, BTW)

Our Struts book is going to come out under a new SAMS line, "Rapid Working 
Knowledge", I  have no idea what the cover style is going to be for 
those.  The Yellow Bellied Marmot would be tempting though, given the choice.

James


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




JSP Completion for Struts tags using NetBeans?

2002-07-22 Thread Scott Linford

Is there a way to enable JSP Completion (e.g. pressing Ctrl+Space for
contextual options) for Struts tags?  I'm using NetBeans 3.3.2.  If not, is
there an IDE that is Struts savvy or generally supports custom tags?

- Scott


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




RE: Out of Office Response: RE: Can I read internationalized mess ages in Action classes ?

2002-07-22 Thread Chappell, Simon P

Sorry, as an Englishman living in America, I am of the opinion that it is 
linguistically unlawful to use the words "beer" and "taste" in the same sentence, 
except when pointing out that they shouldn't be in the same sentence! :-)

Simon

>-Original Message-
>From: Daniel Jaffa [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 3:11 PM
>To: Struts Users Mailing List
>Subject: Re: Out of Office Response: RE: Can I read internationalized
>mess ages in Action classes ?
>
>
>Red Stripe is a wonderful summer beer(eg not a great tasting beer but a
>refreshing summer beer to have on the beach in the islands)
>- Original Message -
>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Sent: Monday, July 22, 2002 3:03 PM
>Subject: RE: Out of Office Response: RE: Can I read 
>internationalized mess
>ages in Action classes ?
>
>
>> I feel the love
>>
>> Actually, this time two weeks from now I will be cruising 
>the Caribbean on
>> my way to the BVIs for 8 days.  This time, however, I'm 
>flying first class
>> to Miami in the hope that the first class flight attendants' IQs are
>> triple-digit.  Unfortunately, it seems the prevailing beers 
>consist of Red
>> Stripe and Carib, both the Budweasels of the tropics.  Looks 
>like lots of
>> rum umbrella drinks!
>>
>> Mark
>>
>> -Original Message-
>> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, July 22, 2002 11:57 AM
>>
>> Set Mark on them. They'll never violate the list rules again after he
>> recites his travel woes to them a couple of times! :-)
>>
>> >-Original Message-
>> >From: James Mitchell [mailto:[EMAIL PROTECTED]]
>> >Sent: Monday, July 22, 2002 10:58 AM
>> >
>> >Would someone mind removing this idiot?
>> >
>> >> -Original Message-
>> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> >> Sent: Monday, July 22, 2002 10:59 AM
>> >>
>> >> Giles Hinchliff will be away on Monday July 22, 2002
>>
>> --
>> To unsubscribe, e-mail:
>
>> For additional commands, e-mail:
>
>>
>>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




Re: Out of Office Response: RE: Can I read internationalized mess ages in Action classes ?

2002-07-22 Thread Daniel Jaffa

Red Stripe is a wonderful summer beer(eg not a great tasting beer but a
refreshing summer beer to have on the beach in the islands)
- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, July 22, 2002 3:03 PM
Subject: RE: Out of Office Response: RE: Can I read internationalized mess
ages in Action classes ?


> I feel the love
>
> Actually, this time two weeks from now I will be cruising the Caribbean on
> my way to the BVIs for 8 days.  This time, however, I'm flying first class
> to Miami in the hope that the first class flight attendants' IQs are
> triple-digit.  Unfortunately, it seems the prevailing beers consist of Red
> Stripe and Carib, both the Budweasels of the tropics.  Looks like lots of
> rum umbrella drinks!
>
> Mark
>
> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 11:57 AM
>
> Set Mark on them. They'll never violate the list rules again after he
> recites his travel woes to them a couple of times! :-)
>
> >-Original Message-
> >From: James Mitchell [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, July 22, 2002 10:58 AM
> >
> >Would someone mind removing this idiot?
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> >> Sent: Monday, July 22, 2002 10:59 AM
> >>
> >> Giles Hinchliff will be away on Monday July 22, 2002
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>

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




RE: Struts OReilly Book....

2002-07-22 Thread Martin Cooper

Wow, you can really learn some amazing things on this list... ;-)

--
Martin Cooper


> -Original Message-
> From: Scott Linford [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 1:04 PM
> To: Struts Users Mailing List
> Subject: RE: Struts OReilly Book
> 
> 
> 
> Is the Yellow Bellied Marmot (marmota flaviventris) already 
> taken?  Also
> known as a rockchuck or whistle pig.  Its a close relative of 
> the groundhog
> but it can live at elevations above 13,000 feet in the Rocky 
> Mountains.
> 
> http://culter.colorado.edu:1030/Field_trip/lgmarmot.jpg
> 
> - Scott
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 




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




RE: Struts OReilly Book....

2002-07-22 Thread Scott Linford


Is the Yellow Bellied Marmot (marmota flaviventris) already taken?  Also
known as a rockchuck or whistle pig.  Its a close relative of the groundhog
but it can live at elevations above 13,000 feet in the Rocky Mountains.

http://culter.colorado.edu:1030/Field_trip/lgmarmot.jpg

- Scott


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




Re: Code generation

2002-07-22 Thread James Holmes

The Struts Console software is good for managing
Struts configuration files, but doesn't have any code
generation capabilities.

http://www.jamesholmes.com/struts/

-james
[EMAIL PROTECTED]


--- Elderclei R Reami <[EMAIL PROTECTED]> wrote:
> Hi folks,
> 
> I am new to Struts development and am looking for
> tools to help me being 
> productive. Right now, I'm downloading binaries for
> Adalon and EasyStruts.
> 
> I'd like to know if there's any tool out there to
> generate a Struts 
> application, including view and model, based on
> database schema.
> 
> Thanks in advance.
> Elderclei R Reami
> Vertis Tecnologia - Brasil
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Code generation

2002-07-22 Thread Elderclei R Reami

Hi folks,

I am new to Struts development and am looking for tools to help me being 
productive. Right now, I'm downloading binaries for Adalon and EasyStruts.

I'd like to know if there's any tool out there to generate a Struts 
application, including view and model, based on database schema.

Thanks in advance.
Elderclei R Reami
Vertis Tecnologia - Brasil

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




URGENT HELP NEEDED: Unable to import Java Page Compile source code

2002-07-22 Thread Bhaskar Gopalan

Hi, 
I am getting the folowing error when my jsp file contains even nothing or
simple html.
Pls help.

-Bhaskar

Unhandled error! You might want to consider having an error page to report
such errors more gracefully 
java.io.IOException: Unable to import Java Page Compile source code
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.io.IOException(java.lang.String)
boolean org.apache.jasper.compiler.Compiler.compile()
boolean
com.ibm.ivj.jsp.jasper.runtime.JspDebugServlet.compile(org.apache.jasper.com
piler.Compiler, java.lang.Class)
boolean
com.ibm.ivj.jsp.jasper.runtime.JspDebugServlet.loadJSP(java.lang.String,
java.lang.String, boolean, javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(javax
.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, boolean)
void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest, javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean)
void
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ServletRequest, javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ServletRequest, javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ervletRequest, javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
equest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
rvlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
t.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
om.ibm.servlet.engine.webapp.WebAppRequest,
javax.servlet.http.HttpServletResponse, boolean)
void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(javax.servlet
.ServletRequest, javax.servlet.ServletResponse, boolean)
void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(javax.servlet.
ServletRequest, javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.SimpleFileServlet.doGet(javax.servlet.http.Htt
pServletRequest, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest
, javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ServletRequest, javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ServletRequest, javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ervletRequest, javax.servlet.ServletResponse)
void
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
equest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
rvlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
t.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDis

RE: completely off-topic -- S.F. Bay Area Struts Shops?

2002-07-22 Thread Joe Barefoot

LOL.  I bet the job market is a little better there though.  Gotta love
those DOD contracts...

Here's a little tidbit for ya:  hereUare Communications is about to drop off
the radar in about a month.  1 independent wireless provider down, 57 to
go :)

peace,
Joe

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 12:09 PM
To: 'Struts Users Mailing List'
Subject: RE: completely off-topic -- S.F. Bay Area Struts Shops?


I'll trade with you.  I hate the DC-Baltimore area.

Mark

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 2:43 PM

Logic and the law of averages suggest that there are some other Struts shops
in the Bay Area that could use a developer who is already indoctrinated into
the Struts Way.  If you work for one of these outfits, and are desirous of a
co-worker who has a clue, please send me a reply and I'll send you a resume.
If you want to double-check that I DO have a clue, just do a 'search
authors' on the Struts mail archives for "Barefoot" -- that's my last name.

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Struts OReilly Book....

2002-07-22 Thread Galbreath, Mark

I would guess most of us are.  Oh, wait...nevermind

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:11 PM

I'm still for a beaver.

Chappell, Simon P wrote:
> I say that we ask Craig McClanahan if he has a favourite animal ... it
worked for Linus Torvalds.
> 
> My second vote was going to be for a Rhino (my favourite), but that one's
taken. The only other vote I could cast would be to use a picture of Mark
Galbreath! ;-)
> 
> Simon

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




Re: Struts OReilly Book....

2002-07-22 Thread louis

Chappell, Simon P wrote:

>I say that we ask Craig McClanahan if he has a favourite animal ... it worked for 
>Linus Torvalds.
>
>My second vote was going to be for a Rhino (my favourite), but that one's taken. The 
>only other vote I could cast would be to use a picture of Mark Galbreath! ;-)
>
>Simon
>
>  
>
>>-Original Message-
>>From: Tero P Paananen [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, July 22, 2002 1:43 PM
>>To: Struts Users Mailing List; [EMAIL PROTECTED]
>>Subject: RE: Struts OReilly Book
>>
>>
>>
>>
btw: have they decided which animal is going on the cover 


>>>or is that an "I
>>>  
>>>
could tell you but then Id have to kill you" bit of 


>>information? ;-)
>>
>>
>>>I'm still +1 for sasquatch ;)
>>>  
>>>
>>It's ostrich all the way! Give up, or I'll bury my head
>>in the sand!
>>
>>  -TPP
>>
>>--
>>To unsubscribe, e-mail:   
>>
>>For additional commands, e-mail: 
>>
>>
>>
>>
>>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>
how about a cheetah, its endangered you can immortalize it




RE: Out of Office Response: RE: Can I read internationalized messages in Action classes ?

2002-07-22 Thread Galbreath, Mark

doh!

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:08 PM
To: Struts Users Mailing List
Subject: RE: Out of Office Response: RE: Can I read internationalized
messages in Action classes ?


I'm not sure how to break this to you Mark, but  they rotate. So the
nasty ones that were shouting at the peasants when you were packed back with
the chickens, may well be pouring your cheap imitation champagne in a
fortnight.

Spreading the Lurve!

Simon

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 2:04 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Out of Office Response: RE: Can I read internationalized
>messages in Action classes ?
>
>
>I feel the love
>
>Actually, this time two weeks from now I will be cruising the 
>Caribbean on
>my way to the BVIs for 8 days.  This time, however, I'm flying 
>first class
>to Miami in the hope that the first class flight attendants' IQs are
>triple-digit.  Unfortunately, it seems the prevailing beers 
>consist of Red
>Stripe and Carib, both the Budweasels of the tropics.  Looks 
>like lots of
>rum umbrella drinks!
>
>Mark
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 11:57 AM
>
>Set Mark on them. They'll never violate the list rules again after he
>recites his travel woes to them a couple of times! :-)
>
>>-Original Message-
>>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, July 22, 2002 10:58 AM
>>
>>Would someone mind removing this idiot?
>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>> Sent: Monday, July 22, 2002 10:59 AM
>>> 
>>> Giles Hinchliff will be away on Monday July 22, 2002
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Struts OReilly Book....

2002-07-22 Thread Galbreath, Mark

Yeah - "Party Animal" - would certainly be unique!

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 2:50 PM

I say that we ask Craig McClanahan if he has a favourite animal ... it
worked for Linus Torvalds.

My second vote was going to be for a Rhino (my favourite), but that one's
taken. The only other vote I could cast would be to use a picture of Mark
Galbreath! ;-)

Simon

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




DynaValidatorForm - can't apply validation rules

2002-07-22 Thread @Basebeans.com

Subject: DynaValidatorForm - can't apply validation rules
From: "Eric" <[EMAIL PROTECTED]>
 ===
I am using dynimic action form to collection userName and password, here is
the form bean I define in struts-config.xml.
...
  


  
...


  

In validation.xml I have this define in formset
...
  
 
   
 
 
   
 
  
...

But the validation rule seems never applied. Did I miss something???



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




RE: completely off-topic -- S.F. Bay Area Struts Shops?

2002-07-22 Thread Galbreath, Mark

I'll trade with you.  I hate the DC-Baltimore area.

Mark

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 2:43 PM

Logic and the law of averages suggest that there are some other Struts shops
in the Bay Area that could use a developer who is already indoctrinated into
the Struts Way.  If you work for one of these outfits, and are desirous of a
co-worker who has a clue, please send me a reply and I'll send you a resume.
If you want to double-check that I DO have a clue, just do a 'search
authors' on the Struts mail archives for "Barefoot" -- that's my last name.

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




Re: Struts OReilly Book....

2002-07-22 Thread Adam Hardy

Would O'Reilly's be polite enough to ask?

Shall we run a sweepstake on it? A dollar / euro each ... I'm still for 
a beaver.

Chappell, Simon P wrote:
> I say that we ask Craig McClanahan if he has a favourite animal ... it worked for 
>Linus Torvalds.
> 
> My second vote was going to be for a Rhino (my favourite), but that one's taken. The 
>only other vote I could cast would be to use a picture of Mark Galbreath! ;-)
> 
> Simon
> 
> 
>>-Original Message-
>>From: Tero P Paananen [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, July 22, 2002 1:43 PM
>>To: Struts Users Mailing List; [EMAIL PROTECTED]
>>Subject: RE: Struts OReilly Book
>>
>>
>>
btw: have they decided which animal is going on the cover 
>>>
>>>or is that an "I
>>>
could tell you but then Id have to kill you" bit of 
>>>
>>information? ;-)
>>
>>>I'm still +1 for sasquatch ;)
>>
>>It's ostrich all the way! Give up, or I'll bury my head
>>in the sand!
>>
>>  -TPP
>>
>>--
>>To unsubscribe, e-mail:   
>>
>>For additional commands, e-mail: 
>>
>>
>>
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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




RE: Out of Office Response: RE: Can I read internationalized messages in Action classes ?

2002-07-22 Thread Chappell, Simon P

I'm not sure how to break this to you Mark, but  they rotate. So the nasty ones 
that were shouting at the peasants when you were packed back with the chickens, may 
well be pouring your cheap imitation champagne in a fortnight.

Spreading the Lurve!

Simon

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 2:04 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Out of Office Response: RE: Can I read internationalized
>messages in Action classes ?
>
>
>I feel the love
>
>Actually, this time two weeks from now I will be cruising the 
>Caribbean on
>my way to the BVIs for 8 days.  This time, however, I'm flying 
>first class
>to Miami in the hope that the first class flight attendants' IQs are
>triple-digit.  Unfortunately, it seems the prevailing beers 
>consist of Red
>Stripe and Carib, both the Budweasels of the tropics.  Looks 
>like lots of
>rum umbrella drinks!
>
>Mark
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 11:57 AM
>
>Set Mark on them. They'll never violate the list rules again after he
>recites his travel woes to them a couple of times! :-)
>
>>-Original Message-
>>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, July 22, 2002 10:58 AM
>>
>>Would someone mind removing this idiot?
>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>> Sent: Monday, July 22, 2002 10:59 AM
>>> 
>>> Giles Hinchliff will be away on Monday July 22, 2002
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Out of Office Response: RE: Can I read internationalized messages in Action classes ?

2002-07-22 Thread Galbreath, Mark

I feel the love

Actually, this time two weeks from now I will be cruising the Caribbean on
my way to the BVIs for 8 days.  This time, however, I'm flying first class
to Miami in the hope that the first class flight attendants' IQs are
triple-digit.  Unfortunately, it seems the prevailing beers consist of Red
Stripe and Carib, both the Budweasels of the tropics.  Looks like lots of
rum umbrella drinks!

Mark

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 11:57 AM

Set Mark on them. They'll never violate the list rules again after he
recites his travel woes to them a couple of times! :-)

>-Original Message-
>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 10:58 AM
>
>Would someone mind removing this idiot?
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, July 22, 2002 10:59 AM
>> 
>> Giles Hinchliff will be away on Monday July 22, 2002

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




Re: when to populate dependent entities?

2002-07-22 Thread Adam Hardy

Hi David,
it sounds like you need to do some use case analysis to work out exactly 
when you need to getCompanyBeanWithDepartments() and when you need to 
getCompanyBeanWithout()

Same for employee beans.

I wouldn't have the beans hang on to a factory reference - what if they 
fall over when trying to do something with the DB while in the JSP? You 
might have posted your error messages already.

Take care of the situation in the Action, so the JSP gets exactly what 
it needs.

Adam



Struts Newsgroup (@Basebeans.com) wrote:
> Subject: when to populate dependent entities?
> From: "David Chu" <[EMAIL PROTECTED]>
>  ===
> I am quite confused about what seems to be a very generic operation.  I
> really want to find the best practice for this situation.  Assume the
> following model of the business:
> 
> (no ejbs)
> company 1..* departments
> department 1..* employee
> 
> I have my Action classes (the Model(?)) call a DataFactory object's method
> getCompany() which in turn return CompanyBean objects.  They are populated
> with companyName, companyAddress, etc. However, the list of DepartmentBean
> objects for this CompanyBean is not populated because it would be expensive.
> Also, at the time of calling getCompany(), it is unclear whether the list of
> DepartmentBean objects will get used.
> 
> The problem is how do I implement CompanyBean.getDepartmentList() to only
> retrieve the DepartmentBeans from the DataFactory when I need to?  In
> particular:
> - CompanyBean.getDepartmentList()  is called from the jsp (the View)
> - I could solve the problem by having each CompanyBean maintain a
> reference to the DataFactory... but I did not think this was correct OOD.
> Thoughts?
> - The jsp should not have knowledge of the DataFactory, right?
> - Should I design for several Actions, some that use the DataFactory to
> populate the DepartmentList and others that do not, depending on need?
> 
> You can imagine that this problem cascasdes down to encompass the getting of
> the EmployeeBean list from the DepartmentBean as well.  What are good
> solutions to this problem, or have I just confused everyone? ;)
> 
> Thanks so much for any input.
> 
> --
> -david
> 
> --
> David C. Chu
> America Online
> Network Tools Intern
> --
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 



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




Including parameters in Forward

2002-07-22 Thread Christian Pich

How do specify additional parameters in the forwarding, e.g.
for one of my actions I have

but I would like to add parameters.
I can add them in the Action Servlet manually by retrieving
the path of the mapping (mapping.findForward("success").getPath())
and then add my parameters and create a new ActionForward.
Is there a better way to do this?
How does Struts envison this?



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




RE: Struts OReilly Book....

2002-07-22 Thread Chappell, Simon P

I say that we ask Craig McClanahan if he has a favourite animal ... it worked for 
Linus Torvalds.

My second vote was going to be for a Rhino (my favourite), but that one's taken. The 
only other vote I could cast would be to use a picture of Mark Galbreath! ;-)

Simon

>-Original Message-
>From: Tero P Paananen [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 1:43 PM
>To: Struts Users Mailing List; [EMAIL PROTECTED]
>Subject: RE: Struts OReilly Book
>
>
>> > btw: have they decided which animal is going on the cover 
>> or is that an "I
>> > could tell you but then Id have to kill you" bit of 
>information? ;-)
>> 
>> I'm still +1 for sasquatch ;)
>
>It's ostrich all the way! Give up, or I'll bury my head
>in the sand!
>
>   -TPP
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>

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




RE: Struts OReilly Book....

2002-07-22 Thread Tero P Paananen

> > btw: have they decided which animal is going on the cover 
> or is that an "I
> > could tell you but then Id have to kill you" bit of information? ;-)
> 
> I'm still +1 for sasquatch ;)

It's ostrich all the way! Give up, or I'll bury my head
in the sand!

-TPP

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




RE: Struts OReilly Book....

2002-07-22 Thread James Mitchell

> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 2:31 PM
> To: Struts Users Mailing List
> Subject: RE: Struts OReilly Book
>
>



>
> btw: have they decided which animal is going on the cover or is that an "I
> could tell you but then Id have to kill you" bit of information? ;-)

I'm still +1 for sasquatch ;)

>
> regards
> Andrew
>


James


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




Re: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread @Basebeans.com

Subject: Re: Open Source Object Caching Systems compatible with Struts
From: "Vic C." <[EMAIL PROTECTED]>
 ===
In that case I would use reg exp to replace the tokens and use Symphony 
cache tag to store active content.
I would not cache inactive content.
And most people have very small load, less than 1000 concurrent users, 
you might not need any caching. Only add it after you need it, I think.
Or maybe multiple Linux boxes are cheaper than 20 hours of en engineers 
time to optimize it.

hth,
Vic

ps: Poolman rules!! Don't cofuse time tested and proven, with stale.

I have a sample CMS posted on sourceforge as you know (not article 
managment but web site content managment)


Phase Web and Multimedia wrote:
> Basically I am developing an article management system that allows you to
> interject Assests into the text of the aricle usin a token. When the article
> is read from the database it goes through a parsing mechanism that replaced
> the tokens with the assigned asset. The main articles will probably be hit
> the most. So, it is acutally quite simple what I want to do. Content that is
> not super active will be cached. I know that Commons has a pool api and I
> have used poolman in the past. I was not sure if there is a difference
> between pooling and object caching. It seems to me that there is. Maybe
> someone can expound on that. Alos, I need something that can be implemented
> on a webapp specific basis. Can poolman do that? P.S. I thought poolman was
> done and not being actively developed anymore. I wouldn't want to get into a
> stale api.
> 
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws
> 
> 
> 


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




completely off-topic -- S.F. Bay Area Struts Shops?

2002-07-22 Thread Joe Barefoot

Hi all,

Please excuse me while I indulge in a bit of shameless self-promotion:

Well, my company finally tanked and I have joined the ranks of the newly
unemployed, but I intend to desert them ASAP for another job in the Bay Area
(excepting a couple of weeks to enjoy what we loosely term 'summer' here in
S.F.).

My last job was primarily concerned with building a customer-facing web app.
based on Struts, running on Tomcat with an Oracle database.  The app. was
designed for wireless (802.11, aka Wi-Fi)subscriber account management and
administrative system management.  I can bore you with details ad infinitum
upon request. :)

Logic and the law of averages suggest that there are some other Struts shops
in the Bay Area that could use a developer who is already indoctrinated into
the Struts Way.  If you work for one of these outfits, and are desirous of a
co-worker who has a clue, please send me a reply and I'll send you a resume.
If you want to double-check that I DO have a clue, just do a 'search
authors' on the Struts mail archives for "Barefoot" -- that's my last name.

Thanks for everyone's time.


peace,
Joe Barefoot


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




RE: Struts OReilly Book....

2002-07-22 Thread Andrew Hill

Great. :-)

Id just like to say many thanks for making the book available for review,
and I know Ill be shelling out my hard earned dosh for the final copy the
second it hits the shelves in this corner of the planet.

Ive been developing a quite complex (mostly thanks to my aversion to JSP)
presentation tier using struts, and this being my first time developing with
struts (and the servlet api, and j2ee, and DOM and XML) its been quite a
formidable task, but one made a lot easier by your well written and useful
chapters.

How you knew which feature I would be using next and could bring out that
chapter at just the right time Ill never know, but its been a tremendous
help!

btw: have they decided which animal is going on the cover or is that an "I
could tell you but then Id have to kill you" bit of information? ;-)

regards
Andrew

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 02:18
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Struts OReilly Book


I just posted a message on the site explaining what's
going on. The book WILL cover the tags. The problem is
that I've rewritten this chapter twice now because I'm
having a difficult time coming up with an approach that
I like.

I don't want to just regurgitate the user's guide on the
tags, but at the same time, I can't realistic cover
every nuance about the tags. I'm just trying to find the
balance.

I've got to have everything finished by July 31st. I
will probably be working on the rewrite right up to the
time and will not be able to put the chapter out there
for review. As you can see from the updated TOC, Chapter
8 is still included.

Chuck
> You mean its not going to cover the struts tags!???
> lol
> (Not that I use JSP with my own struts application, but Id have thought
that
> the details of those tags would be quite important to other 99.9% of other
> users who still retain their sanity... ;->)
> Or are those chapters about writing ones own taglibs?
> (In which case they should be left out as any good book on general JSP
> programming already covers that...)
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 01:51
> To: [EMAIL PROTECTED]
> Subject: Struts OReilly Book
>
>
> I have been enjoying the review chapters as each have been released.
>
> Given the message on Theserverside:
> "Note: All review chapters have been posted. The review process ends July
> 31, 2002"
>
> Are the chapters posted the only ones that will make it into the book?
>
> It will be a great book either way, but given Chuck's clear writing style,
> I was really looking forward to the Custom Tag Libraries chapter.
>
>
> Looking forward to the publish date.
>
> Jeff
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




session var missing in .jsp

2002-07-22 Thread Brad Rhoads

All but one of my .jsps are views and go though my template. They're all
mapped to .screen. I have code (shown below) at the top my
template to check a session var to see if the user has logged on. That works
fine.

But now I have a .jsp that's just for displaying an (crystal clear report
viewer) applet. And the .jsp has call back functions used by the applet, so
I can't use the template. I put this code at the top of my rptloader.jsp,
but I get a NPE in this case.


<%
try
{
if (session != null){
com.monolith.model.administration.User user =

(com.monolith.model.administration.User)session.getAttribute(
com.monolith.webapp.Constants.USER_KEY);
if (user == null)
response.sendRedirect("/WebSynapse/signon.screen?prob=no");
}
else
response.sendRedirect("/WebSynapse/signon.screen?prob=yes");
}
catch(NullPointerException npe)
{
response.sendRedirect("/WebSynapse/signon.screen?prob=npe");
}

%>

I have a selectreport.screen that ends up at my ReportViewAction where I
figure out what kind of report was requested. Then to actually execute the
report I do:

if (usePDF == true)
return (new ActionForward("/report.pdf", false));
else if (useHTM == true)
  return (new ActionForward("/report.htmr", false));
else

//response.sendRedirect("/rptloader.jsp?report=/reports/"+reportType.trim()+
".rpt&dll=pdsora7.dll");
return (new
ActionForward("/rptloader.jsp?report=/reports/"+reportType.trim()+".rpt&dll=
pdsora7.dll", true));
//return (new
ActionForward("/rptloader.screen?report=/reports/"+reportType.trim()+".rpt&d
ll=pdsora7.dll", false));


It's the default case I'm talking about (the other's will eventually go
away). I've tried several different options for kicking off rptloader.jsp.

It seams that when I go directly to rptloader.jsp, my session var is
missing. What am I doing wrong?




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




RE: Struts OReilly Book....

2002-07-22 Thread chuckcavaness

I just posted a message on the site explaining what's 
going on. The book WILL cover the tags. The problem is 
that I've rewritten this chapter twice now because I'm 
having a difficult time coming up with an approach that 
I like.

I don't want to just regurgitate the user's guide on the 
tags, but at the same time, I can't realistic cover 
every nuance about the tags. I'm just trying to find the 
balance.

I've got to have everything finished by July 31st. I 
will probably be working on the rewrite right up to the 
time and will not be able to put the chapter out there 
for review. As you can see from the updated TOC, Chapter 
8 is still included.

Chuck
> You mean its not going to cover the struts tags!???
> lol
> (Not that I use JSP with my own struts application, but Id have thought that
> the details of those tags would be quite important to other 99.9% of other
> users who still retain their sanity... ;->)
> Or are those chapters about writing ones own taglibs?
> (In which case they should be left out as any good book on general JSP
> programming already covers that...)
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 01:51
> To: [EMAIL PROTECTED]
> Subject: Struts OReilly Book
> 
> 
> I have been enjoying the review chapters as each have been released.
> 
> Given the message on Theserverside:
> "Note: All review chapters have been posted. The review process ends July
> 31, 2002"
> 
> Are the chapters posted the only ones that will make it into the book?
> 
> It will be a great book either way, but given Chuck's clear writing style,
> I was really looking forward to the Custom Tag Libraries chapter.
> 
> 
> Looking forward to the publish date.
> 
> Jeff
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

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




Extending Struts-Validator - Validation Routine not beingcalled.

2002-07-22 Thread Jerry Jalenak

All,

Using the example from Dave's web-site, I've coded up the following custom
validation in order to compare two password fields.  I've included my
struts-config, my application-rules.xml, and the java source.  I'm missing
something because I am getting a java.lang.NoSuchMethodException:
comparePasswords, but I can't figure out why.  Looking through Tomcat's
console log I can see where Validator has added the method.  Any ideas on
what I am missing?

struts-config.xml


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
































   












































application-rules.xml



RE: Struts OReilly Book....

2002-07-22 Thread Andrew Hill

You mean its not going to cover the struts tags!???
lol
(Not that I use JSP with my own struts application, but Id have thought that
the details of those tags would be quite important to other 99.9% of other
users who still retain their sanity... ;->)
Or are those chapters about writing ones own taglibs?
(In which case they should be left out as any good book on general JSP
programming already covers that...)

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 01:51
To: [EMAIL PROTECTED]
Subject: Struts OReilly Book


I have been enjoying the review chapters as each have been released.

Given the message on Theserverside:
"Note: All review chapters have been posted. The review process ends July
31, 2002"

Are the chapters posted the only ones that will make it into the book?

It will be a great book either way, but given Chuck's clear writing style,
I was really looking forward to the Custom Tag Libraries chapter.


Looking forward to the publish date.

Jeff


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Struts OReilly Book....

2002-07-22 Thread Jeff_Mychasiw

I have been enjoying the review chapters as each have been released.

Given the message on Theserverside:
"Note: All review chapters have been posted. The review process ends July
31, 2002"

Are the chapters posted the only ones that will make it into the book?

It will be a great book either way, but given Chuck's clear writing style,
I was really looking forward to the Custom Tag Libraries chapter.


Looking forward to the publish date.

Jeff


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




RE: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread Phase Web and Multimedia

Basically I am developing an article management system that allows you to
interject Assests into the text of the aricle usin a token. When the article
is read from the database it goes through a parsing mechanism that replaced
the tokens with the assigned asset. The main articles will probably be hit
the most. So, it is acutally quite simple what I want to do. Content that is
not super active will be cached. I know that Commons has a pool api and I
have used poolman in the past. I was not sure if there is a difference
between pooling and object caching. It seems to me that there is. Maybe
someone can expound on that. Alos, I need something that can be implemented
on a webapp specific basis. Can poolman do that? P.S. I thought poolman was
done and not being actively developed anymore. I wouldn't want to get into a
stale api.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 11:25 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Open Source Object Caching Systems compatible with Struts
>
>
> Subject: Re: Open Source Object Caching Systems compatible with Struts
> From: "Vic C." <[EMAIL PROTECTED]>
>  ===
> Are you caching objects than?
> You can append to a linked list from here:
> http://gee.cs.oswego.edu/dl/classes/collections
> and than have a thread slowly write to db. That would be a que.
>
> If you need db caching, poolman on sourceforge does db caching (and
> object caching). Use that for caching.
>
> What is the load you expect? What is the hot spot you expect?
> hth,
> V.
>
>
>
>
> Phase Web and Multimedia wrote:
> > In the system that I am putting together it is more than just database
> > stuff. Althought the database is involved there is some token
> replacement
> > that is going on after the data is extracted and so I don't
> want the search
> > and replace happening everytime someone wants to use that
> object. It won't
> > be a problem in regards to stale data because it won't impact
> anything. If
> > an update is made it doesn't bother me if it takes twenty
> minutes to post. I
> > am just looking for a way I can throw some objects into a cache
> and throw
> > out data every once in a while. I am not sure the Rowset
> wrapper is what I
> > need. This is more than databse rows.. I am constructing
> objects. I want to
> > minimize that as much as possible.
> >
> > Brandon Goodin
> > Phase Web and Multimedia
> > P (406) 862-2245
> > F (406) 862-0354
> > [EMAIL PROTECTED]
> > http://www.phase.ws
> >
> >
> >
> >>-Original Message-
> >>From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
> >>Sent: Monday, July 22, 2002 10:30 AM
> >>To: 'Struts Users Mailing List'
> >>Subject: RE: Open Source Object Caching Systems compatible with Struts
> >>
> >>
> >>One neat option with DB objects is to implement the design for a
> >>FilteredRowSet as specified by Sun's RowSet.  It is/can be separated
> >>from the DB for caching in the application or session and it essentially
> >>acts like a mini-db in memory.  One use would be to select * clients and
> >>then allow users to use 'range' or 'like' filters to control the cursor
> >>of the RowSet.
> >>
> >>I tried going down the road of object caching but I cam to the
> >>conclusion that any data that required caching was better off just being
> >>cached at the view level or pre-view level as XML or as the static page
> >>content (OSCache).  Retaining ACID properties of site when multiple
> >>applications were using the same DB wasn't worth the hassle.  A good
> >>DBCP provides excellent speed anyways.
> >>
> >>Links:
> >>http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html
> >>http://www.javaworld.com/javaworld/jw-05-2002/jw-0524-sql.html
> >>
> >>
> >>Jacob Hookom
> >>Comprehensive Computer Science
> >>University of Wisconsin, Eau Claire
> >>
> >>
> >>-Original Message-
> >>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> >>Sent: Monday, July 22, 2002 11:15 AM
> >>To: Struts Users Mailing List
> >>Subject: RE: Open Source Object Caching Systems compatible with Struts
> >>
> >>Interesting. We implemented our own full object cache for an industrial
> >>control system that we are writing. I would be very interested to hear
> >>any experiences that folks have with the products mentioned here.
> >>
> >>Simon
> >>
> >>-
> >>Simon P. Chappell [EMAIL PROTECTED]
> >>Java Programming Specialist  www.landsend.com
> >>Lands' End, Inc.   (608) 935-4526
> >>
> >>
> >>
> >>>-Original Message-
> >>>From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
> >>>Sent: Monday, July 22, 2002 11:16 AM
> >>>To: Struts User List
> >>>Subject: Open Source Object Caching Systems compatible with Struts
> >>>
> >>>
> >>>Greetings,
> >>>
> >>>I believe 

Re: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread @Basebeans.com

Subject: Re: Open Source Object Caching Systems compatible with Struts
From: "Vic C." <[EMAIL PROTECTED]>
 ===
Are you caching objects than?
You can append to a linked list from here:
http://gee.cs.oswego.edu/dl/classes/collections
and than have a thread slowly write to db. That would be a que.

If you need db caching, poolman on sourceforge does db caching (and 
object caching). Use that for caching.

What is the load you expect? What is the hot spot you expect?
hth,
V.




Phase Web and Multimedia wrote:
> In the system that I am putting together it is more than just database
> stuff. Althought the database is involved there is some token replacement
> that is going on after the data is extracted and so I don't want the search
> and replace happening everytime someone wants to use that object. It won't
> be a problem in regards to stale data because it won't impact anything. If
> an update is made it doesn't bother me if it takes twenty minutes to post. I
> am just looking for a way I can throw some objects into a cache and throw
> out data every once in a while. I am not sure the Rowset wrapper is what I
> need. This is more than databse rows.. I am constructing objects. I want to
> minimize that as much as possible.
> 
> Brandon Goodin
> Phase Web and Multimedia
> P (406) 862-2245
> F (406) 862-0354
> [EMAIL PROTECTED]
> http://www.phase.ws
> 
> 
> 
>>-Original Message-
>>From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, July 22, 2002 10:30 AM
>>To: 'Struts Users Mailing List'
>>Subject: RE: Open Source Object Caching Systems compatible with Struts
>>
>>
>>One neat option with DB objects is to implement the design for a
>>FilteredRowSet as specified by Sun's RowSet.  It is/can be separated
>>from the DB for caching in the application or session and it essentially
>>acts like a mini-db in memory.  One use would be to select * clients and
>>then allow users to use 'range' or 'like' filters to control the cursor
>>of the RowSet.
>>
>>I tried going down the road of object caching but I cam to the
>>conclusion that any data that required caching was better off just being
>>cached at the view level or pre-view level as XML or as the static page
>>content (OSCache).  Retaining ACID properties of site when multiple
>>applications were using the same DB wasn't worth the hassle.  A good
>>DBCP provides excellent speed anyways.
>>
>>Links:
>>http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html
>>http://www.javaworld.com/javaworld/jw-05-2002/jw-0524-sql.html
>>
>>
>>Jacob Hookom
>>Comprehensive Computer Science
>>University of Wisconsin, Eau Claire
>>
>>
>>-Original Message-
>>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, July 22, 2002 11:15 AM
>>To: Struts Users Mailing List
>>Subject: RE: Open Source Object Caching Systems compatible with Struts
>>
>>Interesting. We implemented our own full object cache for an industrial
>>control system that we are writing. I would be very interested to hear
>>any experiences that folks have with the products mentioned here.
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>>
>>
>>
>>>-Original Message-
>>>From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
>>>Sent: Monday, July 22, 2002 11:16 AM
>>>To: Struts User List
>>>Subject: Open Source Object Caching Systems compatible with Struts
>>>
>>>
>>>Greetings,
>>>
>>>I believe everyone knows what object caching is, so I won't go
>>>into detail.
>>>But, I have been doing a little exploration to find a good open source
>>>object caching system. I have found  a few in the apache world
>>>turbine:services:object cache, turbine:jcs, and OJB has a
>>>caching mechanism
>>>within it. But I would have to extract the OJB code and make
>>>my own caching
>>>system. The code is OJB specific. My questions are: Does
>>>anyone know of any
>>>other open source object caching or JCS implementations? and
>>>Which of these
>>>works well with struts? (i.e. Can the turbine jcs or object
>>>cache service
>>>run independent of all the extra turbine bloat and play nice
>>>with struts?)
>>>
>>>Brandon Goodin
>>>Phase Web and Multimedia
>>>P (406) 862-2245
>>>F (406) 862-0354
>>>[EMAIL PROTECTED]
>>>http://www.phase.ws
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>>For additional commands, e-mail:
>>>
>>>
>>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>---
>>Incoming mail is certified Virus Free.
>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
>>
>>
>>---
>>Outgoing mail is certified Virus Free.
>>Checked by AVG anti-virus system (http

RE: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread Phase Web and Multimedia

In the system that I am putting together it is more than just database
stuff. Althought the database is involved there is some token replacement
that is going on after the data is extracted and so I don't want the search
and replace happening everytime someone wants to use that object. It won't
be a problem in regards to stale data because it won't impact anything. If
an update is made it doesn't bother me if it takes twenty minutes to post. I
am just looking for a way I can throw some objects into a cache and throw
out data every once in a while. I am not sure the Rowset wrapper is what I
need. This is more than databse rows.. I am constructing objects. I want to
minimize that as much as possible.

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


> -Original Message-
> From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 10:30 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Open Source Object Caching Systems compatible with Struts
>
>
> One neat option with DB objects is to implement the design for a
> FilteredRowSet as specified by Sun's RowSet.  It is/can be separated
> from the DB for caching in the application or session and it essentially
> acts like a mini-db in memory.  One use would be to select * clients and
> then allow users to use 'range' or 'like' filters to control the cursor
> of the RowSet.
>
> I tried going down the road of object caching but I cam to the
> conclusion that any data that required caching was better off just being
> cached at the view level or pre-view level as XML or as the static page
> content (OSCache).  Retaining ACID properties of site when multiple
> applications were using the same DB wasn't worth the hassle.  A good
> DBCP provides excellent speed anyways.
>
> Links:
> http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html
> http://www.javaworld.com/javaworld/jw-05-2002/jw-0524-sql.html
>
>
> Jacob Hookom
> Comprehensive Computer Science
> University of Wisconsin, Eau Claire
>
>
> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 11:15 AM
> To: Struts Users Mailing List
> Subject: RE: Open Source Object Caching Systems compatible with Struts
>
> Interesting. We implemented our own full object cache for an industrial
> control system that we are writing. I would be very interested to hear
> any experiences that folks have with the products mentioned here.
>
> Simon
>
> -
> Simon P. Chappell [EMAIL PROTECTED]
> Java Programming Specialist  www.landsend.com
> Lands' End, Inc.   (608) 935-4526
>
>
> >-Original Message-
> >From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, July 22, 2002 11:16 AM
> >To: Struts User List
> >Subject: Open Source Object Caching Systems compatible with Struts
> >
> >
> >Greetings,
> >
> >I believe everyone knows what object caching is, so I won't go
> >into detail.
> >But, I have been doing a little exploration to find a good open source
> >object caching system. I have found  a few in the apache world
> >turbine:services:object cache, turbine:jcs, and OJB has a
> >caching mechanism
> >within it. But I would have to extract the OJB code and make
> >my own caching
> >system. The code is OJB specific. My questions are: Does
> >anyone know of any
> >other open source object caching or JCS implementations? and
> >Which of these
> >works well with struts? (i.e. Can the turbine jcs or object
> >cache service
> >run independent of all the extra turbine bloat and play nice
> >with struts?)
> >
> >Brandon Goodin
> >Phase Web and Multimedia
> >P (406) 862-2245
> >F (406) 862-0354
> >[EMAIL PROTECTED]
> >http://www.phase.ws
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: DynaValidatorActionForms

2002-07-22 Thread chuckcavaness

I'll make that section more clear. 

Chuck
> It is the value of the path attribute in the action element in the
> struts-config.xml file.
> 
> If you look at the DynaValidatorActionForm source you will see the following
> in the validate().
> 
> Validator validator = StrutsValidatorUtil.initValidator(mapping.getPath(),
>   this,
>   application,
> request,
>   errors, page);
> 
> 
> robert
> 
> > -Original Message-
> > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 22, 2002 12:14 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: DynaValidatorActionForms
> >
> >
> > I've changed over to using DynaValidatorActionForm for my 
> > definitions. When I did so my validator routines quit working.
> > Looking over
> > Chuck's chapter on Validator where he discusses the class
> > hierarchy, he says
> > that if you use DynaValidatorActionForm,  the Validator
> > will use the
> > action's name to look up the validation rules .  Is this the path
> > name in my action-mapping?
> >
> > TIA
> >
> > Jerry Jalenak
> > Development Manager, Web Publishing
> > LabOne, Inc.
> >
> > This transmission (and any information attached to it) may be
> > confidential and is intended solely for the use of the individual
> > or entity to which it is addressed. If you are not the intended
> > recipient or the person responsible for delivering the
> > transmission to the intended recipient, be advised that you have
> > received this transmission in error and that any use,
> > dissemination, forwarding, printing, or copying of this
> > information is strictly prohibited. If you have received this
> > transmission in error, please immediately notify LabOne at (800)388-4675.
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

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




RE: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread Chappell, Simon P

I haven't tried FilteredRowSet yet, but we have not had much in the way of ACID 
problems yet. We do have a timestamp on the database parent record and the cached 
object. Before handing out the cached object, we run a real simple SELECT to compare 
the timestamps and that way we know that the cached version is up to date. The SELECT 
takes less than 15 ms in our environment and we find that acceptable in the trade-off 
of wanting pre-fetched data yet not wanting stale data.

Simon

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


>-Original Message-
>From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 11:30 AM
>To: 'Struts Users Mailing List'
>Subject: RE: Open Source Object Caching Systems compatible with Struts
>
>
>One neat option with DB objects is to implement the design for a
>FilteredRowSet as specified by Sun's RowSet.  It is/can be separated
>from the DB for caching in the application or session and it 
>essentially
>acts like a mini-db in memory.  One use would be to select * 
>clients and
>then allow users to use 'range' or 'like' filters to control the cursor
>of the RowSet.
>
>I tried going down the road of object caching but I cam to the
>conclusion that any data that required caching was better off 
>just being
>cached at the view level or pre-view level as XML or as the static page
>content (OSCache).  Retaining ACID properties of site when multiple
>applications were using the same DB wasn't worth the hassle.  A good
>DBCP provides excellent speed anyways.
>
>Links:
>http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html
>http://www.javaworld.com/javaworld/jw-05-2002/jw-0524-sql.html
>
>
>Jacob Hookom 
>Comprehensive Computer Science 
>University of Wisconsin, Eau Claire 
>
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
>Sent: Monday, July 22, 2002 11:15 AM
>To: Struts Users Mailing List
>Subject: RE: Open Source Object Caching Systems compatible with Struts
>
>Interesting. We implemented our own full object cache for an industrial
>control system that we are writing. I would be very interested to hear
>any experiences that folks have with the products mentioned here.
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>
>>-Original Message-
>>From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, July 22, 2002 11:16 AM
>>To: Struts User List
>>Subject: Open Source Object Caching Systems compatible with Struts
>>
>>
>>Greetings,
>>
>>I believe everyone knows what object caching is, so I won't go 
>>into detail.
>>But, I have been doing a little exploration to find a good open source
>>object caching system. I have found  a few in the apache world
>>turbine:services:object cache, turbine:jcs, and OJB has a 
>>caching mechanism
>>within it. But I would have to extract the OJB code and make 
>>my own caching
>>system. The code is OJB specific. My questions are: Does 
>>anyone know of any
>>other open source object caching or JCS implementations? and 
>>Which of these
>>works well with struts? (i.e. Can the turbine jcs or object 
>>cache service
>>run independent of all the extra turbine bloat and play nice 
>>with struts?)
>>
>>Brandon Goodin
>>Phase Web and Multimedia
>>P (406) 862-2245
>>F (406) 862-0354
>>[EMAIL PROTECTED]
>>http://www.phase.ws
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>
>>For additional commands, e-mail: 
>>
>>
>>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
> 
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
> 
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Strust + Xindice

2002-07-22 Thread Lacerda, Wellington (AFIS)

Yes, XIndice works fine with Struts. I'm using it in a rather large project.

You depend on the XMLDB APIs for querying and updates. And the concepts are
totally different from the relational world.

Other XML databases are, but as open source XIndice seems to be the best
choice.

Wellington L. S. da Silva
Author of "JSP and Tag Libraries for Web Development"
FAO of the UN - Consultant

-Original Message-
From: Gregorio López [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 6:44 PM
To: [EMAIL PROTECTED]
Subject: Strust + Xindice


Hello everybody.

I want to develop a program using Struts as the work frame. Data must be
stored and managed as XML, I can't use a relational model. But I don't have
too much experience with Struts, nor JSP (I usually work with PHP). My
favourite option would be using Xindice as the database system. The question
is: has someone used Strust and Xindice in conjunction? Can Struts and
Xindice work together? Is there some incompatibility between Strust and
Xindice? Is there some better option for managing XML data with Strust?

Thanks for your time.

Gregorio Lopez
Espana


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




when to populate dependent entities?

2002-07-22 Thread @Basebeans.com

Subject: when to populate dependent entities?
From: "David Chu" <[EMAIL PROTECTED]>
 ===
I am quite confused about what seems to be a very generic operation.  I
really want to find the best practice for this situation.  Assume the
following model of the business:

(no ejbs)
company 1..* departments
department 1..* employee

I have my Action classes (the Model(?)) call a DataFactory object's method
getCompany() which in turn return CompanyBean objects.  They are populated
with companyName, companyAddress, etc. However, the list of DepartmentBean
objects for this CompanyBean is not populated because it would be expensive.
Also, at the time of calling getCompany(), it is unclear whether the list of
DepartmentBean objects will get used.

The problem is how do I implement CompanyBean.getDepartmentList() to only
retrieve the DepartmentBeans from the DataFactory when I need to?  In
particular:
- CompanyBean.getDepartmentList()  is called from the jsp (the View)
- I could solve the problem by having each CompanyBean maintain a
reference to the DataFactory... but I did not think this was correct OOD.
Thoughts?
- The jsp should not have knowledge of the DataFactory, right?
- Should I design for several Actions, some that use the DataFactory to
populate the DepartmentList and others that do not, depending on need?

You can imagine that this problem cascasdes down to encompass the getting of
the EmployeeBean list from the DepartmentBean as well.  What are good
solutions to this problem, or have I just confused everyone? ;)

Thanks so much for any input.

--
-david

--
David C. Chu
America Online
Network Tools Intern
--



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




RE: Struts-Validator

2002-07-22 Thread Jerry Jalenak

I've coded up a routine to compare two fields (similar to Dave's example).
For some reason the method is not being called from the Validator. Is there
something else that has to be specified before the Validator will call my
custom routine?

Jerry Jalenak

> -Original Message-
> From: Chilukuri, Pratap N Mr USAREC
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 10:40 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Struts-Validator
> 
> 
> In ValidatorUtil I can't find getActionError method according to Dave
> tutorial of comparing two fields. Can anyone shed some light 
> as I can't find
> this method in latest build.
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 19, 2002 9:02 AM
> To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
> Subject: RE: Struts-Validator
> 
> 
> Thanks!  Never occurred to me to check Dave's site :-)
> 
> Jerry
> 
> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 18, 2002 9:17 PM
> To: Struts Users Mailing List
> Subject: Re: Struts-Validator
> 
> 
> http://home.earthlink.net/~dwinterfeldt/
> 
> 
> Check that out.  I think it may contain what you're after.
> 
> Jerry Jalenak wrote:
> 
> >Can validator perform a comparison between two (or more) 
> fields on a form?
> >If so, does anyone have a quick example from the 
> validator-rules.xml that
> >they could post?
> >
> >Thanks.
> >
> >Jerry Jalenak
> >
> >This transmission (and any information attached to it) may 
> be confidential
> and is intended solely for the use of the individual or 
> entity to which it
> is addressed. If you are not the intended recipient or the person
> responsible for delivering the transmission to the intended 
> recipient, be
> advised that you have received this transmission in error and 
> that any use,
> dissemination, forwarding, printing, or copying of this information is
> strictly prohibited. If you have received this transmission 
> in error, please
> immediately notify LabOne at (800)388-4675.
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> 
> >For additional commands, e-mail:
> 
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




RE: DynaValidatorActionForms

2002-07-22 Thread Robert Taylor

It is the value of the path attribute in the action element in the
struts-config.xml file.

If you look at the DynaValidatorActionForm source you will see the following
in the validate().

Validator validator = StrutsValidatorUtil.initValidator(mapping.getPath(),
this,
application,
request,
errors, page);


robert

> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 12:14 PM
> To: '[EMAIL PROTECTED]'
> Subject: DynaValidatorActionForms
>
>
> I've changed over to using DynaValidatorActionForm for my 
> definitions. When I did so my validator routines quit working.
> Looking over
> Chuck's chapter on Validator where he discusses the class
> hierarchy, he says
> that if you use DynaValidatorActionForm,  the Validator
> will use the
> action's name to look up the validation rules .  Is this the path
> name in my action-mapping?
>
> TIA
>
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
>
> This transmission (and any information attached to it) may be
> confidential and is intended solely for the use of the individual
> or entity to which it is addressed. If you are not the intended
> recipient or the person responsible for delivering the
> transmission to the intended recipient, be advised that you have
> received this transmission in error and that any use,
> dissemination, forwarding, printing, or copying of this
> information is strictly prohibited. If you have received this
> transmission in error, please immediately notify LabOne at (800)388-4675.
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




RE: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread Jacob Hookom

One neat option with DB objects is to implement the design for a
FilteredRowSet as specified by Sun's RowSet.  It is/can be separated
from the DB for caching in the application or session and it essentially
acts like a mini-db in memory.  One use would be to select * clients and
then allow users to use 'range' or 'like' filters to control the cursor
of the RowSet.

I tried going down the road of object caching but I cam to the
conclusion that any data that required caching was better off just being
cached at the view level or pre-view level as XML or as the static page
content (OSCache).  Retaining ACID properties of site when multiple
applications were using the same DB wasn't worth the hassle.  A good
DBCP provides excellent speed anyways.

Links:
http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html
http://www.javaworld.com/javaworld/jw-05-2002/jw-0524-sql.html


Jacob Hookom 
Comprehensive Computer Science 
University of Wisconsin, Eau Claire 


-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 22, 2002 11:15 AM
To: Struts Users Mailing List
Subject: RE: Open Source Object Caching Systems compatible with Struts

Interesting. We implemented our own full object cache for an industrial
control system that we are writing. I would be very interested to hear
any experiences that folks have with the products mentioned here.

Simon

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


>-Original Message-
>From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 11:16 AM
>To: Struts User List
>Subject: Open Source Object Caching Systems compatible with Struts
>
>
>Greetings,
>
>I believe everyone knows what object caching is, so I won't go 
>into detail.
>But, I have been doing a little exploration to find a good open source
>object caching system. I have found  a few in the apache world
>turbine:services:object cache, turbine:jcs, and OJB has a 
>caching mechanism
>within it. But I would have to extract the OJB code and make 
>my own caching
>system. The code is OJB specific. My questions are: Does 
>anyone know of any
>other open source object caching or JCS implementations? and 
>Which of these
>works well with struts? (i.e. Can the turbine jcs or object 
>cache service
>run independent of all the extra turbine bloat and play nice 
>with struts?)
>
>Brandon Goodin
>Phase Web and Multimedia
>P (406) 862-2245
>F (406) 862-0354
>[EMAIL PROTECTED]
>http://www.phase.ws
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>

--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


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




Strust + Xindice

2002-07-22 Thread Gregorio López

Hello everybody.

I want to develop a program using Struts as the work frame. Data must be
stored and managed as XML, I can't use a relational model. But I don't have
too much experience with Struts, nor JSP (I usually work with PHP). My
favourite option would be using Xindice as the database system. The question
is: has someone used Strust and Xindice in conjunction? Can Struts and
Xindice work together? Is there some incompatibility between Strust and
Xindice? Is there some better option for managing XML data with Strust?

Thanks for your time.

Gregorio Lopez
Espana


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




RE: DynaValidatorActionForms

2002-07-22 Thread Jerry Jalenak

Never mind.  It is the path=, but in the validator-rules.xml, you also have
to put the leading '/' before the name.


Jerry


> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 11:14 AM
> To: '[EMAIL PROTECTED]'
> Subject: DynaValidatorActionForms
> 
> 
> I've changed over to using DynaValidatorActionForm for my 
> definitions. When I did so my validator routines quit 
> working.  Looking over
> Chuck's chapter on Validator where he discusses the class 
> hierarchy, he says
> that if you use DynaValidatorActionForm,  the 
> Validator will use the
> action's name to look up the validation rules .  Is 
> this the path
> name in my action-mapping?
> 
> TIA
> 
> Jerry Jalenak
> Development Manager, Web Publishing
> LabOne, Inc.
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the 
> individual or entity to which it is addressed. If you are not 
> the intended recipient or the person responsible for 
> delivering the transmission to the intended recipient, be 
> advised that you have received this transmission in error and 
> that any use, dissemination, forwarding, printing, or copying 
> of this information is strictly prohibited. If you have 
> received this transmission in error, please immediately 
> notify LabOne at (800)388-4675.
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




RE: Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread Chappell, Simon P

Interesting. We implemented our own full object cache for an industrial control system 
that we are writing. I would be very interested to hear any experiences that folks 
have with the products mentioned here.

Simon

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


>-Original Message-
>From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 11:16 AM
>To: Struts User List
>Subject: Open Source Object Caching Systems compatible with Struts
>
>
>Greetings,
>
>I believe everyone knows what object caching is, so I won't go 
>into detail.
>But, I have been doing a little exploration to find a good open source
>object caching system. I have found  a few in the apache world
>turbine:services:object cache, turbine:jcs, and OJB has a 
>caching mechanism
>within it. But I would have to extract the OJB code and make 
>my own caching
>system. The code is OJB specific. My questions are: Does 
>anyone know of any
>other open source object caching or JCS implementations? and 
>Which of these
>works well with struts? (i.e. Can the turbine jcs or object 
>cache service
>run independent of all the extra turbine bloat and play nice 
>with struts?)
>
>Brandon Goodin
>Phase Web and Multimedia
>P (406) 862-2245
>F (406) 862-0354
>[EMAIL PROTECTED]
>http://www.phase.ws
>
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>
>

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




DynaValidatorActionForms

2002-07-22 Thread Jerry Jalenak

I've changed over to using DynaValidatorActionForm for my 
definitions. When I did so my validator routines quit working.  Looking over
Chuck's chapter on Validator where he discusses the class hierarchy, he says
that if you use DynaValidatorActionForm,  the Validator will use the
action's name to look up the validation rules .  Is this the path
name in my action-mapping?

TIA

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at (800)388-4675.



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




set ArrayList element from Iterate

2002-07-22 Thread Stan Baranek

Hi all,

Does anybody know how to set/add an ArrayList element as a String from 
an Iterate tag?  Basically  I want to use the mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Open Source Object Caching Systems compatible with Struts

2002-07-22 Thread Phase Web and Multimedia

Greetings,

I believe everyone knows what object caching is, so I won't go into detail.
But, I have been doing a little exploration to find a good open source
object caching system. I have found  a few in the apache world
turbine:services:object cache, turbine:jcs, and OJB has a caching mechanism
within it. But I would have to extract the OJB code and make my own caching
system. The code is OJB specific. My questions are: Does anyone know of any
other open source object caching or JCS implementations? and Which of these
works well with struts? (i.e. Can the turbine jcs or object cache service
run independent of all the extra turbine bloat and play nice with struts?)

Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws



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




RE: Struts-Validator

2002-07-22 Thread Jerry Jalenak

I had the same problem.  The getActionError method is in StrutsValidatorUtil
- not ValidatorUtil (in commons-validator).

Jerry

-Original Message-
From: Chilukuri, Pratap N Mr USAREC
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 10:40 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts-Validator


In ValidatorUtil I can't find getActionError method according to Dave
tutorial of comparing two fields. Can anyone shed some light as I can't find
this method in latest build.

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 9:02 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Struts-Validator


Thanks!  Never occurred to me to check Dave's site :-)

Jerry

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:17 PM
To: Struts Users Mailing List
Subject: Re: Struts-Validator


http://home.earthlink.net/~dwinterfeldt/


Check that out.  I think it may contain what you're after.

Jerry Jalenak wrote:

>Can validator perform a comparison between two (or more) fields on a form?
>If so, does anyone have a quick example from the validator-rules.xml that
>they could post?
>
>Thanks.
>
>Jerry Jalenak
>
>This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Out of Office Response: RE: Can I read internationalized messages in Action classes ?

2002-07-22 Thread Chappell, Simon P

Set Mark on them. They'll never violate the list rules again after he recites his 
travel woes to them a couple of times! :-)

>-Original Message-
>From: James Mitchell [mailto:[EMAIL PROTECTED]]
>Sent: Monday, July 22, 2002 10:58 AM
>To: [EMAIL PROTECTED]
>Cc: Struts Users Mailing List
>Subject: RE: Out of Office Response: RE: Can I read internationalized
>messages in Action classes ?
>
>
>Would someone mind removing this idiot?
>
>James Mitchell
>Software Engineer\Struts Evangelist
>Struts-Atlanta, the "Open Minded Developer Network"
>http://www.open-tools.org/struts-atlanta
>
>
>
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, July 22, 2002 10:59 AM
>> To: [EMAIL PROTECTED]
>> Subject: Out of Office Response: RE: Can I read internationalized
>> messages in Action classes ?
>> 
>> 
>> Giles Hinchliff will be away on Monday July 22, 2002
>> 
>> 
>> 
>> 
>
>--
>To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: 
>
>

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




RE: Out of Office Response: RE: Can I read internationalized messages in Action classes ?

2002-07-22 Thread James Mitchell

Would someone mind removing this idiot?

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 10:59 AM
> To: [EMAIL PROTECTED]
> Subject: Out of Office Response: RE: Can I read internationalized
> messages in Action classes ?
> 
> 
> Giles Hinchliff will be away on Monday July 22, 2002
> 
> 
> 
> 

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




RE: Struts-Validator

2002-07-22 Thread Chilukuri, Pratap N Mr USAREC

In ValidatorUtil I can't find getActionError method according to Dave
tutorial of comparing two fields. Can anyone shed some light as I can't find
this method in latest build.

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 19, 2002 9:02 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Struts-Validator


Thanks!  Never occurred to me to check Dave's site :-)

Jerry

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:17 PM
To: Struts Users Mailing List
Subject: Re: Struts-Validator


http://home.earthlink.net/~dwinterfeldt/


Check that out.  I think it may contain what you're after.

Jerry Jalenak wrote:

>Can validator perform a comparison between two (or more) fields on a form?
>If so, does anyone have a quick example from the validator-rules.xml that
>they could post?
>
>Thanks.
>
>Jerry Jalenak
>
>This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at (800)388-4675.
>
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Populating view from Web tier?

2002-07-22 Thread Craig R. McClanahan



On Mon, 22 Jul 2002, Agrawal, Rajeev wrote:

> Date: Mon, 22 Jul 2002 11:16:36 -0400
> From: "Agrawal, Rajeev" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Populating view from Web tier?
>
> I have been reading some documentation on Struts. One thing I am not clear
> about is how is the data sent back from Servlet to the view?
>
> > In descriptive form the question is:
> >
> > View -> Servlet -> ActionForm -> Action -> ActionForward -> JSP / HTML
> >
> > The question is how do we send the data between ActionForward and JSP. I
> > believe it will be ActionForm if the validation fails. If the validation
> > doesn't fail then it has to be a class derived from ActionForm so that it
> > is transparent to the view. Is that so? Where do we specify which class is
> > used for sending the data to the view? Is that part of the Action code?
> >

Typically, an Action will pass information via request attributes (or
sometimes session attributes), which can then be accessed by the view
layer.  It's also very common for an action to prepopulate a form bean
that will be used in a subsequent view -- for an example of this, take a
glance at the code for the Struts example webapp, when you click the "Edit
your user registration profile" link.

> > Cheers
> >
> > Rajeev Agrawal
> > Tel: 212-429-3216
> >
>

Craig


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




RE: Populating view from Web tier?

2002-07-22 Thread Robert Taylor

In general, the page (view) should access data placed in either the
application, request, page, or session scope by the
Action class. It is considered a "best practice" for the Action class to act
as a proxy to your business tier. For example,
the Action class would leverage the appropriate business beans to process
the data. The Action class would be responsible
for placing the results of the processing (if any) in the appropriate scope.

The servlet, in the data transport diagram below, represents the front
controller or Struts ActionServlet,
and therefore it is not directly responsible for placing the data in the
respective scope, but rather delegates HTTP
requests to the appropriate Action class and forwards to the appropriate
view.

robert

> -Original Message-
> From: Agrawal, Rajeev [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 11:17 AM
> To: '[EMAIL PROTECTED]'
> Subject: Populating view from Web tier?
>
>
> I have been reading some documentation on Struts. One thing I am not clear
> about is how is the data sent back from Servlet to the view?
>
> > In descriptive form the question is:
> >
> > View -> Servlet -> ActionForm -> Action -> ActionForward -> JSP / HTML
> >
> > The question is how do we send the data between ActionForward and JSP. I
> > believe it will be ActionForm if the validation fails. If the validation
> > doesn't fail then it has to be a class derived from ActionForm
> so that it
> > is transparent to the view. Is that so? Where do we specify
> which class is
> > used for sending the data to the view? Is that part of the Action code?
> >
> > Cheers
> >
> > Rajeev Agrawal
> > Tel: 212-429-3216
> >
>
>
> If you have received this e-mail in error or wish to read our
> e-mail disclaimer statement and monitoring policy, please refer
> to http://www.drkw.com/disc/email/ or contact the sender.
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




Populating view from Web tier?

2002-07-22 Thread Agrawal, Rajeev

I have been reading some documentation on Struts. One thing I am not clear
about is how is the data sent back from Servlet to the view?

> In descriptive form the question is:
> 
> View -> Servlet -> ActionForm -> Action -> ActionForward -> JSP / HTML
> 
> The question is how do we send the data between ActionForward and JSP. I
> believe it will be ActionForm if the validation fails. If the validation
> doesn't fail then it has to be a class derived from ActionForm so that it
> is transparent to the view. Is that so? Where do we specify which class is
> used for sending the data to the view? Is that part of the Action code?
> 
> Cheers
> 
> Rajeev Agrawal
> Tel: 212-429-3216
> 


If you have received this e-mail in error or wish to read our e-mail disclaimer 
statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or 
contact the sender.


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




Re: Missing message for key - problem with ApplicationResources?

2002-07-22 Thread Shaun Whyte

Hi

Thanks for the reply Stan.  After two and a half days at this I finally
figured out the problem, and cannot believe it was so simple.  It was all
down to a typo, I called the file ApplicationRersources.properties instead
of ApplicationResources.properties.  Of course when I glanced at it to
check, it looks correct.

It was only when I went through the code, and in the loadLocale() method,
the method call to
this.getClass().getClassLoader().getResourceAsStream(name) was returning
null, I knew what name was, and at that point decided to take a hard look at
the file name to discover it was my fault all along.

Thanks all anyway, I must be more careful next time!

Shaun.

- Original Message -
From: "Stan Baranek" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, July 22, 2002 3:56 PM
Subject: Re: Missing message for key - problem with ApplicationResources?


> Shaun Whyte wrote:
>
> >Hi
> >
> >Thanks for the tip, unfortunately I tried this already and I got the same
> >problem.  As far as I understand, Struts 1.0 has the ApplicationRsources
> >defined in the web.xml, but Struts 1.1 has it defined in the
> >struts-config.xml, although someone please feel free to correct me if I'm
> >wrong.
> >
> >Thanks again,
> >Shaun.
> >
> >- Original Message -
> >From: "srinivasa varadachar" <[EMAIL PROTECTED]>
> >To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> >Sent: Friday, July 19, 2002 7:08 PM
> >Subject: RE: Missing message for key - problem with ApplicationResources?
> >
> >
> >
> >
> >>hi,
> >>
> >>I don't know if you have entry in your web.xml file as shown below
> >>
> >>
> >>action
> >>
org.apache.struts.action.ActionServlet
> >>
> >>  application
> >>  app.ApplicationResources
> >>
> >>...
> >>...
> >>...
> >>
> >>
> >>This works fine. You do not need any lines in the struts-config.xml
file.
> >>
> >>Srini V
> >>
> >>
> >>
> >>-Original Message-
> >>From: Shaun Whyte [mailto:[EMAIL PROTECTED]]
> >>Sent: Friday, July 19, 2002 12:49 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: Missing message for key - problem with ApplicationResources?
> >>
> >>
> >>I am using the following:
> >>- Apache Tomcat 4.0.4
> >>- Struts 1.1 b1
> >>
> >>There seems to be a problem accessing my ApplicationResources.properties
> >>file as it throws the following exception from the MessageTag when I
call
> >>the JSP page:
> >>javax.servlet.jsp.JspException: Missing message for key
prompt.ordersfrom
> >>at
> >>
> >>
> >org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298)
> >
> >
> >>This is being thrown from  in my
> >>
> >>
> >jsp.
> >
> >
> >>In my struts-config.xml I have the line:
> >>
> >>
> >>The ApplicationResources.properties file contains the keys it needs
> >>(prompt.ordersfrom=xyz).
> >>I have placed the ApplicationResources.properties file in the
> >>/WEB-INF/classes directory within the webapp directory.
> >>
> >>I have placed the struts.jar file in the /WEB-INF/lib directory and have
> >>ensured it is the only copy of struts.jar within tomcat.  I am using
> >>
> >>
> >xerces
> >
> >
> >>1.4 as my xml parser.
> >>
> >>I am using Log4j to log events and debug information, when the
> >>
> >>
> >ActionServlet
> >
> >
> >>is being initialised it gives the following output in the log:
> >>2002-07-19 16:47:48,293 [ main] DEBUG
> >>
> >>
> >org.apache.commons.digester.Digester -
> >
> >
> >>[SetPropertiesRule]{struts-config/message-resources} Setting property
> >>'parameter' to 'ApplicationResources'
> >>2002-07-19 16:47:48,295 [ main] DEBUG
> >>org.apache.commons.beanutils.BeanUtils -
> >>
> >>
> >>
>
>BeanUtils.populate(MessageResourcesConfig[factory=org.apache.struts.util.Pr
o
> >
> >
> >>pertyMessageResourcesFactorynull=true,parameter=null],
> >>{parameter=ApplicationResources})
> >>2002-07-19 16:47:48,296 [ main] DEBUG
> >>org.apache.commons.beanutils.BeanUtils -   name='parameter',
> >>value.class='java.lang.String', value='ApplicationResources'
> >>2002-07-19 16:47:48,339 [ main] DEBUG
> >>org.apache.commons.beanutils.ConvertUtils - Convert string
> >>'ApplicationResources' to class 'java.lang.String'
> >>2002-07-19 16:47:48,347 [ main] DEBUG
> >>
> >>
> >org.apache.commons.digester.Digester -
> >
> >
> >>[SetNextRule]{struts-config/message-resources} Call
> >>
> >>
> >>
>
>org.apache.struts.config.ApplicationConfig.addMessageResourcesConfig(Messag
e
> >
> >
>
>ResourcesConfig[factory=org.apache.struts.util.PropertyMessageResourcesFact
o
> >
> >
> >>rynull=true,parameter=ApplicationResources])
> >>
> >>I am not entirely sure if it is correctly loading the
ApplicationResources
> >>properties file or not, as on the second line it has 'parameter=null',
but
> >>is this something to do with the factory?
> >>
> >>If anyone has any ideas why this is happening please let me know, as I'm
> >>fast running out of them!
> >>
> >>Thanks, Shaun.
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:
> >>
> >>For

Re: Missing message for key - problem with ApplicationResources?

2002-07-22 Thread Stan Baranek

Shaun Whyte wrote:

>Hi
>
>Thanks for the tip, unfortunately I tried this already and I got the same
>problem.  As far as I understand, Struts 1.0 has the ApplicationRsources
>defined in the web.xml, but Struts 1.1 has it defined in the
>struts-config.xml, although someone please feel free to correct me if I'm
>wrong.
>
>Thanks again,
>Shaun.
>
>- Original Message -
>From: "srinivasa varadachar" <[EMAIL PROTECTED]>
>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>Sent: Friday, July 19, 2002 7:08 PM
>Subject: RE: Missing message for key - problem with ApplicationResources?
>
>
>  
>
>>hi,
>>
>>I don't know if you have entry in your web.xml file as shown below
>>
>>
>>action
>>org.apache.struts.action.ActionServlet
>>
>>  application
>>  app.ApplicationResources
>>
>>...
>>...
>>...
>>
>>
>>This works fine. You do not need any lines in the struts-config.xml file.
>>
>>Srini V
>>
>>
>>
>>-Original Message-
>>From: Shaun Whyte [mailto:[EMAIL PROTECTED]]
>>Sent: Friday, July 19, 2002 12:49 PM
>>To: [EMAIL PROTECTED]
>>Subject: Missing message for key - problem with ApplicationResources?
>>
>>
>>I am using the following:
>>- Apache Tomcat 4.0.4
>>- Struts 1.1 b1
>>
>>There seems to be a problem accessing my ApplicationResources.properties
>>file as it throws the following exception from the MessageTag when I call
>>the JSP page:
>>javax.servlet.jsp.JspException: Missing message for key prompt.ordersfrom
>>at
>>
>>
>org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298)
>  
>
>>This is being thrown from  in my
>>
>>
>jsp.
>  
>
>>In my struts-config.xml I have the line:
>>
>>
>>The ApplicationResources.properties file contains the keys it needs
>>(prompt.ordersfrom=xyz).
>>I have placed the ApplicationResources.properties file in the
>>/WEB-INF/classes directory within the webapp directory.
>>
>>I have placed the struts.jar file in the /WEB-INF/lib directory and have
>>ensured it is the only copy of struts.jar within tomcat.  I am using
>>
>>
>xerces
>  
>
>>1.4 as my xml parser.
>>
>>I am using Log4j to log events and debug information, when the
>>
>>
>ActionServlet
>  
>
>>is being initialised it gives the following output in the log:
>>2002-07-19 16:47:48,293 [ main] DEBUG
>>
>>
>org.apache.commons.digester.Digester -
>  
>
>>[SetPropertiesRule]{struts-config/message-resources} Setting property
>>'parameter' to 'ApplicationResources'
>>2002-07-19 16:47:48,295 [ main] DEBUG
>>org.apache.commons.beanutils.BeanUtils -
>>
>>
>>
>BeanUtils.populate(MessageResourcesConfig[factory=org.apache.struts.util.Pro
>  
>
>>pertyMessageResourcesFactorynull=true,parameter=null],
>>{parameter=ApplicationResources})
>>2002-07-19 16:47:48,296 [ main] DEBUG
>>org.apache.commons.beanutils.BeanUtils -   name='parameter',
>>value.class='java.lang.String', value='ApplicationResources'
>>2002-07-19 16:47:48,339 [ main] DEBUG
>>org.apache.commons.beanutils.ConvertUtils - Convert string
>>'ApplicationResources' to class 'java.lang.String'
>>2002-07-19 16:47:48,347 [ main] DEBUG
>>
>>
>org.apache.commons.digester.Digester -
>  
>
>>[SetNextRule]{struts-config/message-resources} Call
>>
>>
>>
>org.apache.struts.config.ApplicationConfig.addMessageResourcesConfig(Message
>  
>
>ResourcesConfig[factory=org.apache.struts.util.PropertyMessageResourcesFacto
>  
>
>>rynull=true,parameter=ApplicationResources])
>>
>>I am not entirely sure if it is correctly loading the ApplicationResources
>>properties file or not, as on the second line it has 'parameter=null', but
>>is this something to do with the factory?
>>
>>If anyone has any ideas why this is happening please let me know, as I'm
>>fast running out of them!
>>
>>Thanks, Shaun.
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>
>
>  
>
>>For additional commands, e-mail:
>>
>>
>
>  
>
>>
>>
>>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>
When I had this problem it was caused by not having the context set when 
using a subdirectory of the document home dir.  Is your .jsp in a 
sub-directory?  I had some junk in my header.jsp that was preventing it 
from finding where the base directory was that holds my resources file. 
 Try putting an image in the .jsp and see if it is able to traverse your 
./images directory.

Cheers,
Stan




RE: Where does the MessageResources get populated?

2002-07-22 Thread Tero P Paananen

> What I would like to know, is where abouts in the code this 
> population of
> the HashMap occurs, because the Struts example application 
> has populated the
> HashMap by the time the MessageTag is called.  But in the 
> application I am
> writing, I have followed through the same code, and the HashMap isn't
> populated when it comes to the executing the MessageTag.

PropertyMessageResources.loadLocale()

-TPP

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




Where does the MessageResources get populated?

2002-07-22 Thread Shaun Whyte

I am having problems with ApplicationResources as I keep getting the error
"Missing message for key ", when the MessageTag is being executed.
(Using struts 1.1 and tomcat 4.0.4).

The Struts Example application works ok.  I have stepped through the code
for initialisation of the struts ActionServlet and also from the doStart()
method of the MessageTag.  It seems to create a PropertyMessageResources
object which holds a HashMap of the messages from the
ApplicatioResources.properties file.  However upon initislisation the
HashMap only seems to be created, not populated with the values.  It then
stores it in the ServletContext.

When the doStart() method is called in the MessageTag, it gets the
MessageResources from the ServletContext.  Magically, the messages HashMap
in the MessageResources which was created on initialisation are populated
with all the messages from the ApplicationResources.properties file.

What I would like to know, is where abouts in the code this population of
the HashMap occurs, because the Struts example application has populated the
HashMap by the time the MessageTag is called.  But in the application I am
writing, I have followed through the same code, and the HashMap isn't
populated when it comes to the executing the MessageTag.

If anyone knows where it is populated and how it gets called, please let me
know.

Thanks,
Shaun.


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




Re: jsp:include when page="anAction.do"

2002-07-22 Thread Kevin Scott

I have had the same problem.  You should call the anAction.do class first.  Have it 
put all the required data in a javabean then then forward on to a jsp page to display 
the into the Java bean.



*** REPLY SEPARATOR  ***

On 7/19/2002 at 1:55 PM Struts Newsgroup wrote:

>Subject: jsp:include when page="anAction.do"
>From: "M. David" <[EMAIL PROTECTED]>
> ===
>I'm wondering if anybody is attempting this.  The problem I'm seeing is the
>content is never completely rendered.
>
>Versions of software:
>JDK 1.3
>tomcat 4.0
>Struts 1.0.2
>
>thanks in advance,
>manny
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail: 




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




How to implement paging in Struts?

2002-07-22 Thread Hoang, Hai

I was searching the archive and come up empty with regarding to the paging
functionality in struts.  Some people mentioned the Jsptags.com's paging
tags.  The problem is this tag is that it puts a big collection of result
data in the session.  It may have a scalability problem.  

Sun's blueprints also mentioned the page-by-page pattern but the
implementation causes me problem because I am using sql server 2000 jdbc
driver, which does not support the resultSet.absolute method.

Thanks, Hai




RE: Can I read internationalized messages in Action classes ?

2002-07-22 Thread James Mitchell

There is a better way to do this from within your action class
perform/execute method.

MessageResources messages = getResources(request);

It is faster because it is stored in memory.
(see org.apache.struts.action.Action for details)

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Andy [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 1:02 AM
> To: Struts Users Mailing List
> Subject: Re: Can I read internationalized messages in Action classes ?
>
>
> hi, Anjana
> try this:
> org.apache.struts.util.MessageResources.getMessageResources("FileN
> ame").getM
> essage(key);
> or
> org.apache.struts.util.MessageResources.getMessageResources("FileN
> ame").getM
> essage(key, arg);
>
> FileName: xxx.xxx.xxx.ApplicationResources
> (same messages property file)
>
> Andy
>
> - Original Message -
> From: "Anjana Wijayaweera" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Monday, July 22, 2002 1:43 PM
> Subject: Can I read internationalized messages in Action classes ?
>
>
> >
> > Hi All,
> >
> > I need to know how to read internationalized messages inside action
> > classes If
> > possible I would like to load it from the same messages property file as
> the
> > one
> >  loads it from.
> >
> > For instance how would I internationalize this message "Session Cleanup:
> > sessionData removed from session"
> > in the following line of code.
> >
> >  log(Constants.ERROR_DEBUG,
> > "Session Cleanup: sessionData removed from
> session");
> >
> > Thanks in advance for your help :o)
> >
> >
> > Regards,
> > Anjana
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Character set problem, subclass action servlet

2002-07-22 Thread Maris Orbidans


You can subclass action servlet:


import org.apache.struts.action.ActionServlet;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;

public class LADActionServlet extends ActionServlet
{
protected void process(HttpServletRequest p0, HttpServletResponse p1) throws 
IOException,ServletException
{
String enc = this.getServletConfig().getInitParameter("requestEncoding");
if(enc != null && enc.trim().length() > 0)
{
p0.setCharacterEncoding(enc);
}
super.process(p0, p1);
}
}


refer encoding in web.xml like this


action
lv.datapro.lad.pri.actions.LADActionServlet
...

  requestEncoding
  windows-1257

2
  


regards
Maris Orbidans

> -Original Message-
> From: Eric Chow [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 21, 2002 4:55 AM
> To: [EMAIL PROTECTED]
> Subject: Character set problem
> 
> 
> Hello,
> 
> Is it possible force the Action or ActionForm to use
> req.setCharacterEncoding() before it capturing data or
> put all the form data in ActionForm ??
> 
> Best rgards,
> Eric
> 
> 
> =
> ==
>  Chow Hoi Ka, Eric
>  Email : [EMAIL PROTECTED]
> 
>  - If you know what you are doing,
>  - it is not called RESEARCH.
> ==
> 
> __
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




how to dynamically save xml formed by using struts

2002-07-22 Thread Abhishek Goel

Hi,
   i am generating xml dynamically using XMLizable interface.But the problem
is that i have to pass this xml to another config file which picks these xml from
a directory.
is there any way of storing xml to that directory on the fly.
Regards
Abhishek



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


Wrapping Collections in LazyList to auto-populate form on Submit

2002-07-22 Thread hemant

Comrades,



Objective: To autopopulate forms on submit. The formbean "has a" collection of 
collections of ValueObjects. Each valueObject contains a pair of other Value Objects.

Before people beat me up,  The following possibilities have been dealt with:

1>> No, this is not a case of reset() I have the collections initialized and things 
are fine. 

2>> It is not a case of bean being in request scope. By default the bean is in session 
scope (Unless we explicitly mention the action attribute that it is request scope.)

When asked about why the nested beans were not dynamically populated even though the 
getter() methods are beling called, Nesting and Recursion Guru Arron Bates said the 
following:



FYI
This isn't a "nested tags" issue at all, but a nested bean-in-a-list

issue which Struts had a long time before I wrote the nested tags.

They're only guilty of making something quite complex very easy to do.

:)

Wrap your collections in org.apache.commons.collections.LazyList,

provide a class definition of your child bean and it'll be sweet and

ready to do without any other effort, even in the reset() method.





So without wasting anytime, I downloaded the nightly build and incorporated it into my 
IDE. I still seem to be missing something. 

I wrote a simple method to "test" the wrapping. I get the following...



java.lang.IllegalArgumentException: Null property value for 'wrappedCollections[0]'
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
java.lang.RuntimeException(java.lang.String)
java.lang.IllegalArgumentException(java.lang.String)
java.lang.Object 
org.apache.commons.beanutils.PropertyUtils.getNestedProperty(java.lang.Object, 
java.lang.String)
java.lang.Object 
org.apache.commons.beanutils.PropertyUtils.getProperty(java.lang.Object, 
java.lang.String)
java.lang.Object 
org.apache.struts.util.RequestUtils.lookup(javax.servlet.jsp.PageContext, 
java.lang.String, java.lang.String, java.lang.String)
int org.apache.struts.taglib.logic.IterateTag.doStartTag()






 

.
.

 - 








public java.util.Collection generateWrappedCollection()
{
if (null != this.collectionOfCollectionsOfVoPairs)
{


ArrayList list = new ArrayList();

//This is the entire collection.
Iterator iterator = this.collectionOfCollectionsOfVoPairs.iterator();

//A LazyList
List lazyList = null;

ValueObjectPair voPair = new ValueObjectPair();

//A container for ValueObjectPair collection.
VoPairCollectionHolder holder = null;
while (iterator.hasNext())
{
//Gets each collection of ValueObject Pairs.
Collection voPairCollection = (Collection) iterator.next();

//Wrap collection containing ValueObjectPairs into a LazyList.
lazyList =
LazyCollections.lazyList(new ArrayList(voPairCollection), 
voPair.getClass());

//Place each ValueObjectPair collection into a VoPairCollecitonHolder.
holder = new VoPairCollectionHolder(lazyList);

//The list now is a collection of VoPairCollection holders.
list.add(holder);

//list.add(lazyList);
}

//Now Wrap the collection of collections of valueobject pairs in another 
lazylist
this.wrappedCollections = LazyCollections.lazyList(list, holder.getClass());

   }
return this.wrappedCollections;
}



I am about to give up on form auto populate as I am out of time. I will be populating 
them by hand but anyway... one last attempt. We dont like to lose... do we?



Thanks In Advance

hemant
















RE: Arrgh!!! my property has been cursed and my bean doesnt like the field on my farm , uhh form I mean

2002-07-22 Thread Mark Nichols

+1



> -Original Message-
> From: Andrew Hill [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 20, 2002 5:36 AM
> To: Struts Users Mailing List
> Subject: RE: Arrgh!!! my property has been cursed and my bean doesnt
> like the field on my farm , uhh form I mean
>
>
> Old McAndrew put down the chainsaw and wiped the sweat from his brow.
> It had been a hard ten minutes work, but his bean fields were now clear of
> illegal
> getters.
>
> Had it been anyone other than old man McClanahan he would have
> given them a
> good
> scolding for talking such obvious nonsense. "Cant grow extra
> getters indeed!
> Whos going to know anyway!".
>
> Indeed he hadnt heard such nonsense since some young upstart
> named Bill had
> come out from the city
> talking about using .nets as though he was some kind of fisherman!
>
> But he knew that Mc Clanahan had been around long enough to know
> what he was
> talking
> about and had decided to give his advice a go. Nevertheless it was with
> somewhat of a cynical eye
> that he looked over his bean fields before retiring for the night.
>
> Next morning old Mc Andrew got up and went to see how his fields were
> getting() along.
> "Well b* me with a barge pole!" he exclaimed. "That McClanahan fellow
> was right after all!".
> Yep. Sure enough, his setHeaderTransformation() field was being called!
>
> cheers Craig!
>
> -Andrew
>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 19, 2002 00:20
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: Arrgh!!! my property has been cursed and my bean doesnt
> like the field on my farm , uhh form I mean
>
>
>
>
> On Thu, 18 Jul 2002, Andrew Hill wrote:
>
> > Date: Thu, 18 Jul 2002 14:29:22 +0800
> > From: Andrew Hill <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: RE: Arrgh!!! my property has been cursed and my bean  doesnt
> > like the field on my farm , uhh form I mean
> >
> > Ah well now, its funny you should be mentioning that.
> >
> > As it happens Old Mc Andrew did once have a method to set the
> field with a
> > boolean, but changed it to take a string instead as he is quite
> set in his
> > ways and has never liked booleans (as he learnt from a young age that
> > providing a certain true or false answer instead of 'maybe' tends to
> create
> > a few too many expectations in folk not wise to the ways of software
> > development...).
> >
> > He has looked at his ActionForm code to try and determine is there is a
> > second setter somewhere (he even looked behind the grassyKnoll() method)
> but
> > found nothing. Old McAndrew has been known to occasionally miss things
> that
> > are right under his nose however, and will continue to look.
> >
> > There ARE however multiple getter methods, or to be precise there is a
> > method getHeaderTransform() and an  isHeaderTransform() the
> latter of the
> > two returning a boolean. (The other similar fields also have these but
> they
> > still work.)
> >
>
> Despite their protestations to the contrary, having two getters like this
> is also a violation of the rules (the JavaBeans rules, that is).  It would
> also be improper to have a getter that returns one type, and a setter that
> accepts a different one.
>
> "So where are these rules?" you might ask.  "How can I avoid such faux pas
> in the future?"
>
> http://java.sun.com/products/javabeans/
>
> has a link that gets you to the JavaBeans specification, which includes a
> whole chapter on how well mannered JavaBeans properties expose themselves
> to the world.
>
> Craig
>
>
> > -Original Message-
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 18, 2002 14:05
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: Arrgh!!! my property has been cursed and my bean doesnt
> > like the field on my farm , uhh form I mean
> >
> >
> >
> >
> > On Thu, 18 Jul 2002, Andrew Hill wrote:
> >
> > > Date: Thu, 18 Jul 2002 13:23:02 +0800
> > > From: Andrew Hill <[EMAIL PROTECTED]>
> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> > >  [EMAIL PROTECTED]
> > > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > Subject: Arrgh!!! my property has been cursed and my bean  doesnt like
> > > the field on my farm , uhh form I mean
> > >
> > > Or to be a little bit more specific...
> > >
> > > Old Mc Andrew had a form
> > > and on that form he had a field
> > > with the name "headerTransformation"
> > > but naughty Mr Struts simply would NOT call the method
> > > setHeaderTransformation in his ActionForm
> > > even though it had not been a problem yesterday!
> > >
> >
> > I hope old McAndrew isn't trying to have his cake and eat it too, by
> > having more than one mistress, err, setHeaderTransformation()
> method that
> > takes a different type of argument :-).  Such things v

RE: html:radio and iterate tag

2002-07-22 Thread Arnaud HERITIER

I can propose a solution but it will work only with struts 1.1 because it
uses indexed properties.

In your first iterate you should define an indexId. For example :



Then in the html:radio you use an indexedproperty:

" idName="access"
value="accessLevelId"/>

The property "userAccess" of your form bean must to be a String[]

Arnaud

> -Message d'origine-
> De : Struts Newsgroup [mailto:@[EMAIL PROTECTED]]
> Envoyé : lundi 22 juillet 2002 13:25
> À : [EMAIL PROTECTED]
> Objet : html:radio and iterate tag
>
>
> Subject: html:radio and iterate tag
> From: "Issam Mouslim" <[EMAIL PROTECTED]>
>  ===
> Hello folks,
> Is there any way to index html:radio with my own index?
> Here is my code: I want to have an unknown number of radio per line
> I have 2 iterate one for the lines, the second containing my
> radio is for
> columns. I want my radios to be index by the index of the
> first iterate (ie:
> lines)
>
> 
>  
>    
>type="beans.AccessLevel">
>
> 
>
>   
>  
>   type="beans.Center">
>   
>
> 
>
> type="beans.AccessLevel">
> 
>   value="accessLevelId"/>
> 
>
>   
>  
> 
>
> Thanks
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



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




html:radio and iterate tag

2002-07-22 Thread @Basebeans.com

Subject: html:radio and iterate tag
From: "Issam Mouslim" <[EMAIL PROTECTED]>
 ===
Hello folks,
Is there any way to index html:radio with my own index?
Here is my code: I want to have an unknown number of radio per line
I have 2 iterate one for the lines, the second containing my radio is for
columns. I want my radios to be index by the index of the first iterate (ie:
lines)


 
   
  
   

   
  
 
 
  
   

   
   

 

   
  
 


Thanks



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




AW: How sturts open a new window page ?

2002-07-22 Thread Mrazovic, Maik



-Urspr¨¹ngliche Nachricht-
Von: Cliff Rowley [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 22. Juli 2002 12:51
An: Struts Users Mailing List
Betreff: Re: How sturts open a new window page ?


sanjeev_dutt wrote:

>Hi Robert,
>
>Could you please explain how to use this 'target' attribute with an
example.
>
Any HTML documentation on the A or FORM tags will tell you what you need
to know. In summary, the target attribute specifies either the name of a
frame, or one of a few predefined values. Some of those predefined
values being _top (the top level frame or window if no frames exist) and
_blank (a new window).

For example:

 will open foo.html in a new window.

 will submit the
form to foo.do in a new window.

Really these questions are not Struts, but HTML specific (since the
Struts tags generally generate underlying HTML).

HTH

Cliff Rowley


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: How sturts open a new window page ?

2002-07-22 Thread Cliff Rowley

sanjeev_dutt wrote:

>Hi Robert,
>
>Could you please explain how to use this 'target' attribute with an example.
>
Any HTML documentation on the A or FORM tags will tell you what you need
to know. In summary, the target attribute specifies either the name of a
frame, or one of a few predefined values. Some of those predefined
values being _top (the top level frame or window if no frames exist) and
_blank (a new window).

For example:

 will open foo.html in a new window.

 will submit the
form to foo.do in a new window.

Really these questions are not Struts, but HTML specific (since the
Struts tags generally generate underlying HTML).

HTH

Cliff Rowley


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




Strutsproblem: Sending files from Server to client!

2002-07-22 Thread Mrazovic, Maik

Server generates a textfile. After generating server read the file and sends
it to the client. Well, thats noe problem I thought, but a problem within
Struts!

While server wants to make this above within an Action there come en error: 

"2002-07-22 12:46:44 - Ctx( /impact ): IllegalStateException in: R( /impact
+ /createCSV2.do + null) Cannot forward as OutputStream or Writer has
already been obtained"


But if server makes this by a servlet it works! Isn´t that strange? 

The code:

//userObject from session
HttpSession session = request.getSession(true);
de.tsystems.impact.model.User user =
( de.tsystems.impact.model.User )
session.getAttribute(de.tsystems.impact.constants.Constants.USER_KEY);

  //debug-Info
  de.tsystems.impact.util.ParameterTest.printParameters(request);

//App.Key: "sql.csv.generate"
String stmt = "something...'";

DBConnector con = DBConnector.getInstance();
java.util.List listResult = con.executeDBStatement(stmt);

java.util.Iterator iter = listResult.iterator();

//Vector we fill with ImpactCSV-Objects
java.util.Vector vectorWithCSVData = new java.util.Vector();

while (iter.hasNext()) {
  java.util.List vec = (java.util.List) iter.next();
vectorWithCSVData.add(new de.tsystems.impact.model.ImpactCSV(
  ((String) vec.get(2)), //land
  ((String) vec.get(0)), //bm
  ((String) vec.get(1)), //Version
  ((String) vec.get(4)), //Monat
  ((String) vec.get(3)), //Jahr
  ((String) vec.get(5))  //MengeLPP
  ));
}

//create empty CSV-File on server
String file = getServletContext().getRealPath("") +
java.io.File.separator + "web-inf" + java.io.File.separator
  + "csv.dat";

//Buffersize for reading and sending data
int buffer = 10 * 1024;   //10 kb, increase if necessary

//fill the "csv.dat" at "..\WEB-INF\csv.dat".
FileOutputStream fos = new FileOutputStream(new File(file));
PrintWriter pw = new PrintWriter(fos);

for (int i = 0; i < vectorWithCSVData.size(); i++)
{
de.tsystems.impact.model.ImpactCSV impactSCV =
( de.tsystems.impact.model.ImpactCSV )
vectorWithCSVData.get(i);

pw.write(impactSCV.getLandnummer() + ";" +
impactSCV.getBaumuster() + ";" + impactSCV.getVersion() + ";"
 + impactSCV.getMonat() + ";" + impactSCV.getJahr() +
";" + impactSCV.getWert() + "\n");
}

//clean up all ressources
pw.flush();
pw.close();
fos.close();

//Now sending this file to client
try
{
//BufferedOutputStream out = new
BufferedOutputStream(response.getOutputStream(), buffer);
javax.servlet.ServletOutputStream out =
response.getOutputStream();

String contentType = getServletContext().getMimeType(file);

response.setContentType(contentType);

FileInputStream fis = new FileInputStream(file);
byte[] buf = new byte [buffer];
int bytesRead;

while ((bytesRead = fis.read(buf)) != -1)
{
out.write(buf, 0, bytesRead);
}

out.flush();
fis.close();
}
catch (Exception e)
{
e.printStackTrace();
response.sendError(response.SC_NOT_FOUND, e.toString());
}

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




RE: How sturts open a new window page ?

2002-07-22 Thread Robert Taylor





http://www.w3.org/MarkUp/


robert

> -Original Message-
> From: sanjeev_dutt [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 6:36 AM
> To: Struts Users Mailing List
> Subject: RE: How sturts open a new window page ?
>
>
> Hi Robert,
>
> Could you please explain how to use this 'target' attribute with
> an example.
>
> T & R
> Sanjeev
>
> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 3:59 PM
> To: Struts Users Mailing List
> Subject: RE: How sturts open a new window page ?
>
>
> If you want to have the result of processing the action displayed in a
> different browser window than
> the one in which the user submitted the form, define a target attribute in
> the HTML form element.
> When the use submits the processing request, a new browser window
> will open
> and the results will be
> displayed there.
>
> You are describing client side functionality. Struts is a server side
> framework and therefore
> cannot directly open a browser window.
>
> HTH,
>
> robert
>
> > -Original Message-
> > From: joel [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 22, 2002 1:55 AM
> > To: [EMAIL PROTECTED]
> > Subject: How sturts open a new window page ?
> >
> >
> > Hi All:
> > I wonder how struts process opener page,for example :
> > when I submit 
> > I want actionservlet can open a new window but not this window to
> > process actions.
> > How can struts do it ?
> > Or I need to use the old way that by javascript ?
> >
> > thanks all
> > joe
> >
> >
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: How sturts open a new window page ?

2002-07-22 Thread sanjeev_dutt

Hi Robert,

Could you please explain how to use this 'target' attribute with an example.

T & R
Sanjeev

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:59 PM
To: Struts Users Mailing List
Subject: RE: How sturts open a new window page ?


If you want to have the result of processing the action displayed in a
different browser window than
the one in which the user submitted the form, define a target attribute in
the HTML form element.
When the use submits the processing request, a new browser window will open
and the results will be
displayed there.

You are describing client side functionality. Struts is a server side
framework and therefore
cannot directly open a browser window.

HTH,

robert

> -Original Message-
> From: joel [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 22, 2002 1:55 AM
> To: [EMAIL PROTECTED]
> Subject: How sturts open a new window page ?
>
>
> Hi All:
> I wonder how struts process opener page,for example :
> when I submit 
> I want actionservlet can open a new window but not this window to
> process actions.
> How can struts do it ?
> Or I need to use the old way that by javascript ?
>
> thanks all
> joe
>
>


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


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




  1   2   >