Busy script dialog box appear with Mozilla 2.0.0.8

2008-01-31 Thread sagarlotiya
Hi When i am trying user At certain place in Mozilla 2.0.0.8 it displays Busy script dialog box. If i remove the then it solves this problem. But i want to use . If any one know the cause of this problem and solution please tell me. Thank you -- View this message in context: http://www.nabb

[S2] Stringlength validator

2008-01-31 Thread hezjing
Hi I think there are typo error in http://struts.apache.org/2.x/docs/stringlength-validator.html Missing closing double quote: 10 Invalid ending tag: should be Do we need ? -- Hez - To unsubscribe, e-mail: [EMAIL PROTECT

Re: dojo script for DATEPICKER tag

2008-01-31 Thread Wes Wannemacher
I haven't tried it, but I would think that something like - startDate="@[EMAIL PROTECTED]().getTime()" might work. It should be a fairly trivial exercise to use OGNL to set the parameters dynamically. -Wes On Fri, 2008-02-01 at 03:52 +, Naveen Kumar M wrote: > Thanks ravichandrac, > > Y

Re: dojo script for DATEPICKER tag

2008-01-31 Thread Naveen Kumar M
Thanks ravichandrac, Yes I know it will preset the date value to the date you set in action class, but my question is basically to limit the Date selection from the date picker created by datepicker tag, however which contains parametes called startDate and endDate, so m,y requirment I just wna

Re: session or interceptor initialization / configuration problem

2008-01-31 Thread jspring
As it turns out, I was accessing the session in the interceptor by final ActionContext context = invocation.getInvocationContext (); HttpServletRequest request = (HttpServletRequest) context.get(HTTP_REQUEST); HttpSession session = request.getSess

Re: Struts2 tags loops

2008-01-31 Thread Dave Newton
--- Filipe David Manana <[EMAIL PROTECTED]> wrote: > Is there any way to iterate over an integer range with the > tag? I have an integer property (pageCount) in my action and I want to > print all the integer values between 1 and this property in my JSP. Not that I'm aware of; easier to use IMO.

RE: Help with (1...N) Editing using Ajax?

2008-01-31 Thread Griffith, Michael *
In fact, looking at the page source, it appears the expression is never cooked... Here's the input from the rendered page: -Original Message- From: Musachy Barroso [mailto:[EMAIL PROTECTED] Sent: Thursday, January 31, 2008 4:25 PM To: Struts Users Mailing List Subject: Re: Help with (1.

Doubleselect tag

2008-01-31 Thread Stanley, Eric
I'd like to have a pair of selects, the first one controlling the content of the next. I understand that the tag makes this possible. I just can't make it work. I tried just copying the example: And it does not work either. It populates both selects automatically, and the second select never c

Re: preparable vs modelDriven

2008-01-31 Thread Jeromy Evans
I thought I'd quickly describe my usages and opinions of Preparable and ModelDriven in case it helps any one: - As Dave described, I also prefer to keep my prepare logic with the main code because it's easier for others to understand. - I do use Preparable in the cases where params-prepare-para

Struts2 tags loops

2008-01-31 Thread Filipe David Manana
Hi, Is there any way to iterate over an integer range with the tag? I have an integer property (pageCount) in my action and I want to print all the integer values between 1 and this property in my JSP. cheers -- Filipe David Manana, [EMAIL PROTECTED] Obvious facts are like secrets to those no

RE: Help with (1...N) Editing using Ajax?

2008-01-31 Thread Griffith, Michael *
Nope, nothing. If I bind my form to #guide. I find the first or last item in the Collection that belongs to the parent when the list was iterated over. Maybe there is a better way to specify how to bind the property to the struts control? Maybe something like: But how would I specify the it

Re: Help with (1...N) Editing using Ajax?

2008-01-31 Thread Musachy Barroso
so #session['guide'] is not returning anything? musachy On Jan 31, 2008 5:16 PM, Griffith, Michael * <[EMAIL PROTECTED]> wrote: > Hello all, > > > > I am trying to understand how to present an interface where I allow a > user to edit a master/detail relationship using an Ajax technique. I am > qu

Re: preparable vs modelDriven

2008-01-31 Thread Musachy Barroso
Struts will by default populate parameters in your action, if you use ModelDriven, then you can supply the object that will be populated instead of the action. Implementing preparable will make struts call prepare() before the action is executed, or prepareX() before X() is executed. They are just

Help with (1...N) Editing using Ajax?

