RE: Question about session time-out using Listener

2006-09-25 Thread Strachan, Paul
perhaps use a servlet filter to do this - you can simply map the filter to whatever urls you wish to apply rather than remembering to include some code in each and every jsp/action class etc e.g. in your doFilter(ServletRequest, ServletResponse, FilterChain) method: 1. HttpSession session =

Re: Question about session time-out using Listener

2006-09-25 Thread Tamas Szabo
Hi, You can use SessionInactivityFilter from the JavaWebParts project if you don't want to reinvent the wheel: Doc: http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/SessionInactivityFilter.html JWP Home Page: http://javawebparts.sourceforge.net/ Good Luck, Tamas

Indexed Properties in validation Framework help?

2006-09-25 Thread Mallik
HI friends, i have form which need indexed properties technique...(by net surfing i came to know) i need a full length tutorial on this topic ,or some code snipats help me please ur's Mallik -- View this message in context:

Re: bean:write formatKey tag

2006-09-25 Thread Ilja S.
Hi Thanks for reply but I'm still confused What you mean expected behavior? In link to bugzilla you provided this is considered as a bug and it says it is fixed in Struts 1.2 family. I'm using 1.2.9 As I understood this tag should format according to current locale. All I want that numbers were

Using 'Enter' in Validation-admin.xml

2006-09-25 Thread Sahil Gupta
Hi, I have used masking in validation-admin.xml in my project. The problem is that I want 'Enter' to be allowed to my Text Area on which masking is done but masking does not allow me to do so. Please help me in this context. Thanks

Re: bean:write formatKey tag

2006-09-25 Thread Ilja S.
And I was looking more on this question and seems that keypoint of this that when I use format property DecimalFormat applyPattern(String pattern) method is called, and when formatKey property is used then applyLocalizedPattern(String pattern) method is called. So seems that in resource file

extending from DynaValidator problem?

2006-09-25 Thread Mallik
HI friends i want to do some validations, that why i want to extends from DynaValidatorForm in my app this is the error i am getting when compile: - CollegeForm.java:12: cannot access org.apache.commons.beanutils.DynaBean file

Re: extending from DynaValidator problem?

