Struts2 sesionExpired page

2008-02-06 Thread jignesh.patel
Hi, I am having struts2 application with hibernate + mysql.I want to create web app session Expired page,but i am not able to detect weather my application session expired or not. I have given session time out to 1 min also but it still displays active session. 1 My SessionChecking

Re: STRUTS 2: fail to retrieve values without repost

2008-02-06 Thread Nushi
I forgot to map my success. That's why it only send information on my repost. Thanks Musachy Barroso wrote: > > do you have getters/setters(I am guessing the setters are missing) in > your action for all the form fields? > > musachy > > On Feb 6, 2008 10:29 AM, Nushi <[EMAIL PROTECTED]> wrot

struts polish application

2008-02-06 Thread Raghuveer
I have an application that needs to show messages coming from SAP in polish language. What would be the changes in need to do for my web.xml,struts config.xml and jsp pages.. Certain polish fonts were corrupted and shown question marks.. Please advice

Re: How can I validate a composed object in my action?(Struts 2)

2008-02-06 Thread Vamsi Gmail!
Create a file With name UserAction-validation.xml and copy the below content go through the struts2 validation frame work School name required On 2/6/08, slideharmony <[EMAIL PROTECTED]> wrote: > > > Hello! > I have to validate a composed object in my action, this is my action: >

Re: STRUTS 2: File tag problem

2008-02-06 Thread mgainty
Hi Sri so if the config is configured something like /WEB-INF/classes/struts-fileupload.xml uploadSuccess.jsp uploadError.jsp and the jsp defines the acceptable content-type and a name to call it.. org.apache.struts2.portlet.example.fileupload.FileUploadAction.java { p

STRUTS 2: File tag problem

2008-02-06 Thread Srikanth Muthyala
Hello, I am using file tag works fine if a file is selected using browse button or the path is entered manually. But if file name/path is rubbish the form is not submitted at all, nothing happens. 1. How do I control this - show error like invalid filename? 2. Or else how to disable manual

Re: Problem s:select in IE and Firefox

2008-02-06 Thread Martin Gainty
yep..the showLoadingText param is passed to the ajax-common.ftl specifically.. <#if parameters.showLoadingText?exists> showLoading="${parameters.showLoadingText?string?html}"<#rt/> .also be sure to null out loadingText.. M-- - Original Message - From: "Jeromy Evans" <[EMAIL PROTEC

Re: Problem s:select in IE and Firefox

2008-02-06 Thread Jeromy Evans
There's javascript involved as you're using an ajax submit. When your form is posted the submit button shows loading text in your target div. In IE, if the target div contains the form you're posting, it overwrites the form in the DOM prior to posting and the XHR request fails. It's a proble

Re: STRUTS 2: fail to retrieve values without repost

2008-02-06 Thread Musachy Barroso
do you have getters/setters(I am guessing the setters are missing) in your action for all the form fields? musachy On Feb 6, 2008 10:29 AM, Nushi <[EMAIL PROTECTED]> wrote: > > I only seem to get my values of my form when i repost. > > CODE > > <%@ taglib prefix="s" uri="/struts-tags" %> > > >

html:hidden as a collection not String

2008-02-06 Thread Shanna7463
Is it possible to assign a collection to a html:hidden component, rather than a string? Basically my webapp allows the user to select different options for access control. I would like to add these selections to a collection and pass that to my Action class. Thanks inadvance!! -- Shanna -- -

file upload problems

2008-02-06 Thread manub
Hi there, I'm a newbie in Struts 2 and in Java EE programming... I tried to search about this but i didn't found any succesfull answer. So I'm trying to ask to this ML :) I need to make a form that permits an user to upload a file. I had the "so-well-known" MultiWrapper problem, and I managed it

Re: Losing Session Attributes

2008-02-06 Thread Dave Newton
--- daveck <[EMAIL PROTECTED]> wrote: > > Try making a copy of the request parameter map and storing that instead. > Made copy but didn't solve the problem. > > Map parameterMap - request.getParameterMap(); > session.setAttribute("PARMS", parameterMap); Just for completeness, this isn't making a

Re: Losing Session Attributes

2008-02-06 Thread Musachy Barroso
I forgot to say, after trying everything, you can add an HttpSessionAttributeListener to your application and see when the value is nulled out/replaced. http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSessionAttributeListener.html musachy On Feb 6, 2008 12:25 PM, Musachy Bar

Re: Losing Session Attributes

2008-02-06 Thread Musachy Barroso
Is the value in the session null or an empty map? If it is an empty map, the reason might be that when you set the value in the session between requests, the request doesn't have any parameters, setting the value to an empty map. musachy On Feb 6, 2008 11:55 AM, daveck <[EMAIL PROTECTED]> wrote:

Re: Losing Session Attributes

2008-02-06 Thread daveck
In case I wasn't clear... the attribute "PARMS" exists but loses it value. -- View this message in context: http://www.nabble.com/Losing-Session-Attributes-tp15298791p15307254.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: jQuery plugin for Struts 2?

2008-02-06 Thread Dave Newton
--- "matt.payne" <[EMAIL PROTECTED]> wrote: > +1 here. > > Highly looking forward to using this over current Dojo plugin. > Any progress being made? Not really; I'm completely overwhelmed by my TODO list at the moment. It's over at GoogleCode and I'm happy to bring people on board. There's a w

Re: jQuery plugin for Struts 2?

2008-02-06 Thread matt.payne
+1 here. Highly looking forward to using this over current Dojo plugin. Any progress being made? Matt nuwan chandrasoma-2 wrote: > > i would like to see one :) > > emartin24 wrote: >> Ted Husted wrote: >> >>> On Nov 20, 2007 1:53 PM, wrote: >>> I've been working with Struts

