Re: cannot be greater than null characters

2008-12-10 Thread Dirk Forchel
I reckon a misspelling ... rename the third 'arg' parameter to arg2 rather than arg1. that should work. m.harig wrote: > > hi all > > am newbee to struts . am doing a login application on struts . am > using Validator framework for page validation > my configuration is >

Re: Performance issue

2008-12-10 Thread Paweł Wielgus
Hi Hardik, what takes this time, page rendering in browser or result processing or maybe You are talking about action processing time? Also You can turn on profiling in struts2 to see how much time is spent where. Best greetings, Paweł Wielgus. 2008/12/11 Hardik Shah <[EMAIL PROTECTED]>: > > hi >

cannot be greater than null characters

2008-12-10 Thread m.harig
hi all am newbee to struts . am doing a login application on struts . am using Validator framework for page validation my configuration is validation.xml minlength7 maxlength20 when i submi

Error with adding the Action-validation.xml files to my app.

2008-12-10 Thread taj uddin
Hi,    In my application, I have added Action-validation.xml file and in the jsp page I set the attribute validate="true" in the s:form tag. After starting the server when i run the application this is the error( shown below) i'm facing. 12:16:21,462 ERROR [UIBean  

[S2] ServletDispatcherResult (dispatcher) and forwarding to Actions

2008-12-10 Thread Dirk Forchel
I need your help. I wanna use the DispatcherResult (dispatcher) not as a forward to a JSP (jsp/pages/test.jsp), but rather to forwarding to another action request e.g. /test.action?code=1. Apparently there is no need for doing that until you define something like the following in your struts.xml

Performance issue

2008-12-10 Thread Hardik Shah
hi i have use struts 2.0.11.2 and sitemesh for my project it all works fine but it kills performance i can not fiind where the problem,so i am write here ,it might somebody help me i am opening new window using javascript str="ViewWorkspaceUserRights.do?workSpaceId="+workSpaceId+"&userCode=

Re: Problem with

2008-12-10 Thread Faraz Ali
Hi Dave, Thank you very much for your help. I resolved most of my issues. 1. NumberFormatException is gone after i added escapeAmp=false 3. This one is fixed by adding includeParams=none But when i am using its creating the URL like http://localhost:8080/mywebapp/#. I am curious about it. But i

Re: smart URLs

2008-12-10 Thread Frans Thamura
On Thu, Dec 11, 2008 at 6:59 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Wed, 12/10/08, Frans Thamura wrote: > > but the quetion from this thread is to implement smiliar > > like you did in roller project > > I know, but I didn't have anything to do with that project, so I don't > know. >

Re: smart URLs

2008-12-10 Thread Dave Newton
--- On Wed, 12/10/08, Frans Thamura wrote: > but the quetion from this thread is to implement smiliar > like you did in roller project I know, but I didn't have anything to do with that project, so I don't know. Dave - To unsub

Re: smart URLs

2008-12-10 Thread Frans Thamura
On Thu, Dec 11, 2008 at 6:55 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Wed, 12/10/08, Frans Thamura wrote: > > your blog project is cool my friend > > No, really, I don't have anything to do with it. > but the quetion from this thread is to implement smiliar like you did in roller proje

Re: smart URLs

2008-12-10 Thread Dave Newton
--- On Wed, 12/10/08, Frans Thamura wrote: > your blog project is cool my friend No, really, I don't have anything to do with it. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: smart URLs

2008-12-10 Thread Frans Thamura
your blog project is cool my friend http://frans.thamura.info/roller/flatburger this is Smart URL like implementation :) F On Thu, Dec 11, 2008 at 6:34 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > I don't have anything to do with JRoller :) > > Dave > > --- On Wed, 12/10/08, Frans Thamura <[EM

Re: smart URLs

2008-12-10 Thread Dave Newton
I don't have anything to do with JRoller :) Dave --- On Wed, 12/10/08, Frans Thamura <[EMAIL PROTECTED]> wrote: > > I was about to say the same thing. > "SmartUrls" is now "Convention" in > > the Struts sandbox (/facepalm), and it cannot be used > to implement > > what this thread is asking for.

Re: smart URLs

2008-12-10 Thread Frans Thamura
On Thu, Dec 11, 2008 at 6:01 AM, Musachy Barroso <[EMAIL PROTECTED]> wrote: > I was about to say the same thing. "SmartUrls" is now "Convention" in > the Struts sandbox (/facepalm), and it cannot be used to implement > what this thread is asking for. > there is real implementation of the smart ur

Re: smart URLs

2008-12-10 Thread Musachy Barroso
I was about to say the same thing. "SmartUrls" is now "Convention" in the Struts sandbox (/facepalm), and it cannot be used to implement what this thread is asking for. musachy On Wed, Dec 10, 2008 at 5:54 PM, Zoran Avtarovski <[EMAIL PROTECTED]> wrote: > Not to be rude, but I don¹t think the sma

