html:hidden query

2005-01-12 Thread Manisha Sathe
Following i could get it but now i want this inside html hidden form tag. But If i use hidden tag then gives me error saying hidden can not have value. How can i put my bean data in ? regards Manisha Janarthan Sathiamurthy <[EMAIL PROTECTED]> wrote: Hi, If you have a bean by name myB

Re: XML date validation

2005-01-12 Thread deepak
Thanks Erik. - Original Message - From: "Erik Weber" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, January 12, 2005 5:08 PM Subject: Re: XML date validation > Author your own pluggable validator. See the Struts doc on this. I > recently posted an example that you

Re: [almost OT] Struts in Practice

2005-01-12 Thread M. Bitner
As a programmer with no design skills, one resource I've found to be helpful is Open Source Web Design: http://www.oswd.org/ There are quite a few site designs to choose from, many using CSS. They do have professional designs you can purchase if you'd like to go that direction, but I've found the

Re: PLZ Help with Cannot find message resources under key org.apache.struts.action.

2005-01-12 Thread Kishore Senji
Do you have the defined in the struts-config.xml or as an init-param in the web.xml? On Wed, 12 Jan 2005 22:01:05 -0500, Avinash Sridhar <[EMAIL PROTECTED]> wrote: > Hi All, > This is my directory structure > WEB-INF i have struts-config.xml and web.xml > WEB_INF classes / com / masslight / Stru

RE: PLZ Help with Cannot find message resources under key org.apache.struts.action.

