Re: [Shale]managed beans in request vs. session scope and how to clean up

2005-09-15 Thread Craig McClanahan
On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote: > > Hi Geeta, > > Just to let you know that one of the changes that was made to the JSF > spec was to integrate the JSTL and JSF, so you could use c:forEach with > JSF UI components. So using JSTL is still ok, I do. And I think it will > be a

RE: [Shale]managed beans in request vs. session scope and how to clean up

2005-09-15 Thread Holshausen, Ron
Hi Geeta, Just to let you know that one of the changes that was made to the JSF spec was to integrate the JSTL and JSF, so you could use c:forEach with JSF UI components. So using JSTL is still ok, I do. And I think it will be around for a while. -Original Message- From: [EMAIL PROTECTED]

RE: Re: Validation Issue

2005-09-15 Thread Amol Yadwadkar
Thankx a lot!!! It worked best regds, AMOL YADWADKAR | Software Engineer | M P H A S I S Architecting Value| IT SERVICES 2nd Floor, The Leela Business Park, Andheri Kurla Road, Andheri(E), Mumbai 400059| Tel: 91 22 5677 Extn 5356 | Fax: 91 22 5600| Cell : 9819011934 | www.mphasis.com

Re: multiple struts-config.xml issues with CactusStrutsTestCase

2005-09-15 Thread Praveen Kumar
HI I dont know about Cactus . But Struts 1.2 onwards only more than one struts-config files are allowed that to be in this manner action com.struts.action.ActionServlet /// THis is for Defalut config /WEB-INF/struts-confi

Re: i18n recommendation

2005-09-15 Thread Ivan Rodriguez
What I use: First I store the ArrayList in the application context, with the locale identifies concatenated. And other useful localized strings that are constants. context.setAttribute(lang + "_" + Constants.YEAR_MONTHS, ym); And in the action where there is a forward that will display that

Re: Struts and DisplayTag CSS?

2005-09-15 Thread Wendy Smoak
From: <[EMAIL PROTECTED]> The resulting href becomes the following by display the source page on IE. It is so strange that both http://localhost:8080/erp/ and http://localhost:8080/erp/addUserProfile.do cannot display with css. Not so strange, unless the stylesheet is in the ROOT context (

Dynamically Sized Forms: Help!

2005-09-15 Thread jonathan gilmore
Hello, I have my dynamically sized form working with the use of a DynaValidatorForm. However, when I enter data in the 'quantity' fields (see JSP code shown below) the newly typed value is not populated into the form on submission i.e. my UpdateCartAction form contains the old values. Pleas

Re: i18n recommendation

2005-09-15 Thread Jadeler
Thanks Laurie. Btw, I actually meant the application context, not the session. --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Jadeler wrote: > > Im using a struts plugin to populate application > wide > > data such list of values, etc from the database > and > > then stored in a session. I al

Re: Struts and DisplayTag CSS?

2005-09-15 Thread 梁炳場
I have tried both suggestion. Still no luck and even worse. The resulting href becomes the following by display the source page on IE. It is so strange that both http://localhost:8080/erp/ and http://localhost:8080/erp/addUserProfile.do cannot display with css. Eventuallt, I change the href t

Re: i18n recommendation

2005-09-15 Thread Laurie Harper
Jadeler wrote: Im using a struts plugin to populate application wide data such list of values, etc from the database and then stored in a session. I also use the application resources bundles for text messages, labels, etc on my jsp pages. For displaying data pertaining to the locale the use

RE: Error message not very helpful

2005-09-15 Thread Murray Collingwood
Thanks Ron, I am using a jsp:getProperty and this is the code that is failing... I finally solved it by running a full clean & build. The builds I was running were not enough to compile some older versions of the programs that used a different bean identifier. Thanks again. Kind regards mc

i18n recommendation

