Re: How to set the property of a drop-down select list from an action class?

2006-09-04 Thread Puneet Lakhina
On 9/4/06, Tom Bednarz <[EMAIL PROTECTED]> wrote: Hi Martin, Hmm, thanks for the link. Finally my problem is, that in the generated HTML page NONE of the option tags has the attribute SELECTED. So my drop-down list box displays the whole collection as expected, but setPropertyUtils seems to ha

Re: How to set the property of a drop-down select list from an action class?

2006-09-04 Thread Tom Bednarz
Hi Martin, Hmm, thanks for the link. Finally my problem is, that in the generated HTML page NONE of the option tags has the attribute SELECTED. So my drop-down list box displays the whole collection as expected, but setPropertyUtils seems to have no impact otherwise the correct value should b

Re: Token is wrapped by

2006-09-04 Thread Antonio Petrelli
MC Moisei ha scritto: When I use with tokens the hidden token is wrapped by div. Is there a reason for that ? It messes up my layout and seems that Firefox is most affected by the div... I think you're right, AFAIK usually the tag adds also a new-line. I think that you should ask this quest

Re: [tiles] Re: Struts tiles cewolf problem(Resolved)

2006-09-04 Thread Matts
You thinks well antonio!! It has worked without the tag! Thank you very much. I will try now to integrate it with the real application, and I think I will have problems removing cause I have other resourses that need it!!! But well that is another theme!! thanks - Original Message --

Re: [tiles] Re: Struts tiles cewolf problem

2006-09-04 Thread Antonio Petrelli
Matts ha scritto: Layout1(at web-inf/tiles): <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles" %> Hehe! I (think I) got it! This is the "infamous" tag that, with Tiles, uses your layout JSP page as the ba

Re: Struts tiles cewolf problem

2006-09-04 Thread Matts
Here's the web.xml (its works without tiles): 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";> Cewolf action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 1 CewolfServlet de.laures.cewolf.CewolfRenderer 1 action *.do CewolfServ

Re: Struts tiles cewolf problem

2006-09-04 Thread Matts
The result with tiles is this: image is not show. Its appear with an "X". Here's a capture. - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, September 04, 2006 11:27 AM Subject: Re: Struts tiles cewolf problem Matts ha

Re: Struts tiles cewolf problem

2006-09-04 Thread Antonio Petrelli
Matts ha scritto: It's work fine if i don't use tiles. The problem is that with tiles the chart are not show. I don't see anything wrong with your file. What do you exactly mean with "the charts are not shown"? The page is completely blank? There is a missing piece of the page? Images are

Re: [tiles] Re: Struts tiles cewolf problem

2006-09-04 Thread Matts
Layout1(at web-inf/tiles): <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="http://struts.apache.org/tags-tiles"; prefix="tiles" %> - Original Message - From: "Antonio Petrelli" <[EMAIL PROTECTED]> To: "Struts Users Mailing

Re: [tiles] Re: Struts tiles cewolf problem

2006-09-04 Thread Antonio Petrelli
Matts ha scritto: Can you post also layout1.jsp please? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [tiles] Re: Struts tiles cewolf problem

2006-09-04 Thread Matts
My tiles-def.xml looks like: Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";> The page that is supposed to show the chart is greeting.jsp wich has the body body-greeting.jsp. greeting. jsp (at web-root/pages): <%@ taglib uri="/WEB-I

[tiles] Re: Struts tiles cewolf problem

2006-09-04 Thread Antonio Petrelli
Matts ha scritto: Hi, I'm developing a web app with struts, tiles. I want to use cewolf to render chart. It's work fine if i don't use tiles. The problem is that with tiles the chart are not show. Any one nows how to integrate correctly with tiles?? Do you use Tiles definitions? If yes can

Struts tiles cewolf problem

2006-09-04 Thread Matts
Hi, I'm developing a web app with struts, tiles. I want to use cewolf to render chart. It's work fine if i don't use tiles. The problem is that with tiles the chart are not show. Any one nows how to integrate correctly with tiles??

Re: How to set the property of a drop-down select list from an action class?

2006-09-04 Thread Martin Gainty
Good Morning Tom If I understand your question you want to set properties via PropertyUtils.setPropertyUtils(InstantiatedBeanObject,BeanAttributeToSet,value)? An excellent tutorial showing how to construct the Bean as well as setPropertyUtils methods is located here http://brahe.discursive.com/v

Re: How to set the property of a drop-down select list from an action class?

2006-09-04 Thread Tom Bednarz
Hi, Thanks for your feedback but it is NOT what I want to do. This looks very much like mixing Java and HTML. I like to fill the form properties in my ActionClass and use JSP to display them. So in my Action Class there should be something like PropertyUtils.setSimpleProperty(form, "expenseT

RE: How to set the property of a drop-down select list from an action class?

2006-09-04 Thread MADISHETTY, ASHOK [AG-Contractor/8042]
Hi, You may try following: Enumeration expenseTypeList = expenseTypes.elements(); // Vector of ExpenseType class objects ExpenseType type = null; if (expenseTypeList != null) { while(expenseTypeList.hasMoreElements()) {

RE: problem in writing scope="session" in actionMappingDefination

2006-09-04 Thread MADISHETTY, ASHOK [AG-Contractor/8042]
Hi, As you know that request scope attributes only live for the life of 1 request. Attributes in session scope are shared across every request a specific user makes. However, I googled and found a link. Please see under Put the list in Session scope in the below link as it may answer your

problem in writing scope="session" in actionMappingDefination

2006-09-04 Thread Parvat Singh Ranawat
Hi All, I wanted to know what are the drawbacks of using SCOPE= "session" in place of "request" in actionMappingDefination Is it all depend upon our requirement or it is good practice to use scope="request" in place of session as if we do so it ll take lot of memory to store list of data in t

How to set the property of a drop-down select list from an action class?

2006-09-04 Thread Tom Bednarz
I like to display a dop-down select list and select an apropriate entry from that list in an action: This fills the list box: The expenseTypes is a Vector of the following class: public class ExpenseType { long typeCode; String typeDescription; public ExpenseType(

Re: html:options Hashtable

2006-09-04 Thread nuwan chandrasoma
Hi, I think you can, according to the tag code it is possible, but i havent tried it, give it a try. Thanks, Nuwna On 9/4/06, chamal desilva <[EMAIL PROTECTED]> wrote: Hi, Can we display the values of a hashtable in a html drop down menu using struts tags. Thanking You, Chamal. ___

Re: Problems to fill a DropDownListbox on a DynaValidatorActionForm

2006-09-04 Thread Tom Bednarz
Richard, Many thanks for your feedback. This means I have to store the data twice. I tried that but now I get another error: 2006-09-04 09:45:17,339 ERROR [http-8080-1] [/mtweb].[jsp] (ApplicationDispatcher.java:704) - Servlet.service() for servlet jsp threw exception javax.servlet.jsp.J