2005-01-12 Thread David G. Friedman
To your struts-config.xml, have you added an entry something like this: Regards, David -Original Message- From: Avinash Sridhar [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 10:01 PM To: user@struts.apache.org Subject: PLZ Help with Cannot find message resources under key

Please Help with this error Cannot find message resources under key org.apache.struts.action.MESSAGE

2005-01-12 Thread Avinash Sridhar
Hi All, Do Excuse my reposting, but i cant seem to figure it out.help wud be greatly appreciated This is my directory structure WEB-INF i have struts-config.xml and web.xml WEB_INF classes / com / masslight / StrutsExampleClasses/ ApplicationResources.properties Name.java NameForm.java

Re: Property file question

2005-01-12 Thread Larry Meadors
Sure, but you need to create a Properties object to do it and read them in. http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html Larry On Wed, 12 Jan 2005 17:48:51 -0800 (PST), Manisha Sathe wrote: > I am having property file under WEB-INF directory. I am currently storing > somet

Re: Unable to see out put

2005-01-12 Thread Vamsee Kanakala
Vamsee Kanakala wrote: I have a code fragment like this: Thanks guys... I solved it. Seems like it's an issue with the Tomcat 5, which supports JSP2.0, and I have to make changes to web.xml to enable EL. These posts on tomcat-user list h

RE: Stuts forwarding does not work

2005-01-12 Thread Amit Gupta
What are you writing in your index.jsp? Amit Gupta Mobile: 91-9891062552 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Alex Kravets [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 1:11 AM To: user@struts.apache.org Subject: Stuts forwarding does not wor

PLZ Help with Cannot find message resources under key org.apache.struts.action.

2005-01-12 Thread Avinash Sridhar
Hi All, This is my directory structure WEB-INF i have struts-config.xml and web.xml WEB_INF classes / com / masslight / StrutsExampleClasses/ ApplicationResources.properties Name.java NameForm.java SetNameAction.java files /***Error **/ Cannot find message resources under key org.apac

RE: [Tiles] Why the text doesn't show

2005-01-12 Thread David G. Friedman
Vernon, Have you read "Tiles Advanced Features" by Cedric Dumoulin? It is listed under the Struts userGuide section for Tiles, http://struts.apache.org/userGuide/dev_tiles.html with a direct URL of: http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf Read all subsections under section 4

Re: how to get data from http get / url?

2005-01-12 Thread Yen
There might be a few ways, but from my exprience.. String sid = request.getParameter("id"); or editFormsform = (editForm)form; String sid = sform.getUserid(); - Original Message - From: "Dody Rachmat Wicaksono" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, January

Property file question

2005-01-12 Thread Manisha Sathe
I am having property file under WEB-INF directory. I am currently storing something like title.mainmenu = Main Menu error.validation = Validation Error Can i make use of these variables inside my any normal java classes - or whether these r meant for only JSPs ? regards Manisha

RE: [Tiles] Why the text doesn't show

2005-01-12 Thread Vernon
David: After I add empty strings for all insertion components in the definition xml file, nothing is changed. When you said "rule of thumb", do you mean what is in the document or a hacking practice? regards, Vernon > > The way I've always used Tiles is different from > your approach. In the

Re: Unable to see out put

2005-01-12 Thread Kishore Senji
By taking a peek at the source, I found that they do make an ArrayList which contains Integers from "begin" to "end". So the acutal problem for not showing those values on the page is something else and I guess ,by looking at the first posting, you are using the runtime version of the jstl core lib

Re: Database connection question - seeking expert opinion

2005-01-12 Thread Manisha Sathe
Hi all, This is to give big thanks to all. Erik - i will go thr it - i think i need some some time to grasp it. Regards and Have a nice day, Manisha Erik Weber <[EMAIL PROTECTED]> wrote: Manisha Sathe wrote: >I am still new to struts and even servlets. Last time when i developed >servle

Re: Re:how to get data from http get / url?

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you, it work. Dody. === At 2005-01-13, 01:46:52 you wrote: === >just use the getter method of your formBean. >Depend on u use dynaactionform or not.If u do not ,use getId() of your >formBean. >regards > > >-- Initial Header --- > >>From : "Dody Rachmat Wicaks

Re: Re:how to get data from http get / url?

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you, it work. Dody. === At 2005-01-13, 01:46:52 you wrote: === >just use the getter method of your formBean. >Depend on u use dynaactionform or not.If u do not ,use getId() of your >formBean. >regards > > >-- Initial Header --- > >>From : "Dody Rachmat Wicaks

Re: Unable to see out put

2005-01-12 Thread Dakota Jack
I had <%@ taglib uri='jstl-core' prefix='c' %> on the page and jstl-core /WEB-INF/resource/tld/c.tld in web.xml. Jack On Wed, 12 Jan 2005 15:23:01 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > I used: > > > > > > >

Re: Unable to see out put

2005-01-12 Thread Dakota Jack
I used: And this worked fine, gave me: 1 2 3 4 5 in red. Jack On Wed, 12 Jan 2005 12:52:59 -0600, Abdullah Jibaly <[EMAIL PROTECTED]> wrote: > Actually I think it's ${current.count} > > -Original Message- > From:

Re: Stuts forwarding does not work

2005-01-12 Thread Kishore Senji
Make sure that "/pages/QueryInput.jsp" exists and relavtive to context root. On Wed, 12 Jan 2005 14:40:49 -0500, Alex Kravets <[EMAIL PROTECTED]> wrote: > I am trying to redirect from index.jsp to another page but no luck. I > get this error: > > org.apache.jasper.JasperException: Exception forw

Re: and char encoding

2005-01-12 Thread Laurent
Nicolas De Loof wrote: Can someone explain me what's wrong in HTTP / servlet API about char encoding : I'm using to build a link with parameters, whose values use french chars ('Ã', 'Ã' ...) I need to set useLocaleEncoding to get values in my servlet (that is not a struts action) using getPara

RE: [Tiles] Why the text doesn't show

2005-01-12 Thread David G. Friedman
Vernon, The way I've always used Tiles is different from your approach. In the struts-tiles.xml definition file, my "template" could contain the components "title", "category", and "category_menu" with dummy values. The two tiles derived from "template", i.e. "landscape" and "water", would overl

RE: [Tiles] Why the text does'nt show

2005-01-12 Thread Vernon
Thanks for your response, David. And please see below. "David G. Friedman" <[EMAIL PROTECTED]> wrote: > > A few things come to mind with your below included > details: > > 1: Where are the "taglib" statements in your > main.jsp template? The taglib statement is there as the following: <%@ tag

RE: Passing Parameters to Tiles Layout

2005-01-12 Thread David G. Friedman
Allen, You could make your action a Struts Tiles Action subclass and set a tile parameter's value manually based upon the id... For example, you could set the tile's "body" component to the value form.getBody() IF your page was submitted with "body=somepage.jsp" or something like that. If you do

Re: i18n (internazionalization) tutorial need

2005-01-12 Thread Sebastian Hennebrueder
You could try our message ressource tutorial at http://www.laliluna.de/tutorials.html It is explains the use of message ressources which are the base for multi language apps. Regards Sebastian [EMAIL PROTECTED] wrote: hi all i need a good tutorial (for free) for managing internazionalization with

RE: [Tiles] Why the text does'nt show

2005-01-12 Thread David G. Friedman
Vernon A few things come to mind with your below included details: 1: Where are the "taglib" statements in your main.jsp template? 2: To use "title" when you "extend" a master template, I'm pretty sure you MUST have a "title" component listed in your master template too because you are orverridi

Re: i18n (internazionalization) tutorial need

2005-01-12 Thread Hubert Rabago
The one that used to be mentioned most often is http://www.anassina.com/struts/i18n/i18n.html, though when I tried just now, I couldn't seem to get it to load. Try it though, and if it's still down, try again in a few hours. I've tried the instructions there before and seemed to work out okay for

Stuts forwarding does not work

2005-01-12 Thread Alex Kravets
I am trying to redirect from index.jsp to another page but no luck. I get this error: org.apache.jasper.JasperException: Exception forwarding for name queryInput: org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)

RE: JSF and Struts (off topic)

2005-01-12 Thread James Holmes
Hi Leandro, I have compiled an extensive list of JSF resource on my site at: http://www.jamesholmes.com/JavaServerFaces/ You should be able to find everything you need there. James -Original Message- From: Leandro Melo [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 11, 2005 4:58 PM

[Tiles] Why the text does'nt show

2005-01-12 Thread Vernon
In a project, I have the Tiles integrated with Spring. The inserted JSP files show up properly, but not text. I can't find the cause. Here is a segment of the template file http://www.w3.org/1999/xhtml"; xml:lang="en">

RE: Unable to see out put

2005-01-12 Thread Abdullah Jibaly
Actually I think it's ${current.count} -Original Message- From: Kishore Senji [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 12, 2005 12:37 PM To: Struts Users Mailing List Subject: Re: Unable to see out put On Wed, 12 Jan 2005 13:52:32 +0530, Vamsee Kanakala <[EMAIL PROTECTED]> wro

Re:how to get data from http get / url?

2005-01-12 Thread [EMAIL PROTECTED]
just use the getter method of your formBean. Depend on u use dynaactionform or not.If u do not ,use getId() of your formBean. regards -- Initial Header --- >From : "Dody Rachmat Wicaksono" [EMAIL PROTECTED] To : "Struts Users Mailing List" user@struts.apache.org Cc

how to get data from http get / url?

2005-01-12 Thread Dody Rachmat Wicaksono
What should i do to get the value from url? ex: http://localhost:8080/st/editForm.do?id=99 how to get the id value? Thank you in advance. Dody - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

how to get data from http get / url?

2005-01-12 Thread Dody Rachmat Wicaksono
What should i do to get the value from url? ex: http://localhost:8080/st/editForm.do?id=99 how to get the id value? Thank you in advance. Dody - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Unable to see out put

2005-01-12 Thread Kishore Senji
On Wed, 12 Jan 2005 13:52:32 +0530, Vamsee Kanakala <[EMAIL PROTECTED]> wrote: > Rick Reumann wrote: > > > It sounds like you are probably are now using a JSP2.0 container like > > Tomcat5 and are refering to the wrong tld. Refer to the one in the jar > > like: > > > > <%@ taglib prefix="c" uri="h

Re: i18n (internazionalization) tutorial need

2005-01-12 Thread Vic
I use JSTL for that, you can download the spec from the JCP page; which is so well writen as a reference that it can ba a tutorial. Else buy a JSTL book. .V [EMAIL PROTECTED] wrote: hi all i need a good tutorial (for free) for managing internazionalization with struts. any help? regards __

i18n (internazionalization) tutorial need

2005-01-12 Thread [EMAIL PROTECTED]
hi all i need a good tutorial (for free) for managing internazionalization with struts. any help? regards Libero ADSL: 3 mesi gratis e navighi a 1.2 Mega. E poi hai l'Adsl senza limiti a meno di 1 euro al giorno. Abbonati subito sen

Re: Multiple Struts-config problem

2005-01-12 Thread Kishore Senji
The module name in the should start with a "/" link On Wed, 12 Jan 2005 18:39:58 +0530, sachin <[EMAIL PROTECTED]> wrote: > hi all , > > i am implementing multiple modules in struts 1.2.4 > i have two config files which i define in web.xml like > > > config > /WEB-INF/struts-con

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you everyone. The problem is solved. Now i set the same attribute for both action. My codes in SetUpCategoryEditAction: CategoryEditForm categoryEditForm = (CategoryEditForm) form; categoryEditForm.setName("te

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you everyone. The problem is solved. Now i set the same attribute for both action. My codes in SetUpCategoryEditAction: CategoryEditForm categoryEditForm = (CategoryEditForm) form; categoryEditForm.setName("te

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Here is my jsp part: Category Name: The code above is the same with the code for insert. Perhaps I'm forgetting something here. :( Dody. >Hello, Dody, > >This looks okay to me. What does your JSP page look like? > >Jack > > >On Wed, 12 Jan 2005 16:19:43 +0700, Dody Rachmat Wi

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Here is my jsp part: Category Name: The code above is the same with the code for insert. Perhaps I'm forgetting something here. :( Dody. >Hello, Dody, > >This looks okay to me. What does your JSP page look like? > >Jack > > >On Wed, 12 Jan 2005 16:19:43 +0700, Dody Rachmat Wi

Re: commons-chain problems

2005-01-12 Thread Joe Germuska
I haven't used the ChainListener, but I'm wondering if you haven't caught up with the CatalogFactory API which came in shortly before the 1.0 release of Chain. What code are you using which returns a null catalog? What I think you should be using, from what you wrote and the ChainListener jav

and char encoding

2005-01-12 Thread Nicolas De Loof
Hi, Can someone explain me what's wrong in HTTP / servlet API about char encoding : I'm using to build a link with parameters, whose values use french chars ('é', 'à' ...) I need to set useLocaleEncoding to get values in my servlet (that is not a struts action) using getParameterMap. If I do n

RE: Database connection question - seeking expert opinion

2005-01-12 Thread Jim Barrows
> -Original Message- > From: Manisha Sathe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 11, 2005 11:10 PM > To: user@struts.apache.org > Subject: Database connection question - seeking expert opinion > > > I am still new to struts and even servlets. Last time when i > developed s

RE: display tag rendering problem

2005-01-12 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 12, 2005 7:03 AM > To: user > Subject: display tag rendering problem > > > Hi all > I'd like to use display tags.Actually I created a decorator > for the columns of a table and I use the

Re: commons-chain problems

2005-01-12 Thread Pedro Salgado
On 12/1/05 5:06 pm, "James Mitchell" <[EMAIL PROTECTED]> wrote: > Well, this question is actually for the commons-chain (Jakarta Commons) > mailing list. I already sent a copy to the commons mailing list. > > What version of chain are you using? In looking thru the javadocs, that > parameter i

Re: commons-chain problems

2005-01-12 Thread James Mitchell
Well, this question is actually for the commons-chain (Jakarta Commons) mailing list. What version of chain are you using? In looking thru the javadocs, that parameter is deprecated. http://jakarta.apache.org/commons/chain/apidocs/org/apache/commons/chain/web/ChainListener.html Have you tried

Re: Unable to see out put

2005-01-12 Thread Dakota Jack
I guess I am daft. Must have been "off" last night. You don't have to when your beginning and end values are the basis for an iteration. What do you mean that you get "something like this"? Is it that or not? Jack On Wed, 12 Jan 2005 17:24:03 +0530, Vamsee Kanakala <[EMAIL PROTECTED]> wrote:

Re: populate data for edit form

2005-01-12 Thread Dakota Jack
I'll be! Never used "attribute" either. Thanks. Jack On Wed, 12 Jan 2005 08:19:25 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote: > The problem is that you are specifying the "attribute" value for one > of your action mappings, but not for the other. For the first (setup > action), because no

Re: [almost OT] Struts in Practice

2005-01-12 Thread t t
Also because I really like the Google style: simple, but useful and powerful. So I have been trying to make my website-- www.sportslovers.net in that way. I am not sure if I can say that mine is powerful now, but I am sure I can say it's useful, and, simple. :) t t <[EMAIL PROTECTED]> wrote:Th

commons-chain problems

2005-01-12 Thread Pedro Salgado
I am trying to use commons-chain on my project but I have some problems loading the chain-config.xml... does anyone setup a web application with commons-chain (ChainListener)? If I specify org.apache.commons.chain.CONFIG_ATTR on my web.xml the catalog is no longer null but it does not contain

Re: Possible Bug: validator_1_0: msg element. key always treated as resource, never literally?

2005-01-12 Thread Niall Pemberton
Yes - Bug or Feature not implemented. http://issues.apache.org/bugzilla/show_bug.cgi?id=18169 Niall - Original Message - From: "Daffin, Miles (Company IT)" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, January 12, 2005 3:04 PM Subject: Possible Bug: validator_1_0

Possible Bug: validator_1_0: msg element. key always treated as resource, never literally?

2005-01-12 Thread Daffin, Miles (Company IT)
Hi, I am trying to use the mask validator as follows: I expect to see 'A custom message.' when the validation fails. I get no message at all. If I add a message to my app.properties: errors.some.problem=A custom message. and then edit the validation declaration: I get 'A custom mess

Re: populate data for edit form

2005-01-12 Thread Joe Germuska
The problem is that you are specifying the "attribute" value for one of your action mappings, but not for the other. For the first (setup action), because no "attribute" value is set in the ActionMapping, Struts looks in the request for a bean under the form's name "categoryEditForm". If it d

RE: display tag rendering problem

2005-01-12 Thread Paul McCulloch
Try the display tag mailing list http://sourceforge.net/mail/?group_id=73068 Paul > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 12 January 2005 14:03 > To: user > Subject: display tag rendering problem > > > Hi all > I'd like to use display tags.Actual

Re: XML date validation

2005-01-12 Thread Joe Germuska
At 5:04 PM +0530 1/12/05, deepak wrote: Hi, Using XML date validation, how do I check if the entered date is in the future or not ? If by "XML date validation", you mean the commons-validator framework and ValidatorForm or a class derived from it, there is no built-in support for this. On t

Re: [OT]Hashtable Vs Hashmap, Vector Vs ArrayList

2005-01-12 Thread DGraham
Choosing the right Collection. http://www.javapractices.com/Topic65.cjp Ashish Kulkarni <[EMAIL PROTECTED]> 01/11/2005 10:33 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject [OT]Hashtable Vs Hashmap, Vector Vs ArrayList Hi what is difference b

display tag rendering problem

2005-01-12 Thread [EMAIL PROTECTED]
Hi all I'd like to use display tags.Actually I created a decorator for the columns of a table and I use the attribute sortable for sorting them.When I load the page , It does not visualize the arrows i used for pointing the sortable link action. Pratically the arrow images I use for calling the

Passing Parameters to Tiles Layout

2005-01-12 Thread Tait, Allen
Assume a standard Tiles layout with Header, Navigation, Body, and Footer, each implemented as a JSP. In this setup, the navigation.jsp is responsible for dynamically generating the left hand navigation from an XML configuration file. For each page request, this component needs to build the navig

Re: Database connection question - seeking expert opinion

2005-01-12 Thread Larry Meadors
Why not use something like iBATIS to eliminate the need for connection management? Here is a tutorial on using struts with iBATIS: http://www.reumann.net/struts/ibatisLesson1.do Larry On Tue, 11 Jan 2005 22:10:20 -0800 (PST), <[EMAIL PROTECTED]> wrote: > I am still new to struts and even servl

Re: Struts design for CRUD methods

2005-01-12 Thread Larry Meadors
Here is a good tutorial by Rick Reumann on using struts with iBATIS that could be helpful. http://www.reumann.net/struts/ibatisLesson1.do Larry On Wed, 12 Jan 2005 02:55:50 -0800, Dakota Jack <[EMAIL PROTECTED]> wrote: > On Wed, 12 Jan 2005 09:29:34 +, Mark Benussi > <[EMAIL PROTECTED]> wrot

RE: getting tiles to work

2005-01-12 Thread John McCosker
Im an idiot for thinking this, >>am I write in thinking that all template data is flushed into EreportDesktopLayout.jsp. In the examples I have been looking at I couldn't work out where the layout page rsided and what was in it, its not fully clicked yet but getting there. my EreportDesktopLayout

Multiple Struts-config problem

2005-01-12 Thread sachin
hi all , i am implementing multiple modules in struts 1.2.4 i have two config files which i define in web.xml like config /WEB-INF/struts-config.xml config/master /WEB-INF/master/master-config.xml and in the master-config.xml i have an action defined

getting tiles to work

2005-01-12 Thread John McCosker
hi, just trying to configure my application here so it can use tiles, however I have been running into some difficulties, I managed to get round them and now my result is any empty response. I redirect to my base jsp page from my Action, contents of base jsp template eReportDesktop.jsp -

Javascript gibberish thrown by ValidatorForm!

2005-01-12 Thread Vamsee Kanakala
Hi List, I have a strange problem - I'm trying to display a ArrayList made of LabelValueBeans. I'm trying to display them in a like this: But, All I'm getting is a bunch of javascript gibberish (which I think, comes from validation-rules.xml or something) written across the scr

Re: Unable to see out put

2005-01-12 Thread Vamsee Kanakala
Dakota Jack wrote: Don't you have to define what "items" are covered by your "var"? Sorry if I sound daft, but I do I have to do that? Where do I do that? TIA, -Vamsee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: XML date validation

2005-01-12 Thread Erik Weber
Author your own pluggable validator. See the Struts doc on this. I recently posted an example that you can probably use as a place to start (pasted below). Erik deepak wrote: Hi, Using XML date validation, how do I check if the entered date is in the future or not ? Thanks --Deepak ---

XML date validation

2005-01-12 Thread deepak
Hi, Using XML date validation, how do I check if the entered date is in the future or not ? Thanks --Deepak

Re: populate data for edit form

2005-01-12 Thread Dakota Jack
Hello, Dody, This looks okay to me. What does your JSP page look like? Jack On Wed, 12 Jan 2005 16:19:43 +0700, Dody Rachmat Wicaksono <[EMAIL PROTECTED]> wrote: > I'm trying to create an edit page. I think I already in the right direction, > but still unable to populate data even with a dire

Re: populate data for edit form

2005-01-12 Thread Dakota Jack
Doesn't the framework do the setting of this attribute, Pedro? Jack On Wed, 12 Jan 2005 10:23:10 +0100, Pedro Salgado <[EMAIL PROTECTED]> wrote: > request.setAttribute("categoryEditForm", form); > -- -- "You can lead a horse to water but you cannot make it float

Re: Unable to see out put

2005-01-12 Thread Dakota Jack
Hi, Vamsee, Don't you have to define what "items" are covered by your "var"? Jack On Wed, 12 Jan 2005 13:52:32 +0530, Vamsee Kanakala <[EMAIL PROTECTED]> wrote: > > > > > > I get something like this: > > ${current} ${current} ${current} ${current} ${current} > -- ---

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you for your help, but the form still blank. I also tried using session (in struts-config.xml and session.setAttribute()) but still blank. request.setAttribute("categoryEditForm", form); Dody. >> CategoryEditForm categoryEditForm = (CategoryEditForm)form; >> categoryEditForm.

Re: Re: populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
Thank you for your help, but the form still blank. I also tried using session (in struts-config.xml and session.setAttribute()) but still blank. request.setAttribute("categoryEditForm", form); Dody. >> CategoryEditForm categoryEditForm = (CategoryEditForm)form; >> categoryEditForm.

Re: Struts design for CRUD methods

2005-01-12 Thread Dakota Jack
On Wed, 12 Jan 2005 09:29:34 +, Mark Benussi <[EMAIL PROTECTED]> wrote: >My problem is that I am having to create duplicate JSPs and actions for the > create and update processes. Hi, Mark, What makes you think you have to create different JSPs, Actions, etc.? You don't, but without knowing

Re: Struts design for CRUD methods

2005-01-12 Thread Erik Weber
Mark Benussi wrote: I have a web based application which allows the Creation, Update, Read and Deletion of Data objects (Nothing new here). All data changes are done by calling Manager methods with Action Forms to update the relevant data e.g. new ShopManager().createOrder(createOrderForm); or

Re: Database connection question - seeking expert opinion

2005-01-12 Thread Erik Weber
Manisha Sathe wrote: I am still new to struts and even servlets. Last time when i developed servlets, i created one common class method to get the connection (with regular JDBC call). All database related parameters i stored in a constant variable file. That's the way I do it, with or without S

RE: Database connection question - seeking expert opinion

2005-01-12 Thread Amit Gupta
It would very simple to migrate application. Search through mail that I sent to you few days ago. Way to use connection pool is there. Because I m working on Perl project now so I don't have that code handy now. Amit Gupta Mobile: 91-9891062552 Yahoo IM: amitguptainn MSN IM : amitguptainn

Re: Struts design for CRUD methods

2005-01-12 Thread Pedro Salgado
I share the createX and editX actions form-beans "xForm" (I usually use session scope because an extra special field called "vo"). In "create action" I usually have an extra field ("vo") in my form-bean that I don¹t use. In "edit action" I must check if the "vo" exists (the bean that is be

RE: Struts design for CRUD methods

2005-01-12 Thread McDonnell, Colm (MLIM)
The only difference between the pages is that they call different actions i.e. /order/create/stage1.do vs /order/update/stage1.do Try using DispatchAction: http://husted.com/struts/tips/002.html You can consolidate your create() and update() 'execute' methods within one action class. -O

Re: How to detect Cancel button i pressed ?

2005-01-12 Thread Manisha Sathe
Thanks Nicolas, finally i could get the cancel button working the way i want. regards Manisha Nicolas De Loof <[EMAIL PROTECTED]> wrote: Manisha Sathe a écrit : >Hi Nicolas, > >Thanks for the response, > >1)I tried this, but giving me error. Pls would u mind giving some code example >?

Struts design for CRUD methods

2005-01-12 Thread Mark Benussi
I have a web based application which allows the Creation, Update, Read and Deletion of Data objects (Nothing new here). All data changes are done by calling Manager methods with Action Forms to update the relevant data e.g. new ShopManager().createOrder(createOrderForm); or new ShopManager.upda

Re: populate data for edit form

2005-01-12 Thread Pedro Salgado
I think you could also try this... I think it will also work (maybe you should then switch from request.setAttribute to session.setAttribute... but I don¹t remember). Pedro Salgado - To unsubscribe, e-mail: [EMAIL P

RE: Database connection question - seeking expert opinion

2005-01-12 Thread Manisha Sathe
oh, so mean to say automatically i get connection pool - In my servlet i am using (at least currently) normal JDBC call - which i was thinking how i can convert in to connection pool as i heard of it a lot !!! . ok, then can i use struts database method in any class ? or is it restricted to o

Re: populate data for edit form

2005-01-12 Thread Pedro Salgado
> > CategoryEditForm categoryEditForm = (CategoryEditForm)form; > categoryEditForm.setName("testing"); > request.setAttribute("categoryEditForm", form); > return (mapping.findForward("continue")); I think that will do ;) Pedro Salgado On 12/1/05 10:19 am, "Dody Rachmat

populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
I'm trying to create an edit page. I think I already in the right direction, but still unable to populate data even with a direct value via action class. Please let me what's wrong here. I've spend 3 days alone with this problem. Thank you. I created two action file: - SetUpCategoryEditAction.

populate data for edit form

2005-01-12 Thread Dody Rachmat Wicaksono
I'm trying to create an edit page. I think I already in the right direction, but still unable to populate data even with a direct value via action class. Please let me what's wrong here. I've spend 3 days alone with this problem. Thank you. I created two action file: - SetUpCategoryEditAction.

RE: Validating DynaBean nested beans with a custom validator.

2005-01-12 Thread Daffin, Miles (Company IT)
Sorry for the outrageoulsy long-winded question. It really boiled down to this: how to get the PersonFormBean off the Object bean generically. The answer is to use PropertyUtils.getSimpleProperty(...). (BeanUtils.getProperty returns a String.) MD > -Original Message- > From: Kishore Senji

Re: Unable to see out put

2005-01-12 Thread Vamsee Kanakala
Rick Reumann wrote: It sounds like you are probably are now using a JSP2.0 container like Tomcat5 and are refering to the wrong tld. Refer to the one in the jar like: <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> and remove and direct pointing to the tlds you have. Yes, I am us