Hello!
I've got a problem to get a value within a logic:iterate construction
(foo is an ArrayList Object):
logic:iterate name=foo id=object
html:textarea ... rows='bean:write name=object property=rows/' /
/logic:iterate
This does not work.
How must it been written to address the method
L.S.,
I'm building a forms-based web application. Most of the times, the data
that was filled in to the form needs to be send into Apache Servicemix
for further processing, so it is best stored in XML format. Is there a
way to use an XML document as the source of data for a Struts 2 form?
Hi All,
I am waiting for your valuable suggestions. Can any one help me in
this
Thanks
Ravi
-Original Message-
From: Jaladanki, Ravi
Sent: Monday, July 09, 2007 5:05 PM
To: user@struts.apache.org
Subject: Help needed in Auto complete tag in Struts2
Hi All,
I want to use the
Ken, others,
now for the definitive answer:
There is one instance per interceptor ref, thus interceptor instances
being unique within the scope they are referenced in.
Example:
package name=foo extends=struts-default namespace=/foo
interceptors
interceptor name=foo
I tried your suggestions but still the ccsStyle doesn't change the checkbox
label color.
My checkbox is created using an interator and is display into a table.
I tried changing the td Style=color:green or the tr style but nothing
changes.
Please other suggestions! Thanks.
DNewfield wrote:
2007/7/10, Dave Newton [EMAIL PROTECTED]:
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
Is there a good tutorial for the Tiles plugin
in struts 2?
Not yet; I was going to do that but was waiting for
Tiles 2 to settle in a bit more then I got
sidetracked.
Dave, exactly what are you waiting
I tried but doesn't work.
However I'am using in my form a particular theme qxhtml for displaying
fields horizontaly in a table tag.
I cann't believe it's so hard to change a label color with struts!
Thanks for your reply.
Leena Borle wrote:
You can try this,
set the theme of your form to
Thanks that's what I needed.
I'am sure it's a powerful language but the success of a language is also how
easy it is to find what you need, the documentation is poor of examples and
it's hard to someone that's new with this type of language.
Hope in your collaboration in future. Thanks.
Hi All,
I've installed SSL on my JBoss container (it works) and have created an
interceptor that checks that the requests to my web app are secure (using
https). I would like to redirect all non-secure requests to use ssl and have
https in the address. How can this be done? I'm not sure how
It may be an ugly hack, but it has worked for some of my actions. If you
return null instead of the action name to be invocated, you can use a
response object to send information directly to the user. The
HttpServletRequest object has method isSecure() which you can use to
determine whether the
Thanks Max, I've just been looking at exactly the same area and I can
replicate the same error. It works fine in IE but fails in firefox.
I think you should enter it in JIRA.
Cheers
Theo
maxmil wrote:
I'm using 2.0.8 and using client side validation which its almost
working perfectly.
I just finished going through a tutorial from ArcTech software (
https://www.arctechsoftware.com/tutorial/welcomePage.do) that included the
Tiles plugin. They charge 29 dollars for the tutorial, but it was well worth
it, since they explained quite a bit how Tiles works with Struts2 (along
with
2007/7/10, Eric Buitenhuis [EMAIL PROTECTED]:
I just finished going through a tutorial from ArcTech software (
https://www.arctechsoftware.com/tutorial/welcomePage.do) that included the
Tiles plugin. They charge 29 dollars for the tutorial, but it was well
worth
it, since they explained quite a
They have entered update paragraphs for those using 2.0.8, however for the
vast majority of it, there is no difference.
On 7/10/07, Antonio Petrelli [EMAIL PROTECTED] wrote:
2007/7/10, Eric Buitenhuis [EMAIL PROTECTED]:
I just finished going through a tutorial from ArcTech software (
On 7/9/07, climbingrose [EMAIL PROTECTED] wrote:
I don't have a chance to do any profiling to find out where is the bottleneck
Before trying any profiling, be sure to follow the tips at
http://struts.apache.org/2.x/docs/performance-tuning.html.
-Ted.
Hi,
I have an action class (A) that uses another class (B). Is there a way
to get access to the servlet context inside B without injecing it
through A?
Thanks in advance
Asaf
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
How to have the struts action being called from the
web.xmlwelcome-file-list configuration,
e.g. see below
welcome-file-list
welcome-file/login.do/welcome-file
/welcome-file-list
The thing that I know is that the JSP/html pages can be configured to be the
welcome page. So if above
Try following tag...
html:textarea ... rows='%=
((YourObject)pageContext.getAttribute(object)).getRows()%' /
On 7/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello!
I've got a problem to get a value within a logic:iterate construction
(foo is an ArrayList Object):
logic:iterate
Thank you, Rene!
This is a great help to me and allows me to move forward with my current
implementation. It might be a good idea for someone from the Struts2
project to update the documentation with Rene's finding, as I am sure
others will also find this unclear and concerning.
Thank you
That is great news! I am always a little apprehensive with newer
frameworks. Well, with frameworks in general as I get nervous when I do
not know what is going on under the covers :-)
Thank you!
-Original Message-
From: cilquirm [mailto:[EMAIL PROTECTED]
Sent: Monday, July 09, 2007
You can use
ServletActionContext.getServletContext()
Il giorno 10/lug/07, alle ore 13:19, Asaf Paris Mandoki ha scritto:
Hi,
I have an action class (A) that uses another class (B). Is there a way
to get access to the servlet context inside B without injecing it
through A?
Thanks in advance
I'll add some words on that to the docs.
Am Di, 10.07.2007, 13:42, schrieb Hoying, Ken:
Thank you, Rene!
This is a great help to me and allows me to move forward with my current
implementation. It might be a good idea for someone from the Struts2
project to update the documentation with
2007/7/10, Amit Sharma [EMAIL PROTECTED]:
So if above can't be done then I am planning to have a JSP
being called and then redirecting it to the action.
It is exactly what you have to do.
Antonio
-
To unsubscribe, e-mail:
Another way to do it (with a little bit less java) is:
logic:iterate name=foo id=object
bean:define id=rows name=object property=rows /
html:textarea ... rows='%=rows%' /
/logic:iterate
[EMAIL PROTECTED] wrote:
Hello!
I've got a problem to get a value within a logic:iterate construction
Hi,
I have written my customised java class to do the form validation within
the action class.
I want to render the validation error messages from a property file and not
hard coding it into the code.
What i understand is the struts ActionSupport class has
addActionError(String msg) which takes
The tab widget itself was not modified, but the tab widget (just a div) is
an extended version of the dojo one. The dojo forum would be a better place
to start as the tab panel is not reall ajax, but just javascript. A good
test would be to reproduce your tabs using only dojo, no struts, if you
Did you look at the example in showcase and the JSON plugin?
musachy
On 7/10/07, Jaladanki, Ravi [EMAIL PROTECTED] wrote:
Hi All,
I am waiting for your valuable suggestions. Can any one help me in
this
Thanks
Ravi
-Original Message-
From: Jaladanki, Ravi
Sent: Monday, July 09,
Hi Musachy,
Thanks for your reply
I have seen show case example but It is returning directly
JSONList.js file which is hard coded in the JavaScript file. But I need
to get them from Action and the same time I have seen json plug-in . But
it is not giving complete information. If you
Hi folks,
I need to turn off the autocompletion feature on a html text input. I am
using my own ajax autocompletion, but the default autocompletion interferes
with mine. I have read, that struts taglib does not support this, as it is
not part of HTML specification. It it is a worthwhile trade for
Hint: Look at AutocompleterExampleAction and options.ftl in showcase.
musachy
On 7/10/07, Jaladanki, Ravi [EMAIL PROTECTED] wrote:
Hi Musachy,
Thanks for your reply
I have seen show case example but It is returning directly
JSONList.js file which is hard coded in the JavaScript
I found this via Google
http://struts.apache.org/2.0.8/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/DefaultActionMapper.html
Default action mapper implementation, using the standard *.[ext] (where ext usually
action)
pattern. The extension is looked up from the Struts
You'll need to tell Struts to not use an action extension. I believe
the setting is 'struts.action.extension=', so by setting it to
nothing, it now won't require the '.action' extension. You shouldn't
need to use the restful2 action mapper for this to work. Be warned,
it may not be fully
Just use the getText() method to resolve the key of your choice. For
example: addActionError(getText(my.message.key));
Don
On 7/10/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I have written my customised java class to do the form validation within
the action class.
I want to render
Agreed - the best practice is to be very careful what you expose via
getter/setters on your Action. Of course, if you still don't trust
the interceptor, just use a custom stack that doesn't include it.
Don
On 7/10/07, Ing. Andrea Vettori [EMAIL PROTECTED] wrote:
Hi,
I think you can only have
I know result-types are, and I'd be pretty surprised if the other two
weren't as well. File a JIRA ticket to get the docs updated, or file
a CLA [1] and get access to change them yourself.
Don
[1] http://www.apache.org/licenses/
On 7/9/07, Bill Johnson [EMAIL PROTECTED] wrote:
According to
I have created some reports with iReport and I tried to integrated them with
my struts2 web application. While the documentation for the jasperReport
plugin explains how to use a datasource and a compiled template to generate
a report, I wasn't able to find out how to use a database connection as
I have a page with several Struts Tabs on it.
When I submit the page, I would like it to come back to the 'active'
tab (the previous selected tab).
Is there a best practice on how to do this?
Thanks,
Brian-
-
To
That's a huge question that is better served by spending some time
with Google, but in general, action-based frameworks map a url to an
action, which is generally a single class with some sort of execute
or perform method. Component-based frameworks like JSF and Wicket
don't deal with urls, but
I'd like to know the best practice too. I've done this setting a parameter
in the request, and in my jsp I have
s:tabbedPanel id=adminpanel selectedTab=%{#parameters['active']}
not very elegant but works.
On 7/10/07, Brian Trzupek [EMAIL PROTECTED] wrote:
I have a page with several Struts
Take a look at the localization section in our documentation, and
override the messages for those validation error keys.
Don
On 7/6/07, Wei Xu [EMAIL PROTECTED] wrote:
In my scenario, I didn't use any Struts validation frame.
s:textfield name=field1 /
Here, field1 is a numeric field in Java
It depends what theme you are using. I believe tooltips require at
least the xhtml theme, and they use Dojo to render.
Don
On 7/9/07, tom tom [EMAIL PROTECTED] wrote:
Hi,
I got the following in S2, jsp.
it shows nothing, infact when I saw the view source it
shows nothing with regards to
Brian Trzupek schrieb:
I have a page with several Struts Tabs on it.
When I submit the page, I would like it to come back to the 'active'
tab (the previous selected tab).
Is there a best practice on how to do this?
Thanks,
Brian-
I believe our Struts 2 Starter archetype uses Freemarker. See the
archetype section in our docs.
Don
On 7/5/07, Mark P Ashworth [EMAIL PROTECTED] wrote:
Good Day,
I have been using FreeMarker for the S2 plug-in development and some other
projects. I find the FTL language more expressive
I need to SUBMIT a form without calling an ACTION because I will use a
JAVASCRIPT to process it.
Is it possible? How?
Thanks in advance.
--
View this message in context:
http://www.nabble.com/How-to-SUBMIT-a-form-without-calling-an-ACTION-tf4056005.html#a11521433
Sent from the Struts - User
On 7/6/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
== 1st Issue ==
- if I click on a link to another page in my menu, the URL will be:
.../otherUrlEdit.action?currentFichierId=1 ... and I can't find how to
avoid it.
There is a parameter in the url building tag that will turn off this
The problem is some browsers, Firefox comes to mind, don't cache
resources when accessed via SSL. This means every Javascript and
image file will be request each time, and in Dojo's case, that is a
lot of Javascript. Dojo usually relies on lazily loaded Javascript
code, so that might mean
--- Rene Gielen [EMAIL PROTECTED] wrote:
[this] means that there are no thread safety issues
with interceptor instance variables.
Well, not in terms of a property of the same name set
in different interceptor references in a config file
(er... it made sense in my head) but interceptors
still
Hm...don't see anything glaringly wrong. Have you tried using
something like Firebug and stepping through the JavaScript?
Don
On 7/3/07, Scott Nesbitt [EMAIL PROTECTED] wrote:
We have the following:
Select.jsp
……
s:head theme=ajax debug=true/
………
s:url id=historyUrl
Hmm...that's a pretty tall order :) If you have any specific
questions, please ask, and you might want to check out the docs on the
JSF plugin, which allows you to use JSF components in your Struts 2
apps.
Don
On 7/2/07, java_user [EMAIL PROTECTED] wrote:
please provide some good migration
Well, at the least, it looks like it deserves a ticket. Pretty
strange it only happens for one action though...
Don
On 6/30/07, Ray Clough [EMAIL PROTECTED] wrote:
I have an application using S1, S2, and other component layers, all of which
use Locale. At application startup, the
2007/7/10, TonyD [EMAIL PROTECTED]:
I need to SUBMIT a form without calling an ACTION because I will use a
JAVASCRIPT to process it.
Is it possible? How?
Thanks in advance.
Try using a normal input type=button instead of a submit button,
and specify the onclick attribute.
HTH
Antonio
Ah, good catch. Well darn, the reason I changed them to return the
object instance was to make it easier to initialise results
programmatically (action methods can return Result objects directly,
not just Strings), but looks like that broke this case. Please file a
JIRA ticket so this gets
If you are wanting to do this on the client side via JavaScript, you
won't be using Struts 2 server-side tags. Look around for JavaScript
tutorials about adding form elements. Perhaps one of the popular
JavaScript frameworks like Dojo will be of help here.
Don
On 6/29/07, Luciano Costa [EMAIL
The problem could be the order of the interceptors. Take a look at
the showcase application as it has at least one model-driven example
action.
Don
On 6/21/07, Victor Neo [EMAIL PROTECTED] wrote:
I have an Action class that implements ModelDriven.
My DummyForm object will be used to store
[...]
[this] means that there are no thread safety issues
*of the discussed kind* with interceptor instance variables.
[...]
should have been clear from the discussion context, but thanks for
further clarification :)
Dave Newton schrieb:
--- Rene Gielen [EMAIL PROTECTED] wrote:
[this] means
You might try the Table Tags plugin -
http://cwiki.apache.org/S2PLUGINS/table-tags.html
Don
On 6/14/07, Giovanni Azua [EMAIL PROTECTED] wrote:
Hi all,
Can anyone please point me please in the S2 example applications to
an implementation of the Page-by-Page Iterator pattern? any ideas
Sure. I've attached an action that will allow you to use jasperreports
to write to the output stream. You'll have to tweak the classpath. Mine
probably won't work. It will load, compile and cache jrxml files located
in /WEB-INF/reports. It uses a javax.sql.DataSource from JNDI. It also
will
climbingrose wrote:
Dojo just seems to be to heavy weight for most purposes. I mean if
you only want a bloody calendar in your webapp, you don't want to
load up a 100kb of javascript. Plus, it might be my experience only,
Dojo seems to have the tendency to hang my browser everytime I open a
Thanx for your detailed reply.
What I did was to add the following fragment of code in the
JasperReportResult.java of the jasperReport-plugin
.
.
JasperReport jasperReport = (JasperReport) JRLoader.loadObject(systemId);
/**
* Edited
*/
JRParameter []reportParameters =
Hi all,
Id like to set up a template as struts2-archetype-starter provides without
using maven to create the project, but I do not know how to set this
template from scratch using ant build. Is there any reference or simple
template for it? I am looking an example using struts 2+Sitemesh+Ajax.
Well, I prefer using Javascript library like JQuery or Mootools for Ajax
rather than Dojo. With JQuery I only have 10kB after compressing with gzip.
On 7/11/07, Lionel [EMAIL PROTECTED] wrote:
climbingrose wrote:
Dojo just seems to be to heavy weight for most purposes. I mean if
you only
Yes, I tried setting that constant but that makes every static file not
to be served by tomcat.
with:
'struts.action.extension='
there won't be .css .html .js
There must be another way. I have seen examples of custom mappers
without .action but I don't seem to be able to make them work in
Yes, as the bootstrap tutorial mentions, the first mapping that
matches wins. I edited the note to add more emphasis to *first* and to
specifically mention the name=* case. Thanks for the heads-up!
-Ted.
On 7/5/07, Eric Buitenhuis [EMAIL PROTECTED] wrote:
Using the wildcards I had a bit of a
Your are using the ajax theme for the url, which will make an ajax request,
so the page won't change, if you just want to navigate to another page, use
the simple theme for the a tag.
musachy
On 7/2/07, Scott Nesbitt [EMAIL PROTECTED] wrote:
We have the following:
Select.jsp
……
s:head
Hi.
Is there a why to tell how many jsessionid's is valid in my webapp.
I want to use it to display the number of online users?
Also is there a way to connect the username from my realm to the
jsessionid so that I can display online users?
BR
Soren, DK
I've found that static html pages are blazing fast, especially those that
don't involve stylesheets, images, or javascript includes. :-)
Seriously, though, I don't think there's any disagreement that ognl ( or any
runtime expression language ) adds a certain amount of overhead, but I've
never
TonyD wrote:
I tried your suggestions but still the ccsStyle doesn't change the checkbox
label color.
You're right--cssStyle results in a style attribute on the checkbox, not
on the label.
My checkbox is created using an interator and is display into a table.
I tried changing the td
Hello Chad, hello Yoge,
thanks for your hints!
meanwhile, I could find a third solution:
logic:iterate name=foo id=object type=my.url.classname
html:textarea ... rows=%= object.getRows() % /
/logic:iterate
Another solution should be to use EL:
html:textarea ... rows=${object.rows}/
Hi Tony,
Thanks for the reply. I use an interceptor to check the HttpServletRequest's
isSecure() method in order to determine it if is secure or not. I've never
used the HttpServletResponse object and I'm not sure how to redirect to the
same address but with https. The redirecting won't be
I need to be able to detect when an item is added (or removed) from the right
side of an optionstransferselect component. Basically if an item on the left
side is added to the right side, I want to be able to run some JavaScript
code to update another part of the page. I tried using the
Thanks, I think the latter works best for my use case.
It would be nice if this feature was a built in component of the
tabbedPanel and transparent to the developer.
brian-
On Jul 10, 2007, at 8:53 AM, Adrian Ost wrote:
Brian Trzupek schrieb:
I have a page with several Struts Tabs on
I've dug into the S2 and XWork code and I can't see anywhere that the name
attribute of an exception mapping is used. Anyone have any clue about this?
Is it just an used attribute that was intended for something that never got
implemented? I'm at a loss here.
-Bill
petchia wrote:
Anyone
Does this mean that errors and messages are stored in the session? If so, is
this configurable? I don't see why the errors would be stored in the session
by default.
-Bill
徐 伟 wrote:
Try this way, and it might works.
Make your action beans all implement
I am evaluating the yahoo calendar and am having a bit
of trouble with the YUI plugin. I would like to
enable multiple select on calendar but do not see an
option to set this through the plugin.
Does anyone know of a way to do this?
I tried the example code but the script in
On 7/10/07, Tomas KRAMAR [EMAIL PROTECTED] wrote:
Hi folks,
I need to turn off the autocompletion feature on a html text input. I am
using my own ajax autocompletion, but the default autocompletion interferes
with mine. I have read, that struts taglib does not support this, as it is
not part of
The object for your datepicker will be YAHOO.datepickers.${id}, where id is
the value of the id property. And there is no property for setting up
multiple values (needs to be implemented, right now there is only one hidden
input for the picker, for multiple selection you would need more)
musachy
This article answers my question:
http://www.lunatech-research.com/archives/2005/07/29/struts-urls
There is a big but, mapping each extension in the web.xml to the default
servlet works but it's not the ideal solution since it would require
that every extension in my application to be mapped,
Crazyreal:
Thank you for the hint. I did that and now I
am getting this error:
java.io.IOException: Error including path '/layout.jsp'.
The absolute uri: http://struts.apache.org/tags-tiles cannot
be resolved in either web.xml or the jar files deployed with
this application.
Here is my
Your web.xml file can have a listener for StrutsTilesListener. Make sure your
TilesInterceptor is implemented.
-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 10, 2007 2:54 PM
To: 'Struts Users Mailing List'
Subject: RE: [Struts 2] Tiles plugin
Hi,
Which OGNL / JSTL expression could I use from a JSP page that will
return the currently executed action's name?
TIA,
Gabriel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
Try:
[EMAIL PROTECTED]@ACTION_NAME]
//are you sure you need that?
musachy
On 7/10/07, Gabriel Belingueres [EMAIL PROTECTED] wrote:
Hi,
Which OGNL / JSTL expression could I use from a JSP page that will
return the currently executed action's name?
TIA,
Gabriel
James:
I added the listener to my web.xml:
!-- Struts tiles listener --
listener
listener-classorg.apache.struts2.tiles.StrutsTilesListener/listener-class
/listener
I don’t see anything about the TilesInterceptor.
What am I supposed to do there?
Thanks,
Neil
--
Neil
Thanks Musachy, I'll give it a try.
I want to create my menuing subsystem directly based on the called
action's name to test which menu item is the currently selected one.
Knowing the action's name would avoid me at least to define some sort
of string identifier somewhere to test against.
Any
Søren Blidorf wrote:
Hi.
Is there a why to tell how many jsessionid's is valid in my webapp.
I want to use it to display the number of online users?
Not directly, buy you can implement a session listener to track sessions
being created and destroyed and keep count of how many are currently
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
The absolute uri:
http://struts.apache.org/tags-tiles cannot
be resolved in either web.xml or the jar files
deployed with this application.
That's not the Tiles taglib URI.
http://tiles.apache.org/tutorial/basic/pages.html
In general, you can find
Dave:
In that case, the example on this page:
http://cwiki.apache.org/WW/tiles-plugin.html
is wrong.
I changed the URI and things are working now.
Thanks,
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit
Like I said, Tiles 2 was in a state of flux, and the
Tiles plugin was experimental; I don't know when it
will be considered non-experimental.
When something is so labeled sometimes you need to do
a little digging!
d.
--- Neil Aggarwal [EMAIL PROTECTED] wrote:
Dave:
In that case, the
switch the doctype url to
http://tiles.apache.org/dtds/tiles-config_2_0.dtd instead
On 7/10/07, Dave Newton [EMAIL PROTECTED] wrote:
Like I said, Tiles 2 was in a state of flux, and the
Tiles plugin was experimental; I don't know when it
will be considered non-experimental.
When something is
sorry...missed the answer Dave gave.
On 7/10/07, Eric Buitenhuis [EMAIL PROTECTED] wrote:
switch the doctype url to
http://tiles.apache.org/dtds/tiles-config_2_0.dtd instead
On 7/10/07, Dave Newton [EMAIL PROTECTED] wrote:
Like I said, Tiles 2 was in a state of flux, and the
Tiles plugin was
Thanks! I very well could have missed it. Midnight programming lends
itself to that. Anyway, now I know, so it's not that big of a deal.
Thanks for the response.
Eric Buitenhuis
On 7/10/07, Ted Husted [EMAIL PROTECTED] wrote:
Yes, as the bootstrap tutorial mentions, the first mapping that
Obviously as a Struts 2 user I see the benefit of the framework. I actually
convinced my company to abandon Struts 1 and go forward with Struts 2.
However, I really think you need to consider carefully where you should use
the the framework. From my own experience, I tend to develop public pages
92 matches
Mail list logo