Error Stream closed while validator put

2008-05-09 Thread hns
hi i have validate fileds password and re-password must same as expression using validator type=expression passwd eq repasswd messagePassword and Re-password must be same/message /validator when i put this in my *-validator.xml and try to check givin difference fiield value gives error like

Re: OGNL

2008-05-09 Thread Jeromy Evans
Adam Hardy wrote: I initially shied away from doing that because I figured that later on in the show we might want to use Collection sub-class x, y or z. However the alternatives were too time-consuming, so I have done just what you said. I am now the proud owner of BidirectionalChildList()

Re: Injecting Spring Services into Struts 2 Actions

2008-05-09 Thread Laurie Harper
Is what a Spring 2.5 thing? AFAIK, you need to set the action mapping's 'class' attribute to the Spring bean identifier to get injection via the spring plugin... but maybe I'm just tiered and not thinking it through :-/ L. Dave Newton wrote: Is this a Spring 2.5 thing? I'm not using 2.5 yet

Re: OGNL

2008-05-09 Thread Adam Hardy
Jeromy Evans on 09/05/08 08:05, wrote: Adam Hardy wrote: I initially shied away from doing that because I figured that later on in the show we might want to use Collection sub-class x, y or z. However the alternatives were too time-consuming, so I have done just what you said. I am now the

Re: Struts 2 file upload size validation

2008-05-09 Thread Rubbinio
mgainty wrote: 2.0.11 FileUploadIntereptor.java ActionContext ac = invocation.getInvocationContext(); HttpServletRequest request = (HttpServletRequest) ac.get(ServletActionContext.HTTP_REQUEST); HashMap map = request.getParameterMap(); //for further information take a look at

Re: s:select problem

2008-05-09 Thread Arpan Debroy
Hi Laurie, My JPA query is like that Query query = em.createQuery(*SELECT c.name, c.id FROM Group c ORDER BY c.name*); ListGroup resultList = query.getResultList(); My resultList have all the values.It has the list of rows of id(numerical) and name(string). Group entity has id of long

Re: Injecting Spring Services into Struts 2 Actions

2008-05-09 Thread Musachy Barroso
If you are refering to the annotations, yes they are an spring 2.5 thing (about time!). musachy On Fri, May 9, 2008 at 3:14 AM, Laurie Harper [EMAIL PROTECTED] wrote: Is what a Spring 2.5 thing? AFAIK, you need to set the action mapping's 'class' attribute to the Spring bean identifier to get

What is the functionality of struts 2 anchor tag?

2008-05-09 Thread akshi gupta
Hello, If we use anchor tag like this : (ListSuccess.jsp) : %@ taglib prefix=s uri=/struts-tags% . . s:url id=edit action=edit method=input namespace=/ / s:a href=%{edit} Edit/s:a

tomcat 5.5 migrate to 6.0, but struts 1.x ...

2008-05-09 Thread john lee
Hi, i installed Tomcat 6.0.16, and move existing application from tomcat 5.5 to tomcat 6.6. after doing so, then i make the change to server.xml(global) only, add the block of Context to reflect the existing/transfered application but when i do test, receive error

Accessing ServerName property from request

2008-05-09 Thread Zoran Avtarovski
I need to access the getServerName method of the request from an action, but I¹d like to do it via the request map. What parameter do pass the get method? I couldn¹t find anything on the site. Z.

Re: Injecting Spring Services into Struts 2 Actions

2008-05-09 Thread Dave Newton
--- Laurie Harper [EMAIL PROTECTED] wrote: Is what a Spring 2.5 thing? AFAIK, you need to set the action mapping's 'class' attribute to the Spring bean identifier to get injection via the spring plugin... Oh; I wonder why I don't have to do that. My understanding was that they only need to

Re: What is the functionality of struts 2 anchor tag?

2008-05-09 Thread Musachy Barroso
I am not really sure why you want to know but here is the short explanation: s:url id=edit action=edit method=input namespace=/ This will construct a url like: /edit.action, and push it into the stack, associated with the key edit (from the id attribute). Later on s:a href=%{edit} Edit/s:a

Re: What is the functionality of struts 2 anchor tag?

2008-05-09 Thread akshi gupta
Actually I am writing my own custom tag by extending AnchorTag class because I want href value for some business rules thats why I wanthref evaluated value. Now can you tell me from which method href evaluated value is coming? Thanks, Akshi Musachy Barroso wrote: I am not really sure why

