Apologies in advance, this will be quite lengthy to try and cover
everything I've done and what is going wrong.
I have just upgraded to Stripes 1.5, and am trying to implement the
clean URLs. When I try go from one action bean to another (via a
redirect or forward), I am getting a stack overflow
, 2008 at 6:18 PM, Chris Cheshire cheshira...@gmail.com
wrote:
Ben
There's a good chance I am missing something obvious here, but I don't
see any documentation at stripesframework.org for building stripes. I
found the link to sourceforge, but I don't know whether the src
download there is from
My conversion to use stripes clean urls is coming along reasonably
smoothly now thanks to Ben, but I've stumbled across another problem.
If I submit a form and it fails a validation handler
(@ValidationMethod), when Stripes sends it back to the browser the
extra bits in the URL are removed.
For
the form the parameters aren't there on the URL. A validatio
On Thu, Dec 18, 2008 at 7:56 PM, Chris Cheshire cheshira...@gmail.com
wrote:
My conversion to use stripes clean urls is coming along reasonably
smoothly now thanks to Ben, but I've stumbled across another problem.
If I submit a form
Since I moved to stripes 1.5 and implemented the clean urls, my
welcome-file in the web.xml is not working. I have a file, index.jsp,
with an html redirect in the meta tag in the head. When I call the
page directly (http://www.mysite.com/index.jsp), it works. When I
call the site without
This is somewhat OT to stripes, but someone here has probably
encountered this and knows a solution (I hope!).
I'm having issues with the browser saving inputs from one form and
using them in completely inappropriate places. It is not feasible to
tell every user to turn off this feature in their
Thanks muchly Freddy :)
By using the autocomplete=off and the dynattr tld, I have solved
this problem (at least until the browsers change the way they treat
this non-standard parameter).
Chris
On Fri, Dec 19, 2008 at 4:08 PM, Freddy Daoud xf2...@fastmail.fm wrote:
On
a stripes note, I tried
(I have searched through the archives, and can't quite find what I
want, although this is probably very similar to everything that has
already been discussed).
I have a number of forms on my site that are built on the fly using
javascript and then submitted by ajax. The actions all send back a
I posted a this question a couple of months ago
(http://www.nabble.com/welcome-file-not-working-to21096927.html), and
I need to resolve it. I sort of got what I wanted working by putting
the redirect code in an action index.lb but now I need to make some
javadoc available under that context, so
I have quite a few convenience methods in my action bean context
subclass (eg. that wrap getting init parameters for the web
application) that I want to access from a tag handler class. I can get
the servlet context and then get the params from that, but the methods
in the action bean context are
(Using Stripes 1.5.3, Tomcat 6.0.x, Java6)
I have an action bound as /action/{blah} as part of an app installed
under a sub-context /foo.
In a stripes:form tag I put a stripes:param for blah and the resultant
html shows the action url as just /action/blah, instead of
/foo/action/blah.
If I
path to be
/foo/foo/bar).
If you can pass along some specific code that definitely triggers this in
your environment then I'll try it out. My testing was on the same version of
Stripes, Tomcat and Java.
-Ben
On Mon, May 24, 2010 at 8:17 PM, Chris Cheshire cheshira...@gmail.com
wrote
request
(should the ActionBean forward to a page) and in the next request
(should the ActionBean redirect to a page)
This is exactly what I am using.
On Tue, Oct 16, 2012 at 4:46 AM, Frank Pavageau
frank.pavag...@gmail.com wrote:
2012/10/16 Chris Cheshire cheshira...@gmail.com:
I have all my JSPs
So it turns out it is working in other actions exactly how I have it,
but just not in one particular one. Time to go digging and find out
why.
--
Everyone hates slow websites. So do we.
Make your web apps faster with
Freddy,
Is there an accompanying download for the book? I bought the book this
week, and got stuck on this bit of the redirect after login until I
found this thread.
Cheers,
Chris
On Sun, Oct 11, 2009 at 12:11 AM, Freddy Daoud xf2...@fastmail.fm wrote:
Hi Rusty,
How do I get the url for the
:21 PM, Freddy Daoud xf2...@fastmail.fm wrote:
Hi Chris,
There sure is. You can download all the code here:
http://pragprog.com/titles/fdstr/code
Hope that helps.
I hope you enjoy the book!
Cheers,
Freddy
On Sat, Jan 5, 2013, at 09:12 PM, Chris Cheshire wrote:
Freddy
I have my web site configured to use the clean urls with no prefix (so
no *.action binding) and also working on implementing the login
interceptor from the Stripes book.
For the most part it is working, except for where I have urls in the
format /someUrl/{someParameter}. When the login
On Mon, Jan 7, 2013 at 6:14 PM, Remi VANKEISBELCK r...@rvkb.com wrote:
Hi Chris,
Le 7 janv. 2013 à 00:37, Chris Cheshire a écrit :
I have my web site configured to use the clean urls with no prefix (so
no *.action binding) and also working on implementing the login
interceptor from
OK thanks, I'll take a poke under the hood then.
On Wed, Jan 9, 2013 at 3:35 AM, Remi VANKEISBELCK r...@rvkb.com wrote:
Le 8 janv. 2013 à 16:27, Chris Cheshire a écrit :
What's getLastUrl() ? Could you post a snippet maybe (don't have the Stripes
Book under hand... b bad bad bad
Using Stripes 1.5.7, I have an action bean to process a form. One
field is a BigDecimal. When it has a small value (in this case
0.00013450), it is being displayed as 0 when used in conjunction with
a stripes text box, text area or even hidden field :
stripes:text name=btcCost size=20 /
If I use
Ahh that works, thanks :)
So as an aside, is the number converter defaulting to an int/long
representation causing the display of 0?
On Fri, Mar 15, 2013 at 3:15 PM, Mike McNally emmecin...@gmail.com wrote:
You can tell Stripes how to format the field value via the
formatType and formatPattern
I'm a little confused at the unhandled exception handling mechanism.
The documentation gives an example on how to get implement a handler for it
(http://www.stripesframework.org/display/stripes/Exception+Handling) and I
am looking at the bottom example which gives access to the action bean that
declares IOException and ServletException because the handler
itself may fail (e.g. call to request.getDispatcher()), or so that, in case
you want to, you can re-throw an exception that matches the servlet spec,
and then let the container handle it.
HTH
Remi
Le 2 avr. 2013 à 01:20, Chris
that the error JSP page in web.xml is the only way to really
ensure that no stack trace is ever shown.
Cheers
Remi
Le 2 avr. 2013 à 17:05, Chris Cheshire a écrit :
So if I want to hide the stack trace output entirely, I still need a
handler defined by error-pageexception-type ... in web.xml just
How do I tell a stripes:link or stripes:form that I want it to switch to
https? Eg. Start at a non-secure page and switch to https on login.
Do I have to use url rewrite rules, or is there something in Stripes I can
use?
Thanks
Chris
?
On Fri, Apr 19, 2013 at 10:13 AM, Chris Cheshire cheshira...@gmail.comwrote:
How do I tell a stripes:link or stripes:form that I want it to switch to
https? Eg. Start at a non-secure page and switch to https on login.
Do I have to use url rewrite rules, or is there something in Stripes I
can use
Hope this helps,
Tim
** **
*From:* Chris Cheshire [mailto:cheshira...@gmail.com]
*Sent:* Friday, April 19, 2013 11:35 AM
*To:* Stripes Users List
*Subject:* Re: [Stripes-users] switch to https
** **
I use essentially the same thing - the Tuckey URLRewrite servlet filter
I am doing some location aware pages for a website where they are available
only to specific countries. When they aren't available I'd like to forward
to my restricted.jsp page with the status code set to forbidden (403).
How do I go about setting the status code?
Thanks
Chris
My google-fu needs some work. I finally stumbled across the solution I
needed
${requestScope['javax.servlet.error.message']}
so all is good.
Chris
On Tue, Jun 4, 2013 at 7:24 PM, Chris Cheshire cheshira...@gmail.comwrote:
Close. I'd rather render a page with my own stylesheet than see
() JSP function from the Stripes taglib?
http://stripes.sourceforge.net/docs/current/taglib/stripes/hasErrors.fn.html
Hope that helps,
Freddy
On Tue, Jul 30, 2013, at 02:36 PM, Chris Cheshire wrote:
In my JSP page, how do I check if the errors for a field that are
rendered
(and error messages) in the same place as the
user entered them, but when all URLs are valid, you could then clean up the
empty slots before saving.
Hope that helps.
Cheers,
Freddy
On Fri, Aug 2, 2013, at 10:48 AM, Chris Cheshire wrote:
I have a form that allows users to enter a series
On a JSP to view an item I have a button to make an ajax call to delete
that item. Once that item is deleted, the javascript code forces a redirect
back to a main listing page.
What I want to do is have a message displayed on the listing page that the
item was deleted.
The Stripes action that
I have a few large forms on my site that have pieces submitted individually
by ajax. The ajax handler returns JSON via a streaming resolution and then
the javascript acts upon the result updating the page.
Since a piece of a form might need rendering either initially when the page
is displayed,
I generated a new ssh key and used the data from the private key file in a
cdata block in my web.xml. Is this adequate or overkill?
What is the best practice for this? The docs say for the Stripes.encryption
key parameter to use a very long string.
Thanks
Chris
I have a login interceptor that redirects to a login page where necessary
with a next parameter set to the url that was just accessed, like so :
if (user == null LOGIN_NEEDED.contains(clazz)) {
resolution = new RedirectResolution(Login.class);
if
I am trying to use the encrypted validation for my object ids and it sort
of works.
stripes:link, stripes:hidden etc all encrypt/decrypt the parameter properly
and urls are built nicely. However, if I access the parameter via jsp-el,
eg ${item.id}, then it gives me the unencrypted value.
I have
, newValues.toArray(new
String[newValues.size()]));
}
}
}
builder.addParameters(newMap);
On Tue, Sep 17, 2013 at 11:49 AM, Chris Cheshire cheshira...@gmail.comwrote:
I have a login interceptor that redirects to a login page where necessary
I have an action that has a few properties with validation attached
(@Validate), with a couple of further validation methods (@ValidationMethod).
There are two handlers, view (@DefaultHandler @DontValidate) and save.
There is an associated JSP with a stripes:form tag on it that view()
,
Iwao
2014-03-05 0:06 GMT+09:00 Chris Cheshire cbcnospam-stri...@yahoo.com:
I have an action that has a few properties with validation attached
(@Validate), with a couple of further validation methods
(@ValidationMethod).
There are two handlers, view (@DefaultHandler @DontValidate) and save
In an action bean I have a few handlers, for example handler1, handler2,
handler3. If I add those to the event param in a stripes:link
stripes:link beanclass=mybeanclass event=handler1 /
then the resultant url comes out like
/path/to/my/action?handler1=
Is there any way to not have the =
On Mar 7, 2014, at 3:23 PM, Chris Cheshire cbcnospam-stri...@yahoo.com wrote:
In an action bean I have a few handlers, for example handler1, handler2,
handler3. If I add those to the event param in a stripes:link
stripes:link beanclass=mybeanclass event=handler1 /
then the resultant url comes
41 matches
Mail list logo