+ SSL ( + foreign context )

2005-03-31 Thread Andreas Toom
Hello,
I have 2 questions (See below for details)
1, Does  work with SSL? if so, how?
2, Does JSTL  work with Struts actions?
Yesterday after some months of developing on a Struts application it was 
time to enable SSL. Enabling tomcat with SSL support was no problem and 
it looked like it would be a sweet ride but out of nowhere this 
exception pops up:

Exception opening resource 
https://localhost/fragments/fragment_login.jsp: 
javax.net.ssl.SSLHandshakeException: 
sun.security.validator.ValidatorException: No trusted certificate found

The fragment is included with:

and then

Includes works fine without SSL. SSL works and I can render the fragment 
jsp alone without any problems, in fact the whole Struts app works fine 
with SSL as long as I don't use .

After some googling I find this mailinglist post: 
http://www.newsarch.com/archive/mailinglist/jakarta/struts/user/msg29088.html 
with a similar error but no solution.

Alternative solutions:
I try  and it works fine, but the problem is that I have 
another app which will include the login fragment aswell so I need 
something that can access a foreign context (App B will access fragments 
from the context of App A) I try JSTL c:import with 
href="/fragments/fragment_login.jsp" and context="/" which in my mind 
would lead to a http request from App B to App A and the inclusion of 
the response as a String, but instead I get a action mapping error 
saying action /login cannot be found, well of course since the action 
/login is not defined in App B only in App A.

How does the  work? shouldn't  return the content in 
HTML not in jsp-code (?) for App B to compile in the App B context?

So this is what it all sums up to:
 cannot include content over SSL ?,
 and JSTL  can both include content over SSL,
JSTL  cannot import content with Struts action references from 
antoher context???

Any ideas would be really appreciated.
/Andreas
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Software patch release standard?

2005-03-31 Thread Sng Wee Jim

Hi,



Are there any standard protocols, products pertaining to software
patches release? For example, maintaining what goes into a release, the
release format etc.





- Jim





The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email
immediately. You should not copy, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/



RE: Beginner question...

2005-03-31 Thread Sachin Bhutada




