RE: xdoclet and struts forms

2004-08-13 Thread Jesse Alexander (KXT)
7 developers... working in one location or distributed? if it's local: I do not think it's already a critical size, because the edits on the struts-config.xml should not be SO frequent that it becomes a problem. EG. when you meet for a coffee in the morning all it takes are 30 seconds to check

Re: Plugin struts validator framework to JSF

2004-08-13 Thread Craig McClanahan
On Fri, 13 Aug 2004 15:22:46 +0900, Prasad, Kamakshya [EMAIL PROTECTED] wrote: Dear Craig, Could you please elaborate more on this? Kindly if possible some code snippets which may help me understand it better. As I said in my previous message, the nightly builds of the Struts-Faces

RE: Multiple forms in one JSP + one Action

2004-08-13 Thread Kataria, Satish
Why would you want to have an action related to 2 forms. A form typically means a business functionality and an action is the trigger for that business functionality. If you are saying that a single functionality encompasses more than one form then there is problem in the design. I think u shld

Nested tags...

2004-08-13 Thread sridhar ramalingam
Hi All, I'm trying to achieve the following... logic:equal name=cdForm property=action scope=request value=Search html:form action=/displaySearchResult focus=title /logic:equal logic:equal name=cdForm property=action scope=request value=Edit html:form action=/saveCd focus=title

html-el:text .. value not shown at all/html-el:text

2004-08-13 Thread Wolfgang Woger
Hi, I have a form with a Date: html-el:text property=someDate disabled=true fmt:formatDate value=${theBean.someDate} type=date/ /html-el:text 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

RE: Accessing bean properties problem

2004-08-13 Thread Janne Mattila
Oops, that was a typo. Should have read tdhtml:image src=delete.gif name=%= delete_ + choiceKey % //td 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

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

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 filter

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

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

Re: Nested tags...

2004-08-13 Thread Jitender K Chukkavenkata
Where did you terminate html:form tag. Close the html:form 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.

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

[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

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

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

RE: [OT] form default submit button

2004-08-13 Thread Shilpa Vaidya
lol hi 1. like this -- Start Button -- div class=btn onsubmit=LoginForm.submit(); style=margin-top:10px; table border=0 cellpadding=0 cellspacing=0 tr td class=btnRightnbsp; /td td class=btnText

Re: html-el:text .. value not shown at all/html-el:text

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: bean:write name=event property=startDate format=MM/dd// Erik Wolfgang Woger wrote: Hi, I have a form with a Date: html-el:text property=someDate disabled=true fmt:formatDate

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: html-el:text .. value not shown at all/html-el:text

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: bean:write name=event property=startDate format=MM/dd// 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

Re: html-el:text .. value not shown at all/html-el:text

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

Re: html-el:text .. value not shown at all/html-el:text

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: html-el:text .. value not shown at all/html-el:text

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

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

Re: html-el:text .. value not shown at all/html-el:text

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

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; % c:forEach var=entry items=${map} %-- ${entry.key} is the current key --% %-- ${entry.value} is the associated bean array --% c:forEach var=bean items=${entry.value} ... /c:forEach /c:forEach Quoting Erik Weber [EMAIL PROTECTED]:

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;

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; % c:forEach var=entry items=${map} %-- ${entry.key} is the current key --% %-- ${entry.value} is the associated bean array --% c:forEach var=bean items=${entry.value} ... /c:forEach /c:forEach Quoting

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

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

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 you

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

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

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

RE: Caching Framework

2004-08-13 Thread rahul.chaudhary
---BeginMessage--- 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

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

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;

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 with

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: 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. html:image indexed=true src=delete.gif property=item/ and when you call getIndex(34) do the following: public Id getIndex(Integer id) { return new Id(intValue());

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

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 i

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

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

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

[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; % c:forEach var=entry items=${map} %-- ${entry.key} is the current key --% %--

Re: Need help with layered Map iteration in JSP

2004-08-13 Thread Kris Schneider
c:forEach 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 c:forEach tag. LoopTagStatus exposes a number of

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 that

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

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; % c:forEach var=entry items=${map} varStatus=i %-- ${entry.key} is the current key --% %-- ${entry.value} is the associated bean array --% c:out value=Outer index is ${i.index} / c:forEach var=bean items=${entry.value} varStatus=j

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

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

2004-08-13 Thread Matthew J. Vincent
bump 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

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 bibliography and it

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 it

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 page

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

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

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

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 submits the form,

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

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 have

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 and

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

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

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

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 generated

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 Struts

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.

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.setAttribute(MyObject,

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: snip - when validation fails

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 the

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 the

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

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

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 snipcode and problem explanation/snip It looks to me like

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

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

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)

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

Nested tile definitions w parameters

2004-08-13 Thread Craig Dickson
We have a (pretty common) definition similar to this: definition name=.masterLayout path=/WEB-INF/jsp/tiles/layouts/master.jsp put name=header value=.navBarHeader/ put name=content value=${content}/ put name=footer value=.standardFooter/ /definition We then have a

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

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 back

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 include

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

  1   2   >