On 9/20/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have the same problem. I'm using ajax and the response time of my pages
are
over 40s sometimes with the s:head theme=ajax / include.
Can someone tells me if this has been fixed in struts 2.1 ?
Is there a work around to this problem ?
Sadly, it was a change brought by the WebWork 2 incubation process,
where we had to remove all LGPL Javascript libraries. The tooltip
library used LGPL, so to get through the IP clearance, we changed the
tags to use Dojo, hence the import. Unfortunately, this temporary fix
was never revisited
Does it mean that we'll still suffer from this even with the 2.1 version ?
Having page load time over 40s is hard to diggest.
Meissa
Don Brown [EMAIL PROTECTED]
21/09/2007 08:51
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org
A
Struts Users Mailing List
2007/9/21, Arunkumar Balasubramanian [EMAIL PROTECTED]:
bean:define id=name name=Bformname scope=request/
With this piece of code, you are putting:
- the bean registered with the Bformname attribute name in thr request
scope
- in the page scope (that it is the default) with the attribute name
I think that is called URL's parameter encryption.
You may want to take a look at
http://www.avedatech.com/Products/QueryCrypt/index.jsp,
I haven't try it by myself though.
On 9/20/07, Vo Van Thuong [EMAIL PROTECTED] wrote:
Hi Vinny,
I'd like users to access to my website by URLs like
--- j alex [EMAIL PROTECTED] wrote:
s:if test='%{key} == card'
The entire expresion is OGNL, not just the key value
from the stack.
d.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi all!!..
I'm new with the framework and we are trying to develope a proyect with
Struts 2.
In the Analysys of the proyect we are trying to understand if it's possible
to call different process methods ( or execution method ) in the same
Action class.
It is so or always when we call an action
Requesting action like /web-path/someAction!someMethod.action, calls
SomeAction.doSomeMethod().
2007/9/21, michetag [EMAIL PROTECTED]:
Hi all!!..
I'm new with the framework and we are trying to develope a proyect with
Struts 2.
In the Analysys of the proyect we are trying to understand if
Hello,
I have a very strange problem. I can´t specify if it is an Struts 2
problem, a Javascript problem, a Dojo problem,...
The scenario is as follows:
I have a .jspx page like this:
jsp:root xmlns=http://www.w3.org/1999/xhtml;
xmlns:jsp=http://java.sun.com/JSP/Page;
Hi,
How can I use a global resource properties file (defined in struts.xml as:
constant name=struts.custom.i18n.resources value=ApplicationResources/
) for setting an action error text in an action class having an error key ?
I tried: addActionError(getText(error.business.norights)), but the
Thanks for your response.
by having bean:define id=name name=Bformname scope=request/ in a
Tile.Where Bformname is super class. If I have this piece of code, the page
after tile:insert is not been displayed. Bformname is inherited in
Aformname(which has reference in struts-config).
Is it
On Yesterday at 11:25pm, VR=Van Riper [EMAIL PROTECTED] wrote:
VR [..snip..]
VR
VR The best workaround that I have found is to Just Say NO to the built
VR in support for Dojo and instead to use Prototype judiciously. All my
VR ajax logic is done that way. I don't use the builtin ajax support
Just to confirm that, there is no dependency on Dojo anymore, the
tooltips are now implemented using DomTT which is a really small js
file.
musachy
On 9/21/07, Don Brown [EMAIL PROTECTED] wrote:
No, thank goodness :) The dojo code has been moved out into its own
plugin and cleaned up, from
If you're not going to use the built-in AJAX support in S2, you may also
want to have a look at AjaxParts Taglib (APT):
http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html
... which is a component of Java Web Parts (JWP):
Example code:
s:iterator value=%{drugClassPropsSrvc} id=prop
tr
th scope=rows:property value=#prop.key//th
s:if test=#prop.value eq 'Yes'
th scope=rows:property value=#prop.value//th
/s:if
I could see
making this an S2 plug-in if there was some interest in that, I've had
that thought before.
That would be a pretty good idea :)
musachy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Setting cache=true will pretty much kill the Dojo lazy loading
feature, as it will use a custom build (all the required js files
compressed in one file). On top of that 2.1 won't scan the whole page
for widgets, which will make it even faster.
musachy
On 9/20/07, Don Brown [EMAIL PROTECTED]
Marc Eckart wrote:
Any ideas? Or any other suggestions?
http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Not really suitable for what I'm after since I need the result of the
rendered output on the server,
not on the client. As i mentioned I've seen it done with Velocity,
using something like
Velocity Template Processor/Engine (can't remember the exact name).
Doing the same on a JSP I'd
I'll see if I can find some time this weekend... the only thing that's
really stopped me in the past when I thought of it is that it's really
so darned easy to drop in manually (two added JAR files, one config file
and one context param in web.xml), there's almost no benefit to it being
a
Musachy where do you set this cache=true in what file exactly?
On 9/21/07, Musachy Barroso [EMAIL PROTECTED] wrote:
I could see
making this an S2 plug-in if there was some interest in that, I've had
that thought before.
That would be a pretty good idea :)
musachy
on any file that you are using the S2 ajax tags, you have to use the
sx:head, so just set its cache attribute to true. 2.1 only :)
musachy
On 9/21/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote:
Musachy where do you set this cache=true in what file exactly?
On 9/21/07, Musachy Barroso [EMAIL
If you don't have plugin anything, there isn't any real benefit to
it, but I haven't looked at JWP.
musachy
On 9/21/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
I'll see if I can find some time this weekend... the only thing that's
really stopped me in the past when I thought of it is that
You can also map each method to a name in your struts.xml by using the method
attribute of the action tag.
action name=test class=mypackage.MyAction method=test/
Ganebnyi Genadii wrote:
Requesting action like /web-path/someAction!someMethod.action, calls
SomeAction.doSomeMethod().
If a undestand, there is no way to get rid of this problem with struts
2.0.9.
There is still no date for the 2.1 release availability ?
Meissa
Musachy Barroso [EMAIL PROTECTED]
21/09/2007 16:52
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org
A
Struts Users Mailing List
The easiest solution on 2.0.9 is just to overwrite head.ftl and remove
the dojo stuff, you won't have tooltips but you are probably not using
them anyway.
musachy
On 9/21/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
If a undestand, there is no way to get rid of this problem with struts
Greetings all. I am having difficulty crafting an struts 2 iterator
using the generator tag. I want to iterate over a set of string
values and then test against the current one in the loop. Something
like this:
s:generator val=%{'wizards,dwarves,elves'} separator=,
id=myAttr
--- Kevin Wade [EMAIL PROTECTED] wrote:
s:generator val=%{'wizards,dwarves,elves'}
separator=,
id=myAttr
s:iterator
s:set name=groupname
value=#attr.myAttr.next/
want to test groupname here, etc...
/s:iterator
/s:generator
I'm not sure why you're
there is a mail taglib but a mail is sent from the jsp then.
or you grab the reply from the server via httpclient, put it in a
multipart mail message and send.
Leon
On 9/21/07, Oguz Kologlu [EMAIL PROTECTED] wrote:
Not really suitable for what I'm after since I need the result of the
rendered
Is there anything that ModelDriven does other than push your model on the
top of the stack?
--
Scott
[EMAIL PROTECTED]
--- [EMAIL PROTECTED] wrote:
Is there anything that ModelDriven does other than
push your model on the top of the stack?
public String intercept(ActionInvocation invocation)
throws Exception {
Object action = invocation.getAction();
if (action instanceof ModelDriven) {
Hi Al,
I am having the same problem with s:select and validation. I found your
thread when I searched the user group for answers.
Have you found a better solution to this problem? Has it be identified
as a bug? Unfortunately, I am so far along on my validation code that I
really don't want to
I agree, and that's the thought that stopped me from doing this in the
past. I do think it would be nice to bring APT to a wider audience, and
making it a plug-in would probably give it more exposure and have that
effect, but it's not the best reason to do something like this. I may
still do
So is this 2.0.9 javadoc correct?
public interface ModelDrivenT {
/**
* @return the model to be pushed onto the ValueStack instead of the
Action itself
*/
T getModel();
}
This sort of sound like the Action IS NOT ALSO on the stack!
On 9/21/07, Dave Newton [EMAIL PROTECTED]
Thanks for the reply.
I did indeed try to create an s:iterator../ over an immediate list
of those strings, but I could never get it to work. I can get it to
work over numbers (i.e. s:iterator status=stat value={1,2,3,4,5}
), but not strings. Probably user error. I'd love to see a
Hi!
I'm using json-taglib [0] to populate lists of users (user: username,
id, name, surname, description) to an s:autocompleter tag.
I put the code in [1] of json.
I put the snipplet of jsp in [2].
the system i'm developing is for spanish speakers, so some times they
use non ascii characters in
On 9/21/07, Dave Newton [EMAIL PROTECTED] wrote:
public String intercept(ActionInvocation invocation)
throws Exception {
Object action = invocation.getAction();
if (action instanceof ModelDriven) {
ModelDriven modelDriven = (ModelDriven)
action;
ValueStack
Hi,
I need to populate a form with data from database, is there any example.
thank you your help is appreciated.
-
Tonight's top picks. What will you watch tonight? Preview the hottest shows on
Yahoo! TV.
Yes indeed! The more I look at the code in these interceptors, the more I
question the number of times Ctrl-C and Ctrl-V were pressed!
Scott
On 9/21/07, Chris Pratt [EMAIL PROTECTED] wrote:
On 9/21/07, Dave Newton [EMAIL PROTECTED] wrote:
public String intercept(ActionInvocation
Hi,
Quite a few days ago I posted this question and nobody answered. I
guess this is something we cannot currently do right now with v2.0.9?
Should I post it in JIRA as an improvement for future versions?
Does even anybody think it would be useful to have validation defined
on multiple similar
Hi Jane,
Unfortunately there's been no change :(. Every now and again I get an Email
out of JIRA saying that the fix version has been changed, but unfortunately
it'd being changed to the version after the one being released :(
Al.
-Original Message-
From: Jiang, Jane (NIH/NCI) [C]
At: http://struts.apache.org/2.x/docs/url.html
it says url attribute id is deprecated in favor of var. However, var
doesn't work and id does (Struts 2.0.9). I assume this is a documentation
error. Can I fix this somehow? Or I will just ignore.
--
View this message in context:
--- [EMAIL PROTECTED] wrote:
So is this 2.0.9 javadoc correct?
It's XWork, not S2; not sure which version.
/**
* @return the model to be pushed onto the
ValueStack instead of the
Action itself
*/
It also says:
/**
* ModelDriven Actions provide a model object to be
pushed
On 9/21/07, A. Lotfi [EMAIL PROTECTED] wrote:
Hi,
I need to populate a form with data from database, is there any example.
thank you your help is appreciated.
Probably are a ton of them. (Here's one for Struts1.x using iBATIS
On 9/21/07, Kenton [EMAIL PROTECTED] wrote:
At: http://struts.apache.org/2.x/docs/url.html
it says url attribute id is deprecated in favor of var. However, var
doesn't work and id does (Struts 2.0.9). I assume this is a documentation
error. Can I fix this somehow? Or I will just ignore.
Be
Hi,
If you are using struts 1.x then u need to have a database code.Call that
from your action get the values. Set them to your action form thats
itexample if u want...
let your action form be
someActionform extends ValidatorForm{
private String name;
public String getName(){
return
thank you Rick, I will try to do what you said,
in my database I have a table that has :
Id
Title
Priority
I want to populate a form with lot of rows and present them to the user as :
Id Title - five radio buttons
how I am gonna do it in jsp file ?
Hi,
I'm trying to control all of my css styles through the s:head tag, so that I
change things in only one place. I copied the template folder to my project's
webcontent folder, and edited the styles.css file in template/xhtml/ with the
following:
.body {background-color: #00FF00;}
however,
--- Session A Mwamufiya wrote:
.body {background-color: #00FF00;}
That's defining a class called body; does your
body... tag have a class='body' attribute?
If you want to define a style for an HTML element you
shouldn't (AFAIK, anyway; I guess I've never tried it)
preface the element name with
Hi
Let me explain you more in detail.
I need to call an id which is defined in JSP page in Tile. My jsp
page code looks like:tdbean:define id=addrList name=AddForm
scope=request property=add type=java.util.List /tiles:insert
page=/tilepage.jsp flush=true //td
Where as in
Hi,
I am new to struts 2.0.9 ... Earlier I worked on oracle Developer Tools ..
Now we have to migrate From Oracle to Java Struts I need to connect to
database several times so do I need to use Spring Frame Work(as I heared
from my supervisor)
Thanks in advance
Regards
Rama...
You don't *need* to, but it (Spring) can make life a
lot easier.
--- rama krishna yalagandula [EMAIL PROTECTED]
wrote:
Hi,
I am new to struts 2.0.9 ... Earlier I worked on
oracle Developer Tools ..
Now we have to migrate From Oracle to Java
Struts I need to connect to
database
I tried it without the . as well, just: body {background-color: #00FF00; }
but nothing changes.
I circumvented this issue by simply adding a style tag in the head.ftl, and
not try to alter the styles.css file.
Thanks.
--- Session A Mwamufiya wrote:
.body {background-color: #00FF00;}
I echo Dave's sentiment, but you need to determine what your data access
needs are before deciding one way or another.
Many people really like the ORM approach using something like Hibernate.
Others like pure JDBC, or at least *close* to pure JDBC, which is an
area Spring can help in (it can
Im sorry.. what is the question?
M--
- Original Message -
From: rama krishna yalagandula [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Friday, September 21, 2007 6:48 PM
Subject: Spring tutorial
Hi,
I am new to struts 2.0.9 ... Earlier I worked on oracle Developer Tools
.
Now
I think this would make a good jira ticket, if you can clearly
describe what functionality you'd like. Even better, write a patch
and it'll have a much higher chance of getting implemented ;)
Don
On 9/22/07, Gabriel Belingueres [EMAIL PROTECTED] wrote:
Hi,
Quite a few days ago I posted this
Hi
I have a question please,
the user will be presented with a form that has lot of rows from a database,
each line will be like this :
ID --- TITLE --- 0(1) 0(2) 0(3) 0(4) 0(5) --- 5 radio buttons
the user has only to select one radio button of each line (it's like a
survey) and then
If I want to configure Freemarker within Struts 2, how do I access the
FreemarkerManager instance? Ideally, I would do this one time on startup to
set global settings for my application.
I see there are some settings that can be configured via
freemarker.properties, but other options can not.
--
58 matches
Mail list logo