The problem seems that we were including large CSS style sheets on each
tab's jsp page, which was unnecessarily filling IE's memory, and eventually
it would crash due to some buffer being blown.
We've removed the CSS links, javascript includes and the s:head
theme=ajax/ from our tabs up a level
Just remove / thats it.
e.g.
jsp:forward page=index.do/jsp:forward
--
red phoenix-2 wrote:
I want to use jsp:include to load my struts file,such as:
jsp:include page=/a1.do /
jsp:include page=/a2.do /
but when I run this jsp file,http://localhost:8080/a.jsp,it
I´m using autocompleter tag with Struts 2.0.8 and I need to show a default
value to the user.
For example, in the JSON list :
[
[Alabama,AL],
[Alaska,AK],
[American Samoa,AS],
...
I need to show by default 'AS(id) - American Samoa' . How I do this ?
Herrera
--
View this
The value attribute sets the preset value of the input element, if that is
what youre looking for.
s:autocompleter value=AS etc... /
On 7/12/07, Pedro Herrera [EMAIL PROTECTED] wrote:
I´m using autocompleter tag with Struts 2.0.8 and I need to show a default
value to the user.
For example,
I'am using the qxhtml theme in my form.
the output generated is:
TR
TD vAlign=top align=right/TD
TD vAlign=top align=left
INPUT id=myckb
style=COLOR: red type=checkbox value=true name=myckb
INPUT type=hidden value=true name=__checkbox_myckb
Whoops, sorry I should probably think before I post. So you want to set the
key, not the value of the input element. I did this by having a
getElementKey-method in the Action class which returns the key you want as
the default. Element is the name of the input element.
On 7/12/07, Toni
How would I go about formatting a number in currency format in a textfield?
The only example I've seen is using the s:text tag, and it uses the name
attribute, which you obviously can't do in a textfield.
Thanks
--
View this message in context:
Hey all
How can I access constants via my S2 mapping files? At the moment I have the
following mapping:
action name=upload class=com.myapp.web.struts.page.UploadMovie
result name=login
type=redirect${UMA_REDIRECT_URL}http://myapp:8080/app/upload.action/result
result
* http://struts.apache.org/helping.html
On 7/12/07, Don Brown [EMAIL PROTECTED] wrote:
Ted wrote up a good doc somewhere on the website, but the summary is
join the dev list, participate in discussions, file jira tickets with
patches that include unit tests.
Don
Hi,
We have just released free magazine on java technology. Visit
http://javajazzup.com/issue1/ to grab a free copy.
Regards
Rose India Team
http://www.roseindia.net
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi
Iam newbie to Struts2.Whenever i used struts-tags lib to build user
interfaces iam getting NullPointerException coming at TagUtils.java
my simple jsp page is looks like this
[EMAIL PROTECTED] contentType=text/html%
[EMAIL PROTECTED] pageEncoding=UTF-8%
[EMAIL PROTECTED] prefix=s
The display of the date time picker works fine when i change the format.
However when the params interceptor tries to deserialize my form data
into java objects using OGNL it thinks that the field has format MM/dd/.
How should i tell the OGNL parser that my date format is different?
max
Hi vani,
Just some comments...
1- I would add the .tld extension to the 3rd line. Also make sure
it's pointing to the correct path.
2- In the action attribute of the form tag, the .action is not necessary
3- Your h1 tag is outside the html tag. Not that it could raise an
NPE, but still, for
Hi vani,
Please reply to the list, and no to me personally, so that more people
can help you out.
On 12/07/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
1)to point no 1.if you add .tld to the third line u will get exception as .tld
is
missing.actually no need to add tld file as it is already
Try using a some dummy beans for your MP3 test that return known data, that
way you can get a good idea of the impact your database has on the response
time. I suspect you'll find that your DB is causing a lot of the delay in
the short ramp up test.
-Original Message-
From: Ing. Andrea
If in my .properties file I have text with the ' character
my.properties (file)
mylabel=I don't know how
...
The output doesn't display the ' character
I dont know how
Do I need a special character before the ' character?
Which one?
Thanks.
--
View this message in context:
2007/7/12, TonyD [EMAIL PROTECTED]:
Do I need a special character before the ' character?
Which one?
I could say the backslash ( \ ) but the apostrophe is not a special
character to be escaped (such as = ! ) so I wonder why you cannot see it...
Antonio
try to double the '
ex.:
mylabel=I don''t know how
If in my .properties file I have text with the ' character
my.properties (file)
mylabel=I don't know how
...
The output doesn't display the ' character
I dont know how
Do I need a special character before the ' character?
Which
I had the same problem, and I put #146; instead of ' in my .properties.
Ragards,
Michaël
TonyD [EMAIL PROTECTED]
12/07/2007 14:29
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org
A
user@struts.apache.org
cc
Objet
How to display the ' character from a .properties file
It´s not working to me
s:autocompleter name=countryId list=countries listKey=countryId
listValue=country label=Country notifyTopics=/Changed /
I´ve setted the in the action countryIdKey = 29 and the combo comes
blank...
help me
Herrera
Toni Lyytikäinen wrote:
Whoops, sorry I
This should be the good solution, that's what we do ...
[EMAIL PROTECTED] wrote:
try to double the '
ex.:
mylabel=I don''t know how
If in my .properties file I have text with the ' character
my.properties (file)
mylabel=I don't know how
...
The output doesn't display the ' character
Take a look at the html generated by the tag, is there an initialKey
-attribute and what is it's value? If it is 29 then it's working for the
key part at least.
Of course I forgot to say that you need to set both the initial value and
the initial key. You can set the value with the value
Yes i'm sure it's true.
So the struts related performance seems not too bad...
Il giorno 12/lug/07, alle ore 14:02, Al Sutton ha scritto:
Try using a some dummy beans for your MP3 test that return known
data, that
way you can get a good idea of the impact your database has on the
response
It´s not a good solution, but it works(to set both the initial value and
the initial key).
Thanks
Toni Lyytikäinen wrote:
Take a look at the html generated by the tag, is there an initialKey
-attribute and what is it's value? If it is 29 then it's working for the
key part at least.
Hi all,
I have a problem with the selected values by the optiontransferselect tag
when my form is submitted.
here is an extract of my jsp. The list is a map and I'm expecting to get a
List of DummyKey in the doubleName.
But I'm getting a ClassCastException when I try to iterate and cast the
Hi Jason
Thanks for letting me know
regards
musachy
On 7/12/07, Jason Wyatt [EMAIL PROTECTED] wrote:
The problem seems that we were including large CSS style sheets on each
tab's jsp page, which was unnecessarily filling IE's memory, and
eventually
it would crash due to some buffer being
2007/7/12, Ing. Andrea Vettori [EMAIL PROTECTED]:
Yes i'm sure it's true.
So the struts related performance seems not too bad...
compared to what?
--
Guillaume Carré
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
2007/7/12, Ing. Andrea Vettori [EMAIL PROTECTED]:
Yes i'm sure it's true.
So the struts related performance seems not too bad...
compared to what?
Compared to nothing... they are pure numbers. They are simply just
good enought (to me).
If we don't have this in mind we should use
As they say, the proof of the pudding is in the taste. The performance
of Struts 2 is at least as good as WebWork 2, which powers a large
number of excellent sites, including Atlassian Confluence and Jive
Forums. Prior versions of Tapestry were also using OGNL, which seems
to be one of the
2007/7/12, Ing. Andrea Vettori [EMAIL PROTECTED]:
Compared to nothing... they are pure numbers. They are simply just
good enought (to me).
If we don't have this in mind we should use assember for everything :)
what I meant was: maybe it could be a good idea to redevelop your
screens with, say
Thanks it works!
Pascal Lalonde-4 wrote:
This should be the good solution, that's what we do ...
[EMAIL PROTECTED] wrote:
try to double the '
ex.:
mylabel=I don''t know how
If in my .properties file I have text with the ' character
my.properties (file)
mylabel=I don't know
2007/7/12, TonyD [EMAIL PROTECTED]:
Thanks it works!
Mmm... this means that there's something wrong when you display the text.
I think that, before writing the string, you have to escape it.
How, and where, do you write the string?
Antonio
Actually, I think this is a bug in the handling of MessageResources in
Struts 2. Not only do ' characters in properties files fail to
display, they cause parameter substitution to fail. For example, if
you have a properties file:
foo=Message's for {0}
and you attempt to display it in a jsp
Il giorno 12/lug/07, alle ore 16:31, Guillaume Carré ha scritto:
2007/7/12, Ing. Andrea Vettori [EMAIL PROTECTED]:
Compared to nothing... they are pure numbers. They are simply just
good enought (to me).
If we don't have this in mind we should use assember for
everything :)
what I meant
Hi,
I got a problem with an extremly generic platform I'm trying to implement.
Here is my genericAction code to understand the question mentionned above:
===
public abstract class GenericActionT extends ActionSupport implements
I wrote my string in my .properties file
mylabel=Now it''s working
and then a got it
in my .jsp with
s:text name=mylabel/
Antonio Petrelli-3 wrote:
2007/7/12, TonyD [EMAIL PROTECTED]:
Thanks it works!
Mmm... this means that there's something wrong when you display the text.
I'd like to suggest the implementation of this simple but great-to-use
feature.
I've made hard use of textarea tag and it's boring to re-code it ever and
ever.
This sample code prevents use of javascript block in head section.
Once s:textarea already has onKeyDown and onKeyUp properties, I
On 7/12/07, Niall Pemberton [EMAIL PROTECTED] wrote:
I don't use Struts2 - but my guess is that this is down to a single
quote being an escape character in MessageFormat:
http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html
So its probably not a bug - just need to escape single
I got an iterator that works fine and does what I want it to:
s:iterator value=iterator
...
/s:iterator
A few lines above, I try to print the iterator size:
Total: s:property value=appRegistries.length/
Doesn't display anything.
The OGNL Guide says it supports .length for arrays.
Does is not
Hi all,
I'm using the optionstranferselect tag in my webapps and I need to
customize
the listkey that are submitted by the form.
In my action class, I have the defaultListSupport attribute corresponding
to the listkey with its
corresponding setter and getter just like below:
public class
Hi
Im trying to make a loading jsp for a another jsp which takes considerable
time pulling out huge amount of data.
Can some body help me in making a loading screen which is displayed(perhaps
with hepl of javascript) while the page is loading a redirects to the actual
page once it has got the
I have the following jsp:
%@ taglib uri=http://struts.apache.org/tags-bean; prefix=bean%
%@ page import=com.messages.Constants %
bean:message key=%=Constants.SECTION_TITLE % /
where Constants.java contains the following containts
public static final String SECTION_TITLE = section.title;
and
The iterator class doesn't have a length property:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Iterator.html
you are going to have to get the size from the collection itself.
musachy
On 7/12/07, yitzle [EMAIL PROTECTED] wrote:
I got an iterator that works fine and does what I want it
I have a topic like this:
dojo.event.topic.subscribe(/saveTopic,
function(data, type, e)
{
// data : text returned
// type : before, load or error
// e: request object
if ('load' == type)
{
}
}
When my action on the server is successful the type is
set to load and things work
HI All,
Can any body tell me how can i configure Struts in Eclipse i am using
Eclipse 3.2.2 .How can i start a struts project in the Eclipse.Any help will
be much appriciated.
thanks
--umesh :(
--
View this message in context:
Hello,
I am trying to print the Stack Trace from an exception redirected by
global-exception-mappings in the struts.xml
I can access the variable using EL but it doesn't seem to exist in the
page scope since I cannot access it. Where is being stored?
%-- Exception Handler --%
%-- This works
Okay, I figured it on my own.
%-- works! --%
%
exception = (Exception) request.getAttribute(exception);
if (exception != null)
exception.printStackTrace(new PrintWriter(out));
%
Perssy Llamosas wrote:
Hello,
I am trying to print the Stack Trace from an exception redirected by
I am using the Type Conversion functionality
(http://struts.apache.org/2.x/docs/type-conversion.html) for handling
indexed lists. BTW.. Very cool stuff and worked great right off.
My question is that I would now like to take it one step further and use
the XML validation definitions to
Dunno if this might help, but:
http://www.omnytex.com/struts_benchmarking.zip
In it you'll find two applications, one for S1 (1.3.8) and one for S2
(2.0.8)... they are both (I think!) pretty much equivalent, and about as
simplistic as you can get. Also included is a JMeter test plan to run
Perfect! This is an excellent start.
I think both should be compiled with 1.6.0. That will immediately remove that
element of difference between the two.
James
On Thu Jul 12 15:22 , 'Frank W. Zammetti' [EMAIL PROTECTED] sent:
Dunno if this might help, but:
Are we targeting 1.6 now, or is the S2 target platform still 1.5?
-T.
On 7/12/07, James Holmes [EMAIL PROTECTED] wrote:
Perfect! This is an excellent start.
I think both should be compiled with 1.6.0. That will immediately remove that
element of difference between the two.
James
Hi
I'm trying to use Struts 2 with client side validation. I would like to use
a theme that does not add any HTML to the form, fields and error messages.
I'm working with simple theme but it's not generating the JavaScript code to
do the validation and the s:fielderror/ tag is generation
My only point was that the S1 and S2 apps should be compiled using the same
version of Java. I didn't mean to imply any version that S2 should support. I
guess in a perfect world the test should be compiled with 1.5 since that is what
S2 supports.
James
On Thu Jul 12 15:34 , Ted Husted sent:
The build scripts and full source are of course included, so by all
means feel free to recompile and rerun... I'm getting into something
else at the moment otherwise I'd do it right now because I'd be very
interested in seeing if the results converge a bit (I wouldn't expect
them to diverge,
hi all,
Iterating over a ListString type arrayList works fine just like this:
@s.iterator value=%{myList}
...
@s.property /
...
/@s.iterator
BUT this is not working:
@s.iterator value=%{myList}
...
b@s.text name=@s.property / //b
...
Hi,
I'm new to SiteMesh and have been trying to use SiteMesh, Struts 2 with
SiteMesh Plugin and Java 5 for a project. I have been stucked with this
problem for a couple days. Thanks in advance for your help. It will be
greatly appreciated!
Problem: When I requested index.html or index.jsp,
Hi,
How to enable logging in S2? I added log4j.jar and isDebug statements in my
actions, but do not see any messages.
Leena
Frank, would you care to give the same tests a shot with ognl 2.7 and
javassist in the mix.
Although none of this is purely scientific, at least evaluations on that
regard give us some level of subjective information.
The ognl 2.7 and javassist jar are available via the tapestry-4.2-libs
for my sake, i hope it's still 1.5.
i'm not allowed to go near 1.6 because of some obscure bug in some oracle
driver somewhere.
Ted Husted wrote:
Are we targeting 1.6 now, or is the S2 target platform still 1.5?
-T.
On 7/12/07, James Holmes [EMAIL PROTECTED] wrote:
Perfect! This is
Hi All,
I am new to struts and I am using struts 1.3.8. I am using a bean class for
every table in oracle as a Data Transfer Object and a actionform for every
jsp. Now my problem is I have to do data type conversion from my actionform
to DTO and DTO to actionform, for example I have date in my
Hi All,
I am new to struts and I am using struts 1.3.8. I am using a bean class for
every table in oracle as a Data Transfer Object and a actionform for every
jsp. Now my problem is I have to do data type conversion from my actionform
to DTO and DTO to actionform, for example I have date in my
It's relatively easy.
You want the WTP ( unless you're using some customized version like
MyEclipse, at which point, I can't help ).
a) Create a Dynamic Web Project.
b) Set up your Server Runtime (1) (2)
c) Drop your jars into WebResources/WEB-INF/lib (3)(4)
4) write up your struts.xml :
Well, here's exactly why I hate benchmarking: it's never consistent! :)
This time, everything compiled with JDK 1.6 (it's what I have installed
along side 1.4.2) and all used 5000 samples (updated test plan to always
do 5000 samples)...
S1:
685 average, 142.3/sec throughput, 20.89 KB/sec
Adrian Ost schrieb:
hi all,
Iterating over a ListString type arrayList works fine just like this:
@s.iterator value=%{myList}
...
@s.property /
...
/@s.iterator
BUT this is not working:
@s.iterator value=%{myList}
...
b@s.text name=@s.property /
Hello,
I am trying to make struts read my requests as UTF-8, so far I have
configured Tomcat connector to uriencode in utf-8 but my struts beans
still receive ? strings. What am I missing?
Perssy Llamosas
-
To unsubscribe,
Solved it on my own.
The page header requires to be in utf-8 too, it is not enough to have
the page encoding in jsp to utf-8.
Without that line IE returns ascii while firefox returns utf-8.
Perssy Llamosas wrote:
Hello,
I am trying to make struts read my requests as UTF-8, so far I have
On 7/12/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
(b) the OGNL bump, at least as far asjust a straight drop-in, makes no real
difference
I don't think we really expected the drop-in to make a difference
without making other adjustment to take advantage of the enhancements.
-T.
We've only seen some initial high level benchmarks, and there isn't enough
information yet to assert what is the source of the performance differences.
This should be identified before trying things like a new version of OGNL.
David
-Original Message-
From: Don Brown [mailto:[EMAIL
I'm really happy to see this issue being addressed, but it is
important to remember, framework performance wasn't (isn't?) a primary
goal for WebWork 2, and now Struts 2. Specific decisions were made to
favor developer productivity and flexibility over performance such as
a template
Ted Husted wrote:
On 7/12/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
(b) the OGNL bump, at least as far asjust a straight drop-in, makes no
real difference
I don't think we really expected the drop-in to make a difference
without making other adjustment to take advantage of the
On 7/12/07, cilquirm [EMAIL PROTECTED] wrote:
constant name=struts.devMode value=true/
We now strongly recommend that developers only turn devMode on for a
reason, and always temporarily. There have been problems with people
forgetting to turn devMode back off in production, which can cause
Frank,
There should not be a noticable difference with OGNL yet. The performance
improvements in OGNL 2.7 require expressions to be compiled before being
executed. The current S2 code does not do this yet so it cannot realize the
performance gains yet.
Sent via BlackBerry.
-Original
I'm still betting OGNL isn't hit in any significant way in this test
anyhow... in fact, is it used at all? I'm not even certain... I assume
this line does:
s:property value=greeting /
But maybe I'm wrong? Like I said, even if it is, if *that* made any
sort of real difference in the
Doesn't xwork cache the expressions compiled?
musachy
On 7/12/07, James Holmes [EMAIL PROTECTED] wrote:
Frank,
There should not be a noticable difference with OGNL yet. The performance
improvements in OGNL 2.7 require expressions to be compiled before being
executed. The current S2 code does
Hi all,
Please give me an example to display *xml data in struts html:select box.*
One more point for the test applications,
try do not use complicated pages with db calls and stuff like that
use simple pages where you have lots of ognl expressions (as there is ticket
in jira where it is noticed that profiler showed that the bottleneck is in
ognl expressions)
Best,
Aram
HI,
Please check
http://www.roseindia.net/struts/struts2/struts-2-client-side-validation-exam
ple.shtml
Thanks
-Original Message-
From: Néstor Boscán [mailto:[EMAIL PROTECTED]
Sent: Friday, July 13, 2007 1:05 AM
To: user@struts.apache.org
Subject: Struts 2 Client Side Validation
Hi
there are some new results,
when setting the global theme to the simple one,
my S2 test application becomes 20 times faster,
but still it is 3 times slower then S1
There should not be a noticable difference with OGNL yet. The performance
improvements in OGNL 2.7
require expressions to be
Any idea, guys!!
semaj.najraham wrote:
I have the following jsp:
%@ taglib uri=http://struts.apache.org/tags-bean; prefix=bean%
%@ page import=com.messages.Constants %
bean:message key=%=Constants.SECTION_TITLE % /
where Constants.java contains the following containts
public
79 matches
Mail list logo