RE: Hi

2003-01-27 Thread Míguel Ángel Mulero Martínez
In what file? If I'm not wrong, you must read the file in an Action, and
then process it (if needed) and put the result in the request for the JSP.

Regards,
Miguel

-Mensaje original-
De: Uday [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 28 de enero de 2003 8:35
Para: [EMAIL PROTECTED]
Asunto: Hi

Hi,


I want to read and write from/into the file using strtus (struts-taglibs).
Can you tell me how to do it.

It is very urgent. Tell me is there any code available on the net.


Have a nice day

Regards,
Uday

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Hi

2003-01-27 Thread Uday
Hi,


I want to read and write from/into the file using strtus (struts-taglibs).
Can you tell me how to do it.

It is very urgent. Tell me is there any code available on the net.


Have a nice day

Regards,
Uday

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




[OT] Filters and Struts - Caching Framework

2003-01-27 Thread Jacob Hookom
I noticed that Common’s caching is non-existent, and the cache taglibs seem
to have been stopped in development.  If I’m finishing up a generic caching
framework that includes a filter and taglibs, would it be plausible to push
it as a replacement for the other implementations?

Some of the things I’ve included:
• Framework completely configurable via XML w/ Digester

• Caches use the Composite pattern to allow developers to chain their own
series of caches (ex: SoftReferenceCacheModule for speed followed by a
DiskCacheModule for longevity).  At the same time, you can setup N other
caches for each particular case you may have, including a
DatabaseCacheModule using Blobs.

• Cached objects are stored under keys that are created via FactoryMethod
which allow EL type syntax (ex: store /employee.do?id=54 via EMPLOYEE_${id}
would create EMPLOYEE_54 as a key.)  This allows for other application logic
or Actions to intelligently flush cached objects that have complex keys.

• The cache framework also allows for you to configure Refresh Policies
which validate Objects before returned by the cache.  This allows not only
time limits to be set on the life of objects, but also allow for custom
logic from your business layer to control caching in addition to the Key
generation described above.

• All logical components are initialized with the application’s servlet
context to allow for business logic to be, again incorporated from other
application components.

• Currently implemented are a cache filter and a flush filter.  This would
allow POSTs from a form to be caught by a flush filter and consequently
flush a cache pattern or cache key.  The caching filter would allow complex
page transformations or db calls that generate content to be only refreshed
when absolutely needed—no need for repetitive server processing when the
model hasn’t changed.

• A cache controller (top of the framework) can be retrieved by a get
instance method from the servlet context to also cache business objects with
the same flexibility as page content.

• More is being developed….

I originally planned to enhance OSCache, but I felt that you couldn’t really
start from anywhere for enhancing or modifying the framework; it was too
concrete in implementation and didn’t have the built in ability to generate
useful keys on the fly without scriptlets in your JSPs.

Anyways, if there's interest in starting up the cache libs again, not
necessarily with my code, but do something similar to what the AXIS4STRUTS
is doing, send me an email please.

Best Regards,
Jacob Hookom


-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 12:00 AM
To: 'Jacob Hookom'; ''Struts Users Mailing List' '
Subject: RE: Filters and Struts

Ok, thanks to allO  Guess my only other option is to either define a filter
for each servlet for now, until 2.4 is prod ready, or as Max mentioned, and
put all actions in need of authentication, within the members namespace. 
 
Both are a hassle of course as compared to a simple filterc, but that’s what
we’ll have to live with for now,(
 
Any idea of when the 2.4 spec and tomcat will be production ready? 
 
Thanks. 
 
Ilya

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 1:32 PM
To: 'Sterin, Ilya'; ''Struts Users Mailing List' '
Subject: RE: Filters and Struts

I did some more checking on the 2.3 Spec and you are correct that it does
not allow for specific include requests.  I believe Craig had mentioned
before in Tomcat-User that the Filter chain is created once a request, which
would not accommodate dynamic includes.
 
Servlet 2.4 Specs
http://jcp.org/aboutJava/communityprocess/first/jsr154/
 
With 2.4, you can define lots more in your filter-mapping for includes,
specific GET/POST requests etc.  I’m finishing up a robust caching framework
with the use of tags/filters, and the 2.4 features will really simplify
filter functionality, even with Security Filters.
 
-Jacob
 
-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 10:54 AM
To: 'Jacob Hookom '; ''Struts Users Mailing List' '
Subject: RE: Filters and Struts
 
Hmmm, I'm successfuly using it with 2.3 just filtering jsp pages in a dir,
but the forwards are not filtered. 
I can of course filter each individual servlet, but that undermines the
whole filter cause, IMO, that way I can just use a authentication function
in each servlet.
Ilya 
-Original Message- 
From: Jacob Hookom 
To: 'Struts Users Mailing List' 
Sent: 1/27/03 9:39 AM 
Subject: RE: Filters and Struts 
It is in the 2.4 Servlet Spec, but I'm not fully sure if it's included 
in 
2.3, which is 4.1.x I believe. 
| -Original Message- 
| From: David Graham [mailto:[EMAIL PROTECTED]] 
| Sent: Monday, January 27, 2003 10:35 AM 
| To: [EMAIL PROTECTED] 
| Subject: Re: Filters and Struts 
| 
| I could be wrong but I believe filters apply to forwards. 
| 
|

Re: Problem With Multiple ActionServlet - Urgent

2003-01-27 Thread Craig R. McClanahan


On Fri, 25 Jan 2002, ashokd wrote:

> Date: Fri, 25 Jan 2002 13:26:44 +0530
> From: ashokd <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  'Jacob Hookom' <[EMAIL PROTECTED]>
> Subject: Problem With Multiple ActionServlet - Urgent
>
> Hi,
>
> I defined two ActionServlets, first one is the default ActionServlet and
> second one is Custom ActionServlet.
>

As the Struts documentation will tell you, multiple controller servlets is
not a supported configuration.  It's going to cause you nothing but grief,
because the code in ActionServlet assumes that it is a singleton.

Craig


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




Problem With Multiple ActionServlet - Urgent

2003-01-27 Thread ashokd
Hi,

I defined two ActionServlets, first one is the default ActionServlet and second one is 
Custom ActionServlet.

The purpose of Custom ActionServlet is to redirect login page when the user name is 
not in session.

For loginpage action we need to call the default ActionServlet. 

Default ActionServlet is mapped to *.do

Custom ActionServlet is mapped to *.go

Problem:

In login page action we given 



but it is coming 



I think this text will be replaced by struts frame work in login page.

Where we need to configure to get




web.xml:


  
action
org.apache.struts.action.ActionServlet  

  application
  ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2
  

  
newaction
com.vstl.wspr.WSPRActionServlet   

  application
  ApplicationResources


  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

2
  
  

  
 action
 *.do
  

  
 newaction
 *.go
  










RE: Filters and Struts

2003-01-27 Thread Sterin, Ilya
Ok, thanks to all:-)  Guess my only other option is to either define a
filter for each servlet for now, until 2.4 is prod ready, or as Max
mentioned, and put all actions in need of authentication, within the
members namespace. 
 
Both are a hassle of course as compared to a simple filter:-), but
that's what we'll have to live with for now:-) 
 
Any idea of when the 2.4 spec and tomcat will be production ready? 
 
Thanks. 
 
Ilya
 
-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 1:32 PM
To: 'Sterin, Ilya'; ''Struts Users Mailing List' '
Subject: RE: Filters and Struts
 
I did some more checking on the 2.3 Spec and you are correct that it
does not allow for specific include requests.  I believe Craig had
mentioned before in Tomcat-User that the Filter chain is created once a
request, which would not accommodate dynamic includes.
 
Servlet 2.4 Specs
http://jcp.org/aboutJava/communityprocess/first/jsr154/
 
 
With 2.4, you can define lots more in your filter-mapping for includes,
specific GET/POST requests etc.  I'm finishing up a robust caching
framework with the use of tags/filters, and the 2.4 features will really
simplify filter functionality, even with Security Filters.
 
-Jacob
 
-Original Message-
From: Sterin, Ilya [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 10:54 AM
To: 'Jacob Hookom '; ''Struts Users Mailing List' '
Subject: RE: Filters and Struts
 
Hmmm, I'm successfuly using it with 2.3 just filtering jsp pages in a
dir, but the forwards are not filtered. 
I can of course filter each individual servlet, but that undermines the
whole filter cause, IMO, that way I can just use a authentication
function in each servlet.
Ilya 
-Original Message- 
From: Jacob Hookom 
To: 'Struts Users Mailing List' 
Sent: 1/27/03 9:39 AM 
Subject: RE: Filters and Struts 
It is in the 2.4 Servlet Spec, but I'm not fully sure if it's included 
in 
2.3, which is 4.1.x I believe. 
| -Original Message- 
| From: David Graham [ mailto:[EMAIL PROTECTED]
 ] 
| Sent: Monday, January 27, 2003 10:35 AM 
| To: [EMAIL PROTECTED] 
| Subject: Re: Filters and Struts 
| 
| I could be wrong but I believe filters apply to forwards. 
| 
| David 
| 
| 
| 
| 
| 
| 
| >From: "Sterin, Ilya" <[EMAIL PROTECTED]> 
| >Reply-To: "Struts Users Mailing List" 
<[EMAIL PROTECTED]> 
| >To: "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]> 
| >Subject: Filters and Struts 
| >Date: Mon, 27 Jan 2003 09:13:26 -0700 
| > 
| >I'd like to know if anyone has used and/or knows the best way to use 
a 
| >Login 
| >Filter with Struts.  Before utilizing struts, I simply filtered say a

| >"members" directory, which took care of all JSP pages there... 
| > 
| >Since struts relies on forwarding, forwarding to those pages does not

| >utilize the filter, therefore, it allows anonymous access. 
| > 
| >If not filters, what are other good/best approaches. 
| > 
| >Thanks. 
| > 
| >Ilya 
| 
| 
| _ 
| Help STOP SPAM with the new MSN 8 and get 2 months FREE* 
| http://join.msn.com/?page=features/junkmail
  
| 
| 
| -- 
| To unsubscribe, e-mail:   < mailto:struts-user- 

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



Re: [AXIS4STRUTS]Generating XML from Struts JSP

2003-01-27 Thread Craig R. McClanahan


On Mon, 27 Jan 2003, Michael Oliver wrote:

> Date: Mon, 27 Jan 2003 22:04:48 -0700
> From: Michael Oliver <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [AXIS4STRUTS]Generating XML from Struts JSP
>
> Has anyone used JSP with Struts to generate XML?
> http://java.sun.com/products/jsp/html/JSPXML.html
>
> Would anyone be interested in a struts-xml.tld and the associated custom
> tag classes?
>
> If so what kinds of tags would you want? bean name and value?
>
> Can we just add a few XML oriented tags to the struts-html.tld and
> html/custom tag classes?
>
> DynaBean Tags?
>
> Build an xml document from the contents of a DynaBean?
>
> Just some of the things we might want for Axis4Struts and others may
> want too.
>

I use JSP to render XML with the standard Struts tag libraries and it
works quite well.  The  tag already supports DynaBeans,
 works great for looping through data structures, and so
on.

A trivial example similar to the XML document listed in the page you
referenced (assuming a collection of "books" that is either JavaBeans or
DynaBeans):

  <%@ page contentType="text/xml" %>
  <%@ taglib prefix="bean" uri="http://jakarta.apache.org/struts/bean"; %>
  <%@ taglib prefix="logic" uri="http://jakarta.apache.org/struts/logic"; %>
  

  



  

  

Of course, you can do the same thing with JSTL tags if you've got standard
JavaBeans as the backing data.

> Ollie

Craig


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




RE: Prevent Cache.

2003-01-27 Thread Bill Chmura

Browser caching is all dependent on the browser obeying, or
understanding the directives.  I cant quote anything recent, but I think
there was some problems with IE doing whatever it wanted awhile back.  I
think it was IE anyway...

In other words, you may be doing everything right...

Just another angle to consider


-Original Message-
From: carlos list [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 9:13 AM
To: [EMAIL PROTECTED]
Subject: Re: Prevent Cache.




Yes, I have a proxy server for Extranet access, but my application runs
only 
on the intranet.




>From: Chuck Cavaness <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: Prevent Cache.
>Date: Fri, 24 Jan 2003 19:00:09 -0500
>
>Just out of curiosity, are you using a proxy server?
>
>chuck
> >
> > From: "carlos list" <[EMAIL PROTECTED]>
> > Date: 2003/01/24 Fri PM 06:09:53 EST
> > To: [EMAIL PROTECTED]
> > Subject: Prevent Cache.
> >
> >
> >
> >
> >
> > Hello List, i'm dealing with the old problem of preventing browser
>chache.
> > I've tried all the combinations i found in the archive:
> >
> > Code in my JSP view:
<%response.setHeader("Cache-Control","no-cache");
> >  response.setHeader("Pragma","no-cache");
> >  response.setDateHeader("Expires",0);
> >%>
> >
> > Also the same code in my Action class.
> >
> > And nocache=true in the initialization parameters of the 
> > ActionServlet.
> >
> > But nothing seems to work.
> >
> > Has anyone solved this problem effectively?
> >
> > thanks in advanced.
> >
> > Carlos.
> >
> > _
> > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
> > http://join.msn.com/?page=features/virus
> >
> >
> > --
> > To unsubscribe, e-mail:   
>
> > For additional commands, e-mail:
>
> >
> >
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail:
>


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


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Form Design Problem

2003-01-27 Thread K Viswanathan

Hi ,

I have a requirement where user has to fill up some kind of questionaire
form. Questions for a user depends on the "type" of a user. In essense we
have a form containing questions which could be different based on the user
type.  Questions are basically mutiple choice questions and the user can
select the correct answer by selecting a radio button .

Now I want to use struts validation frame work for performing validations.
If the user leaves any of the answers empty by not selecting the radio
button , the system should not accept it and report an error displaying the
same form with all the data entered for the form.

The question is how can i use the validation framework to perform
validation? Please note that the form fields change so it is not possible
for me to associate them in "validator.xml"  before hand.

Any inputs would be appreciated.
Thanks
Vishy





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




Form Design Problem

2003-01-27 Thread K Viswanathan

Hi ,

I have a requirement where user has to fill up some kind of questionaire form. 
Questions for a user depends on the "type" of a user. In essense we have a form 
containing questions which could be different based on the user type.  Questions are 
basically mutiple choice questions and the user can select the correct answer by 
selecting a radio button . 

Now I want to use struts validation frame work for performing validations. If the user 
leaves any of the answers empty by not selecting the radio button , the system should 
not accept it and report an error displaying the same form with all the data entered 
for the form.  

The question is how can i use the validation framework to perform validation? Please 
note that the form fields change so it is not possible for me to associate them in 
"validator.xml"  before hand.

Any inputs would be appreciated.
Thanks
Vishy







RE: [OT] Synchronizing Session Objects

2003-01-27 Thread Craig R. McClanahan


On Mon, 27 Jan 2003, James Turner wrote:

> Date: Mon, 27 Jan 2003 21:16:05 -0500
> From: James Turner <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: [OT] Synchronizing Session Objects
>
> > From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 27, 2003 8:57 PM
> > To: Struts Users Mailing List
> > Subject: Re: [OT] Synchronizing Session Objects
> >
> > If you're modifying them, you definitely should -- there are
> > lots of cases where it is possible to have multiple
> > simultaneous requests for the same session.
> >
>
> I'd be curious what the non-trivial cases of this would be.  You can
> certainly get multiple simultaneous requests if you have images loading
> on a page, or that type of stuff.  But where would you (for example) see
> it being possible for multiple Struts Actions to be running at once on
> the same session, without it being some kind of "the user hit the back
> button" scenario?  I can see this happening in pure servlet code, where
> a give page might be calling several servlets at once, but isn't that
> the benefit of MVC, that all the stuff that would be likely to need to
> be synchronized happens in a single method (the Action), and the page
> merely displays results?
>

Having a controller doesn't avoid the need to synchronize things that get
modified -- consider a shopping cart implemented as an ArrayList
maintained in the session, and a JSP page that uses  to
display it.  If the List is modified during the JSP's iteration, the page
is going to throw a very ugly ConcurrentModificationException.

By the way, here's two trivially simple ways to cause this problem:

(1) Use frames where the pages in each frame reference the same
collection, and at least one of the frames modifies it.

(2) Have users that submit a request, press STOP, and submit another
request.  (You're just as likely to end up trying to do simultaneous
modifications in this scenario, which is even worse than a modification
plus iteration scenario.)

To say nothing of application scenarios where you've cached data in the
session that is being modified by some sort of background process, which
is not unusal in sophisticated applications.

> James Turner

Craig


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




[AXIS4STRUTS]Generating XML from Struts JSP

2003-01-27 Thread Michael Oliver
Has anyone used JSP with Struts to generate XML?  
http://java.sun.com/products/jsp/html/JSPXML.html

Would anyone be interested in a struts-xml.tld and the associated custom tag classes?

If so what kinds of tags would you want? bean name and value? 

Can we just add a few XML oriented tags to the struts-html.tld and html/custom tag 
classes? 

DynaBean Tags? 

Build an xml document from the contents of a DynaBean?

Just some of the things we might want for Axis4Struts and others may want too.

Ollie





Nesting Tiles definitions

2003-01-27 Thread Paul Caruana
I would like to nest tiles, but have found that doing this in-line does not
work. Please see example below and work around as follows:

Is there a better way to achieve the following?

HTML Generated
==



  Outer

  Inner
  ...Content




JSP In-line
===

  
  

  
..Content
  

  


panel.jsp
=


  


  

  



Work around
===

  
  
...content
  



  
  






This email is 
intended for the named recipient only. The informationcontained in this message may be 
confidential, or commerciallysensitive. If you are not the intended recipient you must 
not reproduceor distribute any part of the email, disclose its contents to any 
otherparty, or take any action in reliance on it. If you have received thisemail in 
error, please contact the sender immediately.  Please deletethis message from your 
computer.


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


RE: [OT] Synchronizing Session Objects

2003-01-27 Thread Andrew Hill
Your forgetting the ability of users to open links in new windows. Your user
could have several windows open using the same session. Ditto for frames.

-Original Message-
From: James Turner [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 January 2003 08:30
To: 'Struts Users Mailing List'
Subject: RE: [OT] Synchronizing Session Objects


> From: David Graham [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 5:51 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] Synchronizing Session Objects
>
>
> I haven't found a definitive answer to whether you should
> synchronize access
> to objects stored in the session scope.  Do you have to put a
> synchronized
> block around session objects when iterating over them or
> modifying them?
> I'm guessing that if you treat session or application scoped
> objects as read
> only you don't have to synchronize.

Frankly, I wouldn't obsess about session scoped objects either.  In
order for a thread issue to intrude, they'd have to have two requests
running against the same session at the same time, which can happen
(submit, back, submit), but is uncommon.


James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author:
MySQL & JSP Web Applications:
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author:
Struts Kick Start
ISBN 0672324725; Sams, 2002

Forthcoming:
JavaServer Faces Kick Start
Sams, Fall 2003


> -Original Message-
>
>
>
>
>
> _
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
>
> --
> To unsubscribe, e-mail:
>  [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: 
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Flash+Struts how?

2003-01-27 Thread Andrew Hill
Yes, it does seem a bit off form.
Normally any reference to the F word really gets him going.
Maybe he's a bit under the weather this week?

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 January 2003 04:02
To: Struts Users Mailing List
Subject: RE: Flash+Struts how?




>-Original Message-
>From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 27, 2003 1:09 PM
>To: Struts Users Mailing List
>Subject: Re: Flash+Struts how?
>
>
>Mark Galbreath wrote:
>> Only a weenie programmer would use Flash with Struts[...]
>
>Nice attitude. I hope I misunderstood that reply...

Actually, knowing Mark, that was one of his more restrained replies. He's
mellowing in his old age. ;-)



Simon

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

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: JSP cannot call an action in its own module

2003-01-27 Thread David Graham
I thought not accessing JSPs directly was irritating at first too until I 
realized I was wrong :-).  Hiding JSPs behind actions has too many 
advantages to not do it that way.  What if you don't want to use JSPs in the 
future?  How do you setup the data for the JSP to display?  What if you want 
to change the layout of your JSPs without harming the user's bookmarks?  
What if you want to use Struts' modules ;-) ?

David






From: Milo Hyson <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: JSP cannot call an action in its own module
Date: Mon, 27 Jan 2003 16:36:01 -0800

An FYI for all those who have written in with this problem. It seems that 
the available documentation isn't clear enough with regards to JSPs in 
multi-module applications. The Struts developers have confirmed that all 
JSPs must be called from actions and not directly in order for the 
ModuleConfig information to be present. I'll admit this is rather crude and 
annoying, but that's the way it is.

- Milo Hyson
CyberLife Labs



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



Re: Deal with DB connection

2003-01-27 Thread David Graham
Use a DataSource implementation class to perform DB Connection pooling for 
you.  Your database should come with one but if not you can use the Jakarta 
commons' BasicDataSource.


David






From: "alexj" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Deal with DB connection
Date: Tue, 28 Jan 2003 01:18:45 +0100

Hi,

For my project I will use Struts and WebService and I'm asking what's the
best to do for dealing with DB connection ?

Thanks in advance.

<--
Alexandre Jaquet
->
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D
G++ e* h++ r% y*
--END GEEK CODE BLOCK--


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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


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



Re: Does anyone out there use Scaffold?

2003-01-27 Thread Rob Leland
[EMAIL PROTECTED] wrote:


We are currently developing Struts apps and incorporating Scaffold code
into them.

Firstly, I was wondering if anyone else out there is using Scaffold code
and what comments they have on their success or otherwise with it?

Secondly, with the latest release of Struts (1.1b3), Scaffold code has been
packaged into the contrib section.  However the commons-scaffold components
are not there. 

It was decided about 2 weeks ago that the struts 1.1 release would only 
contain commons libs needed to
build the main distribution and provided examples. However there has 
been some
talk about providing a seperate download to package items needed to build
the contrib items, and a build of the contrib itself.

They are in jakarta-commons-sandbox but only the source in
the CVS repository.  Should commons-scaffold be somewhere in
jakarta-commons now that scaffolds is being packaged with Struts 1.1b3 and
should there be a built version of this code somewhere?



-Rob


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




Re: need help for struts - EJB

2003-01-27 Thread Buics
thank you very much!
I'll try to get a copy of it.

Arunachalam Jaisankar wrote:

> The book Struts Kick Start by James Turner and Kevin Bedell from SAMS
> Publications talks well about using EJBs with Struts with sample code and
> application. Try to get a copy. Good resource for Struts newbies.
>
> regards
> Jai
>
> - Original Message -
> From: "Buics" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 28, 2003 1:52 PM
> Subject: need help for struts - EJB
>
> > good day!
> >
> > i'm new to struts.
> > does anybody had a documents of struts accessing EJB?
> > or any usefull materials, instructions, etc.. will do.
> >
> > --buics
> >
> >
> >
> >
> >
> >
>
> 
> 
>
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
   "Life is half spent before we know what it is"
   -unknown



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


Re: Java Pet Store rewritten with Flash Remoting Front End

2003-01-27 Thread Joel Wickard
Brian Alexander Lee wrote:


But wouldn't the world be better off if someone shut JRun down? Dear God
will some one stop it.

 

The world would be a better place if you didn't send out emails 
requesting receipt verification


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



Re: Java Pet Store rewritten with Flash Remoting Front End

2003-01-27 Thread Micael
I went to your website, celeste, and could not see the flash component you 
are talking about.  Have I got it mixed up?

At 03:34 PM 1/27/03 -0500, you wrote:
But wouldn't the world be better off if someone shut JRun down? Dear God
will some one stop it.

BAL
- Original Message -
From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 3:16 PM
Subject: Java Pet Store rewritten with Flash Remoting Front End


> For all those who are considering Flash remoting as another GUI
alternative
> to HTML, here is the URL to the Java pet store that Macromedia reworked
with
> a Flash remoting front end.  You can download the code and run it on your
> local machine also, if you are interested.  The second link is for FAQ
>
> http://www.macromedia.com/desdev/mx/blueprint/
>
>
http://www.macromedia.com/desdev/mx/blueprint/articles/faq.html#pm_accessibl
> e
>
> We been using Macromedia JRUN server as our application server for the
past
> two years, and have used some of the macromedia products in our shop,
along
> with Eclipse 2.02, for our JSP, Servlet, EJB development.  I did look at
> using Flash remoting for our current project when it came out a year ago,
> but decided to give it some time in the market place before actually using
> it.  My main concern with Flash remoting at that time was how long it
would
> take for someone on a modem (vs a T1 or cable modem) to navigate and use
our
> web site. If anyone does actually use it in their apps instead of HTML, I
> would be interested in knowing how it worked out for both you and your
> customers.
>
> One last note.  It is rumored in the DFW, TX area that Microsoft is
> considering a hostile takeover of Macromedia, and that if this does
happen,
> that Flash remoting would be "bundled" with .NET, and would not continue
to
> support J2EE applications.  Since we use JRUN as our application server,
> I've been keeping my ear to the ground regarding these rumors, as JRUN is
> another one of the Macromedia suite of products that MS would probably
kill,
> if a hostile takeover was successful.  That is something that probably
> should be taken into consideration if you choose to utilize this
technology
> in any new application.  I don't know about any of the rest of you, but I
> have been burned by using proprietary code in previous apps, and been left
> holding the bag and no source code,  when the company went bankrupt.  I
now
> utilize and advocate open source code whenever possible.
>
> Celeste
>
>
>
> -Original Message-
> From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 1:09 PM
> To: Struts Users Mailing List
> Subject: Re: Flash+Struts how?
>
>
> Mark Galbreath wrote:
> > Only a weenie programmer would use Flash with Struts...]
>
> Nice attitude. I hope I misunderstood that reply...
>
> Anyway, to answer the original inquiry:
> A part of the UI of our app is a flash movie, and we chose to integrate
> it using XML. The Flash sends requests to our struts actions (they look
> like any other URL to Flash), but these particular actions return XML
> instead of HTML. The Flash parses the XML and applies it to the UI
> appropriately. Works quite well and with no noticeable CPU usage on the
> client - a problem we had with the previous, complicated HTML interface
> for this part of the app.
> There is also a relatively new feature of Flash MX that provides
> integration between Flash and J2EE apps without using XML in between.
> Although I haven't looked at it in detail, I bet it can be used with
> Struts as well as "ordinary" servlets. See
> 
>
> HTH,
> Eric
> --
> Eric Rizzo
> Software Architect
> Jibe, Inc.
> http://www.jibeinc.com
>
>
> --
> 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: 




LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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



Re: Java Pet Store rewritten with Flash Remoting Front End

2003-01-27 Thread Brian Alexander Lee
But wouldn't the world be better off if someone shut JRun down? Dear God
will some one stop it.

BAL
- Original Message -
From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 3:16 PM
Subject: Java Pet Store rewritten with Flash Remoting Front End


> For all those who are considering Flash remoting as another GUI
alternative
> to HTML, here is the URL to the Java pet store that Macromedia reworked
with
> a Flash remoting front end.  You can download the code and run it on your
> local machine also, if you are interested.  The second link is for FAQ
>
> http://www.macromedia.com/desdev/mx/blueprint/
>
>
http://www.macromedia.com/desdev/mx/blueprint/articles/faq.html#pm_accessibl
> e
>
> We been using Macromedia JRUN server as our application server for the
past
> two years, and have used some of the macromedia products in our shop,
along
> with Eclipse 2.02, for our JSP, Servlet, EJB development.  I did look at
> using Flash remoting for our current project when it came out a year ago,
> but decided to give it some time in the market place before actually using
> it.  My main concern with Flash remoting at that time was how long it
would
> take for someone on a modem (vs a T1 or cable modem) to navigate and use
our
> web site. If anyone does actually use it in their apps instead of HTML, I
> would be interested in knowing how it worked out for both you and your
> customers.
>
> One last note.  It is rumored in the DFW, TX area that Microsoft is
> considering a hostile takeover of Macromedia, and that if this does
happen,
> that Flash remoting would be "bundled" with .NET, and would not continue
to
> support J2EE applications.  Since we use JRUN as our application server,
> I've been keeping my ear to the ground regarding these rumors, as JRUN is
> another one of the Macromedia suite of products that MS would probably
kill,
> if a hostile takeover was successful.  That is something that probably
> should be taken into consideration if you choose to utilize this
technology
> in any new application.  I don't know about any of the rest of you, but I
> have been burned by using proprietary code in previous apps, and been left
> holding the bag and no source code,  when the company went bankrupt.  I
now
> utilize and advocate open source code whenever possible.
>
> Celeste
>
>
>
> -Original Message-
> From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 1:09 PM
> To: Struts Users Mailing List
> Subject: Re: Flash+Struts how?
>
>
> Mark Galbreath wrote:
> > Only a weenie programmer would use Flash with Struts...]
>
> Nice attitude. I hope I misunderstood that reply...
>
> Anyway, to answer the original inquiry:
> A part of the UI of our app is a flash movie, and we chose to integrate
> it using XML. The Flash sends requests to our struts actions (they look
> like any other URL to Flash), but these particular actions return XML
> instead of HTML. The Flash parses the XML and applies it to the UI
> appropriately. Works quite well and with no noticeable CPU usage on the
> client - a problem we had with the previous, complicated HTML interface
> for this part of the app.
> There is also a relatively new feature of Flash MX that provides
> integration between Flash and J2EE apps without using XML in between.
> Although I haven't looked at it in detail, I bet it can be used with
> Struts as well as "ordinary" servlets. See
> 
>
> HTH,
> Eric
> --
> Eric Rizzo
> Software Architect
> Jibe, Inc.
> http://www.jibeinc.com
>
>
> --
> 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: need help for struts - EJB

2003-01-27 Thread Arunachalam Jaisankar
The book Struts Kick Start by James Turner and Kevin Bedell from SAMS
Publications talks well about using EJBs with Struts with sample code and
application. Try to get a copy. Good resource for Struts newbies.

regards
Jai

- Original Message -
From: "Buics" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 1:52 PM
Subject: need help for struts - EJB


> good day!
>
> i'm new to struts.
> does anybody had a documents of struts accessing EJB?
> or any usefull materials, instructions, etc.. will do.
>
> --buics
>
>
>
>
>
>






> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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




Does anyone out there use Scaffold?

2003-01-27 Thread Steve_Akins


We are currently developing Struts apps and incorporating Scaffold code
into them.

Firstly, I was wondering if anyone else out there is using Scaffold code
and what comments they have on their success or otherwise with it?

Secondly, with the latest release of Struts (1.1b3), Scaffold code has been
packaged into the contrib section.  However the commons-scaffold components
are not there.  They are in jakarta-commons-sandbox but only the source in
the CVS repository.  Should commons-scaffold be somewhere in
jakarta-commons now that scaffolds is being packaged with Struts 1.1b3 and
should there be a built version of this code somewhere?


__
The information contained in this email communication may be confidential.
You
should only read, disclose, re-transmit, copy, distribute, act in reliance
on or
commercialise the information if you are authorised to do so. If you are
not the
intended recipient of this email communication, please notify us
immediately by
email to [EMAIL PROTECTED] or reply by email direct to the sender
and then destroy any electronic or paper copy of this message.  Any views
expressed in this email communication are those of the individual sender,
except
where the sender specifically states them to be the views of a member of
the
National Australia Bank Group of companies.  The National Australia Bank
Group
of companies does not represent, warrant or guarantee that the integrity of
this
communication has been maintained nor that the communication is free of
errors,
virus or interference.



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




Re: [OT] Synchronizing Session Objects

2003-01-27 Thread V. Cekvenich
A users opens another browser session and your action takes a bit longer 
than a split second.
.V

James Turner wrote:
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 8:57 PM
To: Struts Users Mailing List
Subject: Re: [OT] Synchronizing Session Objects

If you're modifying them, you definitely should -- there are 
lots of cases where it is possible to have multiple 
simultaneous requests for the same session.



I'd be curious what the non-trivial cases of this would be.  You can
certainly get multiple simultaneous requests if you have images loading
on a page, or that type of stuff.  But where would you (for example) see
it being possible for multiple Struts Actions to be running at once on
the same session, without it being some kind of "the user hit the back
button" scenario?  I can see this happening in pure servlet code, where
a give page might be calling several servlets at once, but isn't that
the benefit of MVC, that all the stuff that would be likely to need to
be synchronized happens in a single method (the Action), and the page
merely displays results?

James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
MySQL & JSP Web Applications: 
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author: 
Struts Kick Start
ISBN 0672324725; Sams, 2002

Forthcoming:
JavaServer Faces Kick Start 
Sams, Fall 2003



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




Re: Struts productivity metrics?

2003-01-27 Thread V. Cekvenich
I agree with Joe
One such metric is a  pro can do a few CRUD modules per day and a newbie 
takes a few days per module.

Also... it sounds self serving but. consider hiring a mentor, 
someone who put Struts in production before, it is cost effective. They 
can kick start you and reduce risk. Some experienced people on this list.

.V

Joe Barefoot wrote:



4) Assuming that struts provides a consistent framework that 
is easier to
maintain, is there perhaps a increase in initial development 
effort which is
offset by a decrease in the ongoing maintenance effort for 
the application?
Can that be quantified by testing metrics like # of issues 
reported/module
and avg. # hours required to resolve an issue?


Can't help chiming in here:  You're not likely to find any metrics like these, and if you do, you should only use them the way most statistics are--to blindside people into agreeing with your premises.  If you think about it briefly, you'll realize that metrics like these will never be that accurate, and even if the metrics themselves were precise, they could never accurately represent quantitative differences between development methodologies or frameworks.  The reason is simple:  No company ever builds the same thing twice and every project is very different.  This makes quantitative apples-to-apples comparisons of frameworks/practices practically impossible in the business world.  Perhaps an academic experiment with two teams implementing the exact same spec. with different frameworks would yield some useful information, but any quantitative comparisons you receive from the business world are spurious at best.  

You're much better off relying on first-hand qualitative comparisons, e.g. "We were using X for web development and now that we've switched to Struts, I don't have to don my fire hat on a daily basis to douse that conflagaration we called a web app."

:)





Anecdotal comments are appreciated, but I'm mostly interested in hard
metrics (X hrs w/ struts vs. Y hrs w/ 'the old way') if 
possible.  Also - if
there are any books/sites which address these questions, 
please send them my
way.

Thanks in advance,
- Scott


--
To unsubscribe, e-mail:   


For additional commands, e-mail: 




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




Re: Struts on iPlanet Web Server 6.0?

2003-01-27 Thread V. Cekvenich
Try Resin or at least OrionServer.com.

Trevor Morris wrote:

We are in the process of looking at other options after WebLogic 7 has
failed to meet our needs.  I want to go with Tomcat, but management says
otherwise.  They want to use the antiquated iPlanet Web Server.

Can anyone confirm that Struts 1.1b3 works on iPlanet Web Server 6.0?  Or
4?  I have heard that Struts 1.0 can work on 4, but I have written my code
with 1.1b3 and do not feel like changing it all to go back to 1.0.  The
worst feeling in the world is to have to downgrade!

I appreciate any insights.

Trevor




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




Struts on iPlanet Web Server 6.0?

2003-01-27 Thread Trevor Morris
We are in the process of looking at other options after WebLogic 7 has
failed to meet our needs.  I want to go with Tomcat, but management says
otherwise.  They want to use the antiquated iPlanet Web Server.

Can anyone confirm that Struts 1.1b3 works on iPlanet Web Server 6.0?  Or
4?  I have heard that Struts 1.0 can work on 4, but I have written my code
with 1.1b3 and do not feel like changing it all to go back to 1.0.  The
worst feeling in the world is to have to downgrade!

I appreciate any insights.

Trevor

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




RE: [OT] Synchronizing Session Objects

2003-01-27 Thread James Turner
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 27, 2003 8:57 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Synchronizing Session Objects
>
> If you're modifying them, you definitely should -- there are 
> lots of cases where it is possible to have multiple 
> simultaneous requests for the same session.
> 

I'd be curious what the non-trivial cases of this would be.  You can
certainly get multiple simultaneous requests if you have images loading
on a page, or that type of stuff.  But where would you (for example) see
it being possible for multiple Struts Actions to be running at once on
the same session, without it being some kind of "the user hit the back
button" scenario?  I can see this happening in pure servlet code, where
a give page might be calling several servlets at once, but isn't that
the benefit of MVC, that all the stuff that would be likely to need to
be synchronized happens in a single method (the Action), and the page
merely displays results?

James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
MySQL & JSP Web Applications: 
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author: 
Struts Kick Start
ISBN 0672324725; Sams, 2002

Forthcoming:
JavaServer Faces Kick Start 
Sams, Fall 2003




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




Re: Filters and Struts

2003-01-27 Thread Max Cooper
Filters do not apply to forwards (I thought that, too, but tested it last
week and they don't). The Servlet 2.4 spec has an option to allow you to
turn such "forward filtering" on.

In reference to the original question, how about naming your action mappings
(in struts-config.xml) so that they can be secured by a url-pattern. For
instance:

members-only: (url-pattern = "/members/*")
/members/editUserProfile.do
/members/viewSecretMembersOnlyStuff.do

public:
/index.do
/public/viewPublicStuff.do
/anything/else/isOkayForPublic.do


Generally, I think developers spent way too much time writing their own
security systems. Having worked on such implementations myself, I must say
it can be surprisingly tricky to make the system secure, flexible, and easy
to use. I think the first step should always be to learn the
container-managed system and use that unless you have a *really* good reason
not to. Often, a combination of container-based and programmatic security is
the best approach.

For some projects, my filter-based clone of container-managed security is a
good solution:
http://www.securityfilter.org/

-Max

- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 8:35 AM
Subject: Re: Filters and Struts


> I could be wrong but I believe filters apply to forwards.
>
> David
>
> >From: "Sterin, Ilya" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >Subject: Filters and Struts
> >Date: Mon, 27 Jan 2003 09:13:26 -0700
> >
> >I'd like to know if anyone has used and/or knows the best way to use a
> >Login
> >Filter with Struts.  Before utilizing struts, I simply filtered say a
> >"members" directory, which took care of all JSP pages there...
> >
> >Since struts relies on forwarding, forwarding to those pages does not
> >utilize the filter, therefore, it allows anonymous access.
> >
> >If not filters, what are other good/best approaches.
> >
> >Thanks.
> >
> >Ilya
>
>
> _
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



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




Re: [OT] Synchronizing Session Objects

2003-01-27 Thread Craig R. McClanahan


On Mon, 27 Jan 2003, David Graham wrote:

> Date: Mon, 27 Jan 2003 15:50:57 -0700
> From: David Graham <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [OT] Synchronizing Session Objects
>
> I haven't found a definitive answer to whether you should synchronize access
> to objects stored in the session scope.  Do you have to put a synchronized
> block around session objects when iterating over them or modifying them?

If you're modifying them, you definitely should -- there are lots of cases
where it is possible to have multiple simultaneous requests for the same
session.

Note that it is *not* the session.getAttribute(), session.setAttribute(),
or session.removeAttribute() call that needs to be synchronized -- the
container takes care of that for you.

> I'm guessing that if you treat session or application scoped objects as read
> only you don't have to synchronize.
>
> Thanks,
> David
>

Craig



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




Nesting tiles on the same page

2003-01-27 Thread Paul Caruana
Why doesn't nesting tiles definitions work as per following example:


  
...other tiles inserts etc

  
  
...content
  

  




This email is 
intended for the named recipient only. The informationcontained in this message may be 
confidential, or commerciallysensitive. If you are not the intended recipient you must 
not reproduceor distribute any part of the email, disclose its contents to any 
otherparty, or take any action in reliance on it. If you have received thisemail in 
error, please contact the sender immediately.  Please deletethis message from your 
computer.


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


Re: need help for struts - EJB

2003-01-27 Thread Buics
so you mean i'l just simply access my EJB objects using servlets or javabeans or
even jsp?

alexj wrote:

> Have a look with ModelJ. Just do a simple app with and analyse the source
> code generated.
>
> <--
> Alexandre Jaquet
> ->
> -BEGIN GEEK CODE BLOCK-
> Version: 3.12
> GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
> O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D
> G++ e* h++ r% y*
> --END GEEK CODE BLOCK--
>
> - Original Message -
> From: "Buics" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 28, 2003 1:52 AM
> Subject: need help for struts - EJB
>
> > good day!
> >
> > i'm new to struts.
> > does anybody had a documents of struts accessing EJB?
> > or any usefull materials, instructions, etc.. will do.
> >
> > --buics
> >
> >
> >
> >
> >
> >
>
> 
> 
>
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
   "Life is half spent before we know what it is"
   -unknown



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


Re: need help for struts - EJB

2003-01-27 Thread alexj
Have a look with ModelJ. Just do a simple app with and analyse the source
code generated.

<--
Alexandre Jaquet
->
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D
G++ e* h++ r% y*
--END GEEK CODE BLOCK--

- Original Message -
From: "Buics" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 1:52 AM
Subject: need help for struts - EJB


> good day!
>
> i'm new to struts.
> does anybody had a documents of struts accessing EJB?
> or any usefull materials, instructions, etc.. will do.
>
> --buics
>
>
>
>
>
>






> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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




need help for struts - EJB

2003-01-27 Thread Buics
good day!

i'm new to struts.
does anybody had a documents of struts accessing EJB?
or any usefull materials, instructions, etc.. will do.

--buics






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


Re: New release of sslext available (1.1b3)

2003-01-27 Thread alexj
Cool I need that stuff :)


<--
Alexandre Jaquet
->
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+
O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D
G++ e* h++ r% y*
--END GEEK CODE BLOCK--

- Original Message -
From: "Ditlinger, Steve" <[EMAIL PROTECTED]>
To: "Struts User List (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 1:34 AM
Subject: New release of sslext available (1.1b3)


>
>
> I have posted a new version of sslext (the Struts extension for HTTP/HTTPS
> protocol switching) for Struts 1.1 beta3 at sslext.source.net.
>
> I have also posted new releases of the Struts 1.0, 1.1b1, and 1.1b2
> versions.  These releases fix a bug with the sslext.tld that never showed
up
> until I tested with the 4.1.18 version of Tomcat.  (Enforcement getting
> stricter, I like that!)
>
> The 1.1b3 version includes a new feature that was recently requested: the
> ability to disable the HTTP/HTTPS switching.  This is something you may
want
> to do temporarily if your SSL is non-functional for whatever reason.  This
> is done using the new "enable" attribute for the SecurePlugin specified in
> the struts config file.  If not specified, the default value for this
> attribute is "true".
>
>
> The 1.1b1 and 1.1b2 versions do not include this new feature and will
> probably not be updated from this point forward except for bug fixes.
>
> Stand by for other new features.
>
> Steve
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Re: JSP cannot call an action in its own module

2003-01-27 Thread Milo Hyson
An FYI for all those who have written in with this problem. It seems 
that the available documentation isn't clear enough with regards to JSPs 
in multi-module applications. The Struts developers have confirmed that 
all JSPs must be called from actions and not directly in order for the 
ModuleConfig information to be present. I'll admit this is rather crude 
and annoying, but that's the way it is.

- Milo Hyson
CyberLife Labs



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



New release of sslext available (1.1b3)

2003-01-27 Thread Ditlinger, Steve


I have posted a new version of sslext (the Struts extension for HTTP/HTTPS
protocol switching) for Struts 1.1 beta3 at sslext.source.net.

I have also posted new releases of the Struts 1.0, 1.1b1, and 1.1b2
versions.  These releases fix a bug with the sslext.tld that never showed up
until I tested with the 4.1.18 version of Tomcat.  (Enforcement getting
stricter, I like that!)  

