Multiple , or supporting both *.do and "dot nothing"

2006-09-25 Thread Bryce Nesbitt
So I have a typical struts app, where everything ends in "*.do", e.g.: http://www.citycarshare.org/howitworks.do And I wanted to add a URL like: http://www.citycarshare.org/ucsf So I did: action *.do action ucsf And all was good. The ap

[tiles] Re: Diffrence between putList item and an add Element?

2006-09-25 Thread Antonio Petrelli
mas ha scritto: Hello, Could someone please tell me the diffrence between and an Element? I suppose you are writing about Tiles. There is no "difference" because you use to declare the value of an attribute as a "list", the element is use to specify an elemen

Re: sort the list

2006-09-25 Thread Li
Hi, if you wanna use your own sort algorithm, you can make it as helper class and it will be used in your DAO impl class example: public class SortEngine { public static List sortById(List list) { ... } } public class MyDAOImpl extends MyDAO { ... public List getSortedData(String attr) t

Re: sort the list

2006-09-25 Thread Gomathi
Hai u said using direct ssql Where i give this sql query, I have one method to sort I have to use inside this method or? - Original Message - From: "Li" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, September 26, 2006 11:46 AM Subject: Re: sort the list It 's bet

Re: sort the list

2006-09-25 Thread Li
It 's better if you can store sorted one in different list. And it is better you retrieve sorted data from your persistent layer or dao * you can use direct sql query * or use object mapping like hibernate Good luck On 9/26/06, Gomathi <[EMAIL PROTECTED]> wrote: Hai, I have one arrali

sort the list

2006-09-25 Thread Gomathi
Hai, I have one arralist,I have to sort that list by using the lastname and the sorted list store in samelist. How to solve this Thanks and advance gomathi

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, neste

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: --- The field in the ValidatorForm is: private String categoria With this type of html:select i

[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 any

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 re

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 Bea

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: 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: http://prdownloads.sourceforge.net/

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: 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 matc

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 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 me

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Heidy Gutiérrez Guzmán
Hi I try ---. 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, e.g. --- (*Chris*) On 9/

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. --- (*Chris*) On 9/25/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote: Hi I need to validate an html:select with validator framework This is the code tha

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(); session

Re: Validate an hmt:select with validator framework

2006-09-25 Thread Wendy Smoak
On 9/25/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote: I need to validate an html:select with validator framework --- I tried to use the required validation, but that does'nt work, i think because the html:select have the "---" default value More likely it's because you have value="

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 enume

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

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 --- I need have a default value that is " ---" , but i need validate that this value does'nt selected. The code in the Validator form is private Long categoria; I tried to use the required valid

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 removeAttribute(..

Diffrence between putList item and an add Element?

2006-09-25 Thread maskkkk
Hello, Could someone please tell me the diffrence between and an 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 - User mailing l

WSAD struts configuration file validation and tiles

2006-09-25 Thread Jennifer Lill
I am having a problem with the "struts configuration file validator" in Websphere Studio Application Developer. I currently have the validator turned on: Windows> Preferences> Validation> Struts configuration file validator For some/most of my tiles paths, the validator complains that: Target

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 Specification-Vend

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 T

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

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 removin

Re: Question about session time-out using Listener

2006-09-25 Thread Tamas Szabo
Did you also map the filter to /* with a filter-mapping? Just after the filter element you declared you should have: SessionInactivityFilter< /filter-name> /* This is the first think I can think of. If you think that you got that right it would be good if I could see your whole web.xml fil

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? SessionInactivityFilter javawebparts.filter.SessionInactivityFilter

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 Tamas Szabo
Yes, you probably just added the filter at the end of the web.xml, after the 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: So try to have the declaration of the filter and filter-mapping just before the listener eleme

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- ***

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 li

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: SessionInactivityFilter javawebparts.filter.SessionInactivit

mapping forwards

2006-09-25 Thread fea jabi
In struts config have a Dynavalidator form-bean .. have prepare(Action) and dispath(LookupDispatchAction) actions for the jsp in the config which are session scoped. In the jsp have a submit button which dispatches to the dispatch action to

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 p

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: extending from DynaValidator problem?

2006-09-25 Thread Mallik
hi Friends Yes it is there in \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: > Sent: Monday, September 25, 2006 4:08 PM > Subject:

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: 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 from > DynaValida

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 org\apach

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 fi

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.
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 wer

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: http://www.nabble.com/Indexed-Properties-in-validation-Framework-h

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 http://jav