2008-01-31 Thread Griffith, Michael *
Hello all, I am trying to understand how to present an interface where I allow a user to edit a master/detail relationship using an Ajax technique. I am quite new to Struts2, so please forgive the dalliance. I have a form that presents the user the ability to edit the master of the master

Re: preparable vs modelDriven

2008-01-31 Thread Adam Hardy
I don't think you are strictly conveying the intended usage, when you say that the getModel() method will 'later' return the model. It depends how your interceptor stack is ordered. In the docs, it explicitly says the ModelDrivenInterceptor should come before ParametersInterceptor, as often the

RE: Struts tags and Filter Dispatcher Url Pattern-struts 2.1.1

2008-01-31 Thread Sanjeev Vijapurapu
That's what I thought but why does tags need stack when I am not accessing any of the values. It just has sx:head. So my question is am I right in saying that struts should be able to render struts tags as it does jstl tags without worrying abt any stack. If stack is null, it should treat it as an

Re: Struts tags and Filter Dispatcher Url Pattern-struts 2.1.1

2008-01-31 Thread Dave Newton
--- Sanjeev Vijapurapu <[EMAIL PROTECTED]> wrote: > So does this mean that if my jsp is using struts tags, it has to go > through filter dispatcher? The filter is what puts the stack into scope so the tags have data to access (more or less). Dave

Re: #request scope

2008-01-31 Thread Musachy Barroso
btw #parameters['model.parentId'] will return an array, not just one value, so #parameters['model.parentId'][0] will give you the value you are looking for. musachy On Jan 31, 2008 2:07 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: > > --- [EMAIL PROTECTED] wrote: > >> Yeah, t

Re: #request scope

2008-01-31 Thread Martin Gainty
//assuming request parameter.. #parameters['model.parentId'] http://struts.apache.org/2.x/docs/ognl-basics.html //if you dont know the scope try #attr['foo'] which will ref request/session/application respectively.. M- - Original Message - From: "Dave Newton" <[EMAIL PROTECTED]> To: "Stru

[S2] problems with validations

2008-01-31 Thread juanc
Hi, i have this code when i get a error if( person.getNumId() == null || person.getNumId().trim().length() < 9 ) { String[] pars = {"8"}; this.addFieldError( "field.doc" , this.getText( "error.val.minlength" , pars ) ); } where "field.doc" it is a key wit

Struts validator

2008-01-31 Thread Zhang, Larry (L.)
Hello coworkers, I have a questions regarding the struts validation..., say I have three text fields to be validated in struts validation, and three submit buttons as well. When I submit one buttion, I only need to validate one field, and when I click on the other submit button, I need to validate

Struts tags and Filter Dispatcher Url Pattern-struts 2.1.1

2008-01-31 Thread Sanjeev Vijapurapu
Hi, I have recently upgraded to struts 2.1.1 and if my struts filter dispatcher url pattern is not "/*" instead it is "/actions/*, /struts/*". And now if I am trying to access a jsp page that is not under that url pattern ( something like /test.jsp), struts tags in that jsp page fail. I get the

Re: preparable vs modelDriven

2008-01-31 Thread Roberto Nunnari
Dave Newton wrote: --- Roberto Nunnari <[EMAIL PROTECTED]> wrote: The prepare() method task is to retrive the model and store it as an instance variable. The getModel() method will later return the model when asked by the framework that will put it on the value stack. Please correct me if I'm

Re: #request scope

2008-01-31 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: > > --- [EMAIL PROTECTED] wrote: > >> Yeah, that's what I thought too! I'm passing the parameter via: > >> > >> > >> > >> > >> > >> and the tag outputs the > >> number to the t

Re: #request scope

2008-01-31 Thread Laurie Harper
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: Yeah, that's what I thought too! I'm passing the parameter via: and the tag outputs the number to the top of the page just fine. Do you have a "model" property in your action? In fact,

Re: Question about Struts 2 Flow Control

2008-01-31 Thread Laurie Harper
claym wrote: One of the things I really liked about Spring MVC was the fact that it was very easy to control the flow of a request. You could use referenceData() to add data that was needed on the page but not necessarily form related, then formBackingObject() for the actual pre-submission form p

Re: ServletActionRedirectResult issue