2006-09-25 Thread Venkata Phani Kumar
check commons-beanutils.jar is present or not - Original Message - From: Mallik [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, September 25, 2006 4:08 PM Subject: extending from DynaValidator problem? HI friends i want to do some validations, that why i want to extends

Re: extending from DynaValidator problem?

2006-09-25 Thread Mallik
hi Friends Yes it is there in webroot\WEB-INF\lib let me know the problem ... ur's Mallik Venkata Phani Kumar wrote: check commons-beanutils.jar is present or not - Original Message - From: Mallik [EMAIL PROTECTED] To: user@struts.apache.org Sent: Monday, September 25, 2006

custom tag and html:rewrite

2006-09-25 Thread Van Stalle
Hey, I am writing a custom tag and I need to rewrite a link to an image from with the tag-code (by overiding the doStartTag method); I know that in a jsp-page you can do this with html:rewrite .. but how to do this from within java-code ? Any hints would be welcome. Jan -- View this message

Re: Choosing a Struts-ish framework

2006-09-25 Thread Ian Roughley
At the moment WebWork and Struts2 are *mostly* the same. The difference being that webwork is deemed production ready and s2 is just a little ways away. /Ian Li wrote: Hi, WW is doing integration work with Struts. WW has more features, their intercepters are powerful. For starting new

mapping forwards

2006-09-25 Thread fea jabi
In struts config have a Dynavalidator form-bean form-bean name=Form1 type= DynaValidatorForm form-property name=typeName type=java.lang.String/ .. /form-bean have prepare(Action) and dispath(LookupDispatchAction) actions for the jsp in the config which are session scoped. action

Re: Question about session time-out using Listener

2006-09-25 Thread mosho
Thanks for all your replies. My application is a struts application. I tried to use SessionInactivityFilter, i am getting compilation errors. I just have to include the following in my xml file or I need to do something else also: filter filter-nameSessionInactivityFilter/filter-name

Error loading Collection in form

2006-09-25 Thread harriquitawn tawn tawn
Hi all, In the jsp page ProjectsFound.jsp I obtain the list of all projects in a DB and I have two bottoms (edit and add groups). If I click on Add Groups, I want to show in the new page (addGroups.jsp) the name of the project and a list of all groups in order to select all which I want to

Re: custom tag and html:rewrite

2006-09-25 Thread Martin Gainty
Hello Jan- I found this page to be quite helpful when manipulating image attributes http://jakarta.apache.org/taglibs/sandbox/doc/image-doc/index.html#image Here is the javadoc for the doStartTag http://jakarta.apache.org/taglibs/sandbox/doc/image-doc/javadoc/index.html M-

Re: Question about session time-out using Listener

2006-09-25 Thread Tamas Szabo
Yes, you probably just added the filter at the end of the web.xml, after the error-page element that you already had in there. You have to declare the elements in the order defined by the DTD. For 2.3 this is: !ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*,

Re: custom tag and html:rewrite

2006-09-25 Thread Van Stalle
Martin, I found the solution myself; here is the code: this gives me an url which is valid in the context of my application. Thanks for your response, Jan import org.apache.struts.taglib.TagUtils; ... TagUtils utils = TagUtils.getInstance(); String img = null; try {

Re: Question about session time-out using Listener

2006-09-25 Thread mosho
Thanks Tamas. That seems to get rid of the errors but it doesn't work. When the session expires, it doesn't take me to any page, I tried forwarding to struts actions and .jsp files, it doesn;t work for both. Any idea? filter filter-nameSessionInactivityFilter/filter-name

Re: Choosing a Struts-ish framework

2006-09-25 Thread Ted Husted
Moving from Struts 1 to Struts 2 is non-trivial, but it is less work than moving from Struts 1 to any other platform I could name. Both codebases share the same architectural hallmarks. An application does not need to be rethought. It most cases, an application needs to be streamlined by removing

Re: Question about session time-out using Listener

2006-09-25 Thread mosho
Hi Tamas I am getting this error. do I need to inculde class SessionInactivityFilter or implement this class. I didn't understand how it is going to work. Servlet error: Error loading filter 'SessionInactivityFilter', filter-class 'javawebparts.filter.SessionInactivityFilter' not found This is

Find out Struts version

2006-09-25 Thread Joel Espinosa
Hi, This is perhaps kind of a dumb question but, I need to know what version of struts are running one app because I made the app with netbeans 5 so I didnt download the jars. Regards. -- Ing. Joel Alejandro Espinosa Carra Centro de Tecnología de Semiconductores CINVESTAV Unidad Guadalajara

RE: Find out Struts version

2006-09-25 Thread David Friedman
Check the struts.jar and read META-INF/MANIFEST.MF. It will have information like this (from a 1.2.9 jar): Manifest-Version: 1.0 Ant-Version: Apache Ant 1.6.1 Created-By: 1.3.1_04-b02 (Sun Microsystems Inc.) Extension-Name: Struts Framework Specification-Title: Struts Framework

Diffrence between putList item and an add Element?

2006-09-25 Thread maskkkk
Hello, Could someone please tell me the diffrence between lt;putListgt; lt;itemgt; and an lt;addgt; Element? Thank you, Andrew J. Leer -- View this message in context: http://www.nabble.com/Diffrence-between-putList-item-and-an-add-Element--tf2333765.html#a6493357 Sent from the Struts -

Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
Hi all, How I can kill son objects and variables in session, without kill everything in session like with session.invalidate(). I want that some objects always be in session and when I press a menu option all other variables or object that are in session be erase. i can´t use

Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
Hi I need to validate an html:select with validator framework This is the code that i have html:select property=categoria styleClass=editGrande html:option value=null---/html:option html:options collection=categoriasDescarte property=id labelProperty= nombre/html:options /html:select I

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
son = some :P 2006/9/25, Daniel Chacón Sánchez [EMAIL PROTECTED]: Hi all, How I can kill son objects and variables in session, without kill everything in session like with session.invalidate(). I want that some objects always be in session and when I press a menu option all other variables

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Heidy Gutiérrez Guzmán
You can use this code: Enumeration enumeration = session.getAttributeNames(); while (enumeration.hasMoreElements()) { String element = (String) enumeration.nextElement(); session.removeAttribute(element); } If yo don't have delete any element, you can do this: Enumeration

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
thaanks! I will use it 2006/9/25, Heidy Gutiérrez Guzmán [EMAIL PROTECTED]: You can use this code: Enumeration enumeration = session.getAttributeNames(); while (enumeration.hasMoreElements()) { String element = (String) enumeration.nextElement();

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Chris Pratt
According to your code, the default value is the String null, not ---. You might want to try setting that to an empty value, e.g. html:option value=---/html:option (*Chris*) On 9/25/06, Heidy Gutiérrez Guzmán [EMAIL PROTECTED] wrote: Hi I need to validate an html:select with validator

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
Hi I try html:option value=---/html:option. and that also does't work If you have any more idea, i would be grateful On 9/25/06, Chris Pratt [EMAIL PROTECTED] wrote: According to your code, the default value is the String null, not ---. You might want to try setting that to an empty value,

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Jason King
Daniel Chacón Sánchez wrote: son = some :P 2006/9/25, Daniel Chacón Sánchez [EMAIL PROTECTED]: Hi all, How I can kill son objects and variables in session, without kill everything in session like with session.invalidate(). I want that some objects always be in session and when I press a

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
What do you suggest me to use for keep that preserve names? A file, an arrayList, or what? An example code of the use of that with the code that Heidy gived?? 2006/9/25, Jason King [EMAIL PROTECTED]: Daniel Chacón Sánchez wrote: son = some :P 2006/9/25, Daniel Chacón Sánchez [EMAIL

Re: Erase Only some Session Objests and variables

2006-09-25 Thread paz . periasamy
Hello Daniel, The preserve list could be upto your implementation. It could be a Delimited String which you read from a property file and you can store it in a ArrayList. Loop the arrayList, get the entires, and compare it with the Session Attributes session.getAttributeName (). If they

Re: Erase Only some Session Objests and variables

2006-09-25 Thread Daniel Chacón Sánchez
Yeap :-) I think the better is a properties file 2006/9/25, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hello Daniel, The preserve list could be upto your implementation. It could be a Delimited String which you read from a property file and you can store it in a ArrayList. Loop the arrayList, get

Re: Question about session time-out using Listener

2006-09-25 Thread Tamas Szabo
Hi, Sorry, I had to sleep in the meantime ;-). Yes, of course you will need to have the SessionInactivityFilter and it's dependencies in your webapp. The easiest is probably to just include the jar containing it. To do that get the binary distribution of JWP:

RE: Find out Struts version

2006-09-25 Thread Joel Espinosa
Thank you. Regards. -- Ing. Joel Alejandro Espinosa Carra Centro de Tecnología de Semiconductores CINVESTAV Unidad Guadalajara Tel. +52 (33) 3770-3700 ext. 1049 http://www.gdl.cinvestav.mx -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Laurie Harper
You said your form property was of type 'Long'. By default, a null input value will be turned into 0, so the required validator rule will think the property has a value. You should generally use String-typed form bean properties, but if you need to keep it as Long, you'll want to configure

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Wendy Smoak
On 9/25/06, Laurie Harper [EMAIL PROTECTED] wrote: You said your form property was of type 'Long'. By default, a null input value will be turned into 0, so the required validator rule will think the property has a value. Good catch, Laurie! I completely missed the type... probably didn't

[Struts 2][Sitemesh] s:url in decorator file and html file

2006-09-25 Thread Garner Shawn
I'm still not sure why my decorator JSP has scriptlet values not evaluated when decorating a HTML file. I think it is the same reason the s:url doesn't render the context path too though. I'm not exactly sure how it can evaluate the decorator:applyDecorator but then the scriptlet doesn't know

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
Hi I tried with the solution of Laurie, and that work's. Now the problem is that i have two kinds of html:select The first html:select, load an Collection of Value Objects This is the code: html:select property=categoria html:option value=---/html:option html:options

AW: Erase Only some Session Objests and variables

2006-09-25 Thread Eickvonder Bjoern
You might even have the problem that you have a session scoped form bean (possible with many nested beans inside) and you want to kill all nested beans except a few ones. In this case the following steps might help. 1.) Instantiate a new instance of your form bean. 2.) Copy all properties,