The 1.1b3 version includes a new feature that was recently requested: the
ability to disable the HTTP/HTTPS switching.  This is something you may want
to do temporarily if your SSL is non-functional for whatever reason.  This
is done using the new "enable" attribute for the SecurePlugin specified in
the struts config file.  If not specified, the default value for this
attribute is "true".  


The 1.1b1 and 1.1b2 versions do not include this new feature and will
probably not be updated from this point forward except for bug fixes.

Stand by for other new features.

Steve


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




RE: [OT] Synchronizing Session Objects

2003-01-27 Thread James Turner
> From: David Graham [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 27, 2003 5:51 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] Synchronizing Session Objects
> 
> 
> I haven't found a definitive answer to whether you should 
> synchronize access 
> to objects stored in the session scope.  Do you have to put a 
> synchronized 
> block around session objects when iterating over them or 
> modifying them?  
> I'm guessing that if you treat session or application scoped 
> objects as read 
> only you don't have to synchronize.

Frankly, I wouldn't obsess about session scoped objects either.  In
order for a thread issue to intrude, they'd have to have two requests
running against the same session at the same time, which can happen
(submit, back, submit), but is uncommon.


James Turner
Owner & Manager, Black Bear Software, LLC
[EMAIL PROTECTED]

Author: 
MySQL & JSP Web Applications: 
Data Driven Programming Using Tomcat and MySQL
ISBN 0672323095; Sams, 2002

Co-Author: 
Struts Kick Start
ISBN 0672324725; Sams, 2002

Forthcoming:
JavaServer Faces Kick Start 
Sams, Fall 2003


> -Original Message-
> 
> 
> 
> 
> 
> _
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
> http://join.msn.com/?page=features/virus
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 



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




Deal with DB connection

2003-01-27 Thread alexj
Hi, 

For my project I will use Struts and WebService and I'm asking what's the
best to do for dealing with DB connection ?

Thanks in advance.

<--
Alexandre Jaquet
->
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCM d+ s: a-- C U*+ P L--- E--- W+++ N+++ o K w+ 
O M-- V-- PS+++ PE+++ Y+++ PGP--- 5-- X R* tv b DI--- D 
G++ e* h++ r% y* 
--END GEEK CODE BLOCK--


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




Re: TilesPlugin : factory already exists/no hot deploy

2003-01-27 Thread Nicholas Grabowski
Looks like the change in the implementations made no difference. 
Although, the TilesPlugin : factory already exists. No new creation
message is gone. 


On Mon, 2003-01-27 at 15:02, Nicholas Grabowski wrote:
> David
> 
> Yeah, Unhappily I am being forced to use weblogic and due to the
> deployment of mutiple EJBs, etc. at start time it takes me several
> minutes to restart the server.
> 
> I noticed that there is a change in the implementation in struts 1.1b3
> from struts 1.1b2 on the exact line where the null pointer exception is
> being thrown.  I.E:
> String prefix = appConfig.getPrefix();
> becomes
> String prefix = moduleConfig.getPrefix();
> 
> I haven't really investigated, but I wonder if this solves the problem
> or acts a little more gracefully (rather than throwing a null pointer
> exception). Any thoughts?
> 
> Nick
> 
> On Mon, 2003-01-27 at 14:27, David Graham wrote:
> > I've never had much success in this area using Tomcat.  It seems to work ok 
> > as long as you don't add/remove methods or member variables.  I just restart 
> > the server which takes no more than 10 seconds.
> > 
> > David
> > 
> > 
> > 
> > 
> > 
> > 
> > >From: Nicholas Grabowski <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: struts-users <[EMAIL PROTECTED]>
> > >Subject: TilesPlugin : factory already exists/no hot deploy
> > >Date: 27 Jan 2003 14:20:49 -0800
> > >
> > >I am trying to "hot deploy" struts action classes, forms, etc. on a
> > >running weblogic server 6.1 (compile the classes and use them without
> > >restarting the server).  However, quite often (although not always) I
> > >get the following error.  It seems that if I've already used the action
> > >in question, and then change the code, recompile it, and test the same
> > >scenario (a request for a page that causes an action to be used) then
> > >the server throws this error.  Is what I'm trying to do even possible
> > >with struts/tiles?  Or does it require a restart before it can use
> > >changed class files?  Could this be a classloader issue?  THat would be
> > >first guess since I doubt Tiles or struts decides when and if to rreload
> > >a class?  But if this is the case, why is struts throwing the null
> > >pointer exception?
> > >
> > >Thanks
> > >Nick
> > >
> > >
> > >  
> > ><[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] action: init>
> > >Info - TilesPlugin : factory already exists. No new creation.
> > >  
> > ><[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] action: Info -
> > >TilesPlugin : factory already exists. No new creation.>
> > >  
> > ><[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] Servlet failed
> > >with Exception
> > >java.lang.NullPointerException
> > > at
> > >org.apache.struts.action.RequestProcessor.processPath(RequestProcessor.java:728)
> > > at
> > >org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:212)
> > > at
> > >org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
> > > at
> > >org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
> > > at
> > >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
> > > at
> > 
>>weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
> > > at
> > >weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
> > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> > > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> > > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:   
> > >
> > >For additional commands, e-mail: 
> > >
> > 
> > 
> > _
> > Protect your PC - get McAfee.com VirusScan Online  
> > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> > 
> > 
> > --
> > 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: 




Please review code for LookupDisptach using Image Buttons

2003-01-27 Thread Ashish Kulkarni
Hi,
I have a jsp with 2 image buttons, and i needed to
forward the request to different jsp depending upon
the image button clicked by the user, and I want to do
it without using javascript ( I was using javascript
along with DispatchAction class)
Here is what I have done,
I wrote a new class called TestLookupDispatchAction
which extend DispatchAction class, override execute
method and has one abrstact method called
getMethodName
I am pasting the code of my 
TestLookupDispatchAction and the class which extends
this TestLookupDispatchAction class and my jsp
definitation of code,
Can people please comment on it
public abstract class TestLookupDispatchAction extends
DispatchAction
{
 public ActionForward execute (
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
String methodName = getMethodName(request ,
mapping);
  return dispatchMethod (mapping, form,
request, response, methodName);



}

protected abstract String getMethodName
(HttpServletRequest request, ActionMapping mapping );
}

/** class that extends this class**/

public class TestImageButton extends
TestLookupDispatchAction
{
protected String
getMethodName(javax.servlet.http.HttpServletRequest
request, ActionMapping mapping)
{
Enumeration enu = request.getParameterNames
();
String att="";
while(enu.hasMoreElements ())
{
att = (String)enu.nextElement ();
System.out.println ("parameter name: " +
att + "... value: " + request.getParameter (att));
if(att.equals ("add.x"))
{  
  return "add";
}
else if(att.equals ("change.x"))
{  
 return "change";
}
else if(att.equals ("back.x"))
{  
 return "back";
}


}
return "";
}

 public ActionForward add (ActionMapping mapping, 
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{

}
}

My jsp definiation
/**
I am using normal html tag because i want to use the
mouse over effect, which is not possible to get using
struts taglib
**/

 " name="add"
onMouseOver="MM_swapImage('add','','',1)"
onMouseOut="MM_swapImgRestore()"/>
 " name="change"
onMouseOver="MM_swapImage('change','','',1)"
onMouseOut="MM_swapImgRestore()"/>


 



=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[html:errors] Displaying error with form elements

2003-01-27 Thread Ashish Bansal
Hi!
I am a new bie with Struts trying to figure out a way to display form
errors along with the form elemtn which was the source of the error.
For example, if the form is for new user registration, and it had two
errors - a. User name already exists 
 b. passwords dont match
these would be shown next to the respective form elements where these
were entered.
I am trying to accomplish this usng Struts. This is what I understand
how this could be done:
  For each form tag
analyze the errors collection {
 if error key matches some value (using the logic:) {
   render tag differently
   display the message
 }
}
I am wondering if this is the most efficient way of achieving this? 
Also, can we extend Struts error display such that for every html form
tag, it takes a property displayErrors=true or something to that tune,
which causes the error message to be displayed along with the tag as
the tag is being rendered. Is this extension already planned for
development/exists? Would be interested on working on that because I
think that would a very useful feature.

Looking forward to your thoughts!
-Ashish

=

 Ashish Bansal 
My Home Page



-

To err is human. To forgive is against company policy. 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Paginating the search results from a collection.

2003-01-27 Thread Ashish Kulkarni
U cal also try this

http://jsptags.com/tags/navigation/pager/pager-taglib-1.1.html

Ashish
--- Joe Barefoot <[EMAIL PROTECTED]> wrote:
> The easy way:
> http://edhill.its.uiowa.edu/display-0.8/
> 
> specifically:
>
http://edhill.its.uiowa.edu/display-examples-0.8/example-paging.jsp
> 
> 
> have fun,
> Joe
> 
> > -Original Message-
> > From: Jana Navaneethan
> [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 27, 2003 2:42 PM
> > To: Struts Users Mailing List
> > Subject: Paginating the search results from a
> collection.
> > 
> > 
> > Hi ,
> >   I have a collection of Search results, I
> want to 
> > display 30 items
> > per page (JSP) from the collection, How to
> paginate the 
> > results using struts
> > tags? Is there any better way of doing this?
> > 
> > Any help would be greatly appreciated!
> > 
> > Thanks,
> > Jana.
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> >
> 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[OT] Re: Flash+Struts how?

2003-01-27 Thread Eric Rizzo
Joe Barefoot wrote:
> 
>> The Flash parses the XML and applies it to the UI appropriately.
>> Works quite well and with no noticeable CPU usage on the client - a
>> problem we had with the previous, complicated HTML interface for
>> this part of the app.
>
>
> I'd be curious as to what you're doing in HTML that could possibly
> consume more CPU than rendering anything in Flash.  I would assume
> you must have some massive JS arrays/functions to cause appreciable
> CPU consumption of the sort you describe.

Rendering of large and/or complex HTML tables in IE and Netscape can be 
pretty CPU-intensive for a short time. We noticed a short CPU spike 
every time that page was loaded - I at first assumed it was the 
action/business-logic/JSP-population that was responsible, but the 
minute we changed the output to send XML to Flash instead of HTML to 
browser, the spike totally disappeared.
It probably doesn't hurt that JDOM is lightning quick for outputting 
documents to a stream (small ones, at least) - I don't know how fast or 
slow the code is that Jasper generates from JSP (but I do know that it 
is ugly ;-).

	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: Paginating the search results from a collection.

2003-01-27 Thread Eric Rizzo
Jana Navaneethan wrote:

Hi ,
  I have a collection of Search results, I want to display 30 items
per page (JSP) from the collection, How to paginate the results using struts
tags? Is there any better way of doing this?

Any help would be greatly appreciated!


In addition to the  tag lib already pointed out, you might 
want to look at this pagination tag lib: 
http://jsptags.com/tags/navigation/pager/index.jsp

HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: TilesPlugin : factory already exists/no hot deploy

2003-01-27 Thread Nicholas Grabowski
David

Yeah, Unhappily I am being forced to use weblogic and due to the
deployment of mutiple EJBs, etc. at start time it takes me several
minutes to restart the server.

I noticed that there is a change in the implementation in struts 1.1b3
from struts 1.1b2 on the exact line where the null pointer exception is
being thrown.  I.E:
String prefix = appConfig.getPrefix();
becomes
String prefix = moduleConfig.getPrefix();

I haven't really investigated, but I wonder if this solves the problem
or acts a little more gracefully (rather than throwing a null pointer
exception). Any thoughts?

Nick

On Mon, 2003-01-27 at 14:27, David Graham wrote:
> I've never had much success in this area using Tomcat.  It seems to work ok 
> as long as you don't add/remove methods or member variables.  I just restart 
> the server which takes no more than 10 seconds.
> 
> David
> 
> 
> 
> 
> 
> 
> >From: Nicholas Grabowski <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: struts-users <[EMAIL PROTECTED]>
> >Subject: TilesPlugin : factory already exists/no hot deploy
> >Date: 27 Jan 2003 14:20:49 -0800
> >
> >I am trying to "hot deploy" struts action classes, forms, etc. on a
> >running weblogic server 6.1 (compile the classes and use them without
> >restarting the server).  However, quite often (although not always) I
> >get the following error.  It seems that if I've already used the action
> >in question, and then change the code, recompile it, and test the same
> >scenario (a request for a page that causes an action to be used) then
> >the server throws this error.  Is what I'm trying to do even possible
> >with struts/tiles?  Or does it require a restart before it can use
> >changed class files?  Could this be a classloader issue?  THat would be
> >first guess since I doubt Tiles or struts decides when and if to rreload
> >a class?  But if this is the case, why is struts throwing the null
> >pointer exception?
> >
> >Thanks
> >Nick
> >
> >
> >  
> ><[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] action: init>
> >Info - TilesPlugin : factory already exists. No new creation.
> >  
> ><[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] action: Info -
> >TilesPlugin : factory already exists. No new creation.>
> >  
> ><[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] Servlet failed
> >with Exception
> >java.lang.NullPointerException
> > at
> >org.apache.struts.action.RequestProcessor.processPath(RequestProcessor.java:728)
> > at
> >org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:212)
> > at
> >org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
> > at
> >org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
> > at
> >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
> > at
> 
>>weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
> > at
> >weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
> > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> > >
> >
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
> _
> Protect your PC - get McAfee.com VirusScan Online  
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




RE: [Dumb Question] How to get spaces into a label of a select box..

2003-01-27 Thread Joe Barefoot


> We are actually using a hightly between b2 and b3. perhaps it 
> is already fixed.

I wouldn't be surprised if the nested tag actually does support the property but it 
was accidentally left out of the .tld and is thus giving you grief.  On the other 
hand, it may just be a code oversight.

> 
> Until that time I guess thats what JSP comments are for..


Hell yeah, I leave little TODO:  marks all over the place for IntelliJ to sort out for 
me.


> 
> Thanks again..

no prob

> 
> 
> 
> 
> 
> "Joe Barefoot" <[EMAIL PROTECTED]> on 01/27/2003 04:29:27 PM
> 
> Please respond to "Struts Users Mailing List"
><[EMAIL PROTECTED]>
> 
> To:"Struts Users Mailing List" <[EMAIL PROTECTED]>
> cc:
> 
> Subject:RE: [Dumb Question] How to get spaces into a 
> label of a select
>box..
> 
> 
> h...subclass the OptionsTag and add the filter attribute 
> to your class?
> I peeked at the 1.0 code and it does a ResponseUtils.filter 
> on whatever you
> give as the label, with no filter option.  The nightly build 
> javadocs have
> a filter attribute on OptionsTag...are you sure that the 
> 1.1b2 OptionsTag
> doesn't have a filter property that is either undocumented or 
> accidentally
> left out of the tag descriptor?
> 
> --joe
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 27, 2003 2:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Dumb Question] How to get spaces into a label of a select
> > box..
> >
> >
> > I am building  a string made of 3 pieces of data that will be
> > the label
> > section of  a drop down box.( >
> > The spaces that I am inserting between the data are of 
> course getting
> > reduced to one.
> >
> > When I try to insert  the html entity  (apersand,n,b,sp) it
> > gets filtered
> > and shown as raw data.
> > I cannot find a filter="false" like on bean:write.
> >
> > How can I insert spaces into the Label section of the a Select box.
> >
> > ** Note I am using Struts 1.1b2
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




RE: Paginating the search results from a collection.

2003-01-27 Thread Joe Barefoot
The easy way:
http://edhill.its.uiowa.edu/display-0.8/

specifically:
http://edhill.its.uiowa.edu/display-examples-0.8/example-paging.jsp


have fun,
Joe

> -Original Message-
> From: Jana Navaneethan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 2:42 PM
> To: Struts Users Mailing List
> Subject: Paginating the search results from a collection.
> 
> 
> Hi ,
>   I have a collection of Search results, I want to 
> display 30 items
> per page (JSP) from the collection, How to paginate the 
> results using struts
> tags? Is there any better way of doing this?
> 
> Any help would be greatly appreciated!
> 
> Thanks,
> Jana.
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




RE: [Dumb Question] How to get spaces into a label of a select box..

2003-01-27 Thread Jeff_Mychasiw

Thank for the reply.

I should have tried a bit more before mailing but the panic of construction
deadlines..

You are right about the filter attribute being present.

I should have been clearer that I was using nested Tags, and that is where
the problem is.
I converted this:  ( the exception states -  Attribute filter invalid
according to the specified TLD)




To this:




So I guess the fix is an easy but sure like using nested tags,
We are actually using a hightly between b2 and b3. perhaps it is already fixed.

Until that time I guess thats what JSP comments are for..

Thanks again..





"Joe Barefoot" <[EMAIL PROTECTED]> on 01/27/2003 04:29:27 PM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:

Subject:RE: [Dumb Question] How to get spaces into a label of a select
   box..


h...subclass the OptionsTag and add the filter attribute to your class?
I peeked at the 1.0 code and it does a ResponseUtils.filter on whatever you
give as the label, with no filter option.  The nightly build javadocs have
a filter attribute on OptionsTag...are you sure that the 1.1b2 OptionsTag
doesn't have a filter property that is either undocumented or accidentally
left out of the tag descriptor?

--joe

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 2:11 PM
> To: [EMAIL PROTECTED]
> Subject: [Dumb Question] How to get spaces into a label of a select
> box..
>
>
> I am building  a string made of 3 pieces of data that will be
> the label
> section of  a drop down box.(
> The spaces that I am inserting between the data are of course getting
> reduced to one.
>
> When I try to insert  the html entity  (apersand,n,b,sp) it
> gets filtered
> and shown as raw data.
> I cannot find a filter="false" like on bean:write.
>
> How can I insert spaces into the Label section of the a Select box.
>
> ** Note I am using Struts 1.1b2
>
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>

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








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




RE: Dynamic populating HTML form

2003-01-27 Thread Joe Barefoot
Yes, it can, by using a Collection or array of objects and using indexed property 
notation in the JSP (e.g. myDynamicList[0].name, myDynamicList[0].id, 
myDynamicList[1].name, myDynamicList[1].id).  

Search the archives (http://www.mail-archive.com/struts-user%40jakarta.apache.org/) 
and/or the web for indexed properties and dynamic collection population.  Should be 
able to find some examples.


--joe

> -Original Message-
> From: Joyce Gu [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 2:36 PM
> To: [EMAIL PROTECTED]
> Subject: Dynamic populating HTML form
> 
> 
> Hello, everyone.
> I have the following questions, I do not know if strut can 
> handle them?
> 1) My first jsp page will input a field "number of users", 
> after submitting, 
> the action will call the second page, which will populate 
> corresponding fields 
> which has unique number of user id, name, address, and etc 
> fields. For 
> example, if the user input 4 in the first JSP page, after 
> he/she submitted, 
> the next page will have to populate 4 field, which has user 
> id, which gets 
> from database generated from sequence number, and meanwhile, 
> it has to 
> populate 4 of "name" field, 4 of "address" field, all in text 
> input field, 
> which will be entered by user. If the user enter "11", it has 
> to populate 11 
> of individual field.
> 
> 2) After the user click submit button, it will populate 
> several dynamic html 
> pages under one action, whenever the forms are associated 
> with "number of 
> users", it has to be able to dynamiclly populate the 
> corresponding HTML field. 
> I do not know if sturt can handle this. 
> I am using strut-1.0.2, and tomcat4.1.12.
> 
> Any suggestion is greatly appreciated!
> 
> Thanks
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




[OT] Synchronizing Session Objects

2003-01-27 Thread David Graham
I haven't found a definitive answer to whether you should synchronize access 
to objects stored in the session scope.  Do you have to put a synchronized 
block around session objects when iterating over them or modifying them?  
I'm guessing that if you treat session or application scoped objects as read 
only you don't have to synchronize.

Thanks,
David





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


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



Re: session creation time

2003-01-27 Thread David Graham
Do this in your action that fronts the page and store a Date object in the 
request for the tag to display.

David






From: "Pani, Gourav" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: session creation time
Date: Mon, 27 Jan 2003 17:29:32 -0500

when you try to obtain the session creation time, it is returned in Long
format, which doesn't let you use the  tag easily.

In theory, what I am trying to accomplish is Date dt = new
Date(session.getCreationTime());

however, i was wondering if there was a way to accomplish it completely 
with
taglibs instead of having scriptlets.

The code below returns the Long value of time.





TIA


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


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



Paginating the search results from a collection.

2003-01-27 Thread Jana Navaneethan
Hi ,
  I have a collection of Search results, I want to display 30 items
per page (JSP) from the collection, How to paginate the results using struts
tags? Is there any better way of doing this?

Any help would be greatly appreciated!

Thanks,
Jana.


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




Re: TilesPlugin : factory already exists/no hot deploy

2003-01-27 Thread David Graham
I've never had much success in this area using Tomcat.  It seems to work ok 
as long as you don't add/remove methods or member variables.  I just restart 
the server which takes no more than 10 seconds.

David






From: Nicholas Grabowski <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: struts-users <[EMAIL PROTECTED]>
Subject: TilesPlugin : factory already exists/no hot deploy
Date: 27 Jan 2003 14:20:49 -0800

I am trying to "hot deploy" struts action classes, forms, etc. on a
running weblogic server 6.1 (compile the classes and use them without
restarting the server).  However, quite often (although not always) I
get the following error.  It seems that if I've already used the action
in question, and then change the code, recompile it, and test the same
scenario (a request for a page that causes an action to be used) then
the server throws this error.  Is what I'm trying to do even possible
with struts/tiles?  Or does it require a restart before it can use
changed class files?  Could this be a classloader issue?  THat would be
first guess since I doubt Tiles or struts decides when and if to rreload
a class?  But if this is the case, why is struts throwing the null
pointer exception?

Thanks
Nick


  
<[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] action: init>
Info - TilesPlugin : factory already exists. No new creation.
  
<[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] action: Info -
TilesPlugin : factory already exists. No new creation.>
  
<[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] Servlet failed
with Exception
java.lang.NullPointerException
at
org.apache.struts.action.RequestProcessor.processPath(RequestProcessor.java:728)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:212)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



Dynamic populating HTML form

2003-01-27 Thread Joyce Gu
Hello, everyone.
I have the following questions, I do not know if strut can handle them?
1) My first jsp page will input a field "number of users", after submitting, 
the action will call the second page, which will populate corresponding fields 
which has unique number of user id, name, address, and etc fields. For 
example, if the user input 4 in the first JSP page, after he/she submitted, 
the next page will have to populate 4 field, which has user id, which gets 
from database generated from sequence number, and meanwhile, it has to 
populate 4 of "name" field, 4 of "address" field, all in text input field, 
which will be entered by user. If the user enter "11", it has to populate 11 
of individual field.