2005-09-15 Thread Jadeler
Im using a struts plugin to populate application wide data such list of values, etc from the database and then stored in a session. I also use the application resources bundles for text messages, labels, etc on my jsp pages. For displaying data pertaining to the locale the user has selected (da

Re: Validation Issue

2005-09-15 Thread Laurie Harper
Amol Yadwadkar wrote: Hi List, I am using Validation Framework. property="clientTaxId" depends="required,mask" > mask ${taxid} In the above when mask rule fails it picks up the message against the errors.invalid key in the p

Re: multiple struts-config.xml issues with CactusStrutsTestCase

2005-09-15 Thread Laurie Harper
It's been rather a long time since I used Cactus so I can't rememner the details of how you set things up, but are you sure that struts-my.xml is being read in when you run your cactus tests? L. Carl Smith wrote: I have two struts-config.xml files. One is Struts default struts-config.xml and

Re: Error message not very helpful

2005-09-15 Thread Laurie Harper
Whether or not the exception could provide more specific information is a question for the Tomcat developers (Jasper is part of Tomcat, not Struts). My guess is that it would be non-trivial, but I encourage you to head over to tomcat-user and ask, since better error reporting is always a good t

Re: OT: jsessionid connector error

2005-09-15 Thread Laurie Harper
Why would appending the session ID to the URL prevent Apache from passing the request to Jrun? Sounds like an Apache mis-configuration to me. I don't know how you configure Apache to 'recognise [something] as a jrun file' but that's what you need to be looking at. L. Zoran Avtarovski wrote:

Re: multiple struts-config.xml issues with CactusStrutsTestCase

2005-09-15 Thread Kishore Senji
I think by default the CactusStrutsTestCase reads the /WEB-INF/struts- config.xml only. If you have multiple config files you would have to set the appropriate config file in your test method. For eg: public void testDisplay() throws Exception { setConfigFile("/WEB-INF/struts-config.xml,/WEB-INF/

multiple struts-config.xml issues with CactusStrutsTestCase

2005-09-15 Thread Carl Smith
I have two struts-config.xml files. One is Struts default struts-config.xml and the other one is called struts-my.xml. and I have configued these two xml files in web.xml so that ActionServlet can take both struts-config.xml and struts-my.xml. See following: action org.apache.struts.ac

Re: versus Scriptlet...

2005-09-15 Thread Leon Rosenberg
I'm making a guess, since I'm too lazy to check the actual jsp source code, but i would assume, that bean:define defines the variable to the scope page and ties it to the page for scripting. When you perform your: isEmpty = false; you change the value of the scripting variable, but not the one fr

Re: versus Scriptlet...

2005-09-15 Thread Kishore Senji
looks for an attribute with the given "name" and compares for equality with the given "value". not only creates a scripting variable but also puts an attribute with the same name. Here you only modify the value of the scripting variable and not the "attribute" value, which is what the is goi

versus Scriptlet...

2005-09-15 Thread Filipe Pomar
Guys, I have the following pseudo-code: // begin: some iteration <%isEmpty="false";%> // end: some iteration ... then I want to test if isEmpty is true. The body of following code always get executed: // some code that always run ... though, the behavior I expected

Re: getLastModified in Struts

2005-09-15 Thread Frank W. Zammetti
Hi Yaahov, This is the kind of thing that a filter would probably be good for. Although I don't think it will do explicitly what you want, have a look at the CacheControlFilter in Java Web Parts: http://javawebparts.sourceforge.net/javadocs/index.html And the source: http://prdownloads.sourcef

Re: getLastModified in Struts

2005-09-15 Thread James Mitchell
The Struts framework does not provide any sort of caching strategy. You could certainly provide your own extension to ActionServlet and roll your own, but such an effort is completely outside of the scope of this framework. Hope that helps. -- James Mitchell Software Engineer / Open Sourc

Re: [Shale]managed beans in request vs. session scope and how to clean up

2005-09-15 Thread gramani
[EMAIL PROTECTED] (Gary VanMatre) wrote on 09/15/2005 02:35:47 PM: > A commandLink with a target attribute would work if you didn't need > to control the window size and jazz. Gary, thanks for your response... Nope, they want the jazz, so i guess I'm stuck with javascript..(:( > > >2. I have

Re: [Shale]managed beans in request vs. session scope and how to clean up

2005-09-15 Thread Gary VanMatre
>However, the specs changed..(:( and I had to add Javascript (window.open >stuff), so now I have to open a *new* window from my parent window in >order to show assessment.jsp. And of course this means my AssessmentBean >is no longer initialised. My current solution is to place the bean in >sess

Re: Printer Friendly Struts Form

2005-09-15 Thread Ed Griebel
I was thinking that one could use javascript if you wanted to have a button that would do a "print preview", and then swap the css display attribute for the media types. I guess it's not really that useful, but still "neat" to modify the style on the fly :-) -ed On 9/15/05, [EMAIL PROTECTED] <[EM

Re: Printer Friendly Struts Form

2005-09-15 Thread Mario_Hernandez
Ed, I'm not sure why you would need to use javacript to change the the media attribute. If you just output the both at the same time, the styles with media set to screen get applied only on your monitor and while the media=print styles are ignored. The reverse is true when you send the page t

getLastModified in Struts

2005-09-15 Thread Yaakov Chaikin
Is there a way in Struts to tell a client issuing a conditional GET request not to re-execute the action? In a regular servlet you can just implement logic in the getLastModified method. Is there something similar in Struts? Thanks, Yaakov. ---

Re: [Shale]managed beans in request vs. session scope and how to clean up

2005-09-15 Thread gramani
[EMAIL PROTECTED] wrote on 09/15/2005 11:32:03 AM: > > Also in AssessmentBean.prerender(), I have code to initialise my > AssessmentBean so that /assessment.jsp can render nicely. oops, sorry, I meant in *WorkListBean*.prerender()" I have code etc... Thanks, Geeta

[Shale]managed beans in request vs. session scope and how to clean up

2005-09-15 Thread gramani
First off, my Shale work seems to be moving along nicely, so I want to thank everyone who has helped me get to this point..:) I have a link in a "parent window" pointing to WorkListBean.startAssessment(). In WorkList.startAssessment(), I return an outcome of "showAssessment", which in faces-co

Re: How to prevent path shows up at the Address box in the browser, IE and others

2005-09-15 Thread Kam Lung Leung
Hi Kishore, Thank you for the hint. That is great. I was worry that I need must more work to get it done that way. Can you give a example on the processing on the list of items that you mentioned in this email. Sorry I am newbie on this subject. Thank again. Regards, Kam Lung Leung Stru

Re: Struts and DisplayTag CSS?

2005-09-15 Thread Ivan Rodriguez
OOps, i didn t checked the welcome-file directive. I didn t found a situation where you want to access your forward jsp directly. :-[ Holshausen, Ron escribió: Hi, You're using an relative path to your css file (css/screen.css), so the user page with path /user/... does it find it as it expe

RE: Struts and DisplayTag CSS?

2005-09-15 Thread Holshausen, Ron
Hi, You're using an relative path to your css file (css/screen.css), so the user page with path /user/... does it find it as it expects it in /user/css/screen.css. One way to solve it is to use a tag to render the full path to the css file, e.g, " type="text/css" media="screen, print" /> With

Re: Struts and DisplayTag CSS?

2005-09-15 Thread Ivan Rodriguez
You have distinct code in both url's. It is imposible that one work and the other doesnt work if you have the *same* displaytag configuration and css and other needed files declared in both jsp. Because they are at same url level ( /erp/ ) 梁炳場 escribió: For this link, http://localhost:8080/

Struts and DisplayTag CSS?

2005-09-15 Thread 梁炳場
For this link, http://localhost:8080/erp/ displaytag is okay to display with css beautifully. For this link, http://localhost:8080/erp/addUserProfile.do all the css effect disappear. my web.xml /user/addUserProfile.jsp my jsp file has a css line my struts mapping is

Validation Issue

2005-09-15 Thread Amol Yadwadkar
Hi List, I am using Validation Framework. mask ${taxid}

Re: A little bit OT: unicode escape editor

2005-09-15 Thread Emmanouil Batsis
Wojciech Ciesielski wrote: Hi there, It's a bit off topic ;-) Does any of you know of some free/shareware editor or eclipse plug-in allowing transforming Unicode text into ISO-8859-1 escaped strings? We usually just edit out files (i.e. *.properties) with our editors in UTF-8 and feed them

A little bit OT: unicode escape editor

2005-09-15 Thread Wojciech Ciesielski
Hi there, It's a bit off topic ;-) Does any of you know of some free/shareware editor or eclipse plug-in allowing transforming Unicode text into ISO-8859-1 escaped strings? TIA Wojtek - To unsubscribe, e-mail: [EMAIL PROTECTE

RE: Error message not very helpful

2005-09-15 Thread Holshausen, Ron
Hi Murray, I would guess that you are using on an object that is null. Check your objects that you are accessing in the page. If the data is coming from a database, it could be a null column. -Original Message- From: Murray Collingwood [mailto:[EMAIL PROTECTED] Sent: 15 September 2005 1

Re: Error message not very helpful

2005-09-15 Thread gramani
"Murray Collingwood" <[EMAIL PROTECTED]> wrote on 09/15/2005 09:18:32 AM: > org.apache.jasper.JasperException: Attempted a bean operation on a > null object. > > org.apache.jasper.runtime.JspRuntimeLibrary. > handleGetProperty(JspRuntimeLibrary.ja > va:601) > Hi Murray, take a look at line 18

Error message not very helpful

2005-09-15 Thread Murray Collingwood
Hi all I came across this message this afternoon. I've tried stepping through with the debugger but can't seem to work out why I keep getting this error. The code appears to be okay, the bean and property are set correctly. I'm assuming it is something in my "display.jsp" file but there i

Re: Printer Friendly Struts Form

2005-09-15 Thread Ed Griebel
This is a creative idea for presentation, and the attribute can be changed by simple javascript. But, there might be an application access/security issue with this if this method is used for display of read-only data, as you are sending an editable version of the form even though it's hidden. Some

Re: Some i18n issues

2005-09-15 Thread Ivan Rodriguez
I think the *cleanest* way is to format data at presentation layer (jsp). Last example from Laurie is quite correct and clean, if it is too long code let get a try with JSTL and Struts-EL taglibs () Michael Ewers escribió: Hi, To avoid misunderstandings: My goal is to have a DynaActionForm

Re: Some i18n issues

2005-09-15 Thread Michael Ewers
Hi, To avoid misunderstandings: My goal is to have a DynaActionForm definition's "initial"-value translated in a locale specific manner so that e.g. the -tag displays a initial="1,001.00" as a "1.001,00" in German locale Browsers. After reading some struts-code I think that the best (meaning

MockStrutsTestCase and fileupload

2005-09-15 Thread Anuradha S.Athreya
I'm trying to write a MockStrutsTestCase to upload a file onto the server and the details regarding th file will be stored in the database. I have written the test case on lines of the code provided here : http://sourceforge.net/forum/forum.php?thread_id=1265326&forum_id=121751 My problem also

MockStrutsTestCase and fileupload

2005-09-15 Thread Anuradha S.Athreya
I'm trying to write a MockStrutsTestCase to upload a file onto the server and the details regarding th file will be stored in the database. I have written the test case on lines of the code provided here : http://sourceforge.net/forum/forum.php?thread_id=1265326&forum_id=121751 My problem also

Re: JavascriptValidatorTag.doStartTag(JavascriptValidatorTag.java:309) ( URGENT !! )

2005-09-15 Thread Ivan Rodriguez
I suggest to check the file _index.java at line 215. Look up for it at your .jsps precompile dir, or IAS deployment dir. The only way to get any hint is to see the precompile jsp code. Compare that line both development and production. EROL TEZCAN escribió: We dont use ADF, Martin. But this a