How to call multiple submits in a jsp form(in STRUTS other than using javascript)

2004-08-13 Thread jacob skariah
Hi, Is there any better way to call multiple submits in a jsp form using Struts without using javascripts. I have to call diffrent actions on each submit,(say listing , deleting and adding) , this can be easily done through scripts , but what if scripts is disabled. Does Struts have any bett

Re: clarification was: Re: Loosing request attributes

2004-08-13 Thread Craig McClanahan
On Fri, 13 Aug 2004 20:29:53 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > > I notice this problem ( validation fails now lost select list on page ) > comes up a lot on this mailing list. Probably time I updated a wiki > somewhere of the various approaches you can take to accomodate this > prob

RE: Simple design question

2004-08-13 Thread Dhaliwal, Pritpal (HQP)
Hi Kenneth, This is a quick little tutorial by me, it might help. Feedback is appreciated. http://www.bachansoft.com/tutorials/web/strutsquickstart.jsp Pritpal Dhaliwal -Original Message- From: Kenneth Litwak [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:54 PM To: Struts Us

Re: clarification was: Re: Loosing request attributes

2004-08-13 Thread Rick Reumann
Craig McClanahan wrote: That makes more sense now. I tend to put all my lookup data (for dropdown lists and such) into application scope (if its global) or session scope (if it's user specific), primarily as a performance enhancement ... I only have to look it up once, instead of once per request.

Re: Need help with layered Map iteration in JSP

2004-08-13 Thread Erik Weber
Thanks again. Erik Kris Schneider wrote: supports a "varStatus" attribute. The value of that atrribute is a String that names an instance of javax.servlet.jsp.jstl.core.LoopTagStatus. The LoopTagStatus instance has nested visibility so that it's only available within the enclosing tag. LoopTagSta

Re: Simple design question

2004-08-13 Thread Wendy Smoak
From: "Kenneth Litwak" <[EMAIL PROTECTED]> > I'm trying to teach myself Struts while writing an actual > application. Before you start writing your own, spend some time with the struts-example webapp, and figure out how it works. Running your container and that example in a debugger (JSwat?) for

Simple design question

2004-08-13 Thread Kenneth Litwak
I'm trying to teach myself Struts while writing an actual application . I need to go from an index.jsp, with variable request parameter values (depending upon the specific user choice of what to do). For this should I code one Action that then forwards to separate things depending upon request

RE: include vs. forward attributes in struts-config action element

2004-08-13 Thread Michael Finger
Thanks for the clarification Craig! -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 3:32 PM To: Struts Users Mailing List Subject: Re: include vs. forward attributes in struts-config action element On Fri, 13 Aug 2004 14:15:22 -0700, M

Re: clarification was: Re: Loosing request attributes

2004-08-13 Thread Craig McClanahan
On Fri, 13 Aug 2004 17:37:20 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > Craig McClanahan wrote: > > >>>I can then > >>>call a private setUp() method in my Action that is used to set up my > >>>form with any other request attributes that should always be there. > >> > >>I'm curious why using

Re: include vs. forward attributes in struts-config action element

2004-08-13 Thread Craig McClanahan
On Fri, 13 Aug 2004 14:15:22 -0700, Michael Finger <[EMAIL PROTECTED]> wrote: > > > -Original Message- > From: Craig McClanahan [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 2:04 PM > To: Struts Users Mailing List > Subject: Re: include vs. forward attributes in struts-config

Re: Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Christina Siena
Problem solved. It is possible after all to use input control names containing equals or semicolon or any delimiter as follows: document.formname.elements("value(number=1480;countryCode=USA;templateNumber=7;typeCode=STAGE;languageCode=EN;idTypeCode=MODE:)").value = ""; just in case anyone

RE: Nested tile definitions w parameters

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Craig Dickson [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 2:48 PM > To: Struts Users Mailing List > Subject: RE: Nested tile definitions w parameters > > > Jim, thanks for the reply, but I am having some trouble understanding > what you did.

RE: Nested tile definitions w parameters

2004-08-13 Thread Craig Dickson
Jim, thanks for the reply, but I am having some trouble understanding what you did. How does the viewContent parameter get used? Also, just for clarification, view.jsp has the sub-layout in it and singlePanel.jsp contains the content I wish to insert into an area in the layout. Jim Barrows wr

RE: submit and listbox

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Luis Antonio Martinez Cuevas [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 2:35 PM > To: Struts Users Mailing List > Subject: submit and listbox > > > Hi, i am new on the list, i have a few questions about Struts, i hope > you can help me Struts

submit and listbox

2004-08-13 Thread Luis Antonio Martinez Cuevas
Hi, i am new on the list, i have a few questions about Struts, i hope you can help me Struts mail list. I have a submit button and a list box, I want to make the list box like a submit button, when I select some of the list box it make submit but I can't catch this because I already have a submit

RE: Displaying bean values within tiles

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Andy Engle [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 2:00 PM > To: Struts Users Mailing List > Subject: RE: Displaying bean values within tiles > > > Ok, let me get this straight. I'll go down the list and you see if I > have each step corre

validwhen with checkboxes (1.2)

2004-08-13 Thread Nathan Maves
can you run a check to see if a checkbox has been selected? This doesn't seem to work for me, where rollable is a checkbox in the same form. I want this field to be required when the rollable checkbox is checked. test ((rollable == null) or (*this* ==

clarification was: Re: Loosing request attributes

2004-08-13 Thread Rick Reumann
Craig McClanahan wrote: I can then call a private setUp() method in my Action that is used to set up my form with any other request attributes that should always be there. I'm curious why using the input parameter doesn't work for you? Indeed ... the feature is working as it was designed, based on

Re: Trying to use validwhen with 1.2

2004-08-13 Thread Nathan Maves
Thank god its friday! That was it! On Aug 13, 2004, at 2:40 PM, Niall Pemberton wrote: The obvious question - have you deployed antlr.jar? Niall - Original Message - From: "Nathan Maves" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 9

RE: Nested tile definitions w parameters

2004-08-13 Thread Jim Barrows
What about taking this: > > > > > and doing this: /WEB-INF/jsp/view/view.jsp > > Basically what we are trying to achieve is to use the view.jsp as the > content that gets included by the master.jsp layout page. But the > view.jsp page also has a > t

RE: include vs. forward attributes in struts-config action element

2004-08-13 Thread Michael Finger
-Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 2:04 PM To: Struts Users Mailing List Subject: Re: include vs. forward attributes in struts-config action element >They are stil supported. > >The original motivation was to allow you some

Re: include vs. forward attributes in struts-config action element

2004-08-13 Thread Craig McClanahan
On Fri, 13 Aug 2004 13:50:56 -0700, Michael Finger <[EMAIL PROTECTED]> wrote: > >> This question came up when I was digging up info on > RequestDispatcher > >> forward vs. include and found refrences to these attributes, > >> but no real > >> examples. Does struts still support the forward and in

RE: Displaying bean values within tiles

2004-08-13 Thread Andy Engle
Ok, let me get this straight. I'll go down the list and you see if I have each step correct: 1. Put a string in some scope, like the request scope: request.setAttribute("thispagetitle", results.getWhatever()); 2. In my "results" page, I want the title of that page to be the value that I sent b

RE: include vs. forward attributes in struts-config action element

2004-08-13 Thread Michael Finger
>> This question came up when I was digging up info on RequestDispatcher >> forward vs. include and found refrences to these attributes, >> but no real >> examples. Does struts still support the forward and include >> attributes ?> as a legacy or a servlet api spec thing? Or what? >I'm confus

Nested tile definitions w parameters

2004-08-13 Thread Craig Dickson
We have a (pretty common) definition similar to this: We then have a definition that extends the first definition, like this: Basically what we are trying to achieve is to use the view.jsp as the content that gets included by the master.jsp layout page. B

Re: Trying to use validwhen with 1.2

2004-08-13 Thread Niall Pemberton
The obvious question - have you deployed antlr.jar? Niall - Original Message - From: "Nathan Maves" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 9:26 PM Subject: Trying to use validwhen with 1.2 > My first attpemt at using validw

Trying to use validwhen with 1.2

2004-08-13 Thread Nathan Maves
My first attpemt at using validwhen is failing badly :) I am getting this error. I have upgraded both the validation and validator-rules. I have also upgraded all of the jars java.lang.NoClassDefFoundError: antlr/TokenStream java.lang.Class.getDeclaredMethods0(Native Method) java.lang.Class.priva

RE: Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Christina Siena [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 1:10 PM > To: [EMAIL PROTECTED] > Subject: RE: Javascript question re: dynamically generated input > type='text' controls > > > If I try to use hidden fields to associate the valid nam

RE: Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Christina Siena
If I try to use hidden fields to associate the valid name with the multiple composite key name, then what is it about hidden fields that I can use? > > >> -Original Message- >> From: Christina Siena [mailto:[EMAIL PROTECTED] >> Sent: Friday, August 13, 2004 11:23 AM >> To: [EMAIL PROTECTED]

Re: Who calls the validate method ???

2004-08-13 Thread Leandro Melo
Rick, as i said i really like your approach, but there are some input pages that are really really simple, so there's no need for doing this. Then, in this cases, i'd like to call some other method just after validate is called from Struts. That's why i was wondering "who" calls it. --- Rick Reu

RE: include vs. forward attributes in struts-config action element

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Michael Finger [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 12:57 PM > To: Struts Users Mailing List > Subject: include vs. forward attributes in struts-config > action element > code and problem explanation > > > It looks to me like includi

include vs. forward attributes in struts-config action element

2004-08-13 Thread Michael Finger
Hi all, I'm a bit puzzled about the processing of includes and forward attributes in the struts-config action element vs. the forward element under the action element I understand why the forward element is there (and I use it quite a lot , too) but I got a bit confused when I was looking aro

Re: Loosing request attributes

2004-08-13 Thread Craig McClanahan
On Fri, 13 Aug 2004 12:51:44 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Rick Reumann [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 13, 2004 1:06 PM > > To: Struts Users Mailing List > > Subject: Re: Loosing request attributes > > The problem yo

RE: Who calls the validate method ???

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 1:09 PM > To: Struts Users Mailing List > Subject: Re: Who calls the validate method ??? > > > Leandro Melo wrote: > > > Hi, > > could anyone tell me who calls the validate method of > >

RE: Loosing request attributes

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 1:06 PM > To: Struts Users Mailing List > Subject: Re: Loosing request attributes > The problem you are describing comes up a lot on this list - when > validation fails and you are back on

Re: Who calls the validate method ???

2004-08-13 Thread Rick Reumann
Leandro Melo wrote: Hi, could anyone tell me who calls the validate method of the ActionForms? I think "you" should:) I find it's often more beneficial to not rely on Struts calling this validate() method and instead you should call this manually. From my other post: - when validation fails and

Re: Loosing request attributes

2004-08-13 Thread Leandro Melo
Vary nice Rick! Interesting solution, i'll work on that! --- Rick Reumann <[EMAIL PROTECTED]> escreveu: > Leandro Melo wrote: > > > Suppose a user submits a request that is handled > by > > MyActionDoSomething. Then this action sets a > request > > attribute like this: > > > > request.setAttr

Re: Loosing request attributes

2004-08-13 Thread Rick Reumann
Leandro Melo wrote: Suppose a user submits a request that is handled by MyActionDoSomething. Then this action sets a request attribute like this: request.setAttribute("MyObject", obj); and forwards the request to the page myPageDoSomeOtherThing.jsp, wich has some inputs for the user to fill in. T

RE: Displaying bean values within tiles

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Andy Engle [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 12:05 PM > To: [EMAIL PROTECTED] > Subject: Displaying bean values within tiles > > > Hi all, > > I hate to ask a real, boring, non-OT question on a Friday, but I am > working with a Strut

RE: Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Christina Siena [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 11:23 AM > To: [EMAIL PROTECTED] > Subject: Javascript question re: dynamically generated input > type='text' > controls > > > Hi, > > I am developing a page containing dynamically g

Re: Who calls the validate method ???

2004-08-13 Thread Hubert Rabago
It's actually the RequestProcessor. There's a processValidate() there where the form's validate() method is called. --- Leandro Melo <[EMAIL PROTECTED]> wrote: > Hi, > could anyone tell me who calls the validate method of > the ActionForms? > > I thought it was ActionServlet, but it seems not be

Who calls the validate method ???

2004-08-13 Thread Leandro Melo
Hi, could anyone tell me who calls the validate method of the ActionForms? I thought it was ActionServlet, but it seems not be it. ltcmelo = ___ Yahoo! Acesso Grátis - navegue de graça com conexão de qu

Re: Loosing request attributes

2004-08-13 Thread Leandro Melo
Erik, i'm not talking about form attributes, that's what i said in my last e-mail. I'll try to clear it out. Suppose a user submits a request that is handled by MyActionDoSomething. Then this action sets a request attribute like this: request.setAttribute("MyObject", obj); and forwards the reque

Displaying bean values within tiles

2004-08-13 Thread Andy Engle
Hi all, I hate to ask a real, boring, non-OT question on a Friday, but I am working with a Struts application in which I am using tiles to organize my views. What I want to be able to do is pass in a bean with a String (or, "string beans" for all you farmer types out there) into my tiles setup an

Re: Losing request attributes

2004-08-13 Thread Leandro Melo
Denis, that's not the point of our discussion. One more time: I'm not talking about formBean attributes. Anyway, Hubert pointed a workaroung for my problem. Thanks. --- Denis Avdic <[EMAIL PROTECTED]> escreveu: > In order to keep the actual entries that the user > typed in (so they > don't ha

Re: Losing request attributes

2004-08-13 Thread Denis Avdic
In order to keep the actual entries that the user typed in (so they don't have to retype everything if they changed a bunch of things) I usually put the entire form and errors into request if there are errors. Then you need to make sure that your populate action checks for presence of the form in

RE: Losing request attributes

2004-08-13 Thread Leandro Melo
Hubert, i think that's actually the only solution. Thanks. > You can point the "input" to an action which will > populate the request with > the attribute(s) you need, and then forwards to your > form. > > --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > > > This is because when the user submit

Javascript question re: dynamically generated input type='text' controls

2004-08-13 Thread Christina Siena
Hi, I am developing a page containing dynamically generated input type="text" controls where their names consist of multiple composite keys. The name of the input type="text" controls, however, can not be referenced correctly using javascript. For example, I have the following html input tag: T

RE: Losing request attributes

2004-08-13 Thread Hubert Rabago
You can point the "input" to an action which will populate the request with the attribute(s) you need, and then forwards to your form. --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > This is because when the user submits the form, that already starts a > different request, so the request attribute

RE: Loosing request attributes

2004-08-13 Thread Hubert Rabago
This is because when the user submits the form, that already starts a different request, so the request attributes are no longer there. In your mapping for the action where the form gets submitted to, where does the input attribute point to? Hubert --- Leandro Melo <[EMAIL PROTECTED]> wrote: > A

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
As i replied many times for this topic, i'd like to expose the situation again and in DETAILS. Suppose a user submits a request that is handled by MyActionDoSomething. Then this action sets a request attribute like this: request.setAttribute("MyObject", obj); and forwards the request to the pag

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
Sorry Kataria, the redirect attribute is inside the forward tag. My fault. Any way, i'm not using and as i understand the default is false. --- Leandro Melo <[EMAIL PROTECTED]> escreveu: > No i'm not Kataria. Is this the default option??? > Actually, i checked it out in some bibliography and >

RE: Loosing request attributes

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 10:50 AM > To: Struts Users Mailing List > Subject: RE: Loosing request attributes > > > No i'm not Kataria. Is this the default option??? > Actually, i checked it out in some bibliograph

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
No i'm not Kataria. Is this the default option??? Actually, i checked it out in some bibliography and it seems that redirect is not even a valid attribute for action mappings :-| ?? --- "Kataria, Satish" <[EMAIL PROTECTED]> escreveu: > Ru using redirect="true" in ur action mapping. If so > then

Re: [OT] DAO ... where to draw the line?

2004-08-13 Thread Matthew J. Vincent
Matthew J. Vincent wrote: Hi all, Thanks for the info. Here's another issue. What if I have an employee search screen that wants to show only some of the information of an employee (not all). What do you do then? 1. Instanatiate an Employee object and only fill in the relative information? Ke

Re: [OT] Friday: where's Atlanta Mark?

2004-08-13 Thread Michael McGrady
Vic Cekvenich wrote: He is now harasing the Axis list. .V Well, I thought he did need a little SOAP from time to time. LOL Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Bean-Map-Forms: what do I need Niall

2004-08-13 Thread Michael McGrady
This is getting to be like Abbott and Costello's "Who's On First?". You mean the lastest nightly build of what? Struts? Commons-beanutils? Thanks, Michael Niall Pemberton wrote: Just the latest nightly build. - Original Message - From: "Michael McGrady" <[EMAIL PROTECTED]> To: "Struts

Re: [OT] Friday: where's Atlanta Mark?

2004-08-13 Thread Vic Cekvenich
He is now harasing the Axis list. .V Michael McGrady wrote: Whatever happened to Friday Mark the beer hustler from Atlanta? This list seems much less active. What does that mean? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Spring's MVC? (was Re: Spring/Struts & Hibernate)

2004-08-13 Thread dhay
Talking of Spring, has anyone tried out their MVC framework (hopefully this isn't considered sacrilege!!). Any comparisons with Struts? cheers, David |-+> | | "Marco Mistroni" | | | <[EMAIL PROTECTED]| | |

RE: Read only iterate?

2004-08-13 Thread Brian Lee
Lists work, but you have to write your own set(int index) method to set the correct object from the List. BAL From: "Jim Barrows" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> Subject: RE: Read only iterate? Date: Fri, 13 Aug 2004 09:40:27 -0700 > -

Re: Read only iterate?

2004-08-13 Thread Richard Yee
Mike, What does the generated HTML look like? -Richard __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail - To unsubscribe,

Re: [OT] Need help with layered Map iteration in JSP

2004-08-13 Thread Curtis Taylor
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> <%-- ${entry.key} is the current key --%> <%-- ${entry.value} is the associated bean array --%> See the API docs for the LoopTagStatus interface: http://tinyurl.com/542tw "Erik Weber" <[EMAIL PROTECTED]> wrote in

RE: Read only iterate?

2004-08-13 Thread Jim Barrows
> -Original Message- > From: Mike Elliott [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 9:33 AM > To: [EMAIL PROTECTED] > Subject: Read only iterate? > > > I've been totally defeated in my attempt to alter an html:text > element inside a logic:iterate tag. There must be a w

Read only iterate?

2004-08-13 Thread Mike Elliott
I've been totally defeated in my attempt to alter an html:text element inside a logic:iterate tag. There must be a way to accomplish this, but I've been beating my head against the wall for three days now without making progress. I have simplified the problem substantially from the initial page.

Re: Bean-Map-Forms: what do I need Niall

2004-08-13 Thread Niall Pemberton
Just the latest nightly build. - Original Message - From: "Michael McGrady" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 6:12 AM Subject: Re: Bean-Map-Forms: what do I need Niall > Niall Pemberton wrote: > > >I don't have anything

Re: Need help with layered Map iteration in JSP

2004-08-13 Thread Kris Schneider
supports a "varStatus" attribute. The value of that atrribute is a String that names an instance of javax.servlet.jsp.jstl.core.LoopTagStatus. The LoopTagStatus instance has nested visibility so that it's only available within the enclosing tag. LoopTagStatus exposes a number of properties, but t

Re: Need help with layered Map iteration in JSP

2004-08-13 Thread Erik Weber
How can I refer to the index of the current iteration with c:forEach (analogous to the indexId attribute to logic:iterate)? Thanks, Erik Kris Schneider wrote: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> <%-- ${entry.key} is the current key --%> <%-- ${entry.value} is the asso

[OT] Friday: where's Atlanta Mark?

2004-08-13 Thread Michael McGrady
Whatever happened to Friday Mark the beer hustler from Atlanta? This list seems much less active. What does that mean? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Spring/Struts & Hibernate

2004-08-13 Thread James Mitchell
I am using it. It works great. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Marco Mistroni" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Friday, August 13, 2004 9:3

Re: Loosing request attributes

2004-08-13 Thread Erik Weber
You shouldn't have to do anything (in general, you rarely need to implement reset) special for this. Struts does this for you. The user submits the form. The form bean is populated with the user's input. Validation starts on the form bean. Validation fails. Struts forwards back to the input pag

RE: Loosing request attributes

2004-08-13 Thread Leandro Melo
I don`t want to reset the attributes of my ActionForm (what a form.reset() would do), BUT the attributes of the request the were probably set by the Action that forwarded to the specific page. So i need them back in that page if validate fails. --- Robert Taylor <[EMAIL PROTECTED]> escreveu: >

RE: Loosing request attributes

2004-08-13 Thread Robert Taylor
form.reset(); robert > -Original Message- > From: Leandro Melo [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 11:20 AM > To: Struts Users Mailing List > Subject: Re: Loosing request attributes > > > I was taking a look at the HttpServeltRequest and > ServletRequest apis and not

Re: Loosing request attributes

2004-08-13 Thread Leandro Melo
I was taking a look at the HttpServeltRequest and ServletRequest apis and noted that theres a method "getParameterMap()" wich returns a map of the parameters, BUT there isn`t such a "setParameterMap()" method. So, what`s an automated way to re-set all my request parameters in the ActionForm??? Do

RE: Caching Framework

2004-08-13 Thread ravi.vedala
Thanks a ton Erik. Regds Ravi -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 7:41 PM To: Struts Users Mailing List Subject: Re: Caching Framework // your PlugIn implementation public class SimpleCache implements org.apache.struts.action.Plu

Re: Accessing bean properties problem

2004-08-13 Thread Michael McGrady
Janne Mattila wrote: You seem to like parsing HttpServletRequests manually, so why don't you skip Struts altogether and parse all request parameters manually? I bet it would be "clear, extensible, light, fast, loosely coupled solution". Hell, who needs ActionForms after all? They make your solu

RE: Caching Framework

2004-08-13 Thread Richard Cave
Code as follows Caching class package com.mypackage.Cache mport org.apache.struts.action.PlugIn; import org.apache.struts.config.ModuleConfig; import org.apache.struts.action.ActionServlet; public class Cacheimplements PlugIn { private static Cacheinstance = null; private Module

Re: Caching Framework

2004-08-13 Thread Vic Cekvenich
In Struts, a layered framework, caching data should happen in the data layer. iBatis, Hibrenate, and other DAO's all do caching automaticaly and configureable of data, such as drop down selects, etc. Caching data in View layer is not Strut-y. .V [EMAIL PROTECTED] wrote: Hi, Is there any Caching

Re: Accessing bean properties problem

2004-08-13 Thread Michael McGrady
Janne Mattila wrote: OK, Cap't of the Eh Team! Maybe you should go and add "Note: this is a clear, extensible, light, fast, loosely coupled, solution compared to a messy, solution specific, heavy, slow, tightly coupled version!" to the Wiki page? After all, you have invented an elegant solution

Re: Accessing bean properties problem

2004-08-13 Thread Michael McGrady
I guess, to be more concilliatory, Janne, I could say that if you want to use your solution, then you could just index item, e.g. public Id getIndex(Integer id) { return new Id(intValue()); } Where the class Id is the following: public class Id { private int id; public Id(Integer x) { id =

RE: Caching Framework

2004-08-13 Thread ravi.vedala
As I am very new to struts, it would be very helpful if you can point me to some sample code. Thanks for support from everybody. Regds Ravi -Original Message- From: Richard Cave [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 7:16 PM To: 'Struts Users Mailing List' Subject: RE:

Re: Caching Framework

2004-08-13 Thread kcitron
Use OSCache - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
OK, Cap't of the Eh Team! Maybe you should go and add "Note: this is a clear, extensible, light, fast, loosely coupled, solution compared to a messy, solution specific, heavy, slow, tightly coupled version!" to the Wiki page? After all, you have invented an elegant solution with low cost and wit

Re: Caching Framework

2004-08-13 Thread Erik Weber
// your PlugIn implementation public class SimpleCache implements org.apache.struts.action.PlugIn { public void init(org.apache.struts.action.ActionServlet controller, org.apache.struts.config.ModuleConfig config) throws javax.servlet.ServletException { javax.servlet.ServletContext app

Re: Accessing bean properties problem

2004-08-13 Thread Michael McGrady
No mas, Janne! If you think that your serpentine code is superior to the following: public class ButtonMiner { public int getId(HttpServletRequest request) { String buttonValue = null; Enumeration enum = request.getParameterNames(); String parameterName = null; while(enum.hasMoreEle

RE: Caching Framework

2004-08-13 Thread Guillermo Meyer
You could use Providers (http://providers.sourceforge.net) to handle collections of objects, cache them and in addition use these collection to populate select tags, create dependant drop down lists and display labels (descriptions) according to an ID (i.e using tag similar to Struts ) With prov

Re: How to help the user navigate to his own folder

2004-08-13 Thread Bill Siggelkow
I suggest you slide (couldn't resist:) on over to http://jakarta.apache.org/site/mail2.html#Slide. Gao Jun wrote: Hi everyone, I've a problem in using Slide and I'd like to hear your suggestion. We are using slide to implement a document management system and we will assign specific users acces

RE: Caching Framework

2004-08-13 Thread rahul.chaudhary
--- Begin Message --- One option is to use the singleton pattern. It also depends upon what functionality are you looking for e.g. frequency of cache update.. and many more.. -Original Message- From: Ravi Vedala (WT01 - FINANCE BANKING & SERVICES) Sent: Fri 8/13/

Validating indexed properties

2004-08-13 Thread Bill Siggelkow
I posted this message to the commons-user list but didn't receive any feedback. Basically, I am trying to get the indexedListProperty feature of Validator to allow me to report errors correctly for each property on a form that fails validation -- the only way I could get it to work was to chang

RE: Caching Framework

2004-08-13 Thread Richard Cave
Ravi, We've just implemented a master data load using the same technique as Eric. Appears to be working very well. Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 13 August 2004 14:54 To: [EMAIL PROTECTED] Subject: RE: Caching Framework That's reall

RE: Caching Framework

2004-08-13 Thread ravi.vedala
That's really a great idea Erik. Can you please point me to some example. Thanks Erik, Regds Ravi -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 7:21 PM To: Struts Users Mailing List Subject: Re: Caching Framework Ravi, without getting rea

Re: Caching Framework

2004-08-13 Thread Erik Weber
Ravi, without getting real complicated, I use PlugIns to do this! Implement org.apache.struts.action.PlugIn. You only need to write two methods -- init and destroy. In your init method, gather some data store it as application scope attributes (you get a reference to the controller Servlet in th

Caching Framework

2004-08-13 Thread ravi.vedala
Hi, Is there any Caching framework available for struts ? For eg: I need to cache some list of objects ...etc., Ravi Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and

Re: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
From: Michael McGrady <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: Accessing bean properties problem Date: Fri, 13 Aug 2004 06:22:38 -0700 Janne Mattila wrote: I am aware that I can use the approach yo

Spring/Struts & Hibernate

2004-08-13 Thread Marco Mistroni
Hello mark, How r u? hope fine... i saw some of ur posts in the past about Spring framework and I wanted to ask u few questions.. are you using Spring? Together with Struts? What do you think about it? Thanx in advance and regards Marco --

Re: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
I am well aware of the solution that you suggest and the fact that you think other solutions are over-engineered - I did indeed try to search for a solution before creating my own, and noticed the wiki page with the original over-engineered solution (which I noticed did change just recently). T

Re: Accessing bean properties problem

2004-08-13 Thread Michael McGrady
Janne Mattila wrote: I am aware that I can use the approach you suggested (parse request parameters manually), and have been doing that for ages before I started learning Struts :) I was just expecting that Struts would somehow help me with this task. I have been looking into indexed properties

Re: Bean-Map-Forms: what do I need Niall

2004-08-13 Thread Michael McGrady
Niall Pemberton wrote: I don't have anything that implements Map - but I developed a LazyDynaMap and flavours of ActionForm which use it To use it you need... * Struts Nightly Build http://cvs.apache.org/builds/jakarta-struts/nightly/ * BeanUtils 1.7.0 Release http://jakarta.apache.org/site

Re: Accessing bean properties problem

2004-08-13 Thread Michael McGrady
See http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified Janne Mattila wrote: I described what I wanted to achieve in my original posting. To recap, I want to have a page with several delete buttons. Clicking on one button would produce parameter delete_23.x=56 to be sent => we

Re: Need help with layered Map iteration in JSP

2004-08-13 Thread Erik Weber
Thanks! Erik Kris Schneider wrote: <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> <%-- ${entry.key} is the current key --%> <%-- ${entry.value} is the associated bean array --%> ... Quoting Erik Weber <[EMAIL PROTECTED]>: I could use some Struts-EL/JSTL tag help, pleas

Re: Accessing bean properties problem

2004-08-13 Thread Michael McGrady
This is all "over-engineered", Janne. I used to do something similar, however. As I menteioned before, I just use the following code to determine which image was clicked: String imageClicked = null; Enumeration enum = request.getParameterNames(); String parameterName = null; while(

  1   2   >