2) After the user click submit button, it will populate several dynamic html 
pages under one action, whenever the forms are associated with "number of 
users", it has to be able to dynamiclly populate the corresponding HTML field. 
I do not know if sturt can handle this. 
I am using strut-1.0.2, and tomcat4.1.12.

Any suggestion is greatly appreciated!

Thanks


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




RE: [Dumb Question] How to get spaces into a label of a select box..

2003-01-27 Thread Joe Barefoot
h...subclass the OptionsTag and add the filter attribute to your class?  I peeked 
at the 1.0 code and it does a ResponseUtils.filter on whatever you give as the label, 
with no filter option.  The nightly build javadocs have a filter attribute on 
OptionsTag...are you sure that the 1.1b2 OptionsTag doesn't have a filter property 
that is either undocumented or accidentally left out of the tag descriptor?

--joe

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 2:11 PM
> To: [EMAIL PROTECTED]
> Subject: [Dumb Question] How to get spaces into a label of a select
> box..
> 
> 
> I am building  a string made of 3 pieces of data that will be 
> the label
> section of  a drop down box.( 
> The spaces that I am inserting between the data are of course getting
> reduced to one.
> 
> When I try to insert  the html entity  (apersand,n,b,sp) it 
> gets filtered
> and shown as raw data.
> I cannot find a filter="false" like on bean:write.
> 
> How can I insert spaces into the Label section of the a Select box.
> 
> ** Note I am using Struts 1.1b2
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




session creation time

2003-01-27 Thread Pani, Gourav
when you try to obtain the session creation time, it is returned in Long
format, which doesn't let you use the  tag easily. 
 
In theory, what I am trying to accomplish is Date dt = new
Date(session.getCreationTime());
 
however, i was wondering if there was a way to accomplish it completely with
taglibs instead of having scriptlets.
 
The code below returns the Long value of time.
 


 

TIA



RE: Two ActionForms colliding on property name

2003-01-27 Thread Derek Richardson
I have gone back and read the posts on action chaining to October 21 2002. If I need 
to go back further, let me know. I have rethought why I am chaining the actions and 
this is what I have come up with.

As I understand it, this is the popular and well-liked Struts convention:

Action1 -> JSP1 -> Action2 -> JSP2 -> Action3 -> JSP3 -> ... -> ActionN -> JSPn

This seems somewhat messy to me because a single Action has to handle both 
post-processing the last JSP and pre-processing the next JSP. For instance, Action2 
has to both do whatever it has been asked to do by JSP1 and also prepare for the 
display of JSP2. So, (1) Action2 will first take some input from JSP1 and save it to 
the model and then (2) read some other data from the model and package it up for JSP2 
to consume. This strikes me as two logically separate concerns being coupled together 
in a single non-cohesive action.

The model that is more intuitive to me is:

PreAction1 -> JSP1 -> PostAction1 -> PreAction2 -> JSP2 -> PostAction2 -> ... -> 
PreActionN -> JSPn

Of course, in some cases the post-processing of the last request *is* closely linked 
to the preprocessing of the next response. In this situation, the current convention 
works well. However, imagine the case of coming out of the last JSP in an "Add Foo" 
wizard. You want to (1) save the new Foo and (2) redisplay the list of all Foos so the 
user can decide what to do next. These two activities are not closely linked. 
Additionally, consider that you also can come out of a "Delete Foo" page where you 
want to (1) delete the outdated Foo and (2) redisplay the list of all Foos so the user 
can decide what to do next. Not only are the activities not closely linked, but it 
sure would be nice to have an Action that encapsulates the common activity #2 so that 
code doesn't have to be duplicated. Notice, in this case, there is no pollution of the 
Action by business logic: all the action does is call a method on the business logic 
facade to get a Collection of Foos and then put it in the request scope. I don't see 
any non-cumbersome way of eliminating this duplication without action chaining of the 
restricted type I am talking about.

In short, some of my Actions prepare data for a JSP to display. I can't forward to the 
JSP without preparing the data first. I may want to forward to the same JSP from 
several different places in my workflow. I don't want to duplicate the data 
preparation code in several different places in my workflow. Is there a solution for 
me other than action chaining?

FYI, I am halfway through the Cavaness book and don't remember seeing action chaining 
discussed. I have not read any other of the Struts books. If what I am asking is 
covered in depth somewhere else, a short summary and a clear citation that will let me 
find the resource is appreciated.

Thanks,

Derek Richardson

> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 3:51 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Two ActionForms colliding on property name
> 
> 
> Yet another reason to not use Action chaining.  Maybe you 
> could rethink why 
> you're chaining the actions.
> 
> David
> 
> 
> 
> 
> 
> 
> >From: "Derek Richardson" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Two ActionForms colliding on property name
> >Date: Mon, 27 Jan 2003 15:43:05 -0500
> >
> >I have one action forwarding to another action. The first 
> action and the 
> >second action both have form-beans specified using the name 
> attribute and 
> >these form beans are different. Unfortunately, these two 
> ActionForms each 
> >have an attribute named "value", but in ActionForm one it is 
> a String, 
> >while, in ActionForm two, it is a List.
> >
> >You probably already see the problem. Here is what I think 
> it is. When a 
> >JSP submits to the first action, there is a request parameter called 
> >"value" which is a String. When the first action forwards to 
> the second, 
> >ActionForm two is populated from the request, the string is 
> found in place 
> >of the list, and I get BeanUtil.populate() errors.
> >
> >Any suggestions (other than changing the attribute names, which is a 
> >possibility, but not my preference)?
> >
> >Thanks,
> >
> >Derek Richardson
> >
> >
> >
> >Here's the error, if you're interested:
> >
> >
> >
> >type Exception report
> >
> >message Internal Server Error
> >
> >description The server encountered an internal error 
> (Internal Server 
> >Error) that prevented it from fulfilling this request.
> >
> >exception
> >
> >javax.servlet.ServletException: BeanUtils.populate
> > at 
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
> > at 
> >org.apache.struts.action.RequestProcessor.processPopulate(Req
> uestProcessor.java:779)
> > at 
> >org.apache.struts.action.RequestProcessor.process(RequestProc

TilesPlugin : factory already exists/no hot deploy

2003-01-27 Thread Nicholas Grabowski
I am trying to "hot deploy" struts action classes, forms, etc. on a
running weblogic server 6.1 (compile the classes and use them without
restarting the server).  However, quite often (although not always) I
get the following error.  It seems that if I've already used the action
in question, and then change the code, recompile it, and test the same
scenario (a request for a page that causes an action to be used) then
the server throws this error.  Is what I'm trying to do even possible
with struts/tiles?  Or does it require a restart before it can use
changed class files?  Could this be a classloader issue?  THat would be
first guess since I doubt Tiles or struts decides when and if to rreload
a class?  But if this is the case, why is struts throwing the null
pointer exception?  

Thanks
Nick


  
<[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] action: init>
Info - TilesPlugin : factory already exists. No new creation.
  
<[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] action: Info -
TilesPlugin : factory already exists. No new creation.>
  
<[WebAppServletContext(7361676,spmwebapp,/spmwebapp)] Servlet failed
with Exception
java.lang.NullPointerException
at
org.apache.struts.action.RequestProcessor.processPath(RequestProcessor.java:728)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:212)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>


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




[Dumb Question] How to get spaces into a label of a select box..

2003-01-27 Thread Jeff_Mychasiw
I am building  a string made of 3 pieces of data that will be the label
section of  a drop down box.(mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




RE: Flash+Struts how?

2003-01-27 Thread Joe Barefoot


> Anyway, to answer the original inquiry:
> A part of the UI of our app is a flash movie, and we chose to 
> integrate 
> it using XML. The Flash sends requests to our struts actions 
> (they look 
> like any other URL to Flash), but these particular actions return XML 
> instead of HTML. The Flash parses the XML and applies it to the UI 
> appropriately. Works quite well and with no noticeable CPU 
> usage on the 
> client - a problem we had with the previous, complicated HTML 
> interface 
> for this part of the app.

I'd be curious as to what you're doing in HTML that could possibly consume more CPU 
than rendering anything in Flash.  I would assume you must have some massive JS 
arrays/functions to cause appreciable CPU consumption of the sort you describe.



> There is also a relatively new feature of Flash MX that provides 
> integration between Flash and J2EE apps without using XML in between. 
> Although I haven't looked at it in detail, I bet it can be used with 
> Struts as well as "ordinary" servlets. See 
> 
> 
> HTH,
>   Eric
> -- 
> Eric Rizzo
> Software Architect
> Jibe, Inc.
> http://www.jibeinc.com
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: Flash+Struts how?

2003-01-27 Thread V. Cekvenich
I wish I could add something more, other than repeat what has been said:

http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg12987.html

It seems that Flash/SOAP/Beans is mostly Model/View, however it is very 
marketable.

I like cybersage.com as well, and avoiding Remoting Server (license cost 
in case of MS). There is also an open source someplace looking for 
the link.

.V


Michael C. Clark wrote:
Being able to return XML to the UI is not all that bad, when you
consider the opportunities for integrating other technolgies for
presentation (if you like XSLT and the like).

There are also some nice tools that take advantage of the modular
nature of FlashMX, and the native XML parsing capabilities of Flash,
available from Flash5 forward.

For UI components check out www.cybersage.com and Flash developer CD
($99 additional) ... XML opens the door to a *slick* rich client UI.

"I love Struts and I vote"

In the right hands, Flash aint all that bad (but then I don't use
emacs to code JavaBean accessors, so...).

-M

 Original Message 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Flash+Struts how?
Date: Mon, 27 Jan 2003 14:09:22 -0500



Mark Galbreath wrote:


Only a weenie programmer would use Flash with Struts[...]


Nice attitude. I hope I misunderstood that reply...

Anyway, to answer the original inquiry:
A part of the UI of our app is a flash movie, and we chose to
integrate 
it using XML. The Flash sends requests to our struts actions (they
look 
like any other URL to Flash), but these particular actions return XML

instead of HTML. The Flash parses the XML and applies it to the UI 
appropriately. Works quite well and with no noticeable CPU usage on
the 
client - a problem we had with the previous, complicated HTML
interface 
for this part of the app.
There is also a relatively new feature of Flash MX that provides 
integration between Flash and J2EE apps without using XML in between.

Although I haven't looked at it in detail, I bet it can be used with 
Struts as well as "ordinary" servlets. See 


HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com






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




RE: Struts and JSTL

2003-01-27 Thread David Graham
The effort required is not worth fixing the "problem".  The message 
resources are loaded once into the ServletContext so the memory overhead is 
not high.  Of course, you're free to code an adaptor for your project if 
saving an extra few bytes is really that important.

David






From: "Jerome Jacobsen" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Struts and JSTL 
Date: Mon, 27 Jan 2003 16:19:12 -0500

Perhaps an Adapter could be created to do this (e.g.
MessageResourcesLocaleContext or StrutsLocaleContext).  You could set it up
to be your default LocaleContext in the web.xml or via a Struts PlugIn.  I
haven't actually looked to see if a Struts MessageResources could be 
adapted
to a JSTL LocaleContext.  The APIs may be too different.  But maybe not.

Anyway the advantage would be that the Adapter is a light-weight object so
you don't have the problem of loading all the resources into memory twice 
as
you do with both loading the MessageResources and the ResourceBundle.

Such an Adapter could live in the Struts 1.1 contrib along with Struts-EL.

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 3:53 PM
> To: Struts Users Mailing List
> Subject: Re: Struts and JSTL 
>
>
>
>
> On Mon, 27 Jan 2003, PILGRIM, Peter, FM wrote:
>
> >
> > Struts has a i18n implementation that predates JSTL version.
> > I was wondering how to use the Struts application properties
> > with the JSTL ? The obvious answer is point
> > JSTL bundle to load the Struts message bundle. In other have
> > two resource bundles in memory. However, is there any
> > plans to make MessageResources implement the
> > `javax.servlet.jsp.jstl.fmt.LocaleContext' directly?
> >
>
> Short answer - no.
>
> Reason - that would introduce a dependency on JSTL, which in turn would
> introduce a dependency on JSP 1.2 and Servlet 2.3, which would be a
> problem for more than a few users who are using JSP 1.1 / Servlet 2.2
> containers.  We cannot introduce dependencies like this without updating
> the baseline version dependency as well.
>
>
> Craig
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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


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



RE: getting values from session

2003-01-27 Thread Pani, Gourav
Ok, I need to apologize to everyone because I was being a complete dumbass.
The variable I was looking for was being nullified, which is why the taglib
wasn't working as designed.  Sorry for the inconvenience.

-Original Message-
From: Pani, Gourav 
Sent: Monday, January 27, 2003 4:05 PM
To: 'Struts Users Mailing List'
Subject: RE: getting values from session


Is there something inherently wrong with my logic?  If not it would seems
odd that something that simple cannot be accomplished with the bean taglib.

-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 3:48 PM
To: 'Struts Users Mailing List'
Subject: RE: getting values from session


I saw that as an option but I still don't understand why the 
tag doesn't get the job done.  
Doesn't this



mean the same as


<%
  out.println(((UserContainer)
session.getValue("UserContainer")).getUser().getUsername()));

%>


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 3:38 PM
To: 'Struts Users Mailing List'
Subject: RE: getting values from session


> I have a UserContainer in session that has a User object in it along with
> getter and setter for it.  The User object has a username and password
with
> their respective getters and setters.  Here is the problem I have.
>  
returns
> the memory address for the User object

Can you use JSTL?  I think it would be:


-- 
Wendy Smoak

--
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 and JSTL

2003-01-27 Thread Jerome Jacobsen
Perhaps an Adapter could be created to do this (e.g.
MessageResourcesLocaleContext or StrutsLocaleContext).  You could set it up
to be your default LocaleContext in the web.xml or via a Struts PlugIn.  I
haven't actually looked to see if a Struts MessageResources could be adapted
to a JSTL LocaleContext.  The APIs may be too different.  But maybe not.

Anyway the advantage would be that the Adapter is a light-weight object so
you don't have the problem of loading all the resources into memory twice as
you do with both loading the MessageResources and the ResourceBundle.

Such an Adapter could live in the Struts 1.1 contrib along with Struts-EL.

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 3:53 PM
> To: Struts Users Mailing List
> Subject: Re: Struts and JSTL 
>
>
>
>
> On Mon, 27 Jan 2003, PILGRIM, Peter, FM wrote:
>
> >
> > Struts has a i18n implementation that predates JSTL version.
> > I was wondering how to use the Struts application properties
> > with the JSTL ? The obvious answer is point
> > JSTL bundle to load the Struts message bundle. In other have
> > two resource bundles in memory. However, is there any
> > plans to make MessageResources implement the
> > `javax.servlet.jsp.jstl.fmt.LocaleContext' directly?
> >
>
> Short answer - no.
>
> Reason - that would introduce a dependency on JSTL, which in turn would
> introduce a dependency on JSP 1.2 and Servlet 2.3, which would be a
> problem for more than a few users who are using JSP 1.1 / Servlet 2.2
> containers.  We cannot introduce dependencies like this without updating
> the baseline version dependency as well.
>
>
> Craig
>
>
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





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




Mulitple Image submit buttons question (code needed)

2003-01-27 Thread Ashish Kulkarni
Hi,
I read this article on husted.com site
http://husted.com/struts/tips/001.html
But some how not working for me, 

Has any one tried it, can u please post the code of
your form bean, action bean, struts-config definition,

your jsp where u have defined the image button,

Also has any one tried this to do with
DynaValidatorForm instead of defining a custom form
if yes how??



=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: getting values from session

2003-01-27 Thread Pani, Gourav
Is there something inherently wrong with my logic?  If not it would seems
odd that something that simple cannot be accomplished with the bean taglib.

-Original Message-
From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 3:48 PM
To: 'Struts Users Mailing List'
Subject: RE: getting values from session


I saw that as an option but I still don't understand why the 
tag doesn't get the job done.  
Doesn't this



mean the same as


<%
  out.println(((UserContainer)
session.getValue("UserContainer")).getUser().getUsername()));

%>


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 3:38 PM
To: 'Struts Users Mailing List'
Subject: RE: getting values from session


> I have a UserContainer in session that has a User object in it along with
> getter and setter for it.  The User object has a username and password
with
> their respective getters and setters.  Here is the problem I have.
>  
returns
> the memory address for the User object

Can you use JSTL?  I think it would be:


-- 
Wendy Smoak

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: Two ActionForms colliding on property name

2003-01-27 Thread David Graham
Yet another reason to not use Action chaining.  Maybe you could rethink why 
you're chaining the actions.

David






From: "Derek Richardson" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Two ActionForms colliding on property name
Date: Mon, 27 Jan 2003 15:43:05 -0500

I have one action forwarding to another action. The first action and the 
second action both have form-beans specified using the name attribute and 
these form beans are different. Unfortunately, these two ActionForms each 
have an attribute named "value", but in ActionForm one it is a String, 
while, in ActionForm two, it is a List.

You probably already see the problem. Here is what I think it is. When a 
JSP submits to the first action, there is a request parameter called 
"value" which is a String. When the first action forwards to the second, 
ActionForm two is populated from the request, the string is found in place 
of the list, and I get BeanUtil.populate() errors.

Any suggestions (other than changing the attribute names, which is a 
possibility, but not my preference)?

Thanks,

Derek Richardson



Here's the error, if you're interested:



type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server 
Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: BeanUtils.populate
	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
	at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
	at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
	at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
	at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
	at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1014)
	at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:417)
	at 
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:390)
	at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
	at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpPro

