You could also try to run jmap -histo when you get the
OutOfMemoryError; you'll probably see the same as in the NetBeans
profiler but maybe it helps to reveal the "memory eater" anyway.
Torsten
Balazs Michnay wrote:
> Hi,
>
> I have just downloaded NetBeans Profiler to see how my web-app perfor
I have 2 beginners questions that I can't seem to figure out:
- How can I make tags like not to create any label and create
my own label (using for example the tag)?
- What is the easiest way to re-select the selected tab of a
when redisplaying the form? I have a String type
property for the c
tp://cwiki.apache.org/WW/why-do-the-form-tags-put-table-tags-around-controls.html
>
>
> musachy
>
> On 5/22/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
>>
>> I have 2 beginners questions that I can't seem to figure out:
>>
>> - How can I
7;t
> know the difference provided the name equals what struts2 expects.
>
> ie. put this in your JSP contained in your :
> value=""/>
>
>
> Torsten Römer wrote:
>> Thanks, Musachy, for the quick answer.
>>
>> I should have mentioned, that I a
I guess this is a quite common issue but I seem to only find
solutions/examples for Struts1:
I have a varying number of checkboxes on a form and would like to
somehow get a list of the selected checkboxes or a map and of course it
would be nice if the checkboxes would "remember" their state...
An
gs
as they are supposed to be used...
I see there is no point in what I am trying to do.
Thanks!
Torsten
Dave Newton wrote:
> --- Torsten Römer <[EMAIL PROTECTED]> wrote:
>> I have a varying number of checkboxes on a form and
>> would like to somehow get a list of the selected
Well, why not try both ways... it will be a good exercise no matter what.
I'll get back when I have some interesting experiences to share with.
Thanks again!
Torsten
Dave Newton schrieb:
> --- Torsten Römer <[EMAIL PROTECTED]> wrote:
>> I see there is no point in wh
I guess this has been asked before but I have trouble finding an answer,
if it is somehow possible to give arguments to property calls in tags.
For example, if I'd have "vehicles" as list attribute in ,
that I could give literal arguments like "car" or "motorcycle" and have
a method like getVehicle
ing OGNL, using
> the simple syntax :
> myMethod(param1, param2)
>
> so, in your case, it could be
> getVehicles('car')
>
> Hope that helps,
> Regards,
> Sami Dalouche
>
> Le dimanche 27 mai 2007 à 20:15 +0200, Torsten Römer a écrit :
>> I guess this has
, that means that all the properties you call and your action's
> properties.
> Another popular web framework, Tapestry, also uses OGNL. The Component /
> Page in Tapestry is the OGNL ROOT.
>
> Hope that helps,
> Sami Dalouche
>
>
> Le lundi 28 mai 2007 à 01:21 +02
and the checkbox is not checked.
Can anyone tell me why?
If I move the tag outside the , it works,
but like this I can't create my custom labels, which is what this is all
about...
Torsten
Torsten Römer schrieb:
> Well, why not try both ways... it will be a good exercise no matter
Couldn't you use the JavaScript "Load" event to know when the page has
been completely rendered, and postpone your reload until then?
Torsten
Greg Stasica schrieb:
> hi,
>
> My problem is that I've a big JSP page with a lot of scriptlets and a
> JavaScript which basically reloads the whole page
before I downloaded the Struts2 source and debugged the
ListUIBean.compare() method I realized that ;-)
So this answers my question, and I am happy to say that my dynamic
checkboxes now work perfectly!
The Dingbat
Torsten Römer schrieb:
> I think I found an OK solution but one thing does not work
label question check this FAQ:
>
> http://cwiki.apache.org/WW/why-do-the-form-tags-put-table-tags-around-controls.html
>
>
> musachy
>
> On 5/22/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
>>
>> I have 2 beginners questions that I can't seem to figure out:
&
I tried to use primitive types/arrays of primitives as "name" property
of and .
It works fine, but the state is not maintained because the
ContainUtil.compare() method returns false as it compares e.g. an
Integer and a Sting using Object.equals().
Is there a reason why we can't use primitives li
I think you have the same problem as I just had. Because you put the
values as literals in , the tag ends up comparing a String
"true" against a Boolean true which of course returns false.
Could you try the tag like this:
Torsten
Vincent Lin schrieb:
> I have a java bean serviceData with a Boo
Sorry I just realize I didn't use the tag the right way. I had String
literals in my list instead of the actual primitives/objects...
Now of course it works just fine without any patching!
Slowly, but I am getting there ;-)
Torsten
Torsten Römer schrieb:
> I tried to use primitive type
I am experiencing quite strange problems with special characters such as
odiaresis and aring (ä,å,ö):
- Sometimes already when the form is redisplayed on validation error
- When the form values are inserted into the database
- When the form values are sent as text email
The strange thing is, th
I put my validation code in the validate() method and use addFieldError().
To avoid validation to be performed on initial form display, I made a
mapping like this:
bookedTiles
reservationTiles
errorTiles
and call the action "reservation_input". Struts knows then that it
should not perfor
The DateTimePicker looks very nice on Linux/Firefox but on Windows/IE
the font is too small and the arrows to change week & month are not
shown: http://luniks.net/DateTimePicker.png
I tried to increase the font size by placing a modified version of
DatePicker.css from struts-core.jar into my webap
As the DateTimePicker is actually a Dojo widget I'd assume you can also
use it without Struts2:
http://dojotoolkit.org/
But I'd rather use this JavaScript calendar:
http://www.mattkruse.com/javascript/calendarpopup/
Torsten
Christopher Schultz schrieb:
> All,
>
> I am a user of Struts 1 and I
Everytime my app starts, I see this in the log:
13.06.2007 23:50:27 org.apache.struts2.config.Settings getLocale
WARNUNG: Settings: Could not parse struts.locale setting, substituting
default VM locale
I put
in my struts.xml, but I still get the error (and the default VM locale
is used, which
file with struts.locale=en_GB
>>
>> I am however not able to set the locale via the constant element in
>> struts.xml
>> althought the documentation at
>> http://struts.apache.org/2.0.6/docs/constant-configuration.html
>> states that you can.
>>
>>
What concerns me is the loading time of a page that contains one or more
datetimepickers. Especially in the company network here (very fast but
behind a proxy), it sometimes takes a minute or more to load such a page
while my little Linux box here almost freezes. More or less the same
happens on th
> I'll be replacing that with the one Torsten
> emailed about earlier at the first opportunity I get:
>
> http://www.mattkruse.com/javascript/calendarpopup/
>
I just gave that a try myself and I ran into a few issues:
- The placement of the popup is not as smart as with
datetimepicker, in my c
Well, now I gave also jscalendar a try, and I think it is the best DHTML
calendar I have seen until now. It has all the features I wanted, like
date and time selection, internationalisation, styles & even themes, it
is higly configurable and very easy to integrate.
So I have chosen jscalendar now,
I added Tiles to the struts2-blank-2.0.6 example webapp and started to
work on my application. All works just fine on my Linux/Tomcat 5.5
development box but when I deploy the app to the provider's Linux/Tomcat
5.5 webspace the content type is suddenly text/plain instead of
text/html and all I see
I was recently doing the same and what gave me a headache was that even
though my IDE complains about it, it has to be
rather than
which gave me a
11-Apr-2007 17:42:15 org.apache.tiles.impl.BasicTilesContainer render
SEVERE:
This one works for me:
http://tiles.apache.org/tags-tiles
Torsten
[EMAIL PROTECTED] schrieb:
> I'm starting to realize this! I had a nice S1 Tiles application just die
> under S2 tiles. Should the taglib be:
>
> http://struts.apache.org/tags-tiles or http://tiles.apache.org/tags-tiles
>
> A
llo,
> we had a similar problem and we solved it by using Tiles servlet instead of
> Tiles listener.
>
> Cheers,
> Teemu
>
>
> Torsten Römer wrote:
>> I added Tiles to the struts2-blank-2.0.6 example webapp and started to
>> work on my application. All works ju
Antonio Petrelli wrote:
> 2007/4/12, Torsten Römer <[EMAIL PROTECTED]>:
>> However the documentation states that "The latter [StrutsTilesListener]
>> provides tighter integration with Struts features such as freemarker
>> integration." so I wonder if this
OK, maybe I have been working too much and now I had some beer... came
to think that so many great OSS products have mascots... and in Swedish
a Struts is an Ostrich (Struthio camelus), and an Ostrich's legs & neck
look like struts, don't you agree? ;-)
http://www.wildanimalsonline.com/birds/ostri
I am trying to use Container managed security with Struts2 and Tiles2.
I created a Tiles definition called "loginTiles" for the login page, and
in my package called "page" with namespace "/page", I have the following
action:
{1}Tiles
I am using this action as and in
web.xml:
/page/logi
rsten
Torsten Römer schrieb:
> I am trying to use Container managed security with Struts2 and Tiles2.
>
> I created a Tiles definition called "loginTiles" for the login page, and
> in my package called "page" with namespace "/page", I have the following
>
I'm a bit unsure about a few things around datetimepicker.
What type should the fields in my action class be? I am currently using
java.util.Date, it works fine for request_locale=de_DE but I get a
"Invalid field value for field ..." error for request_locale=en_UK and
the date redisplayed is "NaN.
(that can me modified using the saveFormat
> attribute, which shouldn't have been public on the first place). I'm not
> really sure how it would work if the client has javascript disabled.
>
> musachy
>
> On 5/7/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
&
rroso schrieb:
> Did you look at the examples in showcase? I know the timepicker was really
> broken on 2.0.6, but the datepicker was working.
>
> musachy
>
> On 5/8/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
>>
>> I didn't have any struts.date.format set
duce the problem?
>
> https://issues.apache.org/struts/
>
> thanks
> musachy
>
> On 5/8/07, Torsten Römer <[EMAIL PROTECTED]> wrote:
>>
>> Yes I did, and I also get that far; the datepicker shows up fine, and it
>> inserts the picked date in the field i
I would like to hear what is good practice for prepopulating forms.
For example, I want to create a Map with options to populate a select
with, and this needs to be done before validation but also after failed
validation before the form is redisplayed.
Right now I am creating the map in the const
I just called my validation file ActionClassName-validation.xml, don't
even know what this alias is... and validation seems to work fine.
As far as I recall (can't check it right now) I did not have to set
validate="true" for my form.
I am also using the ajax theme but I set it using the tag,
whi
ld was storing just the date section of the RFC 3339
> format. In short, in the few cases that it worked it was because Xwork
> tries
> as a hard as possible to parse dates, using different formats.
>
> thanks
> musachy
>
> On 5/8/07, Torsten Römer <[EMAIL PROTECTED]> wro
Did you also have a look at this one:
http://struts.apache.org/2.x/docs/validating-input.html
It helped me quite a bit.
Torsten
Olivier THIERRY wrote:
> Hi,
>
> I'm not sure this is the right mailing list to talk about it, but I think
> there is a bug in the validation documentation on the str
Thanks, this sure does help...
I must be blind sometimes :-(
Torsten
Musachy Barroso wrote:
> This might help:
>
> http://struts.apache.org/2.0.6/docs/how-do-we-repopulate-controls-when-validation-fails.html
>
>
> musachy
>
> On 5/9/07, Torsten Römer <[EMAIL PROTE
I noticed that when calling getLocale() from prepare(), it seems to
return the system default locale instead of the locale set by the
request_locale request parameter, which is the case when calling it from
execute().
Is that supposed to be like that or could this be a bug?
I think the correct lo
Some time ago when I started with Struts2+Tiles2 I made a simple "blank"
Struts2+Tiles2 webapp based on the struts2-blank-2.0.6 webapp. It
includes a Tiles2 configuration and a layout with some simple pages, and
hopefully all required JARs.
It is maybe not the perfect example but if you think it c
d you can
> make your own interceptor stack.
>
> musachy
>
> On 5/11/07, Dave Newton <[EMAIL PROTECTED]> wrote:
>>
>> --- Torsten Römer <[EMAIL PROTECTED]> wrote:
>> > I noticed that when calling getLocale() from
>> > prepare(), it seems
46 matches
Mail list logo