Re: [Stripes-users] Select a radio button on a null value

2009-07-13 Thread Morten Matras
The hack could be to create a new set of get and set methods in the actionbean that "hides" the boolean public String getApproved(){ if (this.getSearchCriteria() == null){ return ""; } else if(this.getSearchCriteria().getApproved() == null){ return ""; } else return ""+ this.getS

Re: [Stripes-users] Permanent redirect?

2009-07-13 Thread Ray Vanderborght
Thanks, the PermanentRedirectResolution does the trick. I'd be in favor of adding something like this if the stripes community was so inclined to add it, with the current constructors continuing to issue temporary redirects: public RedirectResolution(String url, boolean permanent) On Mon, Jul 13,

[Stripes-users] Select a radio button on a null value

2009-07-13 Thread Nathan Maves
Give the html below Both yes no n my action bean I have a property and the get/set methods for the searchCriteria object. In that object there is a Boolean property called approved with valid get/set methods. Every thing works fine save for the time when that property is null. I would expect t

Re: [Stripes-users] Permanent redirect?

2009-07-13 Thread arma...@uwm.edu
Ray, Several months ago I wrote a resolution to handle permanent redirects. The redirect was dependent on information in the database thus I was not able to outsource this to httpd. The code is attached; feel free to use it. Also, to those in the Stripes community, would it make sense to add

Re: [Stripes-users] Permanent redirect?

2009-07-13 Thread Newman, John W
You probably want getContext().getResponse().sendError(HttpServletResponse.SC_MOVED_PERMANENTLY); You could wrap that inside a subclass of Resolution, execute method, if you want. -Original Message- From: Stone, Timothy [mailto:tst...@barclaycardus.com] Sent: Monday, July 13, 2009 10:0

Re: [Stripes-users] Defaulthandler ForwardResolution question

2009-07-13 Thread Newman, John W
AFAIK there's no way to send NO response to the browser. That would be a timeout.. You may want to look at getContext().getResponse().sendError(HttpServletResponse.SC_???) SC_NO_CONTENT is probably the best fit. But if you want a valid, empty response, return new StreamingResolution("text/h

Re: [Stripes-users] Defaulthandler ForwardResolution question

2009-07-13 Thread Ben Gunter
That's what I do. Works just fine. On Mon, Jul 13, 2009 at 11:58 AM, Andy wrote: > Hi, should* *I return a null if I want my default handler to return > nothing (ie I do not want a response sent back to the browser)? > > Thanks! >

[Stripes-users] Defaulthandler ForwardResolution question

2009-07-13 Thread Andy
Hi, should I return a null if I want my default handler to return nothing (ie I do not want a response sent back to the browser)? Thanks! _ Insert movie times and more without leaving HotmailĀ®. http://windowslive.com/Tutorial/H

Re: [Stripes-users] Permanent redirect?

2009-07-13 Thread Stone, Timothy
Without writing your own Resolution, e.g., PermanentRedirectResolution, you might try: 1. a ForwardResolution to a resource that generates your 301 2. a ForwardResolution to a resource that performs mapped lookup in Apache (or other HTTPD), using a query or path element, for a 301. Writing your o