Refreshing a JSP from Action class

2006-01-26 Thread Deepa Khetan
Hi, I am calling an Action class and want my same JSP to get refreshed from this Action class. I am not understnding how i can do this, without losing the values that the user has already given. I tried putting target=null from the Action class. But this is still opening another bowser for me. A

RE: [shale] Some Clay oddities

2006-01-26 Thread hermod.opstvedt
Hi Try and clean out your Tomcat work directory prior to restart after you have made your changes. Hermod -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 12:14 AM To: Struts Users Mailing List Subject: [shale] Some Clay oddities I'm pl

RE: [shale] Tomahawk components

2006-01-26 Thread hermod.opstvedt
Hi I have tested quite a bit of them, and so far I have only found that JSCookMenu does not work. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig McClanahan Sent: Thursday, January 26, 2006 11:51 PM To: Struts Users Mailing List Subject: Re: [

RE: [shale] ClassNotFoundException: IgnoreBuilderRule

2006-01-26 Thread hermod.opstvedt
Hi I have to do that all the time with Shale/Clay. Otherwise I always get the old stuff. Just changing a html/xml file and believe it will get recompiled will hurt you. Hermod -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 10:29 PM T

Re: data in session affecting performance ?

2006-01-26 Thread Frank W. Zammetti
Hi Lixin, That was in all probability a comment I made in a thread... the 32k limit used to be a recommendation from IBM. The reason was that in a clustered environment, the session replication time across nodes was a big concern. Even on a single server the container managing persistence o

Re: Child window opening problem

2006-01-26 Thread Deepa Khetan
Well, that i know. I am already populating the JSP from a Child JSP. I do not want this child JSP to be shown to the user. On 1/27/06, Srinivas Jadcharla <[EMAIL PROTECTED]> wrote: > > //Is there a way thru which i can populate my JSP from Action class > > use mapping.findForward("success"); > > O

Re: Action Form error.

2006-01-26 Thread Deepa Khetan
Did u define ur form-bean in struts config? On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Somehow I am getting ActionForm is null when one of the Action is > called. > > How can I find out if ActionForm object was created after jsp forwarded to > ActionServlet. ? > > > Here is my

Re: [HELP] Can't not get parameter when submit a form

2006-01-26 Thread Pham Anh Tuan
I have a bean property is a dynamic array. ex: boolean[] arrCheckbox = null so, I wanna initialize boolean array arrCheckbox before the form is populated, before the form is populated, you can not get any attribute from request, such as http hidden property, you get only parameters from url a

RE: [HELP] Can't not get parameter when submit a form

2006-01-26 Thread Garner, Shawn
Why would you want it in the reset method? You can do a request.getAttribute("property"); Shawn -Original Message- From: Pham Anh Tuan To: Struts Users Mailing List Sent: 1/26/2006 8:15 PM Subject: Re: [HELP] Can't not get parameter when submit a form hidden tag ? You can not get that

Re: [HELP] Can't not get parameter when submit a form

2006-01-26 Thread Pham Anh Tuan
hidden tag ? You can not get that html hidden property in reset method of FormBean ... any solution :( - Original Message - From: "Garner, Shawn" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Friday, January 27, 2006 12:38 AM Subject: RE: [HELP] Can't not get parameter

Re: submit action from html

2006-01-26 Thread Chris Pat
Hi Rick, et. al. Of course, sorry. Now I see it. I was thinking my form was my action. I know better, the form is calling the action and that is what I call from the html. Sorry for wasting bandwidth,grin. --- Rick Reumann <[EMAIL PROTECTED]> wrote: > Chris Pat wrote the following on 1/26/200

Re: submit action from html

2006-01-26 Thread Rick Reumann
Chris Pat wrote the following on 1/26/2006 6:44 PM: Hi Michael Thanks, but I still unclear. I dont want to wrap the href in a form tag. Where that href is going should be explicitly known by me b/c it is server-side. Just make the link go to the same path that your form submits to. Use the

Action Form error.

2006-01-26 Thread digant . k . joshi
Somehow I am getting ActionForm is null when one of the Action is called. How can I find out if ActionForm object was created after jsp forwarded to ActionServlet. ? Here is my details. web.action.SectorAction has public ActionForward setUpForInsertOrUpdate(ActionMapping mapping, Actio

Re: [shale] Some Clay oddities

2006-01-26 Thread Gary VanMatre
>From: Richard Wallace <[EMAIL PROTECTED]> > > I'm playing with templating using symbol replacement like in the > use-cases. It's very cool and very powerful. A couple of things that > are strange tho: > > 1) The first letter of the content of the file being used is being > cutoff. So, for in

data in session affecting performance ?

2006-01-26 Thread Lixin Chu
Hi, I saw a thread discussing this but can not find it anymore now. I remember someone mentioned that the amount of data put into the session context should not exceed 32KB in general otherwise performance might be affected. I may interpreted it wrongly. so i would like to clarify if it is indeed

Re: submit action from html

2006-01-26 Thread Michael Jouravlev
As I told you, forward your arguments to the address where form.jsp submits data to. Seems that "server-side forwarding" is what you are looking for. Are you trying to black-box text your action? Otherwise I cannot get what do you want to do. On 1/26/06, Chris Pat <[EMAIL PROTECTED]> wrote: > Hi

Re: submit action from html

2006-01-26 Thread Chris Pat
Hi Michael Thanks, but I still unclear. I dont want to wrap the href in a form tag. Where that href is going should be explicitly known by me b/c it is server-side. If a jsp gets compiled down to a servlet can I specifly the correct syntax of that servlet and pre-compile the jsp? --- Michael Jo

Re: submit action from html

2006-01-26 Thread Michael Jouravlev
Check where the HTML FORM is posted from form.jsp ("action" attribute). Send your parameters to that location directly, instead of sending them to form.jsp. Michael. On 1/26/06, Chris Pat <[EMAIL PROTECTED]> wrote: > Hi ChadMichael > Sorry I am not clear it is my lack of precise > understanding >

RE: submit action from html

2006-01-26 Thread Chris Pat
Hi ChadMichael Sorry I am not clear it is my lack of precise understanding I want the hyperlink from the html to be like this http://host:8080/myWebApp/form.jsp?param1=value¶m2=value Which I can do. The problem is it takes me to form.jsp, with the url populated correctly on the address line o

Re: [shale] Tomahawk components

2006-01-26 Thread Ryan Wynn
On 1/26/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 1/26/06, Richard Wallace <[EMAIL PROTECTED]> wrote: > > > > Gary mentioned in his follow up response to my earlier questions that it > > is indeed possible to use MyFaces Tomahawk with Shale Clay. So now I > > want to find some more info

[shale] Some Clay oddities

2006-01-26 Thread Richard Wallace
I'm playing with templating using symbol replacement like in the use-cases. It's very cool and very powerful. A couple of things that are strange tho: 1) The first letter of the content of the file being used is being cutoff. So, for instance, I have the clay definition:

Re: JSTL formatting for displaytag column

2006-01-26 Thread Torgeir Veimo
On Thu, 2006-01-26 at 10:43 -0500, fea jabi wrote: > > > > > > I am not sure what the value="${}" would be. You can add an id="row" to the display:table tag, and use ${row.balance}. -- Torgeir Veimo <[EMAIL PROTECTED]> -

Re: [shale] Tomahawk components

2006-01-26 Thread Craig McClanahan
On 1/26/06, Richard Wallace <[EMAIL PROTECTED]> wrote: > > Gary mentioned in his follow up response to my earlier questions that it > is indeed possible to use MyFaces Tomahawk with Shale Clay. So now I > want to find some more information about that. > > I see that you basically have to create a

[shale] Tomahawk components

2006-01-26 Thread Richard Wallace
Gary mentioned in his follow up response to my earlier questions that it is indeed possible to use MyFaces Tomahawk with Shale Clay. So now I want to find some more information about that. I see that you basically have to create a clay-config.xml with declarations for each tomahawk component

RE: submit action from html

2006-01-26 Thread [EMAIL PROTECTED]
What do you mean that javascipt only brings you to the form requiring a manual submit? Do you mean that you want to simulate a form submission but without the browser? --- On Thu 01/26, Chris Pat < [EMAIL PROTECTED] > wrote: From: Chris Pat [mailto: [EMAIL PROTECTED] To: user@struts.apache

Re: [shale] ClassNotFoundException: IgnoreBuilderRule

2006-01-26 Thread Richard Wallace
Huh, weird. I had to shutdown tomcat, remove the webapp from $TOMCAT_HOME/webapps and $TOMCAT_HOME/work/Catalina/localhost to fix the problem. Thanks again, Rich Gary VanMatre wrote: From: Richard Wallace <[EMAIL PROTECTED]> I updated to use the nightly from this morning and I'm getting th

Re: Validation problems

2006-01-26 Thread Daniel Kies
Either one would work, to be consistent with other struts tags I am using, html:text is probably better. This doesn't affect the validation issue. On 1/26/06, Thomas Garben <[EMAIL PROTECTED]> wrote: > > Dan, > > Should you be using" > instead of: > > > > Tom > > > > > > Daniel Kies <[EMAIL PR

Re: Validation problems

2006-01-26 Thread Thomas Garben
Dan, Should you be using" Tom Daniel Kies <[EMAIL PROTECTED]> 01/26/2006 04:07 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Validation problems Hello. I am trying to do some standard validations, but I am failing. Any ideas why? I k

Validation problems

2006-01-26 Thread Daniel Kies
Hello. I am trying to do some standard validations, but I am failing. Any ideas why? I know the errors are getting raised as the request is forwarding back to the initial page making the request, but the error messages are not showing on the page. Any help is appreciated! Struts config DynaActi

Re: Dispatch Action Error

2006-01-26 Thread RathinaGanesh MeenakshiSundaram
No, The jsp and Action and everything works fine as they need to be and renders the jsp fine. But, once in a while thwors this error to the Server Log. There is no mistake with the spelling Thanks... On 1/26/06, Srinivas Jadcharla <[EMAIL PROTECTED]> wrote: > > //java.lang.NoSuchMethodExcepti

Re: Is there a way of using tiles in a non struts Jsp-servlets web app?

2006-01-26 Thread Dakota Jack
Sure. Lots of ways. You can use all of your mvc 2 web app with Struts. On 1/26/06, Java Development Team <[EMAIL PROTECTED]> wrote: > > Hi > (new in struts) > I was wondering if there is a way in using the tiles framework in a MVC 1 web > app (Servlets Jsp Javabeans). Is there a way in using

Re: [shale] Clay questions

2006-01-26 Thread Richard Wallace
Craig McClanahan wrote: On 1/26/06, Richard Wallace <[EMAIL PROTECTED]> wrote: Ok. I understand that's how you use it in the html files. But what about in the clay-config.xml file? For instance, in the use-cases clay-symbols-config.xml file there is a component definition like this:

Re: [shale] Clay questions

2006-01-26 Thread Craig McClanahan
On 1/26/06, Richard Wallace <[EMAIL PROTECTED]> wrote: > > > Ok. I understand that's how you use it in the html files. But what > about in the clay-config.xml file? For instance, in the use-cases > clay-symbols-config.xml file there is a component definition like this: > > >

submit action from html

2006-01-26 Thread Chris Pat
Hello I have a mini-webapp with an action/form and view. It works perfectly. However how can I simulate the submit from an html page without showing the form and requiring a manual submit from the form? I believe I want it to behave like a servlet, but process the parameters through the form bean

Re: Dispatch Action Error

2006-01-26 Thread Srinivas Jadcharla
//java.lang.NoSuchMethodException May be caused by Spelling mistakes of the method names!! On 1/26/06, RathinaGanesh MeenakshiSundaram <[EMAIL PROTECTED]> wrote: > > Hi All, > > Iam getting the following DispatchAction error. > Everything works fine and but, once in a while, I see the following

Re: Child window opening problem

2006-01-26 Thread Srinivas Jadcharla
//Is there a way thru which i can populate my JSP from Action class use mapping.findForward("success"); Other Option: Use separate JSP for displaying other fields. On 1/26/06, Deepa Khetan <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there a way thru which i can populate my JSP from Action class

Re: [shale] Clay questions

2006-01-26 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace <[EMAIL PROTECTED]> Hello again, Sorry if I'm getting to be a pest, but I really like Clay and want to understand it better. So, here are my questions of the day: Can you (or how do you) use resource bundles in the clay config files? I'm trying to

Dispatch Action Error

2006-01-26 Thread RathinaGanesh MeenakshiSundaram
Hi All, Iam getting the following DispatchAction error. Everything works fine and but, once in a while, I see the following error message in the Server Log..! Even when I get this error in the log, I don't see any problem with my application/usage. It just works fine..But, still throws the followi

Re: [shale] ClassNotFoundException: IgnoreBuilderRule

2006-01-26 Thread Gary VanMatre
>From: Richard Wallace <[EMAIL PROTECTED]> > > I updated to use the nightly from this morning and I'm getting the > following when trying to load a page: > > afterPhase () - RESTORE_VIEW(1) > beforePhase () - RENDER_RESPONSE(6) > Jan 26, 2006 9:59:10 AM org.apache.shale.clay.faces.ClayViewHan

Re: [shale] Clay questions

2006-01-26 Thread Gary VanMatre
>From: Richard Wallace <[EMAIL PROTECTED]> > > Hello again, > > Sorry if I'm getting to be a pest, but I really like Clay and want to > understand it better. So, here are my questions of the day: > > Can you (or how do you) use resource bundles in the clay config files? > I'm trying to get t

Re: extra white space on form input

2006-01-26 Thread Frank W. Zammetti
In fact, Java Web Parts has such a filter: http://http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/ParameterMungerFilter.html And in fact, if you wanted to do it client-side, JWP can help there too: http://javawebparts.sourceforge.net/javadocs/javawebparts/taglib/jstags/FullTrimT

RE: [HELP] Can't not get parameter when submit a form

2006-01-26 Thread Garner, Shawn
Use an html hidden property to get this value. Shawn -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, January 25, 2006 1:31 PM To: user@struts.apache.org Subject: Re: [HELP] Can't not get parameter when submit a form Pham Anh Tuan wrote

Is there a way of using tiles in a non struts Jsp-servlets web app?

2006-01-26 Thread Java Development Team
Hi (new in struts) I was wondering if there is a way in using the tiles framework in a MVC 1 web app (Servlets Jsp Javabeans). Is there a way in using the struts libraries and mix the archritecture with no problem? Any suggestions? Had anyone tried this?

Re: extra white space on form input

2006-01-26 Thread Tamas Szabo
On 1/27/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > On 1/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > When struts takes the data from the request and populates your form, > > does it automatically trim whitespace? I think this might be answered > > from the particulars of HTML

[shale] ClassNotFoundException: IgnoreBuilderRule

2006-01-26 Thread Richard Wallace
I updated to use the nightly from this morning and I'm getting the following when trying to load a page: afterPhase () - RESTORE_VIEW(1) beforePhase () - RENDER_RESPONSE(6) Jan 26, 2006 9:59:10 AM org.apache.shale.clay.faces.ClayViewHandler renderView INFO: Clay template renderView for /defaul

Re: JSTL formatting for displaytag column

2006-01-26 Thread Keith Sader
What you want is the following: On 1/26/06, fea jabi <[EMAIL PROTECTED]> wrote: > Have an object Account which has couple of attributes in it. > > using displaytag to show all the accounts. > > > > > > > > ... >

Re: extra white space on form input

2006-01-26 Thread Frank W. Zammetti
On 1/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > When struts takes the data from the request and populates your form, > does it automatically trim whitespace? I think this might be answered > from the particulars of HTML rather than struts. Perhaps the question > is really whether html

Re: extra white space on form input

2006-01-26 Thread Michael Jouravlev
No. Why should it? On 1/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > When struts takes the data from the request and populates your form, does it > automatically trim whitespace? I think this might be answered from the > particulars of HTML rather than struts. Perhaps the ques

Re: [shale] clay renderId

2006-01-26 Thread Gary VanMatre
>From: Sergey <[EMAIL PROTECTED]> > > Hello, > > I like your solution a lot. But I'm wondering if it going to be possible > express the following in outer HTML template. > > >< property="selectedContact.firstName" size="20" maxlength="30" > required="true" immediate="false"/> > > I've trie

extra white space on form input

2006-01-26 Thread [EMAIL PROTECTED]
When struts takes the data from the request and populates your form, does it automatically trim whitespace? I think this might be answered from the particulars of HTML rather than struts. Perhaps the question is really whether html trims whitespace before building the request. If id doesn

[shale] Clay questions

2006-01-26 Thread Richard Wallace
Hello again, Sorry if I'm getting to be a pest, but I really like Clay and want to understand it better. So, here are my questions of the day: Can you (or how do you) use resource bundles in the clay config files? I'm trying to get to a place where I can use the symbol replacement features

JSTL formatting for displaytag column

2006-01-26 Thread fea jabi
Have an object Account which has couple of attributes in it. using displaytag to show all the accounts. ... want to display the values in the column as $1000 or so. i.e prefix the value with dolar sign. I am no

Child window opening problem

2006-01-26 Thread Deepa Khetan
Hi, Is there a way thru which i can populate my JSP from Action class. I have a requirement, wherein, when user enters a particular value, a database call has to made and other fileds should get populated . What i was doing is, submit another form when user enters this particular value, call an Ac

Re: SV: Re: Tiles: how to put a tag without a closing tag?

2006-01-26 Thread brenmcguire
Per Jørgen Walstrøm ha scritto: > > Try with: flush="false" ;-) Antonio Petrelli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: strange behaviours of tiles

2006-01-26 Thread Thomas Corte
Hi, Thomas Corte schrieb: I know that this thread is quite old, but I still wonder whether there is a better solution for this. It's quite tedious to find errors in JSPs when the Tiles framework swallows exceptions completely. Is there a patch available that keeps Tiles from doing this? Nev

RE: struts html:checkbox value

2006-01-26 Thread Vidya \(Suvarna\) Mahavadi
Thanks for all the responses. It helped me to find an alternative for this. I am using a property for the 'disabled' in my bean and if it is true I am setting the checkbox properties. Vidya -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday 26 January 2006

Re: strange behaviours of tiles

2006-01-26 Thread Thomas Corte
Hi, Laurie Harper wrote: Tiles can sometimes 'swallow' errors rendering a JSP without logging them, returning empty pages. Double check your logs first to see if the problem *is* being logged, but if not a couple of approaches you can try to track down the problem: - try loading your JSPs

Re: struts html:checkbox value

2006-01-26 Thread Niall Pemberton
On 1/26/06, Vidya (Suvarna) Mahavadi <[EMAIL PROTECTED]> wrote: > Is there a work around for this.. Not a simple one - for text or textarea elements the "readonly" attribute would do the job you're looking for, but from memory "readonly" isn't part of the html 4 standard for checkbox. One approac

SV: Re: Tiles: how to put a tag without a closing tag?

2006-01-26 Thread Per Jørgen Walstrøm
thanks for your answer. I am probably a bit slow here, because I can't really figure out how to do it... ;-) in my file layoutSearch.jsp, I have the following: and then in my reportBody.jsp, I have the following: I don't see what name my placeho

Re: struts html:checkbox value

2006-01-26 Thread Tamas Szabo
On 1/26/06, Vidya (Suvarna) Mahavadi <[EMAIL PROTECTED]> wrote: > > Is there a work around for this.. Can the user change the value of the checkboxes? I mean they are always disabled or you enable/disable them dynamically? Tamas

RE: struts html:checkbox value

2006-01-26 Thread Vidya \(Suvarna\) Mahavadi
Is there a work around for this.. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday 26 January 2006 12:24 To: Struts Users Mailing List Subject: Re: struts html:checkbox value On 1/26/06, Vidya (Suvarna) Mahavadi <[EMAIL PROTECTED]> wrote: > > Hi , > > If

Re: struts html:checkbox value

2006-01-26 Thread Pham Anh Tuan
I think you should compare the original data with the submited data, ex: before you submit new changes, you have 5 checked box, after that, you choose only 3 checkbox are checked, so, after your form is submited, you should check the differences... hiz, hope you understand what I mean :( ---

Re: struts html:checkbox value

2006-01-26 Thread Niall Pemberton
On 1/26/06, Vidya (Suvarna) Mahavadi <[EMAIL PROTECTED]> wrote: > > Hi , > > If a check box is disabled and checked does it submit the value true? I > have a situation where it is not submitting the disabled checkbox > properties. Is there a work around for this... This is a browser / HTTP isssue

Re: [POLL RESULT] What JDK version are you using?

2006-01-26 Thread Niall Pemberton
Thanks to everyone who responded to this, thought I would post back the results for those interested. I asked this question on three mailing lists, in the figures below "Dev" referes to the Commons Dev maliling list, "User" to Commons User and "Struts" to the Struts User mailing list. 51 people re

RE: struts html:checkbox value

2006-01-26 Thread Vidya \(Suvarna\) Mahavadi
I did. But it does not help. I have a form with a huge list of data (which I am displaying in pages, 10 per page) and a save button which saves the data (on the current page) and reloads the page. When it submits the form it is ignoring the disabled check boxes (always submits as false), it shoul

Re: struts html:checkbox value

2006-01-26 Thread Pham Anh Tuan
Dear Vidya, there's a solution, in reset method of your form bean, you should set all your checkbox to false. ;) - Original Message - From: "Vidya (Suvarna) Mahavadi" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, January 26, 2006 4:37 PM Subject: struts html:ch

struts html:checkbox value

2006-01-26 Thread Vidya \(Suvarna\) Mahavadi
Hi , If a check box is disabled and checked does it submit the value true? I have a situation where it is not submitting the disabled checkbox properties. Is there a work around for this... Regards, Vidya This message and any attachments are confidential and intended solely for the

user@struts.apache.org

2006-01-26 Thread Vidya \(Suvarna\) Mahavadi
Hi , If a check box is disabled and checked does it submit the value true? I have a situation where it is not submitting the disabled checkbox properties. Is there a work around for this... Regards, Vidya This message and any attachments are confidential and intended solely for the add

Re: extend tiles

2006-01-26 Thread brenmcguire
Gary Feidt ha scritto: > If you are extending mainLayout you must have itemcount and pagecount > defined in mainLayout, and so on. It is not necessary if you don't use a definition directly but only its extended versions. Regards Antonio Petrelli -

Re: [HELP] Can't not get parameter when submit a form

2006-01-26 Thread Niall Pemberton
On 1/25/06, Pham Anh Tuan <[EMAIL PROTECTED]> wrote: > Hi all, > > I got a problem when I submit a form with setting like below > > > onclick='postEditFrm.action="$link.setAction("/addNewPost.do")?myNum=4";postEditFrm.submit;'> > > > > I can not get the parameter name "myNum" from request.getPar