On 06/06/2010 09:50 AM, Will Hartung wrote:
Hi.
The population from the http parameters is actually used by the
validation system. And by parameters, it really means the request.
Specifically, say you have a field bound to an Integer, and you put
Fred in the field. The Binding will fail
Hi,
if have the following classes:
abstract class Customer
{
public String name;
abstract public getMaximumAllowedBooks();
}
class NormalCustomer extends Customer
{
public getMaximumAllowedBooks() { return 5; }
}
class VIPCustomer extends Customer
{
public String name;
public
Ravinder Kumar wrote:
hi,
yes i know that, but still i have to do this. please tell me how can i do
this.
Two possibilities:
a) code your own web browser that does not have this security
restriction and make the users of your application use that browser
b) A more realistic idea is to call
For the record I answer my own question:
Thomas Menke wrote:
Hi,
if have the following classes:
abstract class Customer
{
public String name;
abstract public getMaximumAllowedBooks();
}
class NormalCustomer extends Customer
{
public getMaximumAllowedBooks() { return 5
On 06/27/2010 06:27 PM, Nikolaos Giannopoulos wrote:
Thomas Menke wrote:
For the record I answer my own question:
Thomas Menke wrote:
Problem is: I need to instantiate customer based on the information in
customerType. But before I can read customerType I can't instantiate the
correct
Nikolaos Giannopoulos wrote:
Hi,
Unfortunately we can't have the same zero argument constructor coded 2
different ways...
Yes, you can: If you derive from your class
class UserInitialized extends User
{
public UserInitialized() { super(); /* Do some initialization */}
}
That might be
On 07/13/2010 08:22 AM, Lev wrote:
hi,
would anybody happen to know how to recreate (drop, then
create) a database with stripersist?
further, do you know how to drop/create a specific table
within a database?
i'm using hibernate with stripersist.
Do you want to change the structure of
Lev wrote:
I use this property in my persistance.xml to update tables when I deploy
my application:
!-- e.g. validate | update | create | create-drop --
property name=hibernate.hbm2ddl.auto value=update /
i have tried setting the property hibernate.hbm2ddl.auto to
both update and
Lev wrote:
There is no limitation that I can see.
The reason one drops a table is because its table structure has changed.
And if its structure has changed and you are using JPA annotations then
you need to recompile your changed classes anyways and restart your
application - which coupled
Aaron Stromas wrote:
Greetings, experts!
Is it possible to use annotation to validate lists or arrays of strings?
Say, I want to validate that the elements are not empty. I know that I can
write the validation method, I'm just curious about using annotations.
Thanks!
Check this article:
Aaron Stromas wrote:
I did and I still I don't get it :-( . What can be the value of field?
@ValidateNestedProperties({
@Validate(filed=??? , )
})
ListString list;
Well, I have to admit that I don't know for sure and I did not try, but
intuitively I'd say just don't specify a
Hi @ll,
I am currently trying to implement an authentication system for a small
web application. The article Security Interceptor for custom
authorization sounds promising to me but unfortunately it says On how
to setup security authorization/authentication for
On 09/18/2010 09:05 PM, Grzegorz Krugły wrote:
W dniu 18.09.2010 20:54, Thomas Menke pisze:
I did as you said and I added simply return false to hasRole() and
isUserAuthenticated() and I added a @RolesAllowed annotation to a method
of an action bean.
Did You return new ErrorResolution
On 09/18/2010 10:06 PM, Grzegorz Krugły wrote:
I'm not sure about this, but try removing dispatcherservlet from web.xml
and use dynamicmappingfilter as described in
http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/controller/DynamicMappingFilter.html
like this:
Grzegorz Krugły wrote:
What app server are You using? Current release of Stripes failed for me
like that on Glassfish 3, I had to download the newest code from SVN's
1.5.4 branch where this has been resolved.
I am using Tomcat 6.0.24 (installed from Ubuntu repository).
Thomas
setup? What could it be? I
am running in Tomcat 6.
Thomas
On 09/18/2010 06:17 PM, Thomas Menke wrote:
Hi @ll,
I am currently trying to implement an authentication system for a small
web application. The article Security Interceptor for custom
authorization sounds promising to me
Hi,
if I want to use indexed properties (using a Map) as parameter (by the
way: Thank you so badly for this feature. It just works so amazingly
easy and great). Is it possible to validate the key?
In my case the key is a string and I would like to validate it by
testing with a simple regex if
Hi @ll,
in one of my JSP files I want to do somthing that looks like this
(simplified):
stripes:select multiple=multiple name=item.scoringCategories
c:forEach items=${actionBean.someProperty} var=p
option value=${p.id} c:if
Hi,
I have a form that works with items that have a composed primary key.
Say I have a table score where scores of students of assessments are
saved. The primary key is composed from a student-id and a assessment-id.
In the form I just wrote:
stripes:text
On 06/15/2011 10:58 PM, Freddy Daoud wrote:
Hi Nicolas,
Hi Freddy,
You could try this article, it includes an example along those
lines.
http://www.theserverside.com/news/1363758/A-Stripes-15-Test-Drive
Why are all the code snippets without any line feeds etc? It is very
hard to read like
On 06/16/2011 01:45 AM, nicolas savoini wrote:
Hello
I'am starting to try to use indexed property.
But i got an error.
Here what i have
- The manager
package com.nsa.n74.tvshowtrackerweb.servlet.stripes;
public class TvshowManager
public ListTvShow getAllTvShows()
{
ListTvShow
On 06/16/2011 04:50 AM, nicolas wrote:
Hey again
thanks for the first answer but i still have some issue
Here what i have in the code source of my webpage :
c:forEach
items=[com.nsa.n74.tvshowtrackerweb.hibernate.TvShow@3652ac26,
On 07/20/2011 10:31 PM, Ulf Dittmer wrote:
Hello-
We're using Stripes on most of our web sites, and were just now hit
by the lack of full HTTPS support
(http://www.stripesframework.org/jira/browse/STS-239). Seeing that
that issue, and the 1.6 Release of which it is part, have been a long
On 07/24/2011 12:43 PM, Chris Molozian wrote:
Hey all,
pWelcome, ${actionBean.user.getName()}/p
That should be ${actionBean.user.name}, which is internally converted to
actionBean.getUser().getName(). (This has nothing to do with stripes,
this is a Java EL feature ;-)).
I am wondering
Hi @ll,
I have a FileUpload in form and I need random access to that file
(because it is a zip file that I need to process). After processing the
file I don't need the file anymore and can delete it.
Stripes' FileBean does not let me do this. I need to move the file to
somewhere else first
On 08/16/2011 05:19 AM, Cefn Hoile wrote:
Cefn Hoiletryanotheremail@... writes:
Once the getters and setters were there everything went swimmingly. This
leaves
a couple of questions in my mind...
1) Why does the validation reference at...
On 08/16/2011 04:09 PM, Cefn Hoile wrote:
Poitras ChristianChristian.Poitras@... writes:
However, whilst I can see there's a good argument for _not_ considering all
GET
and POST parameters to be owned by Stripes, (on the submission side) I don't
see
the argument for a tag like@s.text
Hi @ll,
I have a JSP page that contains:
stripes:select name=someName value=someValue
stripes:options-enumeration enum=someClass /
/stripes:select
After spending a good while trying to figure out why stripes would not
set the selected=selected flag even though simply adding ${someValue}
On 02/10/2012 02:55 PM, Poitras Christian wrote:
Hi,
To answer to your questions:
1. Yes, it's the intended behaviour. As it's specified in most Stripes' tags
like text
(http://stripes.sourceforge.net/docs/current/taglib/stripes/text.html),
Stripes tag uses the value attribute only if
On 03/09/2012 05:42 PM, VANKEISBELCK Remi wrote:
v2.0 : https://github.com/vankeisb/woko2/wiki (will soon be relased, we're
in beta)
404
Thomas
--
Live Security Virtual Conference
Exclusive live event will cover all
On 10/04/2012 08:26 PM, Grzegorz Krugły wrote:
In the project I'm on right now I'm forced to develop Liferay projects.
It's a road through pain. I am wondering if anyone tried and was
successful in using Stripes for portlet development? Is there some kind
of integration available?
I faced the
31 matches
Mail list logo