Re: What is the functionality of struts 2 anchor tag?

2008-05-09 Thread Musachy Barroso
In org.apache.struts2.components.Achor public void evaluateExtraParams() { super.evaluateExtraParams(); if (href != null) addParameter(href, ensureAttributeSafelyNotEscaped(findString(href))); } On Fri, May 9, 2008 at 9:59 AM, akshi gupta [EMAIL PROTECTED] wrote:

2 Dimensional arrays?

2008-05-09 Thread Michael Gagnon
Is it possible to get back 2D arrays from a form? I want to be able to have a table with some number of rows. Each row has a 'grouping' field which the user can enter a number in. Each row will also have a dynamic 'foo' column which will have a button to add additional 'foo' values. Some

Re: struts 2.1.2 - strange bug

2008-05-09 Thread Joachim Rohde
Hi, you are using spring, aren't you? If so, you have to set the scope of your bean in the applicationContext.xml to prototype (or setting the attribute singleton to false, depending on the version of spring you are using). Joachim Alec C4 schrieb: Hi, all. I have a config with

default interceptor stack

2008-05-09 Thread David Harland
Is it possible to set a different default interceptor stack per package using default-interceptor-ref? I have split my struts configuration into mutiple files each with a different package name. I have set the default in the first file and the default for the second in the second file but the

RE: How to validate a checkboxlist?

2008-05-09 Thread Allen, Daniel
If you want client-side anything, wouldn't you want to use JavaScript? As far as I know, everything XWork validation does is on the server. (I would say have a validator in the action bean too, though, in case the use has JS disabled and manages to submit without passing that check.)

RE: 2 Dimensional arrays?

2008-05-09 Thread Allen, Daniel
Hmm. I don't know of a way to make Struts 2 give back 2-D array properties in the auto-magical way that it will do 1-D arrays (doesn't mean there's not one: I keep finding out that a lot of things I want to do can be done by magic if you know the correct XML incantation) but perhaps you could

RE: How to validate a checkboxlist?

2008-05-09 Thread mojoRising
I am using struts 2.0.11, and with the validation framework, client-side validation is of course done using javascript: http://struts.apache.org/2.x/docs/client-validation.html Javascript must be used for my project so I have no problem requiring it. The client side (javascript)validation works

how to include flash file in struts application

2008-05-09 Thread john lee
how to include .swf in struts application? tks john - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

problems nesting TileResults....

2008-05-09 Thread Darren James
Hello All, I have a flow that is basically a toplevel struts2 action having a result of type TilesResult. That tile result has as one if it's attributes another struts2 action that also has a result of type TilesResult. So my tiles.xml looks like this (I've changed names and attributes to

RE: How to validate a checkboxlist?

2008-05-09 Thread Allen, Daniel
I don't know the exact code (I always forget JS details) but the basic idea would be to give your checkboxes IDs in the JSP, then use getElementById() to grab the DOM nodes for them and just do (node.checked == true), then the results. And your submit would have call the method that validates as

RE: 2 Dimensional arrays?

2008-05-09 Thread Michael Gagnon
Thanks for the feedback. For lack of an accepted 'correct' solution on hand, I've gone for the following. If anyone else is interested, it's a not-TOO-horrible solution. The general outline looks like: script type=text/javascript function addDataelement(id) { var x =

RE: How to validate a checkboxlist?

2008-05-09 Thread mojoRising
No, I know how to write Jvascript to do my own validation, that is not a problem. I am trying to use the Struts 2 client side validation to do this for me. That is one of the benefits of the Struts 2 validation framework - you can simply define a form element as 'required' and struts handles all

redirect after logging in

2008-05-09 Thread Jaarthy
Hi, I'm trying to implement a scenario in which if the user who has not logged in clicks on a page for logged in users only should be redirected to login page, and then after logging in he should be redirected to the page he originally requested for. I need to implement this in struts2.Can I

Struts2 Portlet and Hibernate lazy-loading

2008-05-09 Thread Parker Grimes
Hi, Since portlets cannot use servlet session filters like the Spring OpenSessionInViewFilter, what is the recommended approach to the Hibernate lazy-load issue with Struts2 portlets? The Spring Portlet MVC framework has the OpenSessionInViewInterceptor in conjunction with their HandlerMapping