Re: Struts with Tomcat 3.2.1

2003-01-27 Thread Craig R. McClanahan


On Mon, 27 Jan 2003, Sankar Kondur wrote:

> Date: Mon, 27 Jan 2003 14:34:04 -0500
> From: Sankar Kondur <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: Struts with Tomcat 3.2.1
>
> Hello,
>
> Has anyone used Struts with Tomcat 3.2.1. If so do you know which version of
> Struts works with Tomcat version 3.2.1?
>

It is *possible* that Struts 1.0.2 might work in this environment, but
don't count on any support -- 3.2.1 is absolutely ancient, and has at
least some security fixes that were done in 3.2.4 (as well as lots and
lots of other bugfixes).

Tomcat 3.2 has class loader bugs that prevent Struts 1.1b3 and later from
working at all; upgrade to Tomcat 3.3.x or 4.1.x if you want that to work.

> Thanks in advance.
>
> Shankar

Craig



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




Re: session size and struts

2003-01-27 Thread Craig R. McClanahan


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

> I know the implementation of session is container dependant.

Yes.

> I know struts put a lot of stuff in the http session.

No.

The only thing Struts itself puts in the session is a Locale object for
the user (and even then only if you ask for it) -- anything else put there
is done so by your application.

Craig



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




Re: Filters and Struts

2003-01-27 Thread Craig R. McClanahan


On Mon, 27 Jan 2003, David Graham wrote:

> Date: Mon, 27 Jan 2003 09:35:12 -0700
> From: David Graham <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: Filters and Struts
>
> I could be wrong but I believe filters apply to forwards.
>

Only in broken containers :-).

For servlet 2.3, filters only apply on the original request.  For servlet
2.4, you'll be able to declare in your filter mappings that you also want
a filter to apply on forwards and/or includes.

> David
>

Craig



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




Re: Is commons logging required in Struts?

2003-01-27 Thread Craig R. McClanahan


On Mon, 27 Jan 2003, Iain Sanderson wrote:

> Should I put the imports to commons.logging back?

Yes.

> Can struts live without
> the commons-logging.properties file?

See the commons-logging documentation for other ways to configure
commons-logging.

http://jakarta.apache.org/commons/logging/api/

> I know commons-logging.jar is
> absolutely required. What is necessary for a 'pure' log4j implementation?

The whole point of commons-logging was to allow people who want to use
Log4J to be able to use it, and for people who *don't* want to use Log4J
to be able to use something else, without any changes to Struts itself.

My advice is to learn how to configure Log4J in the usual way, and just
let commons-logging use it.

>
> Thanks,
>
> Iain Sanderson.

Craig




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




Re: Is JSF an Struts intergration time mature?

2003-01-27 Thread Craig R. McClanahan


On Mon, 27 Jan 2003, Marco Tedone wrote:

> Date: Mon, 27 Jan 2003 11:27:02 -
> From: Marco Tedone <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts-user-list  <[EMAIL PROTECTED]>
> Subject: Is JSF an Struts intergration time mature?
>
> Hi, i just knew the JSF existance as i'm reading some literacy on Struts
> 1.1. As far as i learnt, JSF and Struts could intergrate one with the other.
> I had a quick look to JSR 127 and i have only a question: as per your
> experience, is the time for JSF and Struts integration mature? The reply
> will guide me on the relevance to go deeper in the integration or wait a
> little bit more.
>

You will see concrete evidence of Struts-JSF integration when the next JSF
early access release becomes available, "real soon now."

However, you should remember what "early access" means -- the APIs of
JavaServer Faces are still changing, and it is way to early to count on
them all being stable.  It will be useful, though, to start exploring how
the technologies can work together.

