Thank you. I actually solved the problem. When I added another one parameter:
param name=parsetrue/param
myParameter5 started working.
Thanks.
Marcin
On 5/2/07, Laurie Harper [EMAIL PROTECTED] wrote:
Marcin Zduniak wrote:
Hello everyone,
I am using Struts2 and I am curious how to pass
I am trying to populate an html drop down with the Struts select and options
tags. The
cancelList bean referenced in the collection is an ArrayList of struts
LabelValue beans.
Here is the tag snippet:
bean:define id=cancelList property=cancel name=detailsForm
/
I am trying to populate an html drop down with the Struts select and options
tags. The
cancelList bean referenced in the collection is an ArrayList of struts
LabelValue beans.
Here is the tag snippet:
bean:define id=cancelList property=cancel name=detailsForm
/
Dear All
I'm new to Struts and building a prototype with
struts, ,hibernate and spring follow the instruction
at
http://www.roseindia.net/struts/hibernate-spring/index.shtml
When I execute the example, exception generated
(Attribute locale invalid for tag html according to
TLD). After I remove
Hi,
try this below code., i just add the type attribute.
bean:define id=cancelList property=cancel name=detailsForm
type=java.util.ArrayList/
html:select property = cancelReason
option value = --Select--/option
html:options collection=cancelList property=myValue
Hi,
Its something to do with your TLD files., the attribute 'locale' is removed
from the TLD file you are using., are you using the same struts version that
is sepcified for this tutorial?. this may be due to different TLD files you
have in the librareis you are using.
Thanks,
Nuwan
-
Hi,
Well it is DEPRECATED in struts 1.2.9
http://struts.apache.org/1.2.9/userGuide/struts-html.html#html
Thanks,
Nuwan
- Original Message -
From: Nuwan Chandrasoma [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, May 02, 2007 11:18 AM
Sorry guys, I don't know why the mailer tells me that my mail is spam...
I've answered 3 times to give the solution using the JSTL Core, but
the mailer blocked them. I think it's because of the code that I put.
---
This is an automatically generated Delivery Status Notification
Delivery to the
thanks Nuwan. Finally get it work and next step would
be moved this prototype into latest version 1.3.8 :)
--- Nuwan Chandrasoma [EMAIL PROTECTED] wrote:
Hi,
Well it is DEPRECATED in struts 1.2.9
http://struts.apache.org/1.2.9/userGuide/struts-html.html#html
Thanks,
Nuwan
-
Am I missing something? I have a working version of an AuthInterceptor, but
still no examples on how to control isUserInRole().
On manning.com I found a lightbody_src.zip from WW in action, but it doesn't
handle roles.
Could anybody tell me the location of Mark Mernards blog?
/Flemming
i think your saying abt this gr8 tutorila right?
Creating a Login Interceptor in Struts 2
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor
Thanks again Mark..
Thanks,
Nuwan
- Original Message -
From: Flemming Seerup [EMAIL PROTECTED]
To:
Hi Flemming,
On 02/05/07, Flemming Seerup [EMAIL PROTECTED] wrote:
Am I missing something? I have a working version of an AuthInterceptor, but
still no examples on how to control isUserInRole().
On manning.com I found a lightbody_src.zip from WW in action, but it doesn't
handle roles.
Could
On 5/1/07, Pedro Herrera [EMAIL PROTECTED] wrote:
when is 2.0.8 release coming up ?
Anyone interested in forthcoming releases should follow the dev list.
All development discussions take place on the dev list, and anyone who
follows the dev list knows as much as the rest of us :)
A good way
AFAIK, the most up-to-date S1 book is still Struts: The Complete Reference.
* http://struts.apache.org/index.html#Newbies
HTH, Ted.
http://husted.com/ted/blog/
On 5/1/07, Richard Kroll [EMAIL PROTECTED] wrote:
Hello All,
I'm moving into a position that requires me to work with S1. I have been
Has anyone tried the ArchTech S2 tutorial yet?
* https://www.arctechsoftware.com/tutorial/tutorial.do?subcatId=4
-Ted.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I haven't read of his books yet myself, but I notice that Budi
Kurniawan has a new Struts 1 book out now
* http://www.amazon.com/exec/obidos/tg/detail/-/0975212818/apachesoftwar-20/
and a Struts 2 book due out in the fall
*
Hello
I disable el because '#' is used by the JSP EL under JSP 2.1 and I use this
character in OGNL expressions. This information is from
http://struts.apache.org/2.x/docs/ognl.html.
OK, disable is wrong word, I should wrote that I set isELignored to true :-)
My first idea was that I can use:
Am I missing something? I have a working version of an AuthInterceptor, but
still no examples on how to control isUserInRole().
To control the isUserInRole() you will have to look at your Servlet
container and customise the AuthInterceptor to interact with your
container's implementation of
--- Marcin Orlinski [EMAIL PROTECTED] wrote:
s:property value=%{#request.getRemoteUser()} /
Does %{#request.remoteUser} work?
d.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi Folks,
I get the following Error 500 message when starting Tomcat on
my Windows XP computer:
Settings could not parse struts.locale setting, substituting
default ... locale
I think possible solutions include:
1. changing port# back to 8080; even thought Tomcat
installation
Does %{#request.remoteUser} work?
No, it doesn't work (result null).
It works when I set attribute remoteUser in request. This is
request.getAttribute(remoteUser), no request.getRemoteUser().
Best regards
Marcin Orlinski
--
View this message in context:
Is that one the only error on the log?
musachy
On 5/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi Folks,
I get the following Error 500 message when starting Tomcat on
my Windows XP computer:
Settings could not parse struts.locale setting, substituting
default ... locale
I think
Works:
[EMAIL PROTECTED]@getRequest().getRemoteUser()}
Best regards
Marcin Orlinski
Dave Newton-4 wrote:
Does %{#request.remoteUser} work?
No, it doesn't work (result null).
It works when I set attribute remoteUser in request. This is
request.getAttribute(remoteUser), no
Hi guys,
I've got a question.
How to trigger somerhing when change from one tab to another one?
Thanks,
Felipe
--
View this message in context:
http://www.nabble.com/How-to-capture-an-event-when-changing-the-selectedTab-in-a-TabbedPannel--tf3680726.html#a10286356
Sent from the Struts - User
var TEAM_LOOKUP = 2;
function onbodyload()
{
var f = document.getElementById('mainForm');
var t = f.elements[TEAM_LOOKUP];
t.value = parent.originalValue;
t.focus(); // this does not work! why?
}
Scott
--- jdmr [EMAIL PROTECTED] wrote:
Would you mind posting the onload
There are 3 input for each autocompleter, the one with the value, and the
one with the key are hidden, so setting the focus on them won't work, you
need to use the visible one.
regards
musachy
On 5/2/07, Scott Nesbitt [EMAIL PROTECTED] wrote:
var TEAM_LOOKUP = 2;
function onbodyload()
{
There is an open issue for this, but I haven't got to it yet
musachy
On 5/2/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:
Hi guys,
I've got a question.
How to trigger somerhing when change from one tab to another one?
Thanks,
Felipe
--
View this message in context:
Yes,
It is the only warning message when starting up Tomcat. All
others are prefaced by INFO.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi, I am trying to reset the value of a datetimepicker in a jsp page using
struts2 (2.0.6).
I can not reset the value.
See code below.
The onchange and the call to the Java script function (planStatuschanged )
seems to work, but the datetimepicker's value is not set to . If I use an
ordinary
Yeah, I remembered. I reported it.
But the hope is just like mother-in-law. The last to be dead.
Thanks Anyway.
Felipe
Musachy Barroso wrote:
There is an open issue for this, but I haven't got to it yet
musachy
On 5/2/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:
Hi guys,
I've
Hi,
I try to junit test my field-validators by using
DefaultActionValidatorManager.
It does work but with one problem. My action class implements
ModelDriven so to be able to test my validations in *-validations.xml I
have to add model. before every OGNL-expression and afterwards
remember to
At this time, no. Stay tuned though!
--
James Mitchell
On May 1, 2007, at 8:44 AM, David Harland wrote:
Hi
Have you any probable release dates for the next version of struts 2.
Thanks
Dave.
__
Ufi Limited
Registered
The whole idea behind the handler function is that you are going to make
the request yourself, instead of letting struts do it for you. The handler
is just a plain javascript function like:
function superHandler(widget, domNode) {
//use some other framework to do the ajax request, Dojo,
You need to call the setDate(date) method on the *widget* for the
datepicker, assuming you have a datepicker with the id dp0:
dojo.widget.byId(dp0) .setDate(new Date());
musachy
On 5/2/07, kris16 [EMAIL PROTECTED] wrote:
Hi, I am trying to reset the value of a datetimepicker in a jsp page
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis
Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez
à la mise à jour de votre carnet d'adresses.
Hi all,
I'm using the textfield ui form inside an a form tag like below:
s:form action=create
Yes, I would like to do the request in the JavaScript
because I need to do some other work there before the
request happens.
If I knew how Struts did the request I would just do
the same thing at the bottom of my function.
Scott
--- Musachy Barroso [EMAIL PROTECTED] wrote:
The whole idea
Hi Musachy,
yes that works thanks. But i do not want to set the value to new Date().
I want to set i to , or erase the text field from the date so to say.
Is that possible ?
/Krister
Musachy Barroso wrote:
You need to call the setDate(date) method on the *widget* for the
datepicker,
Hi, for a 2 minute demo of how nice the maven jetty integration is,
try this:
(You must have Maven and SVN client installed)
$ svn co http://svn.apache.org/repos/asf/struts/struts2/tags/
STRUTS_2_0_6/apps/mailreader/
$ cd mailreader
$ mvn jetty:run
Open your browser to
If you are using submit, or anchor tag you can call reloadContents() on
the widget passed as a parameter, if you are using the div tag, you can call
refresh() on it. These functions are not really part of the api and might
change in the future (although it would be nice if they were right?).
dojo.widget.byId(dp0).inputNode.value = ;
Use at your own risk, you are using Dojo internals there :)
musachy
On 5/2/07, kris16 [EMAIL PROTECTED] wrote:
Hi Musachy,
yes that works thanks. But i do not want to set the value to new Date().
I want to set i to , or erase the text field from the
As in setting theme =cssxhtml-theme to incorporate your css classes..more
information available at
http://struts.apache.org/2.x/docs/cssxhtml-theme.html
Anyone else?
M
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom
On 5/1/07, David Harland [EMAIL PROTECTED] wrote:
Hi
Have you any probable release dates for the next version of struts 2.
Thanks
Anyone interested in forthcoming releases should follow the dev list.
All development discussions take place on the dev list, and anyone who
follows the dev list
Hmm, this:
function handler(widget, node)
{
widget.reloadContents();
}
Gives Stack overflow at line: 4872
Scott
--- Musachy Barroso [EMAIL PROTECTED] wrote:
If you are using submit, or anchor tag you can call
reloadContents() on
the widget passed as a parameter, if you are using
the
My bad, the notifyTopics are published inside that function so it won't
work. Warning: Hack ahead :)
var beforeTopicsArray = widget.beforeNotifyTopicsArray;
widget.beforeNotifyTopicsArray = null;
widget.reloadContents();
widget.beforeNotifyTopicsArray = beforeTopicsArray;
I will add a
why is it that when i create a checkbox using the s:checkbox tag that i
end up with 2 html inputs?
s:checkbox name=bean.active /
yields ...
input type=checkbox name=bean.active value=true checked=checked
id=weblogConfig_bean_active/
input type=hidden name=__checkbox_bean.active value=true/
How do I get the Action input to return to *the* page that failed the
validation? It could be addPage, UpdatePage, or deletePage.
result name=input
type=tiles
*_tileThatFailedValidation_*
/result
--
Scott
[EMAIL PROTECTED]
Struts never knows what is *the page* that failed. The action gets an http
request, but it doesn't know what was the page, with the submit in it, that
caused the request. You can pass a hidden field with the name of the
page(let's say inputPage), and then have a result like this:
result
--- Allen Gilliland [EMAIL PROTECTED] wrote:
why is it that when i create a checkbox using the
s:checkbox tag that i end up with 2 html inputs?
This way you don't have to do anything special for
non-checked checkboxes (like in S1 you had to use the
ActionForm reset method). Non-checked
Thanks Dave --
Perhaps if I explain this in a different context we can arrive at the
optimum solution. To begin, I am writing a generic CRUD where all my
results are complex tiles pages. I have a single Action that handles each
of the CRUD user gestures as follows:
action name=course_*
--- [EMAIL PROTECTED] wrote:
Actions work with beans/OGNL in a custom tag
friendly
way; tiles does not. The ViewPreparer works fine
for
stashing collections of beans in the request
scope and then manually working them into the JSP.
I don't think the list supports attachments; at least
I
Thanks brother! Is this old school technique still used in S2? I would
have guessed S2 would hold on to previous request information in the
ActionContext so developers would no longer have to do this riff raff.
On 5/2/07, Musachy Barroso [EMAIL PROTECTED] wrote:
Struts never knows what is
Is there a soft way to get the name of the tile definition into this
hidden field without hard coding it someplace? I really dislike coding
names and places beyond the XML file itself. I already have a BaseAction
that extends ActionSupport that is starting to make me ill! I really would
have
In short... workflow. I am trying to leverage XML validation, wildcards,
tiles, and a Spring injected Action. Also, I'm trying to wire the results
in the action mapping in such a way that I am not recreating the wheel each
time I need another CRUD. It just seems like some of the parts within
--- [EMAIL PROTECTED] wrote:
In short... workflow.
Oh. I just know about the Tiles/OGNL stuff :)
d.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Well, I tried this:
function handler(widget, node)
{
var beforeTopicsArray =
widget.beforeNotifyTopicsArray;
widget.beforeNotifyTopicsArray = null;
widget.reloadContents();
widget.beforeNotifyTopicsArray = beforeTopicsArray;
}
and now I do not get a stack overflow, but the action
is
In case someone else is trying to do the same thing, here is the
solution I came up with. Using a multiple s:checkbox instances with a
name that points to a String[] did not give the results I wanted so I
had to bag that idea. Instead I did this ...
Action:
private String[] deleteIds = new
Still using the 1.2.9 version of Struts and was posed an interesting
question. Considering the fact that dropping a modified JSP file in
the web container will force a re-compile of the JSP thereby
rendering a changed display. What are the possibilities if you drop a
new
Hi!
I'm trying to use a submit button outside the form I want to submit, but
it's not working.
@s.submit
type=submit
theme=ajax
label=Salvar
targets=divNewsForm
formId=formNews
href=${urlNewsForm_Save} /
In this case I want to submit the
Synopsis:
FilterDispatcher may not cleanup completely and causes the
StrutsRequestWrapper to be omitted in some executions (race condition).
Adding ActionContextCleanUp filter seems to alleviate the issue. As
advertized, I'd expect FilterDispatcher to be able to function on its
own.
Long story:
Are you sure about this technique? I have the hidden field in my page and I
can see that it is set to the correct string, however, when this page is
POSTed, I get the following error. It appears that the hidden field is not
quite making it into the struts.xml result.
15:04:38,762 WARN
I'm not sure what that error is, but you can use OGNL expression on results,
using ${expression}, and the request parameters are available in
#parameters, so yes, it should work :)
musachy
On 5/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Are you sure about this technique? I have the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Alan,
Alan Treece wrote:
is there a way to force the change in the resource bundle?
I assume that you mean that you want the server to /automatically/
reload the resource bundle?
Some servers provide a mechanism for watching specific files for
Yes, I was playing with Maven last night... Unfort this is a short term
project, and the powers that be wouldn't let me rearrange our structure to
fit Maven. Plus we have some funny security configuration and JNDI stuff on
Websphere that I'm not sure Jetty would support
But I'm definitely
Actually, you can use Maven with any structure you like. As far as
dealing with funky jndi, combining the powers of Maven and Spring
would take care of those concerns.
What issue are you having?
--
James Mitchell
On May 2, 2007, at 6:16 PM, Antony Stubbs wrote:
Yes, I was playing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Antony,
Antony Stubbs wrote:
We're developing a Struts application which will be deployed onto
Websphere eventually.
Honestly, it's best to develop on the save application server that you
intend to use for production. Standard APIs are all well
thanks Nuwan. Finally get it work and next step would
be moved this prototype into latest version 1.3.8 :)
--- Nuwan Chandrasoma [EMAIL PROTECTED] wrote:
Hi,
Well it is DEPRECATED in struts 1.2.9
http://struts.apache.org/1.2.9/userGuide/struts-html.html#html
Thanks,
Nuwan
-
I am considering the use of Tomcat 6.0 which implements Servlet 2.5 and JSP
2.1. Should I expect any issues using it with Struts 2.0.6?
Regards,
Rohit
I come from the Struts 1 world, and am trying to find out how to do this
properly in Struts 2.
This is a common issues. Let's say we have a Web site that has both
protected (needs login) and public resources. If users click a link to a
protected resource, the site will direct users to log in;
68 matches
Mail list logo