+ 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

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

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 meanin

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 bu

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 additiona

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'

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 rele

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" whic

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

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 (

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 anythin

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 w

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 DBPropertyMessageResourcesFact

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 val

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 nee

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

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 th

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

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 metho

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 process

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'

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

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

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

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 >

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 o

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 t

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 Yaho

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

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

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.)

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 Wess

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

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

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: R

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 AS

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- Fr

[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'

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 > th

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 co

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 > catal

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 excellen

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"%> <%@ tagl

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 statu

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-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 fir

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

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

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 real

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 co

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, be

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,