-Original Message-
From: Apte, Dhanashree (Noblestar) [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 11:07 AM
To: 'Struts Users Mailing List'
Subject: Beginner question...



This is the first time I am doing web programming and using struts as
well.
I have been meaning to ask this ever since I started. At the risk of
sounding stupid, here is the question:

EVEN I AM ALSO QUITE NEW TO WEB APPLICATION, BUT I WILL TRY TO GIVE YOU THE
SOLUTION RATHER 
THAN ANSWERING WHY LOGIC:ITERATE TAG DOESNT DO WHAT YOU AND LONG TIME BACK I
WAS EXPECTING FROM IT.

If struts is smart enough to figure out logic:iterate and put out the
attributes of each bean from the collection neatly for editing, why is
it
not smart enough to figure out which element the user edited and put the
changed value back in the right property of the right bean in original
collection? Why do I need to have both:
* the Collection attribute for loading up my edit page AND
* the string array for every editable attribute to track the edits made
by
the user?

THERE ARE LOTS OF WAYS BY WHICH WE CAN TELL STRUTS TO AUTOMATICALLY POPULATE
THE FIELDS OF COLLECTION
WHEN THE FORM IS SUBMITTED. STILL YOU CAN USE THE STRING ARRAY AND GET THE
WORK DONE. USING COLLECTION
ATTIRBUTES IN EASIER APPROACH. 

HERE IS THE LINK WHICH WILL EXPLAIN IN DETAIL HOW IS IT DONE.

http://technology.amis.nl/blog/index.php?p=176

I HOPE IT SOLVES YOUR PROBLEM



Thanks!
Dhanashree.

SACHIN


Re: One click on a link -> two requests/calls to Action (?!)

2005-03-31 Thread jhking
If you do a form.submit() inside a submit button's onclick handler have
the handler return false.  That will prevent a double-submit.
> From: "David G. Friedman" <[EMAIL PROTECTED]>
>> I had a similar problem but I was HTML based, not Struts based:  The
>> button
>> in my form was doing a submit but it was also a submit button.  The
>> result
>> was a double submit behavior much like you've shown here.
>
> Thanks Nic and David for confirming that I'm not [necessarily] crazy.  I
> do
> think it's the JavaScript, and will check that next.  It'll probably be
> Tuesday before I get back to it though.
>
> --
> Wendy Smoak
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Which MVC Layer ActionForm Belongs To?

2005-03-31 Thread atta-ur rehman
Dea all,

I'm sure I've seen this topic before! Just can't remember where and
google won't help either! Can anybody please explain which MVC layer
form belongs?

TIA.

ATTA

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



Re: One click on a link -> two requests/calls to Action (?!)

2005-03-31 Thread Wendy Smoak
From: "David G. Friedman" <[EMAIL PROTECTED]>
I had a similar problem but I was HTML based, not Struts based:  The 
button
in my form was doing a submit but it was also a submit button.  The result
was a double submit behavior much like you've shown here.
Thanks Nic and David for confirming that I'm not [necessarily] crazy.  I do 
think it's the JavaScript, and will check that next.  It'll probably be 
Tuesday before I get back to it though.

--
Wendy Smoak 


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


RE: One click on a link -> two requests/calls to Action (?!)

2005-03-31 Thread David G. Friedman
Wendy,

I had a similar problem but I was HTML based, not Struts based:  The button
in my form was doing a submit but it was also a submit button.  The result
was a double submit behavior much like you've shown here.

Can you post the Javascript attached to your  rendered HTML tag
PLUS any for relevant buttons you click on in your end-result-HTML page?

Regards,
David

-Original Message-
From: Nic Werner [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 5:43 PM
To: Struts Users Mailing List
Subject: Re: One click on a link -> two requests/calls to Action (?!)


Wendy,
I had a similiar issue where I was adding a user, and I would get an
error about breaking unique constraints. Looking at the logs, I saw this
action being performed twice. I don't have an exact solution, but what I
did was re-checked my pageflow (I was using DispatchAction), and made
sure I was returning to the correct page, or none at all to narrown down
the issue. This 'solution' didn't really justify my actions to correct
it, but I haven't had time to go back.

HTH,

- Nic.


Wendy Smoak wrote:

>From: "Dave Newton" <[EMAIL PROTECTED]>
>
>
>>Nothing immediate smacks me... Without the Action code it'll be tough.
>>Is it a subclass of an uber-Action? Are you doing anything...
>>interesting in a custom RequestProcessor? How is the action-mapping
>>configured, what ActionForward are you returning (i.e., path through the
>>Action after submission), etc.
>>
>>
>
>I posted the mapping and the 'execute' and 'addContact' methods:
>   http://wiki.wendysmoak.com/cgi-bin/wiki.pl?StrutsDoubleRequest
>
>There's nothing special going on.  Definitely no custom RequestProcessor.
>It's just a LookupDispatchAction that looks at 'userAction' to pick the
>method.  And at the point you ask it to add a record, it  returns
>mapping.getInputForward();
>
>Thanks for looking at it.  I've stared at it for a while and I just don't
>see anything that could be causing that second pass through the Action
code.
>
>Could anything other than an actual HttpRequest make the RequestProcessor
>say:
>   Processing a 'GET' for path '/editContact'
>?
>
>I'm going to look at all the JavaScript to see if there's something that is
>somehow making a second request.  (The 2-3 second delay makes me think this
>is happening as/after the page is rendered.)
>
>
>


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


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



RE: sslext java.lang.ClassCastException in SecureRequestProcessor

2005-03-31 Thread David G. Friedman
Mark,

If you plan on using the SecureRequestProcossor, isn't it expecting EVERY
action config to have a className of the SecureActionConfig?  Wouldn't it be
better for you to globally set the type so all actions use
secureActionConfig so you avoid case problems like this? (see action
"/Logon" which does NOT use SecureActionConfig while your requestProcessor
seems to expect it.

Regards,
David

-Original Message-
From: Mark Shifman [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 2:57 PM
To: Struts Users Mailing List
Subject: sslext java.lang.ClassCastException in SecureRequestProcessor


I just started playing with sslext and I have a problem.

java.lang.ClassCastException

org.apache.struts.action.SecureRequestProcessor.processPreprocess(SecureReq
uestProcessor.java:102)

My first login action is supposed to use ssl but it forwards to logon
action and a menu that doesn't need it.

from my struts config






...




  




  

I thought it would be nice to set
className="org.apache.struts.config.SecureActionConfig" on the action
rather than
type="org.apache.struts.config.SecureActionConfig" on the action-mapping
so I wouldn't have to setting the security
property for every single action.

When I look at line 102 that gives the error I am stumped as to why
there should be a problem with the class cast.
  mapping = (SecureActionConfig) processMapping(request, response, path);

Any ideas would be appreciated.
Mark Shifman


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


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



Re: One click on a link -> two requests/calls to Action (?!)

2005-03-31 Thread Nic Werner
Wendy,
   I had a similiar issue where I was adding a user, and I would get an 
error about breaking unique constraints. Looking at the logs, I saw this 
action being performed twice. I don't have an exact solution, but what I 
did was re-checked my pageflow (I was using DispatchAction), and made 
sure I was returning to the correct page, or none at all to narrown down 
the issue. This 'solution' didn't really justify my actions to correct 
it, but I haven't had time to go back.

HTH,
- Nic.
Wendy Smoak wrote:
From: "Dave Newton" <[EMAIL PROTECTED]>
 

Nothing immediate smacks me... Without the Action code it'll be tough.
Is it a subclass of an uber-Action? Are you doing anything...
interesting in a custom RequestProcessor? How is the action-mapping
configured, what ActionForward are you returning (i.e., path through the
Action after submission), etc.
   

I posted the mapping and the 'execute' and 'addContact' methods:
  http://wiki.wendysmoak.com/cgi-bin/wiki.pl?StrutsDoubleRequest
There's nothing special going on.  Definitely no custom RequestProcessor.
It's just a LookupDispatchAction that looks at 'userAction' to pick the
method.  And at the point you ask it to add a record, it  returns
mapping.getInputForward();
Thanks for looking at it.  I've stared at it for a while and I just don't
see anything that could be causing that second pass through the Action code.
Could anything other than an actual HttpRequest make the RequestProcessor
say:
  Processing a 'GET' for path '/editContact'
?
I'm going to look at all the JavaScript to see if there's something that is
somehow making a second request.  (The 2-3 second delay makes me think this
is happening as/after the page is rendered.)
 


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


Re: One click on a link -> two requests/calls to Action (?!)

2005-03-31 Thread Wendy Smoak
From: "Dave Newton" <[EMAIL PROTECTED]>
> Nothing immediate smacks me... Without the Action code it'll be tough.
> Is it a subclass of an uber-Action? Are you doing anything...
> interesting in a custom RequestProcessor? How is the action-mapping
> configured, what ActionForward are you returning (i.e., path through the
> Action after submission), etc.

I posted the mapping and the 'execute' and 'addContact' methods:
   http://wiki.wendysmoak.com/cgi-bin/wiki.pl?StrutsDoubleRequest

There's nothing special going on.  Definitely no custom RequestProcessor.
It's just a LookupDispatchAction that looks at 'userAction' to pick the
method.  And at the point you ask it to add a record, it  returns
mapping.getInputForward();

Thanks for looking at it.  I've stared at it for a while and I just don't
see anything that could be causing that second pass through the Action code.

Could anything other than an actual HttpRequest make the RequestProcessor
say:
   Processing a 'GET' for path '/editContact'
?

I'm going to look at all the JavaScript to see if there's something that is
somehow making a second request.  (The 2-3 second delay makes me think this
is happening as/after the page is rendered.)

-- 
Wendy Smoak


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



Re: One click on a link -> two requests/calls to Action (?!)

2005-03-31 Thread Dave Newton
Wendy Smoak wrote:
Here's hoping someone is now laughing and saying "Been there!" because I
have no idea what's causing this.  Any hints or ideas gratefully accepted.
 

Nothing immediate smacks me... Without the Action code it'll be tough. 
Is it a subclass of an uber-Action? Are you doing anything... 
interesting in a custom RequestProcessor? How is the action-mapping 
configured, what ActionForward are you returning (i.e., path through the 
Action after submission), etc.

Dave

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


One click on a link -> two requests/calls to Action (?!)

2005-03-31 Thread Wendy Smoak
I'm staring at the log files and saying "This can't be happening."  I have a
Struts app deployed on a development box.  I click on a link:
http://www.example.com/myapp/someAction.do?someParam=123

And in the log file, I see *two* passes through that Action code.  The
results of the first pass are what's displayed in the browser window, but
things in the session are modified by the second pass.

This means that when I've clicked on the link to 'add' a record to the
database, I _think_ I'm working on the record with key 100 but the object in
the session has key 101, and that's actually the one that gets updated.

Because that probably makes no sense at all, I put the log file up here:
   http://wiki.wendysmoak.com/cgi-bin/wiki.pl?StrutsDoubleRequest

I _know_ it looks like two different clicks 3 seconds apart.  It isn't.
Even if I managed to double-click, I can look at the keys in the database
for the file in question, and every other sequential key is missing.
There's no way *everybody* is clicking twice.  And it happens from both
Firefox and IE, so there goes my first idea. (Blame IE!)

I'm sure it's something I've done wrong, this was my very first Struts app
(it went live the day 1.1 was released).

Here's hoping someone is now laughing and saying "Been there!" because I
have no idea what's causing this.  Any hints or ideas gratefully accepted.

-- 
Wendy Smoak


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



RESEND: RE: Load message resources from DB???

2005-03-31 Thread Günther Wieser
resend because i didn't receive it on the list. sorry if this comes to you
for the second time.

hi,

as it isn't possible to send zip files to the list, i need to copy and paste
the most important things out of our implementation:

the factory is simple:
public class DBPropertyMessageResourcesFactory extends
MessageResourcesFactory {

/* (non-Javadoc)
 * @see
org.apache.struts.util.MessageResourcesFactory#createResources(java.lang.Str
ing)
 */
public MessageResources createResources(String config) {
return new DBPropertyMessageResources(this, config,
this.returnNull);
}
}

also, the DBMessageResources class is quite simple, here's the most
important method:

   public String getMessage(Locale locale, String key) {
String result = DBPropertyMessageService.getMessage(locale, key,
returnNull);
// we need to flush the cache of the super class MessageResource as
we want to have real  // dynamic data here (no caches
// except the one in DBPropertyMessageService)
formats.clear();
return result; 
   }

so the REAL thing is happening in DBPropertyMessageService, and this class
just loads everything at startup (static constructor) into a hashmap. we
have implemented the service class in such way that it's the one and only
point where changes to a property have to go. this allows us to change
values during runtime, and even add new key value pairs during runtime
without reloading from the db.
it's also easy to implement a feature that reloads the db entries ater a
given period of time.

kr,
guenther

--
Günther Wieser

creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 30, 2005 2:52 AM
To: user@struts.apache.org; [EMAIL PROTECTED]
Subject: RE: Load message resources from DB???

Even if I could just get some general directions on what method to pull the
data in, and what method to put the data into what type of container.
Just something would be good.

--
Thanks...
Mick Knutson

Systems Developer
Business Direct Services, Wells Fargo Bank
333 Market Street, SF, CA  94103
(415) 371-2553
[EMAIL PROTECTED]
MAC A0103-223

"This message may contain confidential and/or privileged information. If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose, or take any action based on this message or
any information herein. If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message. Thank
you for your cooperation."
--



-Original Message-
From: Jason Long [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 4:41 PM
To: 'Struts Users Mailing List'
Subject: RE: Load message resources from DB???


I am still waiting for an example of this as well.  I would very much like
to add this feature, but is not critical and I have other things to work on.
If you find an example please let me know.

Thank you for your time,
 
Jason Long
CEO and Chief Software Engineer
BS Physics, MS Chemical Engineering
http://www.supernovasoftware.com 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 29, 2005 6:38 PM
To: user@struts.apache.org
Subject: RE: Load message resources from DB???

Does anyone ahve any examples of extending the PropertyMessageResources  and
PropertyMessageResources Factory?


-Original Message-
From: Daniel Lipofsky [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 15, 2005 1:35 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: Load message resources from DB???


Yes, just extend the PropertyMessageResources and overide the
loadLocale() method.  You should extend the factory too and specify the new
factory in struts-config.xml.  Add a method to clear the cache in the
PropertyMessageResources and clear it when the user changes something.
- Dan

> -Original Message-
> From: Jason Long [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 14, 2005 11:21 PM
> To: 'Struts Users Mailing List'
> Subject: Load message resources from DB???
> 
> Is it possible to load the message resources from a database instead 
> of a file?  If so can this be done without reloading the entire 
> application?  I would like to let users manage these.
> 
> Thank you for your time,
> 
> Jason Long
> CEO and Chief Software Engineer
> BS Physics, MS Chemical Engineering
> http://www.supernovasoftware.com


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


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




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

Re: Beginner question...

2005-03-31 Thread Rick Reumann
Apte, Dhanashree (Noblestar) wrote the following on 3/31/2005 2:07 PM:
If struts is smart enough to figure out logic:iterate and put out the
attributes of each bean from the collection neatly for editing, why is it
not smart enough to figure out which element the user edited and put the
changed value back in the right property of the right bean in original
collection? Why do I need to have both:
* the Collection attribute for loading up my edit page AND
This isn't really a Struts question, just so happens you are using the 
strut's logic tag. (You can also use JSTL's forEach tag.) We aren't 
really talking Struts here but simply how HTPP works in what gets passed 
when an HTML form is submitted.

I haven't used logic:iterate in a while, but you have to tell whatever 
tag it is what collection to iterate over so I'm not sure what this 
first question is asking.

* the string array for every editable attribute to track the edits made by
the user?
I'm not really sure what you are asking here. Possibly provide an 
example of what you are trying to do?

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


sslext java.lang.ClassCastException in SecureRequestProcessor

2005-03-31 Thread Mark Shifman
I just started playing with sslext and I have a problem.
java.lang.ClassCastException

org.apache.struts.action.SecureRequestProcessor.processPreprocess(SecureRequestProcessor.java:102)
My first login action is supposed to use ssl but it forwards to logon 
action and a menu that doesn't need it.

from my struts config

   type="org.apache.struts.actions.ForwardAction"
   parameter="/WEB-INF/jsp/logon.jsp">

   


   type="org.ycmi.prot.ypresults.actions.LogonAction" 
name="LogonForm"
   validate="true" input="/WEB-INF/jsp/logon.jsp" 
parameter="method">
   
   ...




 
   



 

I thought it would be nice to set 
className="org.apache.struts.config.SecureActionConfig" on the action 
rather than
type="org.apache.struts.config.SecureActionConfig" on the action-mapping 
so I wouldn't have to setting the security
property for every single action.

When I look at line 102 that gives the error I am stumped as to why 
there should be a problem with the class cast.
 mapping = (SecureActionConfig) processMapping(request, response, path);

Any ideas would be appreciated.
Mark Shifman
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
No, you weren't wrong. You cant set an attribute in the request uri.
Those are only parameters, and there is no way from the jsp to populate
an attribute and send it along with the request.

Al


-Original Message-
From: Apte, Dhanashree (Noblestar) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 1:21 PM
To: 'Struts Users Mailing List'
Subject: RE: passing object in request from jsp to action

the same... my bad I wrote request.getParameter()   instead of
request.getAttribute().
:) Sorry!



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



RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
You serialize the object sort of. At least for a hacky solution.

That is you add each attribute of it to the request. Lets say I have an
object user I wish to pass and user has firstname and lastname as
whatever. 

Going to actionA:



Then in my action I can create a user object by getting all the
user. parameters and instantiating one. It's a VERY hacky way of
doing things in struts. What you are trying to do is go directly to a
JSP and then go to an action (or at least it sounds like that to me).

A MUCH better solution (and frankly imho the right way to do it in
struts) is to use a dynaActionForm for actionA... 

Instead of going directly to JSPA go to /prepActionA.do (note you CAN
skip this if you do not have to prepopulate the object for presentation.
But I would personally not go directly to a jsp in my application.
Another possibility is to use a DispatchAction and create a method to do
the prepopulation and another to do your processing) If you Already have
a form for ActionA then you can also just add another attribute to the
form. In my example I would add an attribute "user" of type User to the
form. 

In that Action set up the dynaActionForm much like the example code I
sent you showing how to pass objects around in the request. 

The DynaActionForm for my example above would have a property of type
User.

Then in my form I can see and edit those fields using 


etc.

if I do not want the user to edit them, but must pass the object on,
then use


I think what you are trying to do can be seen in action using Matt
Raible's (your welcome Matt for the shameless plug :) Equinox framework
where he does something almost exactly like this.

Equinox can be seen at:
https://equinox.dev.java.net/framework-comparison/

Baring any of the above working I would seriously reconsider the design
of this particular set of logic. But I am sure something like the above
will work for you.

Al



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



RE: passing object in request from jsp to action

2005-03-31 Thread Fogleson, Allen
You cant. Not from a jsp. The request is already processed by the time
you see the jsp and is no longer available. All you can do coming FROM a
jsp TO an action is to use the request parameters. 

This is no different than if you were going from jsp1 to jsp2 directly
so it should be familiar to you. 

Al


-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 1:22 PM
To: Struts Users Mailing List; Hubert Rabago
Subject: Re: passing object in request from jsp to action

By submitting a form to the action how can I pass some
object using request.setAttribute  ?could you guide me
with this.
thanks & regards


--- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> Once the JSP has been rendered, processing for that
> request is done. 
> Anything placed in request attributes while the JSP
> was processing are
> gone.  To pass data from the generated HTML to an
> action, you need to
> submit a form or include request parameters in a
> link.  Another option
> is to store the object in session scope.
> 
> Hubert
> 
> 
> On Thu, 31 Mar 2005 11:10:36 -0800 (PST), temp temp
> <[EMAIL PROTECTED]> wrote:
> > I want pass an object  from a jsp to an struts
> action
> >  in request attribute.
> > 
> > I have a jsp it got  link to an action upon click
> the
> > action is invoked. How can I pass object to this
> > action  using request Attribute.
> > thanks & regards
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Small Business - Try our new resources
> site!
> > http://smallbusiness.yahoo.com/resources/
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

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


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



MappingDispatchAction usage

2005-03-31 Thread Nic Werner
For the 1.2 users:
   I have a simple CRUD unit that I'm working on. Instead of creating
an action for each one, I originally used DispatchAction to merge them
all into one action. This allowed me to have my Create/Update page
re-use the same JSP - I included a hidden param for the respective
method and html:form just pointed to this Action. However, validation
was applied for all operations, which I don't want for Read/Delete.
Now, my problem is inverted:
So, MappingDispatchAction looks like it lets me break out the
Actions,apply validation to specific actions but still have all the code
stored in one file. However, I can't see how I can re-use the same JSP
for Create/Update now.  used to call MainMethod.do,
and pass the Method=Create along with it. Now, I have to call a specific
.do for Create/Update, etc so this won't work.
Any ideas on where I'm going wrong? Is there something I'm missing for
just DispatchAction that would turn the validate off when I don't want it?
Thanks,
- Nic.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: passing object in request from jsp to action

2005-03-31 Thread Hubert Rabago
When a form is submitted, data is passed as parameters, not
attributes.  You can access the data using request.getParameter(), as
Dhanashree illustrated.

> > Once the JSP has been rendered, processing for that request is done.
> > Anything placed in request attributes while the JSP
> > was processing are gone. 

Hubert

On Thu, 31 Mar 2005 11:21:46 -0800 (PST), temp temp
<[EMAIL PROTECTED]> wrote:
> By submitting a form to the action how can I pass some
> object using request.setAttribute  ?could you guide me
> with this.
> thanks & regards
> 
> 
> --- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> > Once the JSP has been rendered, processing for that
> > request is done.
> > Anything placed in request attributes while the JSP
> > was processing are
> > gone.  To pass data from the generated HTML to an
> > action, you need to
> > submit a form or include request parameters in a
> > link.  Another option
> > is to store the object in session scope.
> >
> > Hubert
> >
> >
> > On Thu, 31 Mar 2005 11:10:36 -0800 (PST), temp temp
> > <[EMAIL PROTECTED]> wrote:
> > > I want pass an object  from a jsp to an struts
> > action
> > >  in request attribute.
> > >
> > > I have a jsp it got  link to an action upon click
> > the
> > > action is invoked. How can I pass object to this
> > > action  using request Attribute.
> > > thanks & regards
> > >

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



RE: passing object in request from jsp to action

2005-03-31 Thread Nidel, Mike
Due to the nature of HTTP, you cannot pass an object from
the client's browser to the Action. Instead you either need
to

a. pass the form fields/request parameters you need to build
your object again

or

b. store the Object in the session so you can retrieve it when
the Action is called.


I don't know of any other way...

> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 31, 2005 2:22 PM
> To: Struts Users Mailing List; Hubert Rabago
> Subject: Re: passing object in request from jsp to action
> 
> 
> By submitting a form to the action how can I pass some
> object using request.setAttribute  ?could you guide me
> with this.
> thanks & regards
> 
> 
> --- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> > Once the JSP has been rendered, processing for that
> > request is done. 
> > Anything placed in request attributes while the JSP
> > was processing are
> > gone.  To pass data from the generated HTML to an
> > action, you need to
> > submit a form or include request parameters in a
> > link.  Another option
> > is to store the object in session scope.
> > 
> > Hubert
> > 
> > 
> > On Thu, 31 Mar 2005 11:10:36 -0800 (PST), temp temp
> > <[EMAIL PROTECTED]> wrote:
> > > I want pass an object  from a jsp to an struts
> > action
> > >  in request attribute.
> > > 
> > > I have a jsp it got  link to an action upon click
> > the
> > > action is invoked. How can I pass object to this
> > > action  using request Attribute.
> > > thanks & regards
> > > 
> > > __
> > > Do you Yahoo!?
> > > Yahoo! Small Business - Try our new resources
> > site!
> > > http://smallbusiness.yahoo.com/resources/
> > > 
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > 
> > >
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
>   
> __ 
> Yahoo! Messenger 
> Show us what our next emoticon should look like. Join the fun. 
> http://www.advision.webevents.yahoo.com/emoticontest
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: passing object in request from jsp to action

2005-03-31 Thread temp temp
.


how can I pass object  through  query String ?
thanks & regards

--- "Apte, Dhanashree (Noblestar)"
<[EMAIL PROTECTED]> wrote:
> the same... my bad I wrote request.getParameter()  
> instead of
> request.getAttribute().
> :) Sorry!
> 
> The solution below should work for you...
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 31, 2005 1:18 PM
> To: Struts Users Mailing List
> Subject: RE: passing object in request from jsp to
> action
> 
> I want to use request.getAttribute("string",object);
> thanks & regards
> 
> --- "Apte, Dhanashree (Noblestar)"
> <[EMAIL PROTECTED]> wrote:
> > ... meaning in the Action you want to reference it
> by doing
> > request.getParameter("someAttribute");
> > Is that correct? If so, on the jsp, in the link to
> your action, add 
> > that parameter as well. Instead of just
> > 
> > use
> >.
> > 
> > Hope this helps,
> > Dhanashree.
> > 
> > -Original Message-
> > From: temp temp [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 31, 2005 1:11 PM
> > To: user@struts.apache.org
> > Subject: passing object in request from jsp to
> action
> > 
> > I want pass an object  from a jsp to an struts
> action  in request 
> > attribute.
> > 
> > I have a jsp it got  link to an action upon click
> the action is 
> > invoked. How can I pass object to this action 
> using request 
> > Attribute.
> > thanks & regards
> > 
> > 
> > 
> > 
> > __
> > Do you Yahoo!? 
> > Yahoo! Small Business - Try our new resources
> site!
> > http://smallbusiness.yahoo.com/resources/
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
>   
> __
> Do you Yahoo!? 
> Take Yahoo! Mail with you! Get it on your mobile
> phone. 
> http://mobile.yahoo.com/maildemo 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: passing object in request from jsp to action

2005-03-31 Thread temp temp
By submitting a form to the action how can I pass some
object using request.setAttribute  ?could you guide me
with this.
thanks & regards


--- Hubert Rabago <[EMAIL PROTECTED]> wrote:
> Once the JSP has been rendered, processing for that
> request is done. 
> Anything placed in request attributes while the JSP
> was processing are
> gone.  To pass data from the generated HTML to an
> action, you need to
> submit a form or include request parameters in a
> link.  Another option
> is to store the object in session scope.
> 
> Hubert
> 
> 
> On Thu, 31 Mar 2005 11:10:36 -0800 (PST), temp temp
> <[EMAIL PROTECTED]> wrote:
> > I want pass an object  from a jsp to an struts
> action
> >  in request attribute.
> > 
> > I have a jsp it got  link to an action upon click
> the
> > action is invoked. How can I pass object to this
> > action  using request Attribute.
> > thanks & regards
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Small Business - Try our new resources
> site!
> > http://smallbusiness.yahoo.com/resources/
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

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



RE: passing object in request from jsp to action

2005-03-31 Thread Apte, Dhanashree (Noblestar)
the same... my bad I wrote request.getParameter()   instead of
request.getAttribute().
:) Sorry!

The solution below should work for you...
-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 1:18 PM
To: Struts Users Mailing List
Subject: RE: passing object in request from jsp to action

I want to use request.getAttribute("string",object);
thanks & regards

--- "Apte, Dhanashree (Noblestar)"
<[EMAIL PROTECTED]> wrote:
> ... meaning in the Action you want to reference it by doing
> request.getParameter("someAttribute");
> Is that correct? If so, on the jsp, in the link to your action, add 
> that parameter as well. Instead of just
> 
> use
>.
> 
> Hope this helps,
> Dhanashree.
> 
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 31, 2005 1:11 PM
> To: user@struts.apache.org
> Subject: passing object in request from jsp to action
> 
> I want pass an object  from a jsp to an struts action  in request 
> attribute.
> 
> I have a jsp it got  link to an action upon click the action is 
> invoked. How can I pass object to this action  using request 
> Attribute.
> thanks & regards
> 
> 
> 
>   
> __
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



RE: passing object in request from jsp to action

2005-03-31 Thread temp temp
I want to use request.getAttribute("string",object);
thanks & regards

--- "Apte, Dhanashree (Noblestar)"
<[EMAIL PROTECTED]> wrote:
> ... meaning in the Action you want to reference it
> by doing 
> request.getParameter("someAttribute"); 
> Is that correct? If so, on the jsp, in the link to
> your action, add that
> parameter as well. Instead of just 
>  
> use
>.
> 
> Hope this helps,
> Dhanashree.
> 
> -Original Message-
> From: temp temp [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 31, 2005 1:11 PM
> To: user@struts.apache.org
> Subject: passing object in request from jsp to
> action
> 
> I want pass an object  from a jsp to an struts
> action  in request attribute.
> 
> I have a jsp it got  link to an action upon click
> the action is invoked. How
> can I pass object to this action  using request
> Attribute.
> thanks & regards
> 
> 
> 
>   
> __
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/ 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Re: passing object in request from jsp to action

2005-03-31 Thread Hubert Rabago
Once the JSP has been rendered, processing for that request is done. 
Anything placed in request attributes while the JSP was processing are
gone.  To pass data from the generated HTML to an action, you need to
submit a form or include request parameters in a link.  Another option
is to store the object in session scope.

Hubert


On Thu, 31 Mar 2005 11:10:36 -0800 (PST), temp temp
<[EMAIL PROTECTED]> wrote:
> I want pass an object  from a jsp to an struts action
>  in request attribute.
> 
> I have a jsp it got  link to an action upon click the
> action is invoked. How can I pass object to this
> action  using request Attribute.
> thanks & regards
> 
> __
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



RE: passing object in request from jsp to action

2005-03-31 Thread Apte, Dhanashree (Noblestar)
... meaning in the Action you want to reference it by doing 
request.getParameter("someAttribute"); 
Is that correct? If so, on the jsp, in the link to your action, add that
parameter as well. Instead of just 
 
use
   .

Hope this helps,
Dhanashree.

-Original Message-
From: temp temp [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 1:11 PM
To: user@struts.apache.org
Subject: passing object in request from jsp to action

I want pass an object  from a jsp to an struts action  in request attribute.

I have a jsp it got  link to an action upon click the action is invoked. How
can I pass object to this action  using request Attribute.
thanks & regards




__
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



passing object in request from jsp to action

2005-03-31 Thread temp temp
I want pass an object  from a jsp to an struts action 
 in request attribute.

I have a jsp it got  link to an action upon click the
action is invoked. How can I pass object to this
action  using request Attribute.
thanks & regards




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



Beginner question...

2005-03-31 Thread Apte, Dhanashree (Noblestar)

This is the first time I am doing web programming and using struts as well.
I have been meaning to ask this ever since I started. At the risk of
sounding stupid, here is the question:

If struts is smart enough to figure out logic:iterate and put out the
attributes of each bean from the collection neatly for editing, why is it
not smart enough to figure out which element the user edited and put the
changed value back in the right property of the right bean in original
collection? Why do I need to have both:
* the Collection attribute for loading up my edit page AND
* the string array for every editable attribute to track the edits made by
the user?

Thanks!
Dhanashree.


Re: Model

2005-03-31 Thread Rafael Taboada
Thanks a lot for all ur help


-- 

 Rafael Taboada

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



RE: status messages in tag

2005-03-31 Thread Fumo, Vince
ok follow-up and I'm sure this one will take 2 seconds to answer.. 

part 1) is there a JSTL way to do the ? 
part 2) What does it mean when the status message from the below code by Bob
comes out as a literal (i.e.. <%=rollOverText%>) instead of the string it
represents? I've checked the scriptlet outside of the tag and it outputs
correctly. I'm thinking that the  tag isn't pre-processing the
scriptlet?

-Original Message-
From: Bob Arnott [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 12:41 PM
To: Struts Users Mailing List
Subject: Re: status messages in  tag


Fumo, Vince wrote:
> I want to implement a status message on a rollover for some of my links. I
> was considering doing something like:
> 
> http://www.google.com"; target="_blank"
> onmouseover="window.status='Go go google';return true">
> 
> which works fine. 
> 
> However, what I really want to do is pull the status message from my
struts
> message-resources bundle for I18N. The only way I can think to do this is
to
> use a scriptlet like :
> 
> http://www.google.com"; target="_blank" 
> onmouseover="window.status='<% getMessage("message.key");%>';return true">

Off the top of my head, you could try something like this -


http://www.google.com"; target="_blank"
onmouseover="window.status='<%=rollOverText%>'; return true;">...

-- 
Bob Arnott


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

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



RE: Model

2005-03-31 Thread Barnett, Brian W.
Here's a UML class diagram using iBATIS for db access. It might give you a
general idea on how to implement your model layer.
http://www.whitesandsolutions.com/wssBase-Framework%20Architecture.htm (You
have to view it with Internet Explorer if you want to be able to zoom in and
out on the image.)

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 11:10 AM
To: Struts Users Mailing List; Rafael Taboada
Subject: Re: Model


The MailReader example bundled with Struts 1.2 is a very excellent
demonstration of implementing a model layer. Just substitute something like
iBATIS or Hibernate for the database access.

HTH, Ted.

On Wed, 30 Mar 2005 13:24:18 -0500, Rafael Taboada
<[EMAIL PROTECTED]> wrote:
>  Hi folks.
> 
>  I'm developing on struts and I don't know how to implement model 
> layer.
> 
>  Do u know some sample codes about model layer?.. I was reviewing 
> about DAO in daoexample.sourceforge.net but i'd like to have another 
> material.
> 
>  thanks
> 
> --
> 
>  Rafael Taboada

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

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



Re: [Struts Flow] builds

2005-03-31 Thread Niall Pemberton
The maven build still in its infancy and it looks like nothing has been
customized in its build to create wars. Unless someone like Don can provide
them, looks liek you'll have to build them yourself.

Sorry, don't know anything about flow.

Niall

- Original Message - 
From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
Sent: Thursday, March 31, 2005 7:33 PM
Subject: Re: [Struts Flow] builds


> Ah, ok fine
>
> And do you know where the examples are for 0.3?
>
> I saw something that includes WARs on *old* SF site
>
> Thanks,
> Matthias
>
> Niall Pemberton wrote:
> > http://cvs.apache.org/builds/struts/maven/nightly/
> >
> >
> > - Original Message - 
> > From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" 
> > Sent: Thursday, March 31, 2005 7:12 PM
> > Subject: [Struts Flow] builds
> >
> >
> >
> >>Hi guys,
> >>
> >>is there a nightly build for [Struts flow] on ASF servers?
> >>
> >>Thanks,
> >>Matthias
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



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



Re: [Struts Flow] builds

2005-03-31 Thread Don Brown
I haven't integrated the example build into Maven yet.  If you
checkout the source code, type "ant example" to generate the new
consolidated examples war.

Don


On Thu, 31 Mar 2005 20:33:31 +0200, Matthias Wessendorf
<[EMAIL PROTECTED]> wrote:
> Ah, ok fine
> 
> And do you know where the examples are for 0.3?
> 
> I saw something that includes WARs on *old* SF site
> 
> Thanks,
> Matthias
> 
> Niall Pemberton wrote:
> > http://cvs.apache.org/builds/struts/maven/nightly/
> >
> >
> > - Original Message -
> > From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" 
> > Sent: Thursday, March 31, 2005 7:12 PM
> > Subject: [Struts Flow] builds
> >
> >
> >
> >>Hi guys,
> >>
> >>is there a nightly build for [Struts flow] on ASF servers?
> >>
> >>Thanks,
> >>Matthias
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: [Struts Flow] builds

2005-03-31 Thread Matthias Wessendorf
Ah, ok fine
And do you know where the examples are for 0.3?
I saw something that includes WARs on *old* SF site
Thanks,
Matthias
Niall Pemberton wrote:
http://cvs.apache.org/builds/struts/maven/nightly/
- Original Message - 
From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, March 31, 2005 7:12 PM
Subject: [Struts Flow] builds


Hi guys,
is there a nightly build for [Struts flow] on ASF servers?
Thanks,
Matthias
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Re: Iterate question

2005-03-31 Thread kjc
Phan, Hienthuc T (Rosetta) wrote:
You can have nested iterate.  I think you can do something like this ... 


From 
Subject 
In reply to 
messageId 
references 
Message



	Parent : 
	
		
	



-Original Message-
From: Rutger Heijmerikx [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 9:47 AM
To: user@struts.apache.org
Subject: Iterate question

Hi all,
Maybe it's clear what my problem exactly is when i post the jsp
contents and my question.
JSP contents:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/taglibs-string" prefix="str"%>


test




From 
Subject 
In reply to 
messageId 
references 
Message



Parent : 




Now, the problem is, that the bean property "parent" is a new bean
itself. How can i iterate through this bean in the same jsp?
Hopefully you understand my problem, if not i'll be glad to explain it
better.
Rutger
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
Notice:  This e-mail message, together with any attachments, contains information of 
Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), 
and/or its affiliates (which may be known outside the United States as Merck Frosst, 
Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, 
proprietary copyrighted and/or legally privileged. It is intended solely for the use of 
the individual or entity named on this message.  If you are not the intended recipient, 
and have received this message in error, please notify us immediately by reply e-mail 
and then delete it from your system.
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

Why not just use the 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Struts Flow] builds

2005-03-31 Thread Niall Pemberton
http://cvs.apache.org/builds/struts/maven/nightly/


- Original Message - 
From: "Matthias Wessendorf" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Thursday, March 31, 2005 7:12 PM
Subject: [Struts Flow] builds


> Hi guys,
> 
> is there a nightly build for [Struts flow] on ASF servers?
> 
> Thanks,
> Matthias
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


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



RE: Iterate question

2005-03-31 Thread Phan, Hienthuc T (Rosetta)
You can have nested iterate.  I think you can do something like this ... 



From 
Subject 
In reply to 
messageId 
references 
Message





Parent : 







-Original Message-
From: Rutger Heijmerikx [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 31, 2005 9:47 AM
To: user@struts.apache.org
Subject: Iterate question


Hi all,

Maybe it's clear what my problem exactly is when i post the jsp
contents and my question.

JSP contents:

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/taglibs-string" prefix="str"%>


test






>From 
Subject 
In reply to 
messageId 
references 
Message





Parent : 







Now, the problem is, that the bean property "parent" is a new bean
itself. How can i iterate through this bean in the same jsp?

Hopefully you understand my problem, if not i'll be glad to explain it
better.

Rutger

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






--
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates (which may be known outside the 
United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as 
Banyu) that may be confidential, proprietary copyrighted and/or legally 
privileged. It is intended solely for the use of the individual or entity named 
on this message.  If you are not the intended recipient, and have received this 
message in error, please notify us immediately by reply e-mail and then delete 
it from your system.
--

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



[Struts Flow] builds

2005-03-31 Thread Matthias Wessendorf
Hi guys,
is there a nightly build for [Struts flow] on ASF servers?
Thanks,
Matthias
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Model

2005-03-31 Thread Ted Husted
The MailReader example bundled with Struts 1.2 is a very excellent
demonstration of implementing a model layer. Just substitute something
like iBATIS or Hibernate for the database access.

HTH, Ted.

On Wed, 30 Mar 2005 13:24:18 -0500, Rafael Taboada
<[EMAIL PROTECTED]> wrote:
>  Hi folks.
> 
>  I'm developing on struts and I don't know how to implement model layer.
> 
>  Do u know some sample codes about model layer?.. I was reviewing
> about DAO in daoexample.sourceforge.net but i'd like to have another
> material.
> 
>  thanks
> 
> --
> 
>  Rafael Taboada

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



Re: Volunteering (was: Wouldn't validation ...)

2005-03-31 Thread Ted Husted
On Sun, 20 Mar 2005 20:44:21 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> Jack wrote:
> >Ted will tell you that only code matters.  But, I think some things
> >other than just code matter to some of the people involved.
> 
> While Ted can speak for himself, I don't think that he'd tell you
> that.  

OK, here's Ted speaking for himself :) 

It's good that people make helpful posts on the lists that answer
other people's questions

It's better when people submit patches to the code or documentation,
to help reduce the number of questions people need to ask in the
future.

Here's a good example: I posted something to the list. Martin liked
it, and so he copied it to the wiki.

* http://wiki.apache.org/struts/WhyChain

It was good that I made the post. But Martin did me one better by
copying it to the wiki, where it will be easier to find.

Likewise, Craig did a good thing when he made this post to the Tomcat list:

* http://jakarta.apache.org/site/contributing.html

Someone else [let's say, ahem, me :)], made it an even better thing by
copying it to the Jakarta site, so that is not lost in the list
archive.

The list is a great starting point for everything. But it's only a
start. It's follow through that makes the difference.

-Ted.

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



RE: status messages in tag

2005-03-31 Thread Fumo, Vince
cool.. thanks!

-Original Message-
From: Bob Arnott [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 12:41 PM
To: Struts Users Mailing List
Subject: Re: status messages in  tag


Fumo, Vince wrote:
> I want to implement a status message on a rollover for some of my links. I
> was considering doing something like:
> 
> http://www.google.com"; target="_blank"
> onmouseover="window.status='Go go google';return true">
> 
> which works fine. 
> 
> However, what I really want to do is pull the status message from my
struts
> message-resources bundle for I18N. The only way I can think to do this is
to
> use a scriptlet like :
> 
> http://www.google.com"; target="_blank" 
> onmouseover="window.status='<% getMessage("message.key");%>';return true">

Off the top of my head, you could try something like this -


http://www.google.com"; target="_blank"
onmouseover="window.status='<%=rollOverText%>'; return true;">...

-- 
Bob Arnott


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

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



Re: Volunteering (was: Wouldn't validation ...)

2005-03-31 Thread Ted Husted
On Sat, 19 Mar 2005 02:01:28 +, David Kennedy
<[EMAIL PROTECTED]> wrote:
> This is a rather rude rant I know, and I appreciate people are
> scratching their own itches, but it would be nice to seem some concerted
> effort to solve some of the FAQs cleanly, and to generate more of a core
> catalogue of Patterns for noobs like myself. (Kudos to people like Ted
> Husted who do maintain some useful resources.) In that vein, I'm very
> much looking forwards to the new Struts Cookbook that O'Reilly have just
> put out, was rather hoping to see it in the post this morning. Might
> well answer lots of questions for me.

:) I don't think anyone would be offended as much as they would be confused :) 

If you'd like to see a concerted effort, then go ahead and scratch
that itch! When you find the answer to one of your questions,
summarize the answer and submit it for one of the FAQs. Or reorganize
the FAQs and send us the patch. Or start moving all the FAQs to the
wiki. The way to make a difference is to stop contributing to the
bottomless pit we call an email archive, and start organizing the
answers for the next poor soul who comes along.

As a volunteer project, Struts has no resources of its own, aside from
the time and energy of people who give back. This isn't Sun or
Microsoft, or even O'Reilly. We don't have a revenue stream or paid
employees. We can't "task" people to do this or that. It's up to
individual volunteers to step up and make a difference.

As Ghandi said: "Be the change you want to see in the world."

* http://struts.apache.org/faqs/helping.html

-Ted.

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



Re: Struts + Spring or Struts versus Spring

2005-03-31 Thread Ted Husted
+1 for Pro Spring. Soup to Nuts. Well done.

On Wed, 30 Mar 2005 10:31:52 -0500, Fumo, Vince <[EMAIL PROTECTED]> wrote:
> Don't know if it's appropriate to do this, but I am adding my 2c as well.
> I've been using Spring and Hibernate with Struts for some time now and have
> found it to be excellent. If you are the book type, there is a very good
> book on Spring from Apress titled "Pro Spring" that covers the entire
> framework quite well.

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



Iterate question

2005-03-31 Thread Rutger Heijmerikx
Hi all,

Maybe it's clear what my problem exactly is when i post the jsp
contents and my question.

JSP contents:

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/taglibs-string" prefix="str"%>


test






>From 
Subject 
In reply to 
messageId 
references 
Message





Parent : 







Now, the problem is, that the bean property "parent" is a new bean
itself. How can i iterate through this bean in the same jsp?

Hopefully you understand my problem, if not i'll be glad to explain it better.

Rutger

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



Re: status messages in tag

2005-03-31 Thread Bob Arnott
Fumo, Vince wrote:
I want to implement a status message on a rollover for some of my links. I
was considering doing something like:
http://www.google.com"; target="_blank"
onmouseover="window.status='Go go google';return true">
which works fine. 

However, what I really want to do is pull the status message from my struts
message-resources bundle for I18N. The only way I can think to do this is to
use a scriptlet like :
http://www.google.com"; target="_blank" 
onmouseover="window.status='<% getMessage("message.key");%>';return true">
Off the top of my head, you could try something like this -

http://www.google.com"; target="_blank" 
onmouseover="window.status='<%=rollOverText%>'; return true;">...
--
Bob Arnott
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


status messages in tag

2005-03-31 Thread Fumo, Vince
I want to implement a status message on a rollover for some of my links. I
was considering doing something like:

http://www.google.com"; target="_blank"
onmouseover="window.status='Go go google';return true">

which works fine. 

However, what I really want to do is pull the status message from my struts
message-resources bundle for I18N. The only way I can think to do this is to
use a scriptlet like :

http://www.google.com"; target="_blank" 
onmouseover="window.status='<% getMessage("message.key");%>';return true">

2 questions...

1) is this the best way to do this?
2) if so, what can I use in the scriptlet (the getMessage() is fictional) to
access the message?

Thanks for your patience.. 


Vincent Fumo
System Development Specialist
ACS Municipal Services
Government Systems
609-823-6587
AIM : neodem2001


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



[Struts-Faces] Integration problem with Actions.

2005-03-31 Thread ced_the.bear
Context : I want to  gradually migrate a Web Application from Struts & Tiles, 
to JSF, struts-faces & Tiles.

To do so, I want first to migrate from a Struts sequence "StrutsAction1 -> 
StrutsJsp -> StrutsAction2" to a combined one "StrutsAction1" -> FacesJsp -> 
StrutsAction2.

It's OK for the first step "StrutsAction1 to FacesJsp" but I encounter problems 
for the second one "FacesJsp -> StrutsAction2" even if I don't consider tiles 
in a first step. When I submit my form, I get a 404 error.

It looks like the processor is not able to find the action. In FacesJsp the 
struts-faces form tag  generates the following 
html  
I would expect a FacesJsp.faces to be rendered instead of FacesJsp.do like it 
is done when you call the .faces page from a JSF context. 

My config is as follows : The FacesTilesRequestProcessor is declared in 
struts-config.xml
In web.xml, the struts servlet is called on .do extension, and the faces one 
called on .faces I use a form-bean to represent the data : myFormBean 
in struts-config.xml the actions are declared like that : 


  
  


  
 

  I wonder if it would not be a context relating issue :
 - when coming from a struts context, the encodeURL encode the action with a .do
 - when coming from a Faces context, the encodeURL encode the action with a 
.faces But i don't understand how to get the second one in the html rendered 
code. Does Someone know how to do that ?

Ced

C est le moment de dynamiser votre boîte mail en découvrant les offres CaraMail 
Max et Pro - http://www.caramail.com


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

Slightly OT: PropertyChangeSupport

2005-03-31 Thread Tom Ziemer
Hi everybody!
I am currently developing an application where I cannot use a 
persistence layer, thus I am using JDBC, POJOs and DAOs. Is it feasible 
to have Beans with PropertyChangeSupport so related objects get 
automatically notified when something changes? I am just curious, 
beacause I never faced such a problem before, since I always used some 
kind of persistence layer.

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


RE: Problem with including content from another action

2005-03-31 Thread Nidel, Mike
It seems to me that you should consider refactoring your actions.

I would make a separate class that Action B delegates to in order
to create the JPG data. Then Action A can use this other object
without any problem. If there is shared state between the two, and
you need to have the same instance of the third object for some
reason, then that's a different type of problem to solve.

If there is NO state shared, then this is an easy problem. Just
create a class ImageGenerator that has a method or methods that
produce the data for your image, and call it from Action A and
Action B as needed.

In general, I try to keep my actions as simple as possible, and
delegate to other classes/objects for any "real" functionality.
If your actions become too dependent on each other, then if you
decide to change the way your application flow works, you'll end
up rewriting a lot more code than if you keep the actions simple
and atomic (as much as is reasonable).

If this doesn't cover your problem well enough, give us some
more details and we'll work from there.

Mike


> -Original Message-
> From: Ide Mile [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 31, 2005 8:58 AM
> To: user@struts.apache.org
> Subject: Problem with including content from another action
> 
> 
> Suppose I have two actions: Action_A and Action_B.
> Action_B only generates raw data for an jpg image.
> From my Action_A I have to call Action_B several times, and 
> just pick up the bytes needed to construct images.
> The problem lies in the fact that from Action_A I can't call 
> Action_B directly, because that way the ActionForm is created 
> every time I call Action_B.
> It happens always despite the fact that both actions are 
> belonging to the same session (scope="session" in action mappings).
> Maintaining of the ActionForm when calling Action_B is a must.
> 
> So, how do I read output from the Action_B inside Action_A?
> I think IncludeAction might be a solution, but I don't know 
> how to implement it, i.e. I don't know how to use it inside 
> servlet (Action_A).
> Any sample or advice?
> 
>   
> -
> Do you Yahoo!?
>  Yahoo! Mail - Helps protect you from nasty viruses.
> 

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



Re: Form name collision

2005-03-31 Thread Jeff Beal
This specific property is documented at
http://struts.apache.org/api/org/apache/struts/config/ActionConfig.html#attribute

-- Jeff


On Thu, 31 Mar 2005 10:33:37 +0400, tarek.nabil <[EMAIL PROTECTED]> wrote:
> Thanks Christopher.
> 
> I think that attribute property can solve my problem. But I really have
> never heard about it before, where are those things documented? :)
> 
> 
> -Original Message-
> From: Marsh-Bourdon, Christopher
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 30, 2005 3:08 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Form name collision
> 
> There are two solutions that you have available to you (well that I know
> off the top of my head):
> 
> 1) Use the _attribute_ property in the action tag to give each form a
> pseudonym:
> 
>  
> type="com.marsh-bourdon.struts.action.ExampleAction"
> attribute="pseudonymForm1"
> name="exampleForm"
> input="example.input"
> scope="request"
> validate="false">
>  redirect="false" />
>  redirect="false" />
> 
> 
>  
> type="com.marsh-bourdon.struts.action.ExampleAction"
> attribute="pseudonymForm2"
> name="exampleForm"
> input="example.input"
> scope="request"
> validate="false">
>  redirect="false" />
>  redirect="false" />
> 
> 
> This would label each form _pseudonymForm1_ and _pseudonymForm2_ in
> turn, thus removing the clash.
> 
> 2) Use just one form and incorporate the  tag to add some
> sort of switch and depending on the button/link that is clicked, set the
> hidden object's value, pick that up as part of the form, and then use it
> as a flag in the action that you use.
> 
> I hope this helps.
> 
> Christopher Marsh-Bourdon
> www.marsh-bourdon.com
> 
> -Original Message-
> From: tarek.nabil [mailto:[EMAIL PROTECTED]
> Sent: 30 March 2005 12:03
> To: Struts Users Mailing List
> Subject: Form name collision
> 
> Hi,
> 
> I'm facing a problem with having multiple forms that submit to the same
> action on the same page.
> 
> I have a search page with a few search fields. The user does the search
> and gets the paged results in the *SAME* page.
> Now, the user can either change the search criteria and search again, or
> use the pagination links to go back and forward through the search
> results.
> 
> As a result, I have to have two forms (or at least that's the solution I
> thought of). The first is the seach form and the seconds is the
> pagination form. The pagination form has hidden fields containing the
> values the user searched for the last time. I need to do this because if
> the user changes the search criteria, I can not afford to have the
> pagination links retrieve different results.
> 
> The problem is, since both forms will submit to the same action, they
> both get the same name, and so, I get colliding names in the HTML.
> 
> Anyone knows a work around for this issue?
> 
> One solution I thought of would be to use only one form and if the user
> clicks on the pagination links, I call reset() on the HTML form to get
> it back to its original state. I'm reluctant to do this, though, because
> if the search takes some time, this action will be visible to the user
> and it might look awkward.
> 
> Every help is appreciated.
> 
> Thanks,
> Tarek Nabil
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>  --
> 
> --
> If you have received this e-mail in error or wish to read our e-mail
> disclaimer statement and monitoring policy, please refer to
> http://www.drkw.com/disc/email/ or contact the sender.
> --
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Jeff Beal
Webmedx, Inc.
Pittsburgh, PA USA

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



Re: Problem with including content from another action

2005-03-31 Thread Frank W. Zammetti
At the risk of starting up the old philosophical debate...

You could just instantiate Action_B in Action_A and call execute yourself:

Action actionB = new Action_B();
actionB.execute(m, f, r, r);

I'm not sure exactly what your Action_B is doing, so maybe that won't
work, but it's an option to consider.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Thu, March 31, 2005 8:58 am, Ide Mile said:
> Suppose I have two actions: Action_A and Action_B.
> Action_B only generates raw data for an jpg image.
>>From my Action_A I have to call Action_B several times, and just pick up
>> the bytes needed to construct images.
> The problem lies in the fact that from Action_A I can't call Action_B
> directly, because that way the ActionForm is created every time I call
> Action_B.
> It happens always despite the fact that both actions are belonging to the
> same session (scope="session" in action mappings).
> Maintaining of the ActionForm when calling Action_B is a must.
>
> So, how do I read output from the Action_B inside Action_A?
> I think IncludeAction might be a solution, but I don't know how to
> implement it, i.e. I don't know how to use it inside servlet (Action_A).
> Any sample or advice?
>
>
> -
> Do you Yahoo!?
>  Yahoo! Mail - Helps protect you from nasty viruses.


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



Problem with including content from another action

2005-03-31 Thread Ide Mile
Suppose I have two actions: Action_A and Action_B.
Action_B only generates raw data for an jpg image.
>From my Action_A I have to call Action_B several times, and just pick up the 
>bytes needed to construct images.
The problem lies in the fact that from Action_A I can't call Action_B directly, 
because that way the ActionForm is created every time I call Action_B.
It happens always despite the fact that both actions are belonging to the same 
session (scope="session" in action mappings).
Maintaining of the ActionForm when calling Action_B is a must.

So, how do I read output from the Action_B inside Action_A?
I think IncludeAction might be a solution, but I don't know how to implement 
it, i.e. I don't know how to use it inside servlet (Action_A).
Any sample or advice?


-
Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.

Re: Struts Business Logic :: Best Practices

2005-03-31 Thread Ted Husted
> The question is, how will I do that? How can I hook up a command to
> spring?

Commons CoR ships with an object loader that uses the Commons
Dispatcher to create a Catalog (or repository) of Commands. But that's
not the only way to create a Catalog. You could also use Spring to
load your Chains, and inject into the Chain, Commands, or Context
whatever dependencies you need. Here's the sort of thing I do with
Spring.NET and a C# port of CoR:




 
 


  


Or, you might want to do is think of the Context as a Spring Bean. Add
JavaBean properties to a base Context, and instantiate that through
Spring, and populate from the ActionForm.

HTH, Ted.

On Thu, 31 Mar 2005 11:13:08 +0100, Marco Mistroni
<[EMAIL PROTECTED]> wrote:
> Hello Ted,
> I have one additional question about Struts Chain , MailReader
> etc..
> Suppose that I want to use Spring beans...
> Currently, with Struts 1.1, my action are extending
> DelegatingActionProxy because actions are meant to use those beans.
> If I use Commons Chain, then what is currently in the action will be
> abstracted by Command/Context, correct?
> So from that it follows that I should be able to retrieve spring beans
> From command.
> The question is, how will I do that? How can I hook up a command to
> spring?
> 
> Thanks in advance for your reply, please post also to the list if you
> think
> It's valuable...
> 
> Regards
> marco

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