Re: smart URLs

2008-12-10 Thread Zoran Avtarovski
Not to be rude, but I don¹t think the smart url plugin exists anymore. I had the impression it was folded into the convention plugin. As far as mapping params I¹m not sure it does what Anders was after. Somebody with more experience with the convention plugin can answer that better. Z. > > the qu

Re: smart URLs

2008-12-10 Thread Frans Thamura
the question is how to implement smart url :) so is there a relevan example or is this plugins not ready yet f On Thu, Dec 11, 2008 at 4:05 AM, Martin Gainty <[EMAIL PROTECTED]> wrote: > > > was wondering what encryption to use when clear-text params are coming > across the wire > > thanks, > M

RE: Help with S:Select

2008-12-10 Thread Richa Pandharikar
I also found out the solution for reading the multiple values for a select tag. -Original Message- From: Richa Pandharikar [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2008 3:43 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Help with S:Select I have resolv

RE: Help with S:Select

2008-12-10 Thread Richa Pandharikar
I have resolved the issue with validating a drop down box created with - !(user.department).equals("-1") Please select a department. Alternatively, a plain validator can also be used - !(user.department).equal

RE: Help with S:Select

2008-12-10 Thread Martin Gainty
check that the param "expression" is enclosed in CDATA (Character Data) tag e.g. myField Joes credit limit should be MORE than Palin http://struts.apache.org/2.0.14/struts2-core/apidocs/com/opensymphony/xwork2

RE: smart URLs

2008-12-10 Thread Martin Gainty
was wondering what encryption to use when clear-text params are coming across the wire thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmissio

Re: smart URLs

2008-12-10 Thread Zoran Avtarovski
We¹ve been using UrlRewrite ( http://tuckey.org/urlrewrite/) for a while with absolutely no issues. Z. > > > For a CMS project I require the following functionality: > > Translate/map a URL like > 'http://www.mydomain.com/marketnews/asiapacific/latest' into an action with > request parameters '

Re: Please help! Validation Errors

2008-12-10 Thread Andy Sykes
Faraz, I think at this point some code would help. Could you post your struts.xml, and the action? Andy. On 10 Dec 2008, at 17:16, Faraz Ali wrote: Yes Andy, you are right. I added the , but why it is executing automatically. It is executed automatically when i start my application. On

Re: Can I access static member variable from application scope object?

2008-12-10 Thread Burton Rhodes
So how would it work for the application scoped variables? #application['scMyAppProperties'[EMAIL PROTECTED] [EMAIL PROTECTED]@xactionStatusLookups [EMAIL PROTECTED]@xactionStatusLookups none of these seem to do the trick? On Wed, Dec 10, 2008 at 11:56 AM, Dave Newton <[EMAIL PROTECTED]> wrote:

[S2] ActionValidatorManager configuration

2008-12-10 Thread Relph,Brian
Hello, I would like to change the ActionValidatorManager that is being used in the ValidationInterceptor. It appears that the DefaultActionValidatorManager gathers all of the Validators and puts them in a list that has a "parent-first" type ordering, where if you have Animal and Dog extends A

RE: Help with S:Select

2008-12-10 Thread Richa Pandharikar
I tried to follow the information on one of the post on how to do this but till it is not very clear to me. Can anyone point me to the documentation where the usage are explained in detail? I am also facing the problem in validating the s:select field as a required field. I tried using this bu

Re: Problem with

2008-12-10 Thread Dave Newton
First, I'll point you to the Struts 2 documentation wiki: most of what you ask here is covered--spend some time with it, the payoff is huge. http://struts.apache.org/2.x/docs/guides.html --- On Wed, 12/10/08, Faraz Ali wrote: > My action class name is MyAction. I define two string > variables va

Re: Can I access static member variable from application scope object?

2008-12-10 Thread Dave Newton
And make static property names all upper-case, in keeping with Java style. Those reading your code will thank you (after the naming change, anyway). --- On Wed, 12/10/08, Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> wrote: > From: Nils-Helge Garli Hegvik <[EMAIL PROTECTED]> > Check the section abo

Re: Please help! Validation Errors

2008-12-10 Thread Dave Newton
--- On Wed, 12/10/08, Faraz Ali wrote: > i mean when i access my application's main page. when i > hit http://localhost:8080/mywebapp. If you hit an action that has validations then this is correct behavior. There are a few ways to handle this, including defining an action that runs the action's

Re: Please help! Validation Errors

2008-12-10 Thread Faraz Ali
i mean when i access my application's main page. when i hit http://localhost:8080/mywebapp. On Thu, Dec 11, 2008 at 1:20 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Wed, 12/10/08, Faraz Ali wrote: > > Yes Andy, you are right. I added the , but why it > > is executing automatically. It i

Problem with

2008-12-10 Thread Faraz Ali
I am having many problems while running some very common tasks in a struts2 web application. I just to create an anchor tag which will call some action. I also want to pass some parameters. Below is what i am trying to do. My action class name is MyAction. I define two string variables varA and va

Re: Can I access static member variable from application scope object?

2008-12-10 Thread Nils-Helge Garli Hegvik
Check the section about accessing static properties at http://struts.apache.org/2.0.14/docs/ognl-basics.html Nils-H On Wed, Dec 10, 2008 at 6:27 PM, Burton Rhodes <[EMAIL PROTECTED]> wrote: > I hope this isn't a "basic java" question, but I am having a hard time > figuring out why I can't access

Can I access static member variable from application scope object?

2008-12-10 Thread Burton Rhodes
I hope this isn't a "basic java" question, but I am having a hard time figuring out why I can't access a static member variable from a class in the application scope in my jsp file. Really appreacite any help! JSP excerpt below ---

Help with S:Select

2008-12-10 Thread Richu
I have a select tag defined as - Does anyone has a working example of how to read the multiple values of an object type (here Project) selected from the select box in the action method? Also, do I need to use a converter as the collection being passed to populate the list items contains the o

Re: Please help! Validation Errors

2008-12-10 Thread Dave Newton
--- On Wed, 12/10/08, Faraz Ali wrote: > Yes Andy, you are right. I added the , but why it > is executing automatically. It is executed automatically when i start > my application. What do you mean by "when i start my application"? Are you visiting a URL? Dave

Re: Please help! Validation Errors

2008-12-10 Thread Faraz Ali
Yes Andy, you are right. I added the , but why it is executing automatically. It is executed automatically when i start my application. On Wed, Dec 10, 2008 at 6:19 PM, Andy Sykes <[EMAIL PROTECTED]> wrote: > Faraz, > > When using validation, the input result tells Struts where to > dispatch/redi

Re: Validating Autocompleter using javascript

2008-12-10 Thread Dave Newton
Have you looked at the rendered HTML? AFAIK you'd need to use the Dojo mechanisms for accessing Dojo component values. Dave --- On Wed, 12/10/08, aum strut <[EMAIL PROTECTED]> wrote: > From: aum strut <[EMAIL PROTECTED]> > Subject: Validating Autocompleter using javascript > To: "Struts Users

Re: smart URLs

2008-12-10 Thread stanlick
Have you looked at Sling? On Wed, Dec 10, 2008 at 2:04 AM, AndersLandberg <[EMAIL PROTECTED]>wrote: > > For a CMS project I require the following functionality: > > Translate/map a URL like > 'http://www.mydomain.com/marke

Validating Autocompleter using javascript

2008-12-10 Thread aum strut
Do any one have any suggestion regarding this problem or do i need to drop down the idea of using autocompleter??? Hi all, i am struck in a simple problem but not able to proceed as i m unable to find any solution for this. I am using struts2 UI tags and in order to validate the user input i am u

Re: getOutputStream() has already been called for this response

2008-12-10 Thread Dave Newton
When you return SUCCESS you're asking S2 to process the response normally. I'd assume you'd need to return null to indicate that S2 shouldn't do anything. I don't actually know if that works, because there's a stream result type designed specifically for this situation. Dave --- On Wed, 12/10

getOutputStream() has already been called for this response

2008-12-10 Thread red phoenix
I use struts2.0.11,I want to show a picture by struts action,like follows: public String showphoto() throws Exception{ response=ServletActionContext.getResponse(); response.setContentType("image/png"); ... InputStream in = picture.getBinaryStream(); OutputStream out = response.g

Re: html:select for a string list

2008-12-10 Thread elyes sallem
Thanks a lot Mark, It works like this Best Regards Elyes 2008/12/10 Mark Shifman <[EMAIL PROTECTED]> > Try using html:options instead of optionsCollection. > > elyes sallem wrote: > > Hello, > > i have a html:select in a html:form > > this select is build from a List valLis, defined in an action

Re: html:select for a string list

2008-12-10 Thread Mark Shifman
Try using html:options instead of optionsCollection. elyes sallem wrote: > Hello, > i have a html:select in a html:form > this select is build from a List valLis, defined in an actionForm > i used the html:select in a list of object , it work > but now it is a list of string, so i have not value a

html:select for a string list

2008-12-10 Thread elyes sallem
Hello, i have a html:select in a html:form this select is build from a List valLis, defined in an actionForm i used the html:select in a list of object , it work but now it is a list of string, so i have not value and label i need just to recuperate the value and set the list of string what must i

[S2] Struts + JasperReports (iReport) - setting connection

2008-12-10 Thread Milan Milanovic
Hi, I'm following this tutorial for integrating JasperReports in Struts app: http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html . But I'm wondering how I should set up my connection on my report (e.g., in iReport de

Re: smart URLs

2008-12-10 Thread David Canos
I'm not really sure and I cannot reproduce but one of the solutions about seems to work fine. 1) based in a Application Server. I know lamp coders use the apache mod_rewrite to solve this issue. 2) have you try this: {1} ... remember to scape the slashes. 2008/12/10 AndersLandberg <[EMAIL

Re: S2: Forward or Redirect to same page

2008-12-10 Thread Dirk Forchel
Sébastien Domergue wrote: > > we had nearly the same problem in a project and we had to build our own > stack (which contained both action and jsp names) and when we wanted to > go back we used the stack. In the meantime I wrote my own history stack with the request URIs pushed to the stack.

RE: Cannot find bean in any scope

2008-12-10 Thread Givler, Eric
Sorry about that... I really think the tutorials on the Learntechnology site are better for learning struts. They all come with downloadable war files. Head on over to: http://www.learntechnology.net/content/main.jsp and check them out. -Original Message- From: Givler, Eric [mailto:[E

Re: Shound not showing some page of top and bottom links (tamplate)

2008-12-10 Thread Musachy Barroso
The answer is 42. Now seriously, what are you asking again? musachy On Wed, Dec 10, 2008 at 2:37 AM, Seshagiri V <[EMAIL PROTECTED]> wrote: > Hi All, > > > > I have used namespace and also template for top and bottom links in all > pages. But not required some pages. > > Please give any solution.

Re: not able to send the message to jsp

2008-12-10 Thread Dave Newton
--- On Wed, 12/10/08, taj uddin wrote: > I was able to reach the xyz.jsp but without any message being > rendered. So, can u pls figure out where am i going wrong. ... It'd be easier to help if we knew... well, *anything* about your code and configuration. Dave --

not able to send the message to jsp

2008-12-10 Thread taj uddin
Hi, In my application i have passed a message to the addActionMessage in my action class. Where the action class maps to the xyz.jsp on success. In the xyz.jsp file i have specified both the and tags. I was able to reach the xyz.jsp but without any message being rendered. So, can u pls figur

not able to send the message to jsp

2008-12-10 Thread taj uddin
Hi, In my application i have passed a message to the addActionMessage in my action class. Where the action class maps to the xyz.jsp on success. In the xyz.jsp file i have specified both the and tags. I was able to reach the xyz.jsp but without any message being rendered. So, can u pls figur

Re: Is HttpSessionListener a singleton and/or initialized by Spring?

2008-12-10 Thread Nils-Helge Garli Hegvik
Take a look at the servlet specification [1], section SRV.10 about application lifecycle events. Instantiation of the listeners are done by the servlet container, so Spring have nothing to do with that. Nils-H [1] - http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html On Wed, Dec 10

Re: Please help! Validation Errors

2008-12-10 Thread Andy Sykes
Faraz, When using validation, the input result tells Struts where to dispatch/ redirect to if there's a validation error. When you submit the form, Struts checks the fields against the validation XML - if there's an error, it adds FieldError objects to the FieldErrors object on the value s

Is HttpSessionListener a singleton and/or initialized by Spring?

2008-12-10 Thread Stephan Schröder
I have a Struts 2 webapp with Spring 2.5 as ObjectFactory. I have a HttpSessionListener-Class which is configured in web.xml: util.servlet.UserTimeoutListener I assume that 1) this class will be instanciated as a singleton. 2) Spring will have nothing to do with the instanciation. Am i rig

How do i get a field value inside a custom Struts Validator, when the field’s type is FormFile?

2008-12-10 Thread Sergio del Amo Caballero
I am using struts 1.3.8 and I have a form field of type org.apache.struts.upload.FormFile. I would like to validate the field's size with a custom struts validator. To get the field's value, i have used for a text field the next code: String value = ValidatorUtils.getValueAsString(bean,field.getPr

Re: S2: Forward or Redirect to same page

2008-12-10 Thread Sébastien Domergue
Hi, we had nearly the same problem in a project and we had to build our own stack (which contained both action and jsp names) and when we wanted to go back we used the stack. Nevertheless, i don't think you need to keep the whole stack and you could give the jsp name as a parameter of your fo

S2: Forward or Redirect to same page

2008-12-10 Thread Dirk Forchel
I have a problem forwarding to the same page after a request is submitted by a form. This could be straightforward until this form is only on the same page. In this case I would use a "dispatcher" to forward to the appropriate JSP. But how can I forward to the "same page" if I use the same form on

smart URLs

2008-12-10 Thread AndersLandberg
For a CMS project I require the following functionality: Translate/map a URL like 'http://www.mydomain.com/marketnews/asiapacific/latest' into an action with request parameters 'marketnews', 'asiapacific', 'latest'. Background: I have a virtual file/folder system in a database and want to ma