2008-01-31 Thread Dave Newton
--- Luis Gervaso <[EMAIL PROTECTED]> wrote: > If i put the name "etid" an exception is thrown > > If i put a larger parameter "whateverparametername" or simply "_" as > parameter name the redirect works fine, i know it's sounds weird Oh, I'm sorry; I read it backwards (I thought the wrong paramet

Re: ServletActionRedirectResult issue

2008-01-31 Thread Luis Gervaso
Thanks Dave for the reply, If i put the name "etid" an exception is thrown If i put a larger parameter "whateverparametername" or simply "_" as parameter name the redirect works fine, i know it's sounds weird I thought that it the bug could come if the params attribute was a hash but looking at

Re: preparable vs modelDriven

2008-01-31 Thread Dave Newton
--- Roberto Nunnari <[EMAIL PROTECTED]> wrote: > The prepare() method task is to retrive the model > and store it as an instance variable. > > The getModel() method will later return the model > when asked by the framework that will put it on the > value stack. > > Please correct me if I'm wrong.

Re: preparable vs modelDriven

2008-01-31 Thread Musachy Barroso
you are right. On Jan 31, 2008 1:12 PM, Roberto Nunnari <[EMAIL PROTECTED]> wrote: > The prepare() method task is to retrive the model > and store it as an instance variable. > > The getModel() method will later return the model > when asked by the framework that will put it on the > value stack.

Re: PO Question about Struts2

2008-01-31 Thread Musachy Barroso
> I need to know that is for every request to server the action is > instantiated and destroyed after ? or what ? Yes the action is instantiated on every request. > Currently i wanna group some method in appropriated actions for best design > . that's fine. > > So doing that is just the same as

Re: preparable vs modelDriven

2008-01-31 Thread Roberto Nunnari
The prepare() method task is to retrive the model and store it as an instance variable. The getModel() method will later return the model when asked by the framework that will put it on the value stack. Please correct me if I'm wrong. Best regards. -- Robi Adam Hardy wrote: Dave Newton on

Re: ServletActionRedirectResult issue

2008-01-31 Thread Dave Newton
I'm not sure I understand; in your annotation example you deliberately provide a wrongly-named parameter, right? Why? Dave --- Luis Gervaso <[EMAIL PROTECTED]> wrote: > My workaround > > @Result(name="success",value="/jsp/tables/findAllTablesRedirect.jsp", type= > ServletDispatcherResult.class)

PO Question about Struts2

2008-01-31 Thread issueTracker
i use struts2 as back end for my ajax application. I need to know that is for every request to server the action is instantiated and destroyed after ? or what ? Currently i wanna group some method in appropriated actions for best design . So doing that is just the same as my first design? no me

Re: ServletActionRedirectResult issue

2008-01-31 Thread Luis Gervaso
My workaround @Result(name="success",value="/jsp/tables/findAllTablesRedirect.jsp", type= ServletDispatcherResult.class) /jsp/tables/findAllTablesRedirect.jsp: <% response.sendRedirect("/eventoos/tables/findAllTables.action?eid="+request.getParameter("eid")+"&etid="+request.getParameter("etid")

ServletActionRedirectResult issue

2008-01-31 Thread Luis Gervaso
Hi, When I try to configure un ServletActionRedirectResult i obtain Caused by: java.lang.NullPointerException at org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getUriFromActionMapping(DefaultActionMapper.java:466) at org.apache.struts2.dispatcher.ServletActionRedirect

Re: preparable vs modelDriven

2008-01-31 Thread Adam Hardy
Dave Newton on 31/01/08 16:00, wrote: Adam Hardy <[EMAIL PROTECTED]> wrote: Dave Newton on 31/01/08 15:29, wrote: Adam Hardy <[EMAIL PROTECTED]> wrote: * ModelDriven: how do I get hold of my model during my action methods? I don't want to get getModel() again, because that will retrieve anoth

Re: preparable vs modelDriven

2008-01-31 Thread Dave Newton
Adam Hardy <[EMAIL PROTECTED]> wrote: > Dave Newton on 31/01/08 15:29, wrote: >> Adam Hardy <[EMAIL PROTECTED]> wrote: >>> * ModelDriven: how do I get hold of my model during my action methods? I >>> don't want to get getModel() again, because that will retrieve another >>> instance of the entity

Re: preparable vs modelDriven

2008-01-31 Thread Adam Hardy
Dave Newton on 31/01/08 15:29, wrote: --- Adam Hardy <[EMAIL PROTECTED]> wrote: * ModelDriven: how do I get hold of my model during my action methods? I don't want to get getModel() again, because that will retrieve another instance of the entity and not the one that was populated by struts.

Response/Session pattern for this use-case?

2008-01-31 Thread Giovanni Azua
hi, I have the following use case: - User provide some input and triggers a long-running simulation process. - execAndWait interceptor is used while the process is in progress. - Results are displayed in a report that includes many displaytag instances along with some charts. Because some of

Re: preparable vs modelDriven

2008-01-31 Thread Dave Newton
--- Adam Hardy <[EMAIL PROTECTED]> wrote: > Is my understanding correct that Preparable and ModelDriven are 2 different > ways of doing the same thing, or are they complementary in any way? They *could* be used to do the same thing, but IMO Preparable is more general-purpose than ModelDriven, and

preparable vs modelDriven

2008-01-31 Thread Adam Hardy
Is my understanding correct that Preparable and ModelDriven are 2 different ways of doing the same thing, or are they complementary in any way? After reading up on the website there are a few questions that spring to mind. * ModelDriven: how do I get hold of my model during my action methods? I

Re: #request scope

2008-01-31 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Yeah, that's what I thought too! I'm passing the parameter via: > > > > > > and the tag outputs the > number to the top of the page just fine. Do you have a "model" property in your action? > In fact, if I

Re: Please help me in Coding

2008-01-31 Thread Martin Gainty
Good Morning can you display or attach the following files? your working copy of Struts2HelloWorld.java your working copy of HelloWorld.jsp your working copy of login.jsp your working copy of loginsuccess.jsp your working copy of ControlTagsIf.jsf Thanks M- - Original Message - From: "iha

[S2] problems with validations

2008-01-31 Thread Juan Carlos Serrano
Hi, i have this code when i get a error if( person.getNumId() == null || person.getNumId().trim().length() < 9 ) { String[] pars = {"8"}; this.addFieldError( "field.doc" , this.getText( " error.val.minlength" , pars ) ); } where "field.doc" it is a key wit

Re: Type converters: convertToString not called

2008-01-31 Thread ravi_eze
one more thing, then when would this method be called?? sounds like redundant. ravi_eze wrote: > > hi, > > thanks for the reply. If the design had this behavior intended then > probably we cannot do any thing but in that case i would not agree > with the design. I read the post linked bel

Re: Type converters: convertToString not called

2008-01-31 Thread ravi_eze
hi, thanks for the reply. If the design had this behavior intended then probably we cannot do any thing but in that case i would not agree with the design. I read the post linked below and also the bug... but still unable to understand the reason behind for such a design. i think i will now

Re: Type converters: convertToString not called

2008-01-31 Thread ravi_eze
hi, thanks for the reply. If the design had this behavior intended then probably we cannot do any thing but in that case i would not agree with the design. I read the post linked below and also the bug... but still unable to understand the reason behind for such a design. i think i will now

Re: Type converters: please help!!! :(

2008-01-31 Thread ravi_eze
any help? had any one encountered a similar situation. i am pasting thelink straight to the problem so that u need not navigate throught the discussion threads to locate it. http://www.nabble.com/Type-converters%3A-convertToString-not-called-to15034925.html any help would be great. regards,

Re: dojo script for DATEPICKER tag

2008-01-31 Thread ravi_eze
hi, if i am uderstanding u right then this should solve ur problem. action class: Date inpDate = new Date(); jsp page: so for the fist time when the page is being displayed the inpDate is set ot the current date which will solve ur problem hope this helps. cheers, ravi Naveen Kumar M wro

Re: dojo script for DATEPICKER tag

2008-01-31 Thread Naveen Kumar M
THANKS Wannemacher FOR YOUR REPLY. My question is, I want to change the values being assigned the startDate and endDate parameters for the tag. So for example page using my datepicker is loaded in to browser today, than startDate should be todays systems date, for the same in next coming day th

Re: Please help me in Coding

2008-01-31 Thread Mark McLaren
You could try: I'm sure there are many such CSV related utilities out there. Mark On Jan 31, 2008 9:32 AM, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2008/1/31, ihaveareason <[EMAIL PROTECTED]>: > > > > > > Hi, > > Any one please help in coding i have

Re: Please help me in Coding

2008-01-31 Thread Antonio Petrelli
2008/1/31, ihaveareason <[EMAIL PROTECTED]>: > > > Hi, > Any one please help in coding i have to bring CSV(comma separated values) > datas through struts.I can able to run java file successfully,but iam > getting errors in Struts.xml. Here by i pasted the java file and > Struts.xml. > Please help m

Please help me in Coding

2008-01-31 Thread ihaveareason
Hi, Any one please help in coding i have to bring CSV(comma separated values) datas through struts.I can able to run java file successfully,but iam getting errors in Struts.xml. Here by i pasted the java file and Struts.xml. Please help me its urgent. http://www.nabble.com/file/p15200971/Stock.jav