Re: Losing Session Attributes

2008-02-06 Thread daveck
Laurie Harper wrote: > > > Are you sure? Have you confirmed that the session is the same in both > requests? > Yes, by checking the session id throughout the process. Laurie Harper wrote: > > > getSession(true) will create a session if one doesn't exist on the > request. If the session

Re: Losing Session Attributes

2008-02-06 Thread daveck
I'm losing the quest-input.jsp form attributes. Probably 3 out of 4 times. Session ID remains the same throughout the process. Here is part of my applicationContext.xml I'm not quite sure what you mean by needing to configure in session attributes. mgainty wrote: > > you'll definitely n

Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-06 Thread Randy Burgess
I just noticed another thing, you are using the 2.3 DTD, I'm using the 2.4 XSD. http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> I would use

STRUTS 2: fail to retrieve values without repost

2008-02-06 Thread Nushi
I only seem to get my values of my form when i repost. CODE <%@ taglib prefix="s" uri="/struts-tags" %> File Upload Example " rel="stylesheet" type="text/css"/> File Upload Example pages/upload.jsp

Re: Struts 2 and Weblogic 9.2 - java.net.ConnectException

2008-02-06 Thread Randy Burgess
I've rearranged your web.xml to the correct order below. Context params come first, then listeners and then filters/filter mappings, servlets/servlet mappings, etc. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Vigneswar <[EMAIL PROTECTED]> > Reply-To: Strut

Problem s:select in IE and Firefox

2008-02-06 Thread Marc Eckart
Hi, I have a tag which behaves different in IE 6.0 and firefox. In Firefox the underlying property in my struts action is filled in IE not. This is my code? . I have no idea why it works in Firefox and not in IE. Because there is no JavaScript involved (or am I wron

Re: chaining validation errors

2008-02-06 Thread chubi
Thanks again, It is not working, sometimes I get NullPointerException Plz show me how to use it. Below is the modified fragment of struts.xml Thanks for the support RETRIEVE /WEB-INF/pages/licenseForm.jsp /WEB-INF/pages/licenseList.jsp

Re: Custom OGNL PropertyAccessor

2008-02-06 Thread Tommy Becker
Thanks a lot for the info, it worked. I saw a Struts bean definition like that somewhere that led me to believe that that was how it was done, but as you said, it appears that the accessor never actually gets registered that way. As for the wisdom of doing thisin my view the real pain is

How can I validate a composed object in my action?(Struts 2)

2008-02-06 Thread slideharmony
Hello! I have to validate a composed object in my action, this is my action: public class UserAction extends ActionSupport{ private User usr; public User getUser() {return usr;} public void setUser(User usr) {this.usr = usr;} } and this is User class: public class User{ private Strin

Re: dispaytag + Struts 2.1.x: encoding parameters into requestURI

2008-02-06 Thread Giovanni Azua
hi Randy, You're right! many thanks! Best regards, Giovanni Randy Burgess wrote: All you should need is a getter in your action for simulationKey and then Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications