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
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,
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
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
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
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
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!
>
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
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