Re: Struts Validation with restful URL

2010-11-08 Thread Edward Seager
Had a look in the soruce for 2.21 AnnotationActionValidatorManager line 226 replaces any / in the action alias with -. So in the example below I would have to give the file the succinct name CreatePortalUserAction-CreatePortalUser-persistCustomer-validation.xml :-) On Thu, Nov 4, 2010 at 12:00

Re: Struts Tiles Problem

2010-11-08 Thread Andy T
Thanks to all who have responded thus far . . . I think I forgot to add the Tiles Plugin to my struts-config.xml file. However when I do this I get HTTP Status 404 - Servlet action is not available . . . On Sat, Nov 6, 2010 at 2:47 AM, Lukasz Lenart lukasz.len...@googlemail.com wrote:

Re: Struts Tiles Problem

2010-11-08 Thread Paul Benedict
I don't know if this is your problem, per se, but you can't redirect to a tile. A Tile is just an alias/synonym for a jsp rendering. You can only forward to one. Paul On Mon, Nov 8, 2010 at 8:58 AM, Andy T verygoofy...@gmail.com wrote: Thanks to all who have responded thus far . . . I think I

RE: Have you ever used InputConfig annotation?

2010-11-08 Thread Alfredo Manuel Osorio Martinez
Hello, I still don't believe using a framework-defined method, whose intent is to return a string result name, to load data is an expressive design. Are you saying that input methods shouldn't have any logic in and just return the string of the result. If that's the case where should you

ONGL EL expression problem.

2010-11-08 Thread Mead Lai
Hello all, I have a Action contain a list ListadminTitleVO, and a String property titleID, how to display the value from list? Detail code is here: //**IndexAction** public class IndexAction{ private ListAdminTitleVO list; private String titleID; //get set public String

Re: Struts Tiles Problem

2010-11-08 Thread Lukasz Lenart
2010/11/8 Andy T verygoofy...@gmail.com: Hi Lukasz, I have struts-tiles-1.3.8.jar loaded . . . is this what you mean? Yes, it should be sufficient, could you post your struts config? Below is extract from the log you sent me. FATAL main org.apache.struts.tiles.TilesPlugin - TilesPlugin :

Re: ONGL EL expression problem.

2010-11-08 Thread Li Ying
s:iterator value=list.{?#this.id == titleID'} Is there an unnecessary quotation mark after [titleID]? Try delete it and see if works. If it still not working, My suggestion is: (1)you can implement the search logic in the method [viewPage], and access the search result via a new property.

Re: Have you ever used InputConfig annotation?

2010-11-08 Thread Dave Newton
On Mon, Nov 8, 2010 at 10:07 AM, Alfredo Manuel Osorio Martinez wrote: Are you saying that input methods shouldn't have any logic in and just return the string of the result. If that's the case where should you retrieve those list values? What other alternatives do I have? The only other one

Re: Struts Tiles Problem

2010-11-08 Thread Andy T
Hi Lukasz, Your identification of the exact cause of the error has helped me to solve this problem. The problem is here: controller set-property property=processorClass value=EricEnhancement.util.CustomRequestProcessor/ /controller For whatever reason the CustomRequestProcessor I was

Re: Struts Tiles Problem

2010-11-08 Thread Dave Newton
Subclass the TilesRequestProcessor instead of the normal one. Dave On Mon, Nov 8, 2010 at 1:08 PM, Andy T verygoofy...@gmail.com wrote: Hi Lukasz, Your identification of the exact cause of the error has helped me to solve this problem.  The problem is here: controller    set-property  

RE: Have you ever used InputConfig annotation?

2010-11-08 Thread Alfredo Manuel Osorio Martinez
Hello Dave and thanks for your response, I think I didn't explain myself what I tried to say is whenever you submit to the action that will process the input data that action's prepare (or prepareXXX) needs to know how to populate the data needed for the input result and that's because if

Form load null in struts1.3.8

2010-11-08 Thread Anjib Mulepati
I am suing Struts 1.3.8 to write a file upload application. I am not using common-upload plugin. The problem I am having right now is my form bean get null for text field if I try to upload larger file (200MB) but work fine when i try with less size files. I couldn't understand what's going on

Re: RE: Have you ever used InputConfig annotation?

2010-11-08 Thread Dave Newton
And I'm saying #1 that a testable action is worth a lot and #2 you can trivially avoid unnecessary prepare calls. Dave On Nov 8, 2010 1:54 PM, Alfredo Manuel Osorio Martinez alfredo.oso...@afirme.com wrote: Hello Dave and thanks for your response, I think I didn't explain myself what I tried

RE: RE: Have you ever used InputConfig annotation?

2010-11-08 Thread Alfredo Manuel Osorio Martinez
Hello Dave, you can trivially avoid unnecessary prepare calls. How can I avoid unnecessary prepare calls? I mean how can I avoid the prepare method won't be called if there are not validation errors. Thanks in advance Alfredo Osorio -Mensaje original- De: Dave Newton

Re: RE: Have you ever used InputConfig annotation?

2010-11-08 Thread Dave Newton
On Mon, Nov 8, 2010 at 5:58 PM, Alfredo Manuel Osorio Martinez wrote: you can trivially avoid unnecessary prepare calls. How can I avoid unnecessary prepare calls? I mean how can I avoid the prepare method won't be called if there are not validation errors. De: Dave Newton

how do i align elements?

2010-11-08 Thread m.harig
hi all , am designing a user creation page in struts2 , i want to align the elements as per my requirements , how do i make it? because struts2 itself align the elements by its own , is there anyway to override it? please any1 help me -- View this message in context:

Re: how do i align elements?

2010-11-08 Thread Dave Newton
Use the simple theme, or override the theme, or use the CSS theme, or override the CSS. Dave On Monday, November 8, 2010, m.harig m.ha...@gmail.com wrote: hi all ,       am designing a user creation page in struts2 , i want to align the elements as per my requirements , how do i make it?

Back button after log out should not show secure content.

2010-11-08 Thread Ken McWilliams
I know it depends on the browser but this is a best effort thing and am looking for input on my current plan. When user signs on send the current date/time of the client along with credentials and record the offset in the session (if any). All subsequent pages will have a hidden date/time field.