Re: struts 1.2 - HttpServletRequest.getRemoteUser() returns NULL

2009-10-15 Thread Jari Fredriksson
15.10.2009 7:05, Sandeep Shenvi kirjoitti: Hi, We are developing a web application with Single Sign On (SSO) feature using struts 1.2 and are using tomcat 6.0 container for deployment. We want to achieve a scenario similar to Windows Authentication. For this we want to know the user (user

UI Issues in s:doubleselect Double Select control

2009-10-15 Thread Muthu Velappan
Hi, I have used a Double Select control display Division Sub-Divisions in my project. Everything works fine except two UI Issues. 1. I’m unable to get separate labels for 2 Select box controls. It uses only single label. Is that a limitation, if so how to work-around it? 2. I want

How to populate drop down from propery file in Struts html

2009-10-15 Thread rajendar are
Hi, I want to populate drop down in my jsp(struts html) from property file.Still I used property files for Action Fom properties and Messages.Please send if any source code is there other wise please give me idea 1)how can i get the options list from property file to HashMap/TreeMap/ArrayList in

RE: How to populate drop down from propery file in Struts html

2009-10-15 Thread Muthu Velappan
Try this one.. You can load the properties file in servlet using this line URL url = servletContext.getResource(/WEB-INF/option.properties); Properties props = new Properties().load(url.openStream()); Now you have all the key value pair from properties files into your

Re: How to populate drop down from propery file in Struts html

2009-10-15 Thread rajendar are
Hi, Instead of this I used below code in the Dispach Action add method 1 MessageResources msgRsrc=getResources(request,fileName); 2 String msgProperty =msgRsrc.getMessage(msg.delete.error); But it will give me null pointer at 2 line. Regards, Rajendar 2009/10/15 Muthu Velappan

Re: How to populate drop down from propery file in Struts html

2009-10-15 Thread rajendar are
Hi all, At last I got solution MessageResources messages = MessageResources.getMessageResources(/config/messages_EN); String message = messages.getMessage(request.getLocale(), message.delete.error); Thanks Regards, Rajendar 2009/10/15 rajendar are aare.rajen...@gmail.com Hi, Instead of

RE: Not display value next to radio

2009-10-15 Thread Odelya YomTov
U tried it But it still display the value next to the radio button.. -Original Message- From: Lee Clemens [mailto:j...@leeclemens.net] Sent: Thursday, October 15, 2009 2:35 AM To: 'Struts Users Mailing List' Subject: RE: Not display value next to radio You can iterate through the

Using date to format a date

2009-10-15 Thread Christian Bockermann
Hi list! I want to display a date in a user-specified manner (struts2 web-app) Thus, there exists a form where users can specify date-format strings, I validate them and on another page, I want to use the date-tag to display the date in the choosen format. So I have a session-property

struts1.3.10, tomcat 5.5.23, memory leak?

2009-10-15 Thread Emi Lu
Good afternoon, May I know which version of struts1 without memory leak problem? I use struts1.3.10 and tomcat5.5.23. I stop my web application and did (1) find tomcat pid = 11718 (2) jmap to review not released classes jmap -histo 11718 | grep webapp Attaching to process ID 11718,

struts1.3.10, tomcat 5.5.23, memory leak?

2009-10-15 Thread Emi Lu
Good afternoon, May I know which version of struts1 without memory leak problem? I use struts1.3.10 and tomcat5.5.23. I stop my web application and did (1) find tomcat pid = 11718 (2) jmap to review not released classes jmap -histo 11718 | grep webapp Attaching to process ID 11718,

Re: struts1.3.10, tomcat 5.5.23, memory leak?

2009-10-15 Thread Emi Lu
Sorry about sending my question twice because I got the following failure msg: Hi. This is the deliver program at bjtu.edu.cn. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out.

How to gracefully handle a closed request stream caused by struts.multipart.maxSize on client

2009-10-15 Thread Himanshu Vasishth
I am using struts.multipart.maxSize property to limit the size of files that can be uploaded by the client application. We have our custom client which uploads files to server. The client is written in C# (though it shouldn't matter) When the client tries to upload a file which is say twice the

RE: Not display value next to radio

2009-10-15 Thread Lee Clemens
I didn't try it. If you set the key to a getter that returns a null string, and the value to use a getter that returns the answer it may generate the HTML you intend. s:radio ... key=displayNothing value=answer/ And in Answer: getDisplayNothing() { return ; } If that doesn't work, can you