Image Caching in Tomcat

2006-06-20 Thread Mukta
Hi All, I am developing a struts application using JDK version 1.5.0 and Apache Tomcat 5.5 I am using Struts FormFile to upload some images to replace the older ones but when I try to view them in my jsp, it still shows me the older images which have been replaced by the older ones. I have tried

Re: Image Caching in Tomcat

2006-06-20 Thread paz . periasamy
Hello Mukta, I would nto advice to disable the Image caching in Tomcat. Since this will affect the performance of the over all server. Moreover the Internet Browser also cahces the Images. Inorder to solve this problem completely, I used to follow a simple solution. Consider the Image tag is

Re: Urgent: Need help in JSP precompilation

2006-06-20 Thread Lintang JP
maybe you need to include jstl.jar to your classpath ? On 6/20/06, priyadarsh kankipati [EMAIL PROTECTED] wrote: Hi, I was facing problem while precompiling the JSPs. I followed the approach given in the below link. http://tomcat.apache.org/tomcat-5.0-doc/jasper-howto.html using ant. The

passing input form value to error message

2006-06-20 Thread Dhanasekaran Vivekanandhan
Hi All, I am using struts1.2.9, and one of the form input value is date field and i want to show the error message, Date entered,0909200 is not a valid date, if the date entered in the form is 0909200. I am using the datePattern validator plugin.I dont know how to pass the user input date value

RE: i18n, refreshing ApplicationResources

2006-06-20 Thread Mukta
Bharat, If you are just distributing your application's war file to be deployed at your customer's server, you need not give the whole code base to him. As the properties files are required for i18n features in the project, your client may need to change the messages and labels etc. as per his

regarding validation framework

2006-06-20 Thread mansooraks
Dear all, I am using validator framework in my application for client side validation. I have done all prerequisite . mapped my formbean in validator.xml file .add coding in jsp page. But while running that page it prints all the script code n the page itself like given below. Plz tell me the

Re: Urgent: Need help in JSP precompilation

2006-06-20 Thread priyadarsh kankipati
Thanks Lintang for replying. but jstl.jar is already in the class path. Any other suggestion? regards priyadarsh Lintang JP [EMAIL PROTECTED] wrote: maybe you need to include jstl.jar to your classpath ? On 6/20/06, priyadarsh kankipati wrote: Hi, I was facing problem while precompiling

[Solved] Image Caching in Tomcat

2006-06-20 Thread Mukta
Thanks Paz, My problem seems to be resolved :) Mukta. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 11:41 AM To: Struts Users Mailing List Cc: Mukta Subject: Re: Image Caching in Tomcat Hello Mukta, I would nto advice to disable

RE: Bean Information not Displaying on Failed Validation

