Thanks for the reply.
Can you please tell me which cookbook example which you are referring.
I went through showcase.war, there was doubleselect which was closest to my
requirement, but, it doesn't hit the server for change in master select.
But, in my case I want some sql query to be executed
I think that the struts2 FAQ is here
http://struts.apache.org/2.0.6/docs/faqs.html
I couldn't find anything relevant (after 3 mins). But in
http://struts.apache.org/2.x/docs/strutsproperties.html i saw this:
### Used by FilterDispatcher
### If true then Struts serves static content from inside
Dear All,
Just optimize my small project which is using struts 2.0.6. Here is
something that may help to get the faster speed when load a page:
1, Use the default setting of Struts.properties unless you really know the
meaning of the parameter. For example: set
Hi,
How can I access application context on a custom ognl.TypeConverter?
Thanks,
João
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
HI Guys,
I tried to manage some custom error messages using ActionMessage and
ActionError. I set the text message in the Action and redirect to the ERROR
result but I don't have any text displayed in the JSP when I use
actionmessage tag and actionerror tag.
Did i miss something ? any
How can I tell struts to use the SpringObjectFactory on global
converters registering phase.
Thnks
João
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- Jay [EMAIL PROTECTED] wrote:
action path=/public/login type=blah blah
forward name=success
path=/public/defaultPage.do
redirect=true
/forward
d.
Do you Yahoo!?
Everyone is
Hi
I'm using the s:iterator tag with the status attribute to get the
iterator count. From this I want to dynamically construct an HTML tag
div class=columnX/ where X is the value of the iterator status
count. Can I actually do this and if so, how or do I need to provide
this information from my
In the ajax section(in showcase), look for the Autocompleter Tag. Also here:
http://struts.apache.org/2.x/docs/ajax-tags.html
musachy
On 2/28/07, Siva Gurusamy [EMAIL PROTECTED] wrote:
Thanks for the reply.
Can you please tell me which cookbook example which you are referring.
I went
I don't think so, if you set it to false, I think you will have to unzip all
the dojo, and templates stuff into that folder, which is not desirable
(unless you want to use your own version of Dojo)
musachy
On 2/28/07, Tim Azzopardi [EMAIL PROTECTED] wrote:
I think that the struts2 FAQ is
--- Roger Varley [EMAIL PROTECTED] wrote:
I'm using the s:iterator tag with the status
attribute to get the iterator count. From this I
want
to dynamically construct an HTML tag div
class=columnX/ where X is the value of the
iterator status count. Can I actually do this and if
so, how or
On 28/02/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Roger Varley [EMAIL PROTECTED] wrote:
I'm using the s:iterator tag with the status
attribute to get the iterator count. From this I
want
to dynamically construct an HTML tag div
class=columnX/ where X is the value of the
iterator status
This works for me: set a request scope variabe with s:set and then use a jstl
expression like ${zi}
You should be able to use ${zi} pretty much anywhere.
Don't know if there is a more strutsy way of doing it but it works for me.
e.g.
s:iterator value=collectionOnAction status=status
--- Roger Varley wrote:
On 28/02/07, Dave Newton wrote:
See the bottom of
http://cwiki.apache.org/WW/iterator.html
I think I must be having a particularly dense day
today, but I can't see anything there that helps.
Either use JSTL as previous poster mentioned or use
the s:property.../
Either use JSTL as previous poster mentioned or use
the s:property.../ tag to create the div name.
Actually after replying to your previous e-mail I had that doh! moment and tried
div class=cols:property value=#status.count/ which worked.
This, for some reason surprised me that it worked, but
We are using websphere 5.1.2, which only supports j2ee 1.3. Can I use struts
2 (which has servlets 2.4) with wsad 5.1.2?
Dariusz Wojtas wrote:
Yes, you can use it with Websphere and it's Java 1.4
It worked for me.
Look here:
I was referring to the JWP cookbook actually :)
JWP, short for Java Web Parts, can be found here:
http://javawebparts.sourceforge.net
The part you will be most interested in for this is APT, the AjaxParts
Taglib:
Another good online example using JWP
http://www.learntechnology.net/content/ajax/ajax_select_alter.jsp
On 2/28/07, Siva Gurusamy [EMAIL PROTECTED] wrote:
Thanks for the reply.
Can you please tell me which cookbook example which you are referring.
I went through showcase.war, there was
I am trying to use struts 2 and can not figure out how to do the following
that I could in struts 1.3
logic:iterate name=person property=addresses id=address
indexId=ctr
html:text name=address property=addrLineOne indexed=true /
html:text name=address property=addrLineTwo indexed=true /
Am Dienstag, 27. Februar 2007 schrieb cilquirm:
I see errors like that on occasion ( mine is with the JSONResult type and
the location property ), but they've always been warnings.
Is yours logged at the ERROR level?
they are logged at WARNING level. Should I just ignore them? I do not feel
Hi,
I dont see
%@ taglib prefix=s uri=/struts-tags %
in your jsp page, this may be the problem.
Thanks,
Nuwan.
- Original Message -
From: ekoje ekoje [EMAIL PROTECTED]
To: user user@struts.apache.org
Sent: Wednesday, February 28, 2007 12:04 PM
Subject: Mgnt Error message
HI
Hello everybody,
The documentation about JSF plugin in Struts2 is not long enough for me
to answer my question. So, could you please give your idea/opinion here?
My question is how we compare Struts2 + JSF + a layout thing (like
sitemesh) to JSF with Facelets. Is there any advantage using the
I do.
It looks vicious, but is pretty harmless.
You could wipe it out of your logs by setting the class that throws it to
only log ERROR and greater.
Piero Sartini-3 wrote:
Am Dienstag, 27. Februar 2007 schrieb cilquirm:
I see errors like that on occasion ( mine is with the JSONResult type
Is DevMode set to false?
struts
constant name=struts.devMode value=false /
...
/struts
-Ted.
On 2/27/07, Piero Sartini [EMAIL PROTECTED] wrote:
upgraded to 2.0.6 - now the error below is thrown when accessing an Action
with validators.
dont know if it is important, but ajax-validation is
I do it like so :
Map contextMap = ActionContext.getContext().getContextMap();
ApplicationContext applicationContext = (ApplicationContext) ((Map)
contextMap
FYI:
I don't see the struts2-config-browser-plugin version 2.0.6 in the apache
maven repo. I had to grab it out of
struts2-all zip file. I _do_ see a struts2-config-browser-plugin in the repo
with a version of
2.0.6-SNAPSHOT, unfortunately it has a dependency for struts _1.3.5_ in
it's POM.
I like to do the following: When a selection in a select box changes,
display a value from a mapped property in a textarea field. To do this I
need to get the currently selected value of the ComboBox by calling some
javascript function in the onchange event of SELECT.
This is my JSP code:
I do.
It looks vicious, but is pretty harmless.
You could wipe it out of your logs by setting the class that throws it to
only log ERROR and greater.
I will do it for development - but I hope this gets fixed. Exceptions are the
slowest parts in the jvm as far as I know. Performance cant be
Hello. Can struts even display Unicode symbols in options drop downs?
Does anyone know how to get unicode symbols to work in Struts controls?
I have Circle-P - #8471; - Lucida Sans Unicode has that symbol on a PC,
and our MACs also have that font. The Trademark symbol (TM) started
working in
Hi,
The application is using Struts 1.2.7 with WebSphere Studio Application
Developer 5.1.2 and WebSphere Application Server Express 5.1.
I have been going thru some nasty problems getting the same project to run
on Rational Application Developer v7.0.0.1 and WebSphere Application Server
All,
Have a design issue here. We have a web based application and have 2000
concurrent users. The requirement is: when new data comes on Oracle database
for users this data has to be sent to the online users on a real time basis.
Someway, the real time data needs to be pushed to the
Well, if you can live with not literally pushing to the client, this is
the sort of application AJAX was made for. Have a timed event, every few
seconds maybe, whatever your tolerable definition of real time is, that
makes and AJAX request to check for new data and display it when found.
Pretty
The div tag when used on the ajax theme, has a timer that will make it
refresh its content from the url specified in the href attribute, examples
available in showcase and here:
http://struts.apache.org/2.x/docs/ajax-tags.html
musachy
On 2/28/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
I have page1.jsp which has a form which calls Page1Action which forwards
to page2.jsp. Also, session scoped Page1Form and Page2Form.
In Page1Action, I do:
Page2Form frm = new Page2Form();
frm.setSomeVariable(Some Value);
Then read this value in page2.jsp to display.
I feel the bad part is
Hi!
Well, I think that the your technical design requirement can be developed
using Ajax technologies. In J2EE we have e.g. DWR, http://getahead.ltd.uk/dwr/,
to use Ajax inside web applications, but the problem could be the comunication
server-client because the request to update data in
On 2/28/07, Chaudhary, Harsh [EMAIL PROTECTED] wrote:
I have page1.jsp which has a form which calls Page1Action which forwards
to page2.jsp. Also, session scoped Page1Form and Page2Form.
In Page1Action, I do:
Page2Form frm = new Page2Form();
frm.setSomeVariable(Some Value);
Then read this
You can refresh the page, but that would probably be annoying to the user,
not to mention that data entered on fields will most likely be lost. Using a
div you can update just the part of the page that is important. Using the
div tag in struts:
s:url id=ajaxTest value=/AjaxTest.action /
s:div
On 2/28/07, Maya menon [EMAIL PROTECTED] wrote:
Also, my colleague asked me this question when I talked to him about a timed AJAX
event. Why cant we simply refresh the jsp page ? Why should we use AJAX ? so, whats
the real advantage of using an AJAX timed event to a normal JSP/HTML refresh ?
I am not doing things this way. I presented this as a hypothetical case
and my question is why is this bad? I mean what problems can we run into
using this technique.
Thanks for the write up but I would appreciate something that in more in
detail.
Thanks,
Harsh.
-Original Message-
From:
Thanks Musachy for your response.
We use Struts 1.x right now.. Guess we have to update..
Please send me if yu have any examples/links..
Musachy Barroso [EMAIL PROTECTED] wrote:
You can refresh the page, but that would probably be annoying to the user,
not to mention that data entered on
Am Mittwoch, 28. Februar 2007 schrieb Ted Husted:
Is DevMode set to false?
no, its set to true.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Oops...I can't help it, I always assume we are talking about S2. If you are
using S1, pick an ajax framework, most of them have a Div tag like the one
on S2. See Frank's email for details on one of them.
musachy
On 2/28/07, Maya menon [EMAIL PROTECTED] wrote:
Thanks Musachy for your response.
The difference between using AJAX and just refreshing a page is a well
designed AJAX application sends over just the information that is
needed. For a JSP/HTML page refresh you're sending more data over the
line. The key here is a well designed AJAX application.
Maya menon wrote:
Thank you
Thank you for your reply.
Why is it only server-side ?
Regards,
Selon Niall Pemberton [EMAIL PROTECTED]:
No its server-side only.
Niall
On 2/27/07, jmpdev [EMAIL PROTECTED] wrote:
Hi,
I would like to know if it is possible to call validWhen on the client
side?
I didn't find
I'm not sure what your proposing is bad per se... let's ask it this way:
how else could you accomplish this without manually instantiating the
form, because I agree, that's the one part that doesn't smell great to
me either.
One way to do it would be that the forward returned from Page1Action
On 2/28/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
I'm not sure what your proposing is bad per se... let's ask it this way:
how else could you accomplish this without manually instantiating the
form, because I agree, that's the one part that doesn't smell great to
me either.
One way to do
Are there any plans to add retro-translated versions of the struts 2 bundled
plugins (like spring plugin) to the j4 distribution? That would be really
great for those of us with server admins still stuck in 2004...
--- William Vuong [EMAIL PROTECTED] wrote:
Are there any plans to add retro-translated versions
of the struts 2 bundled plugins (like spring plugin)
to
the j4 distribution? That would be really great for
those of us with server admins still stuck in
2004...
You can also just translate them
Hi,
The application is using Struts 1.2.7 with WebSphere Studio Application
Developer 5.1.2 and WebSphere Application Server Express 5.1.
I have been going thru some nasty problems getting the same project to run
on Rational Application Developer v7.0.0.1 and WebSphere Application Server
In DevMode, the framework logs a number of extra warnings. In this
case, a control is being submitted that doesn't have a corresponding
property. This might be OK (and probably is), but in DevMode, the
framework nags us just to be sure.
In production or late development, always set DevMode to
Thanks for clearing this config option.
But the error does not go away with DevMode set to false.
Am Donnerstag, 1. März 2007 schrieb Ted Husted:
In DevMode, the framework logs a number of extra warnings. In this
case, a control is being submitted that doesn't have a corresponding
property.
On 2/28/07 11:06 AM, John Trollinger [EMAIL PROTECTED] wrote:
I am trying to use struts 2 and can not figure out how to do the following
that I could in struts 1.3
logic:iterate name=person property=addresses id=address
indexId=ctr
html:text name=address property=addrLineOne indexed=true /
The first example you give on vitarara.org is the correct method.
Mark Menard wrote:
On 2/28/07 11:06 AM, John Trollinger [EMAIL PROTECTED] wrote:
I am trying to use struts 2 and can not figure out how to do the following
that I could in struts 1.3
logic:iterate name=person
Hello:
I am trying to follow this guide:
http://struts.apache.org/2.0.6/docs/html-form-buttons-howto.html
To create a multiple button form. Unfortuntely, it is not
working for me.
I created a simple demo page at:
https://tweb.retcgroup.com/thymeleweb/test/FormTest.action
As you can see, press
I am getting a connection, pool exhausted error, in the action class
below.
The error happens exactly after the hundredth connection, even though I
have
closed all my statements, result sets and contexts. (I know that one
would not normally do db access in an Action class, however, I'm
Where are you closing the connection?
-Original Message-
From: Mon Cab [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 12:23 PM
To: Struts User Group
Subject: Connection, pool exhausted error
I am getting a connection, pool exhausted error, in the action class
below.
The
I thought that closing the connection was unnecessary when using a
connection pool. I was under the impression that one would just close
the context, which would return the connectin to the connection pool.
Is this not the case?
--- Kalra, Ashwani [EMAIL PROTECTED] wrote:
Where are you
No. Closing the Initial context will close the connection(not database)
to the naming service from which you look up the datasource.
When you call ds.getConnection(), you actually get a proxy class which
delegates your calls to actual vendor specific connection. When you call
close on this, an
That fixed it. It's working now. Thanks Kalra.
--- Kalra, Ashwani [EMAIL PROTECTED] wrote:
No. Closing the Initial context will close the connection(not
database)
to the naming service from which you look up the datasource.
When you call ds.getConnection(), you actually get a proxy
59 matches
Mail list logo