Even if that does not bother you, note in particular a license restriction
on the JSF EA release (actually on any EA release from the JCP) -- if it's
not final, it's for evaluation only, and you can't ship a production
product based on it anyway.

> Regards,
>
> Marco

Craig



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




Re: Struts and JSTL

2003-01-27 Thread Craig R. McClanahan


On Mon, 27 Jan 2003, PILGRIM, Peter, FM wrote:

>
> Struts has a i18n implementation that predates JSTL version.
> I was wondering how to use the Struts application properties
> with the JSTL ? The obvious answer is point
> JSTL bundle to load the Struts message bundle. In other have
> two resource bundles in memory. However, is there any
> plans to make MessageResources implement the
> `javax.servlet.jsp.jstl.fmt.LocaleContext' directly?
>

Short answer - no.

Reason - that would introduce a dependency on JSTL, which in turn would
introduce a dependency on JSP 1.2 and Servlet 2.3, which would be a
problem for more than a few users who are using JSP 1.1 / Servlet 2.2
containers.  We cannot introduce dependencies like this without updating
the baseline version dependency as well.


Craig




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




RE: getting values from session

2003-01-27 Thread Pani, Gourav
I saw that as an option but I still don't understand why the 
tag doesn't get the job done.  
Doesn't this



mean the same as


<%
  out.println(((UserContainer)
session.getValue("UserContainer")).getUser().getUsername()));

%>


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 3:38 PM
To: 'Struts Users Mailing List'
Subject: RE: getting values from session


> I have a UserContainer in session that has a User object in it along with
> getter and setter for it.  The User object has a username and password
with
> their respective getters and setters.  Here is the problem I have.
>  
returns
> the memory address for the User object

Can you use JSTL?  I think it would be:


-- 
Wendy Smoak

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




RE: getting values from session

2003-01-27 Thread Jarnot Voytek Contr AU HQ/SC
You could use JSTL: 

That (or fmt:message) will probably soon become recommended over the bean:
tags, as JSTL becomes more widely adopted.

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: Pani, Gourav [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 2:27 PM
> To: [EMAIL PROTECTED]
> Subject: getting values from session
> 
> 
> I have a UserContainer in session that has a User object in 
> it along with
> getter and setter for it.  The User object has a username and 
> password with
> their respective getters and setters.  Here is the problem I have.
>  
>  property="user"/> returns
> the memory address for the User object
>  
>  property="user.username"/>
> does not return anything.  What am I missing?  I would think 
> that with a
> single entity there would be no need to iterate through it 
> with a logic tag.
>  
> TIA.
> 

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




Two ActionForms colliding on property name

2003-01-27 Thread Derek Richardson
I have one action forwarding to another action. The first action and the second action 
both have form-beans specified using the name attribute and these form beans are 
different. Unfortunately, these two ActionForms each have an attribute named "value", 
but in ActionForm one it is a String, while, in ActionForm two, it is a List.

You probably already see the problem. Here is what I think it is. When a JSP submits 
to the first action, there is a request parameter called "value" which is a String. 
When the first action forwards to the second, ActionForm two is populated from the 
request, the string is found in place of the list, and I get BeanUtil.populate() 
errors.

Any suggestions (other than changing the attribute names, which is a possibility, but 
not my preference)?

Thanks,

Derek Richardson



Here's the error, if you're interested:



type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.

exception 

javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:980)
at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
at 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1014)
at 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:417)
at 
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:390)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:484)


ro

RE: getting values from session

2003-01-27 Thread Wendy Smoak
> I have a UserContainer in session that has a User object in it along with
> getter and setter for it.  The User object has a username and password
with
> their respective getters and setters.  Here is the problem I have.
>  
returns
> the memory address for the User object

Can you use JSTL?  I think it would be:


-- 
Wendy Smoak



Re: Prevent Cache.

2003-01-27 Thread Gemes Tibor
2003-01-27, h keltezéssel BERNARDO ANTONIO BUFFA ezt írta:
> This problem nearly turns me crazy. But I solved.
> The real guilt of this horror cache history is IE (Microbugs) when
> the GET http method is used.
> 
> My solution:
>   always do a POST. And if you need a GET overwrite the URL, with an extra
> parameter = System.currentTimeMillis() (guarantee value uniqueness).
> And all my pages have this header:

Whoa! 

This looks like a new reason to use tokens.

Tib


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




tiles with one controller and mulitple views

2003-01-27 Thread John Thorhauer
Hi,

I am trying to get tiles to work by using one action and forwarding to
multiple views.  However, I am getting the following error when I
request my action:

Exception in R( /myapp + /test.do + null) -
javax.servlet.ServletException: Can't find Tile context for
'com.phoenixcolor.jobstatus.struts.action.Test'. TilesAction subclasses
must be called from a Tile


My struts action is a TilesAction subclass and the config looks like
this:


  
  

My tiles definition looks like this:













Any ideas on how I can get this to work?

Thanks,
John

-- 

** John Thorhauer
** [EMAIL PROTECTED]
** take a look at:
**  http://www.zenplex.com




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




getting values from session

2003-01-27 Thread Pani, Gourav
I have a UserContainer in session that has a User object in it along with
getter and setter for it.  The User object has a username and password with
their respective getters and setters.  Here is the problem I have.
 
 returns
the memory address for the User object
 

does not return anything.  What am I missing?  I would think that with a
single entity there would be no need to iterate through it with a logic tag.
 
TIA.



Re: Broadcast Messages....How

2003-01-27 Thread Puneet Agarwal
I later realized that my requirement is to have Instant Massaging system
merged into my struts application.

No matter what I'll have to have a Instant Messaging server at the backend
and I shall have one thread of the Swing client to keep a socket opened with
the Instant messaging server.

Since my message were of broadcast nature, I have a simple program to write.

If someone has a better solution, would be nice to know abt...

Regards
Puneet
- Original Message -
From: "Puneet Agarwal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, January 27, 2003 11:57 AM
Subject: Broadcast MessagesHow


> We plan to develop a huge application, following struts framework.
>
> Some part of our application has to have Swing Screens (20% ).
>
> We plan to use the same server side infrastructure for both Swing and HTML
> screens. To achieve this we thought of using Applet to Servlet
communication
> model.
>
> But now we have a strange requirement (genuine though...) to show
> broadcast messages to users in case any. Here a message is required at the
> client site without asking for it. Something like Observer Observable
Model.
>
> Has anybody implemented this in his application...using struts ..I am
> looking for the best
> practice...
>
> Thanks in Advance
> Cheers
> Puneet
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




Java Pet Store rewritten with Flash Remoting Front End

2003-01-27 Thread Haseltine, Celeste
For all those who are considering Flash remoting as another GUI alternative
to HTML, here is the URL to the Java pet store that Macromedia reworked with
a Flash remoting front end.  You can download the code and run it on your
local machine also, if you are interested.  The second link is for FAQ

http://www.macromedia.com/desdev/mx/blueprint/

http://www.macromedia.com/desdev/mx/blueprint/articles/faq.html#pm_accessibl
e

We been using Macromedia JRUN server as our application server for the past
two years, and have used some of the macromedia products in our shop, along
with Eclipse 2.02, for our JSP, Servlet, EJB development.  I did look at
using Flash remoting for our current project when it came out a year ago,
but decided to give it some time in the market place before actually using
it.  My main concern with Flash remoting at that time was how long it would
take for someone on a modem (vs a T1 or cable modem) to navigate and use our
web site. If anyone does actually use it in their apps instead of HTML, I
would be interested in knowing how it worked out for both you and your
customers.

One last note.  It is rumored in the DFW, TX area that Microsoft is
considering a hostile takeover of Macromedia, and that if this does happen,
that Flash remoting would be "bundled" with .NET, and would not continue to
support J2EE applications.  Since we use JRUN as our application server,
I've been keeping my ear to the ground regarding these rumors, as JRUN is
another one of the Macromedia suite of products that MS would probably kill,
if a hostile takeover was successful.  That is something that probably
should be taken into consideration if you choose to utilize this technology
in any new application.  I don't know about any of the rest of you, but I
have been burned by using proprietary code in previous apps, and been left
holding the bag and no source code,  when the company went bankrupt.  I now
utilize and advocate open source code whenever possible.

Celeste



-Original Message-
From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 1:09 PM
To: Struts Users Mailing List
Subject: Re: Flash+Struts how?


Mark Galbreath wrote:
> Only a weenie programmer would use Flash with Struts...]

Nice attitude. I hope I misunderstood that reply...

Anyway, to answer the original inquiry:
A part of the UI of our app is a flash movie, and we chose to integrate 
it using XML. The Flash sends requests to our struts actions (they look 
like any other URL to Flash), but these particular actions return XML 
instead of HTML. The Flash parses the XML and applies it to the UI 
appropriately. Works quite well and with no noticeable CPU usage on the 
client - a problem we had with the previous, complicated HTML interface 
for this part of the app.
There is also a relatively new feature of Flash MX that provides 
integration between Flash and J2EE apps without using XML in between. 
Although I haven't looked at it in detail, I bet it can be used with 
Struts as well as "ordinary" servlets. See 


HTH,
Eric
-- 
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: [OT] Flash+Struts how?

2003-01-27 Thread Mark Galbreath
I was referring to the newbie.   And, of course, I was joking.

-Original Message-
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 1:47 PM
To: 'Struts Users Mailing List'
Subject: RE:[OT] Flash+Struts how?


I don't use Flash (with or without Struts), and what's wrong with my sig
anyway?  I was simply trying to warn an apparent newbie of the flammage to
follow.

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 12:37 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Flash+Struts how?
> 
> 
> Only a weenie programmer would use Flash with Struts and not
> be embarrassed
> by such a sig.
> 
> -Original Message-
> From: Jarnot Voytek Contr AU HQ/SC
> [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 27, 2003 1:33 PM
> 
> Oh god, run for your life!
> 
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
> 
> 
> > -Original Message-
> > From: Struts Rulez [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 27, 2003 12:26 PM
> > 
> > We have developed a Struts application, using this
> > great framework.
> > 
> > Now... the client wants to convert it to Flash, and do
> > data entry in Flash.
> > What is the best way?
> > We would like to keep our beans and DAO.
> > 
> > Thanks,
> > StrutsRules!
> 
> 
> 
> --
> 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: Flash+Struts how?

2003-01-27 Thread Michael C. Clark
Being able to return XML to the UI is not all that bad, when you
consider the opportunities for integrating other technolgies for
presentation (if you like XSLT and the like).

There are also some nice tools that take advantage of the modular
nature of FlashMX, and the native XML parsing capabilities of Flash,
available from Flash5 forward.

For UI components check out www.cybersage.com and Flash developer CD
($99 additional) ... XML opens the door to a *slick* rich client UI.

"I love Struts and I vote"

In the right hands, Flash aint all that bad (but then I don't use
emacs to code JavaBean accessors, so...).

-M

 Original Message 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Flash+Struts how?
Date: Mon, 27 Jan 2003 14:09:22 -0500

>Mark Galbreath wrote:
>> Only a weenie programmer would use Flash with Struts[...]
>
>Nice attitude. I hope I misunderstood that reply...
>
>Anyway, to answer the original inquiry:
>A part of the UI of our app is a flash movie, and we chose to
>integrate 
>it using XML. The Flash sends requests to our struts actions (they
>look 
>like any other URL to Flash), but these particular actions return XML
>
>instead of HTML. The Flash parses the XML and applies it to the UI 
>appropriately. Works quite well and with no noticeable CPU usage on
>the 
>client - a problem we had with the previous, complicated HTML
>interface 
>for this part of the app.
>There is also a relatively new feature of Flash MX that provides 
>integration between Flash and J2EE apps without using XML in between.
>
>Although I haven't looked at it in detail, I bet it can be used with 
>Struts as well as "ordinary" servlets. See 
>
>
>HTH,
>   Eric
>-- 
>Eric Rizzo
>Software Architect
>Jibe, Inc.
>http://www.jibeinc.com
>



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




RE: Need input about user authentication with user self registration strategies

2003-01-27 Thread John Cavacas
I realize that this is more of an architecture question and probably should
be labeled [OT]. However, I was looking for more of a Struts based opinion
to these issues.

It seems like I will have to roll my own solution for this. As such, I was
thinking of using the Jakarta taglib session. Does Struts have a tag which
would provide me with similar functionality? I might just also create my own
tag for this purpose.

Any insight, suggestions or anecdotes into these issues would be greatly
appreciated.

Thanks again,
John

> -Original Message-
> From: V. Cekvenich [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 25, 2003 3:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Need input about user authentication with user self
> registration strategies
> 
> inline
> 
> John Cavacas wrote:
> > Hello everyone,
> >
> > I'm currently in the planning/proof of concept stages for my second
> Struts
> > based web app. My first Struts app was pretty small and simple, so I'm
> still
> > new at this.
> >
> > I spent most of last night looking through the mailing list archives and
> > searching on the web to find out about the best strategies regarding
> user
> > authentication in regards to Struts and J2EE (Servlets/JSPs) are
> concerned.
> > I think I have a pretty good understanding of all of the alternatives
> out
> > there. From CMA to Filters, to checking for a user session in a
> BaseAction
> > class, and some other alternatives. My problem is that I'm not sure what
> is
> > the best way to deal with a specific requirement that I have in my
> > application. First the requirement. My application is a simple
> news/article
> > posting web app. I need to be able to let a user (based on permissions)
> to
> > edit, delete or archive, an article from the main page, or the article
> view
> > without going into the "admin" area. Picture a news item with buttons
> for
> > edit, delete, or archive and possibly other administrative functions in
> the
> > future. This would use the same JSP as other users would view, but of
> course
> > these other users would not be able to see the admin functions. The
> > application has its own user database table, and also a roles table from
> > which the permissions are based. These are Admin, editor, contributor,
> > registered.
> >
> > My preferred method to do this would be to use CMA with form based
> > authentication, since I could use it even at the action level. I could
> use
> > the Servlet API to detect user roles. However, I also have the
> requirement
> > that users can self register and maintain a profile. Tomcat's JDBCRealms
> > looks interesting, but how standard is that feature in other containers?
> It
> > also looks like the database tables required for JDBCRealms have to have
> a
> > certain layout which my current database layout doesn't match.
> 
> Create a view that does.
> 
> I would also
> > like to keep the application as portable as possible across containers.
> >
> 
> It has to be, with any J2EE based container, which I think is all of them.
> 
> > Using a Servlet filter also seems interesting, but it leaves the problem
> of
> > having to decide at the JSP level how to show the "admin" actions. The
> same
> > issue is true with using a BaseAction approach.
> 
> Not standard. Look at action - mapping, which uses CMA.
> Like you said, just do is_user_in role in action, KISS and then extend.
> hth,
> .V
> 
> >
> > I would really like to avoid a messy set of if/elses in the JSP to have
> this
> > done. I've even thought that maybe I should create a custom tag for
> this.
> > But I figured I would shoot these questions out to the list before I
> decided
> > to go down that path. Sticking a user object into a session object is
> the
> > usual way which I have solved this problem in the past using things like
> PHP
> > and ASP (ack!) and of course the same thing could be done here too. But
> I
> > would really like to use a better approach for this application and
> remove
> > any application logic out of the View.
> >
> > Any suggestions or ideas that I should consider?
> >
> > Thanks for reading, I know it's long.
> >
> > John




This communication is intended for the use of the individual(s) or entity it
was addressed to and may contain confidential and/or privileged information.
If the reader of this transmission is not the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying of
this communication is prohibited.  If you receive this communication in
error, please notify the sender immediately and delete this communication
from your system(s) to which it was sent and/or replicated to. (c) 2002
Sapiens Americas Corp.

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




Re: , ,DynaValidatorForm

2003-01-27 Thread Ashish Kulkarni
Hi
What u can do is
define a Vector like below in your jsp
Vector options = new Vector();
  options.add(new LabelValueBean("Married", "M"));
  options.add(new LabelValueBean("Single", "S"));

put it in page context 
pageContext.setAttribute("options", options);
and then use



There are more examples given in 
struts-exercise-taglib 
if u install the war file, which u get along with
struts download






--- Vinay <[EMAIL PROTECTED]> wrote:
> Can anyone help me with a sample code for 
> 
> I am doing it this way now
> 
>value="${rp.rpmrtl}">
> Single 
> 
>  value="D">Divorced
>  
> Married
>  
> Widowed
>U 
> 
>  
> 
> 
> 
> I have the following in struts-config.xml
> 
> 
>name="rpForm"
>   
>
type="org.apache.struts.validator.DynaValidatorActionForm">
> type="java.lang.String"/>
>type="java.lang.String"/>
> type="java.lang.String"/>
>   
> 
> 
> I want to get rid of all  with one
> 
> 
> Thanks in advance ,
> 
> Help appreciated
> 
> Vinay
> 
> 
> 
> 
> 
>   
> 
> 
> 
>   - Original Message - 
>   From: Vinay 
>   To: Struts Users Mailing List 
>   Sent: Monday, January 27, 2003 11:59 AM
>   Subject: ,
> ,DynaValidatorForm
> 
> 
>   I am using DynaValidatorForm, I need help in using
> 
>   ,
> 
>   property for  is defined in
> struts-config.xml in a form-bean
>   property
> 
>   Help appreciated
> 
>   Thanks
>   Vinay
> 
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Flash+Struts how?

2003-01-27 Thread Chappell, Simon P


>-Original Message-
>From: Eric Rizzo [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 27, 2003 1:09 PM
>To: Struts Users Mailing List
>Subject: Re: Flash+Struts how?
>
>
>Mark Galbreath wrote:
>> Only a weenie programmer would use Flash with Struts[...]
>
>Nice attitude. I hope I misunderstood that reply...

Actually, knowing Mark, that was one of his more restrained replies. He's mellowing in 
his old age. ;-)



Simon

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

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




Struts with Tomcat 3.2.1

2003-01-27 Thread Sankar Kondur
Hello,

Has anyone used Struts with Tomcat 3.2.1. If so do you know which version of
Struts works with Tomcat version 3.2.1?

Thanks in advance.

Shankar


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




Re: , ,DynaValidatorForm

2003-01-27 Thread Vinay
Can anyone help me with a sample code for 

I am doing it this way now

  
Single  
Divorced
  Married
  Widowed
   U  
  


I have the following in struts-config.xml


   name="rpForm"
   type="org.apache.struts.validator.DynaValidatorActionForm">
   
  
   
  


I want to get rid of all  with one 

Thanks in advance ,

Help appreciated

Vinay





  



  - Original Message - 
  From: Vinay 
  To: Struts Users Mailing List 
  Sent: Monday, January 27, 2003 11:59 AM
  Subject: , ,DynaValidatorForm


  I am using DynaValidatorForm, I need help in using 
  ,

  property for  is defined in struts-config.xml in a form-bean
  property

  Help appreciated

  Thanks
  Vinay




Re: Flash+Struts how?

2003-01-27 Thread Eric Rizzo
Mark Galbreath wrote:

Only a weenie programmer would use Flash with Struts[...]


Nice attitude. I hope I misunderstood that reply...

Anyway, to answer the original inquiry:
A part of the UI of our app is a flash movie, and we chose to integrate 
it using XML. The Flash sends requests to our struts actions (they look 
like any other URL to Flash), but these particular actions return XML 
instead of HTML. The Flash parses the XML and applies it to the UI 
appropriately. Works quite well and with no noticeable CPU usage on the 
client - a problem we had with the previous, complicated HTML interface 
for this part of the app.
There is also a relatively new feature of Flash MX that provides 
integration between Flash and J2EE apps without using XML in between. 
Although I haven't looked at it in detail, I bet it can be used with 
Struts as well as "ordinary" servlets. See 


HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



RE: Flash+Struts how?

2003-01-27 Thread Haseltine, Celeste
I would suggest checking out using Flash Remoting, on Macromedia's web site.
I suspect that is what your client is talking about when they say they want
to do data entry using Flash.  Flash Remoting has about 12 GUI components
that can be used in place of HTML for data entry, and is competitive to some
of MS GUI components.  Macromedia has rewritten the Pet Store application
using Flash remoting, to give people an idea of the GUI components that are
available, and how they can be used.  If you have any trouble finding the
URL's for all this on their web site, post again, and I will send them to
you.

You should note though that Flash remoting does require the use of one of
Macromedia's server packages, such as JRUN server or Cold Fusion server.  I
do not believe that it will run on Tomcat/Apache, but check out their web
site to verify this.  They may have released a server component that will
run on any server since I last research this.

Celeste

-Original Message-
From: Struts Rulez [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 12:26 PM
To: [EMAIL PROTECTED]
Subject: Flash+Struts how?


We have developed a Struts application, using this
great framework.

Now... the client wants to convert it to Flash, and do
data entry in Flash.
What is the best way?
We would like to keep our beans and DAO.

Thanks,
StrutsRules!


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Flash+Struts how?

2003-01-27 Thread Robert Taylor
I actually started looking into how I could integrate Struts with Flash.
I wasn't concerned with the server side, I was mainly concerned with how
Flash communicated with the server. I found the following article on
Flash Remoting which was interesting. I appears that Flash Remoting
uses a specialized form of messaging over HTTP to talk to a servlet
which inturn invokes methods on Java objects (hmsounds like Web
Services)

I got side tracked on some other stuff, so that's about as far as I looked.
Here is the article:

http://www.javaworld.com/javaworld/jw-01-2003/jw-0117-flash-p2.html

Good luck.

robert

> -Original Message-
> From: Struts Rulez [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 1:26 PM
> To: [EMAIL PROTECTED]
> Subject: Flash+Struts how?
>
>
> We have developed a Struts application, using this
> great framework.
>
> Now the client wants to convert it to Flash, and do
> data entry in Flash.
> What is the best way?
> We would like to keep our beans and DAO.
>
> Thanks,
> StrutsRules!
>
>
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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




RE: Struts productivity metrics?

2003-01-27 Thread Joe Barefoot


> 4) Assuming that struts provides a consistent framework that 
> is easier to
> maintain, is there perhaps a increase in initial development 
> effort which is
> offset by a decrease in the ongoing maintenance effort for 
> the application?
> Can that be quantified by testing metrics like # of issues 
> reported/module
> and avg. # hours required to resolve an issue?

Can't help chiming in here:  You're not likely to find any metrics like these, and if 
you do, you should only use them the way most statistics are--to blindside people into 
agreeing with your premises.  If you think about it briefly, you'll realize that 
metrics like these will never be that accurate, and even if the metrics themselves 
were precise, they could never accurately represent quantitative differences between 
development methodologies or frameworks.  The reason is simple:  No company ever 
builds the same thing twice and every project is very different.  This makes 
quantitative apples-to-apples comparisons of frameworks/practices practically 
impossible in the business world.  Perhaps an academic experiment with two teams 
implementing the exact same spec. with different frameworks would yield some useful 
information, but any quantitative comparisons you receive from the business world are 
spurious at best.  

You're much better off relying on first-hand qualitative comparisons, e.g. "We were 
using X for web development and now that we've switched to Struts, I don't have to don 
my fire hat on a daily basis to douse that conflagaration we called a web app."

:)



> 
> 
> Anecdotal comments are appreciated, but I'm mostly interested in hard
> metrics (X hrs w/ struts vs. Y hrs w/ 'the old way') if 
> possible.  Also - if
> there are any books/sites which address these questions, 
> please send them my
> way.
> 
> Thanks in advance,
> - Scott
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Flash+Struts how?

2003-01-27 Thread Thorsten Schäfer
Hi,

> We have developed a Struts application, using this
> great framework.

Take a look at javaworld.com ...

Greetings,

Thorsten


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




RE:[OT] Flash+Struts how?

2003-01-27 Thread Jarnot Voytek Contr AU HQ/SC
I don't use Flash (with or without Struts), and what's wrong with my sig
anyway?  I was simply trying to warn an apparent newbie of the flammage to
follow.

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 12:37 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Flash+Struts how?
> 
> 
> Only a weenie programmer would use Flash with Struts and not 
> be embarrassed
> by such a sig.
> 
> -Original Message-
> From: Jarnot Voytek Contr AU HQ/SC 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 27, 2003 1:33 PM
> 
> Oh god, run for your life!
> 
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
> 
> 
> > -Original Message-
> > From: Struts Rulez [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, January 27, 2003 12:26 PM
> > 
> > We have developed a Struts application, using this
> > great framework.
> > 
> > Now... the client wants to convert it to Flash, and do
> > data entry in Flash.
> > What is the best way?
> > We would like to keep our beans and DAO.
> > 
> > Thanks,
> > StrutsRules!
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: Is there something tricky about instantiating a DynaValidator Form ?

2003-01-27 Thread Ashish Kulkarni
Hi,
I had once read this message, but never tried it as i
am not using 1.1b3 as of now may be u can give it a
try and let me know if it works
http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg12464.html

Ashish
--- "Kilmer, Erich" <[EMAIL PROTECTED]>
wrote:
> Thanks for your response.
> I am still looking for an way to instantiate a
> DynaValidatorForm.
> We are using struts1.1b3 so the DynaActionFormClass
> class has no
> getDynaActionFormClass method.
> Is there another way to do this properly?
> How else are we going to unit test action methods if
> we can't create the
> form classes?
> Erich
> 
> -Original Message-
> From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 11:09 AM
> To: Struts Users Mailing List
> Subject: Re: Is there something tricky about
> instantiating a
> DynaValidatorForm ?
> 
> 
> Hi,
> When i have to put some values in DynaValidatorForm
> i
> do the following to instantiate it in struts1.1b2
> DynaValidatorForm PL1820UpdateForm = 
>   (DynaValidatorForm)
> DynaActionFormClass.getDynaActionFormClass(
> 
> "PL1820UpdateForm").newInstance();
> 
> Where PL1820UpdateForm is form definiation in
> struts-config file.
> I think this method of instantiating has been
> shcnage
> in struts1.1b3 
> People correct me if i am wrong
> Ashish
> 
> 
> 
> --- "Kilmer, Erich" <[EMAIL PROTECTED]>
> wrote:
> > Hello,
> > I am trying to Junit test my Struts code. Not sure
> > how many people have
> > tried to do this. If there is a more appropriate
> > forum to send this to
> > please let me know.
> > Here is my test code. When it gets to:
> > dynaValidatorForm.set("areaId",
> > "-1"); it crashes.
> > I never tried to instantiate a DynaValidatorForm
> > before (I always just cast
> > ActionForm in the action method to a
> > DynaValidatorForm).
> > Is there something tricky about instantiating a
> > DynaValidatorForm ?
> > 
> >public void testSaveEdit()
> >{
> >   try
> >   {
> >  appbean.login("admin", "project");
> >  addRequestParameter("method","Save");
> >  addRequestParameter("areaId","-1");
> >  setRequestPathInfo("/saveArea.do");
> >  DynaValidatorForm dynaValidatorForm = new
> > DynaValidatorForm();
> >  dynaValidatorForm.set("areaId", "-1");
> >  dynaValidatorForm.set("description",
> > "area1");
> > 
> >
>
dynaValidatorForm.set("projectCoordinatorContactName",
> > "new name
> > 1");
> > 
> >
>
dynaValidatorForm.set("projectCoordinatorContactPhoneNumber",
> > "new
> > number 1");
> > 
> >
>
dynaValidatorForm.set("maintenanceManagerContactName",
> > "new name
> > 2");
> > 
> >
>
dynaValidatorForm.set("maintenanceManagerContactPhoneNumber",
> > "new
> > number 2");
> >  setActionForm(dynaValidatorForm);
> >  actionPerform();
> >  verifyForward("success");
> >  verifyNoActionErrors();
> >  verifyActionErrors(new
> > String[]{"message.saved"});
> >  appbean.logout();
> > 
> >   }
> >   catch(Exception e)
> >   {
> >   fail("Unexpected Exception - " +
> > e.getMessage());
> >   }
> >}
> > 
> > 
> 
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: Flash+Struts how?

2003-01-27 Thread Pani, Gourav
...  but it would be a lot cooler if he did - "Dazed and Confused"


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 1:37 PM
To: 'Struts Users Mailing List'
Subject: RE: Flash+Struts how?


Only a weenie programmer would use Flash with Struts and not be embarrassed
by such a sig.

-Original Message-
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 1:33 PM

Oh god, run for your life!

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: Struts Rulez [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 12:26 PM
> 
> We have developed a Struts application, using this
> great framework.
> 
> Now... the client wants to convert it to Flash, and do
> data entry in Flash.
> What is the best way?
> We would like to keep our beans and DAO.
> 
> Thanks,
> StrutsRules!



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: Flash+Struts how?

2003-01-27 Thread Mark Galbreath
Only a weenie programmer would use Flash with Struts and not be embarrassed
by such a sig.

-Original Message-
From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 1:33 PM

Oh god, run for your life!

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: Struts Rulez [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 12:26 PM
> 
> We have developed a Struts application, using this
> great framework.
> 
> Now... the client wants to convert it to Flash, and do
> data entry in Flash.
> What is the best way?
> We would like to keep our beans and DAO.
> 
> Thanks,
> StrutsRules!



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




  1   2   >