2006-06-20 Thread Shoukat, Faisal
Is your form in the session scope in the struts-config.xml? -Original Message- From: Wiles, Cory [mailto:[EMAIL PROTECTED] Sent: 20 June 2006 03:54 To: user@struts.apache.org Subject: Bean Information not Displaying on Failed Validation I have a form that a user fills out, selects from

set request parameter

2006-06-20 Thread Vidya Mahavadi
Hi guys, I have a jsp where I have a table with few records and for each record I have a Remove button, which actually should delete the record from database. How do I pass the record id to the action.. Any ideas? Regards, Vidya This message and any attachments are confidential and

Re: set request parameter

2006-06-20 Thread Antonio Petrelli
Vidya Mahavadi ha scritto: Hi guys, I have a jsp where I have a table with few records and for each record I have a Remove button, which actually should delete the record from database. How do I pass the record id to the action.. Any ideas? Write an HTML form for each record. In this

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Antonio Petrelli
First of all, do you think that posting your thread FOUR TIMES it will be read better than only one? It is a rude behaviour and you are discouraged to do so. Anyway, because I am not evil I will try to help you. Pham Anh Tuan ha scritto: Hi all, I use Struts framework + Velocity, and I have

RE: set request parameter

2006-06-20 Thread Vidya Mahavadi
Thanks Antonio! -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Tuesday 20 June 2006 11:11 To: Struts Users Mailing List Subject: Re: set request parameter Vidya Mahavadi ha scritto: Hi guys, I have a jsp where I have a table with few records and for

RE: Bean Information not Displaying on Failed Validation

2006-06-20 Thread Wiles, Cory
No it is in the request. Cory Wiles Internet Designer / Developer Internet Development Department St. Jude Children's Research Hospital www.stjude.org [EMAIL PROTECTED] Office:(901) 495-2982 Fax:(901) 495-3103

ActionErrors not being displayed in jsp

2006-06-20 Thread Medicherla Lakshmi
HI, Can anyone please explain me how to validate a login page using validate method of actionform. Am not able to display the errors in my jsp page though i wrote html:errors/ in my jsp. Please give any example of using ActionErrors. Thanks and Regards, MSV Lakshmi.

[ANN] Public Course: Migrating to Struts Action 2

2006-06-20 Thread Ted Husted
Leverage your hard-earned Struts experience in this five-day hands-on course. Learn how to intergrate existing Struts applications with the Next Big Thing: Struts Action Framework 2. The course covers migrating existing applications to Struts Action 2, with a focus on upgrading the most important

RE: ActionErrors not being displayed in jsp

2006-06-20 Thread mansooraks
Hi, public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { ActionErrors errors = new ActionErrors(); if ((username == null) || (username.length() == 0)) { errors.add(username, new

Re: [shale] Problems with View controller

2006-06-20 Thread Marty Phee
The class that's trying to do the cast is org.apache.shale.component.SubView I'll keep my beans in the Request scope. Newbie alert... ;-) Craig McClanahan wrote: On 6/19/06, Marty Phee [EMAIL PROTECTED] wrote: Ok, I've got most everything working. Combination of things mostly me not know

[shale] Using with JSF 1.2 and JSTL

2006-06-20 Thread Bahadır Yağan
Hi, I think shale has an incompability with JSF 1.2. The following code piece works fine without the shale-core.jar c:forEach items=#{contents.strList} var=row h:outputText value=#{row} / br / /c:forEach When I include shale-core.jar I get

Problem with MessageResources.properties

2006-06-20 Thread Srinivas_Biragoni
Hi All, I am using struts 1.2.8 , In my MessageResources.properties file i am using message key Found {0} records for NewYear's eve (just an example), this throwing wrong format string exception, when i removed single quote it's working fine and if there are no argument {0} then also its

Important question, bug in struts?

2006-06-20 Thread Shervin Asgari
Hello all! This is an important question and I think this is a feature which isn't supported in Struts. I have to actionform classes with two pagemodels inner classes. Lets say We have action class X and actionclass Y with the pagemodel X:A and Y:B To go from X to Y actionclass is no

Re: Important question, bug in struts?

2006-06-20 Thread Shervin Asgari
request.setAttribute(websiteModel, new DomainAdminAction.DomainAdminEditPageModel( domainWebsiteAdminEdit.title, request, response, mapping, dd)); if (request.getAttribute(websiteModel) == null) { request.setAttribute(websiteModel, actionForm);

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Pankaj Gupta
Use ActionMessages in place of ActionErrors. See: http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 regards, Pankaj [EMAIL PROTECTED] wrote: Hi, public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {

Re: set request parameter

2006-06-20 Thread Albert L. Sapp
Vidya Mahavadi wrote: Hi guys, I have a jsp where I have a table with few records and for each record I have a Remove button, which actually should delete the record from database. How do I pass the record id to the action.. Any ideas? Regards, Vidya This message and any attachments are

Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Truong Xuan Tinh
Hi Tuan, Did you set the page encoding to UTF-8? And one more thing, set the characterEncoding of your request to UTF-8 before it hit your action (ie, in a filter or something like that). PS: I've found a bug in Tomcat with when encoding data to UTF-8 with the GET method (the POST method is

Variable parameters in tiles

2006-06-20 Thread Scott Van Wart
Hello, I have a tiles-defs.xml similar to the following (layout page with banner on top, content on bottom): tiles-definitions definition name=mydef path=/layout.jsp put name=banner value=/banner.jsp / /definition definition name=edit extends=mydef put name=title

Re: Cancel button sets the form value

2006-06-20 Thread Monkeyden
Yeah, I have used DispatchAction in the past but found it a bit klugey. Rather than adding the querystring parameters in the Struts config for dispatch, I overrode the processActionPerform method in RequestDispatcher. I forget the specifics of the way DispatchActions are handled but at the time

Re: Problem with MessageResources.properties

2006-06-20 Thread Monkeyden
I do this very thing for required field messages and have no problem with it. Are you passing the value to the ActionError constructor? '{0}' is a required field On 6/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi All, I am using struts 1.2.8 , In my

Re: Not getting URL rewriting with html:link

2006-06-20 Thread Mon Cab
Thanks Richard It works with action=userlogin_display. --- Richard Yee [EMAIL PROTECTED] wrote: According to the documentation if you use href, the value passed will be unchanged. It looks like you should use action=userlogin_display and the property and name attributes to set the

message resource format keys

2006-06-20 Thread Ralf Stoltze
hej allihopa, (-- sweden is currenty playing) i have a problem with message resource format keys. i don't really know if it's a struts issue or a general java issue: currencyFormat=EUR 0,00 renders e.g. - EUR 4,00 on my german ie. - EUR 0,04 on my english firefox (which is the correct value,

clay template, duplicate components

2006-06-20 Thread drh
Hi all, i'm using the clay tag to import a template inside a typical login form: - | login: [__] | | pass: [__] | | submit | - The template contains the login, password and submit button, and have the

Re: clay template, duplicate components

2006-06-20 Thread Gary VanMatre
From: drh [EMAIL PROTECTED] Hi all, i'm using the clay tag to import a template inside a typical login form: - | login: [__] | | pass: [__] | | submit | - The template contains the login, password and submit

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
Thank you Don. I have done that and the session expiry problem is solved. The bookmark problem still exists though... There is a way to overcome this as well: ActionForward forward = new ActionForward(); forward.setPath(mapping.findForward(reload).getPath() + id=23); which redirects to

Re: clay template, duplicate components

2006-06-20 Thread Daniel del Río
Thank you Gary, I was using the last version 1.1.3 ... - Original Message - From: Gary VanMatre [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, June 20, 2006 11:55 PM Subject: Re: clay template, duplicate components From: drh [EMAIL PROTECTED]

Re: Request parameters in action forward

2006-06-20 Thread Monkeyden
The only thing that I can think of is to redirect the user to a different (perhaps error) exactly, send them back to wherever they go to select the foo they want to look at. Do you have a SelectFooAction? On 6/20/06, Antonis Lebesis [EMAIL PROTECTED] wrote: Thank you Don. I have done that

Re: Request parameters in action forward

2006-06-20 Thread Antonis Lebesis
Hi, I do have a SelectFooAction (actually it's called ChooseFooAction :)). There is another problem though: This action is used in more than one places so I have to add a parameter called action in it's url (action=display for a simple user, action=edit for the admin etc). Since I have a lot of

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Sorry all you, I don't intend to flood the mailling list, but yesterday, after I had sent this email, mail server feedback to me that my email couldn't send :( ... So, that the reason why I sent this email so many times, sorry all :( about my situation, I can only save unicode characters

Re: need urgent help

2006-06-20 Thread Ed Griebel
This exception is caused by outputting a message without specifying a message resource in your struts-config.xml file. You can learn some more about Struts starting at these links: http://struts.apache.org/struts-action/index.html http://struts.apache.org/struts-action/userGuide/index.html -ed

Stopping Double Submits via mutex

2006-06-20 Thread Paul Benedict
I've read many different techniques to stopping double submits, but one technique unfamiliar to me was described inside the Spring Framework. http://www.springframework.org/docs/api/org/springframework/web/util/HttpSessionMutexListener.html It did not occur to me to lock the session to make

Re: need urgent help

2006-06-20 Thread Medicherla Lakshmi
Thank you. I resolved it. Ed Griebel [EMAIL PROTECTED] wrote: This exception is caused by outputting a message without specifying a message resource in your struts-config.xml file. You can learn some more about Struts starting at these links: http://struts.apache.org/struts-action/index.html

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Medicherla Lakshmi
Hi, Am not using validator.xml for validation. But just the Actionform validate method to validate the username and password submitted without values. I tried to use even ActionMessage in place of ActionError, but, my jsp is not showing the error message. Please Help. Thank

RE: ActionErrors not being displayed in jsp

2006-06-20 Thread David Friedman
Can you post a code snipper for your ActionForm? Do you invoked the form's validate() method directly in your Action or do you have the mapping set with validate=true ? Regards, David -Original Message- From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006

RE: ActionErrors not being displayed in jsp

2006-06-20 Thread Medicherla Lakshmi
Yes, i have validate=true set in my struts-config.xml. Here's my code. public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if (getUsername() == null || getUsername().length() 1) {

Re: ActionErrors not being displayed in jsp

2006-06-20 Thread Madhav Bhargava
If you give validate=true then you need to give input parameter in the struts-config as well. One more thing - in your JSP try using the following code: logic:messagesPresent html:messages id=errorMess bean:write name=errorMess/ /html:messages id=errorMess /logic:messagesPresent If