Nested tags...

2004-08-13 Thread sridhar ramalingam
Hi All, I'm trying to achieve the following... But, I'm getting this error... Unterminated user-defined tag: ending tag not found or incorrectly nested Please help me find a work around to this. Regards, Sridhar

user@struts.apache.org

2004-08-13 Thread Wolfgang Woger
Hi, I have a form with a Date: The problem: the formated date is not shown at all, it should have functioned as the value of that input. what can I do ? Wolfgang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

RE: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
Oops, that was a typo. Should have read " /> If browsers did pick up "value" parameter, this problem would not even exist... Some browsers do. What is your problem? Why are you adding "delete" in here? There is no "name" attribute with image. I assume you mean to use the "property" attrib

Struts Path problem

2004-08-13 Thread Ding Lei
Hello List, I encountered problems on displaying images in JSP pages which belongs to a specified Struts module. If we include an image file in a JSP page, say "A.jsp", and we we define an action forward that points to it, and access through that action forward in browser, the image is a

Re: Struts Path problem

2004-08-13 Thread Shailender Jain
May be the problem related to directory structure. For e.g. webapps examples images com/struts/examples view/modulename/A.jsp If the forward action to A.jsp has happened then A.jsp should have Ding Lei wrote: > Hello List, > I encounter

Re: Struts - passing unicode parameter from jsp to action

2004-08-13 Thread Masoud Kalali
Pavel Kolesnikov wrote: On Thu, 12 Aug 2004, Masoud Kalali wrote: I use post for sending parameter to action and also add (request.setCharacterEncoding("UTF-8"); to my action before reading parameter from it , also i add two You should better call request.setCharacterEncoding() in a filte

RE: Nested tags...

2004-08-13 Thread Kataria, Satish
I am not sure but just a guesss You are not closing the html:form tag and a html:form can't be embeded within another Just closing the tags should solve the problem. Thanks, Satish -Original Message- From: sridhar ramalingam [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 1:00 PM

JSF-Struts integration

2004-08-13 Thread Prasad, Kamakshya
Hi All, I have a bean containing ArrayList property as given below public ArrayList getCountries() { return arrlCountries; } public void setCountries(int iIndex, String strCountry) { if (arrlCountries == null) { arrlCountries = new ArrayList(); } arrlCountries.add(strCountry); } This prope

Re: Nested tags...

2004-08-13 Thread Jitender K Chukkavenkata
Where did you terminate tag. Close the Jitender Kumar C.V.

handling multiple independent window

2004-08-13 Thread Kailash Vasani
Hi, Is it possible to have 2 windows showing same JSP page, but different data, using struts? The data to be displayed is populated in form bean, in action class. Both the JSP pages would be performing same set of operations, but not necessarily in same order. Operations are Save, Update etc. Whe

RE: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
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 parse that, and delete item with ID 23 from database. Choosing a different delete -button woul

[OT] form default submit button

2004-08-13 Thread Erez Efrati
Hi, This not a struts issue though my project is well attached down to the bones to struts. I am a bit rusty in HTML and I need your advice. I have a login form with username and password fields. The button is built with a table consisting of the graphical edges and the text (retrieved from the

RE: [OT] form default submit button

2004-08-13 Thread Shilpa Vaidya
try use onsubmit(); instead of onclick() regds Shilpa -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 4:12 PM To: 'Struts Users Mailing List' Subject: [OT] form default submit button Hi, This not a struts issue though my project is wel

RE: [OT] form default submit button

2004-08-13 Thread Erez Efrati
Thanks Shilpa, I will try it. Erez -Original Message- From: Shilpa Vaidya [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 11:44 AM To: 'Struts Users Mailing List' Subject: RE: [OT] form default submit button try use onsubmit(); instead of onclick() regds Shilpa -Ori

RE: [OT] form default submit button

2004-08-13 Thread Erez Efrati
Where do I put this onsubmit(); --Erez -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 12:51 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: [OT] form default submit button Thanks Shilpa, I will try it. Erez -Origin

RE: [OT] form default submit button

2004-08-13 Thread Shilpa Vaidya
lol hi 1. like this <-- Start Button -->    

Re:

2004-08-13 Thread Erik Weber
Not sure about the fmt:format tag, but I use the Struts bean:write tag to format my dates: Erik Wolfgang Woger wrote: Hi, I have a form with a Date: The problem: the formated date is not shown at all, it should have functioned as the value of that input. what can I do ? Wolfgang ---

How to help the user navigate to his own folder

2004-08-13 Thread Gao Jun
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 access to specific folders. For example, we have a doc tree like, A -B1 -C -B2 One user has the access

Re:

2004-08-13 Thread Wolfgang Woger
Erik Weber wrote: Not sure about the fmt:format tag, but I use the Struts bean:write tag to format my dates: Erik Thank you Erik, I will try bean:write. But by now I have an other problem. I want a new Date() as a default value for a html-el:text element. I did: <% Date curDate = new Dat

Re:

2004-08-13 Thread Erik Weber
Not positive on this, but I think the place to set this default date string would be in your form bean's reset method. Then your JSP wouldn't need any code, the html:text field would pull the just-initialized value from the form bean, as reset would be invoked by Struts just before the JSP rend

Re:

2004-08-13 Thread Erik Weber
I just tried this in one of my forms. Works fine under both add and update conditions, with and without validation errors (the only time the new string is rendered is for a fresh add page). Erik Erik Weber wrote: Not positive on this, but I think the place to set this default date string would

Re:

2004-08-13 Thread Wolfgang Woger
Erik Weber wrote: Not positive on this, but I think the place to set this default date string would be in your form bean's reset method. Then your JSP wouldn't need any code, the html:text field would pull the just-initialized value from the form bean, as reset would be invoked by Struts just

RE: Loosing request attributes

2004-08-13 Thread Kataria, Satish
Ru using redirect="true" in ur action mapping. If so then changing it to false will solve the problem. Thanx, Satish Kataria -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Friday, August 13, 2004 7:39 AM To: struts jakarta Subject: Loosing request attributes Hi,

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

2004-08-13 Thread Matthew J. Vincent
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? Keep in mind that this coul

Need help with layered Map iteration in JSP

2004-08-13 Thread Erik Weber
I could use some Struts-EL/JSTL tag help, please. I have a Map with each entry having a String as the key and a bean array as the value. I need two iterations, one nested inside the other. For the outer iteration, I want to iterate the keySet of the Map. I don't know what the keys are going to b

Re:

2004-08-13 Thread Erik Weber
Sorry, that's one I have not encountered. Erik Wolfgang Woger wrote: Erik Weber wrote: Not positive on this, but I think the place to set this default date string would be in your form bean's reset method. Then your JSP wouldn't need any code, the html:text field would pull the just-initialized

Re: Need help with layered Map iteration in JSP

2004-08-13 Thread Kris Schneider
<%@ 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, please. > > I have a Map with eac

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(

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

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

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

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

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

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 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: 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 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 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 kcitron
Use OSCache - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1   2   >