Hi,
I've been trying for some time to get the following logic to work:
s:if test=freshSmigFlag == false
s:checkbox key=overwriteCheckbox name=overwriteCheck/s:checkbox
/s:if
where freshSmigFlag is a variable in my action, and there is a getter and
setter defined for it.
I also tried to
Thanks very much , Ted, tom tom, Oleg, for your helpful replies.
-
Pinpoint customers who are looking for what you sell.
Thanks a lot Dave for the detail explanation.
I have checked the META-INF/context.xml of my web application for cookies
and found that it does not have cookies attribute.
?xml version=1.0 encoding=UTF-8?
Context path=/myWebApplication/
It means I have cookie enabled session.
Hi,
I think you have to write it like this.
s:if test=%{freshSmigFlag==false}
s:checkbox key=overwriteCheckbox name=overwriteCheck/s:checkbox
/s:if
Thanks,
Nuwan
Session A Mwamufiya wrote:
Hi,
I've been trying for some time to get the following logic to work:
s:if test=freshSmigFlag
Hi I am using ajax s:div tag in s:iterator tag to get status on systems
at the time of loading but when i am doing this through AJAX then s:div
tag sending continuous request and at once time my explorer gives system
error.
There are 3 elements(systems) in my list so at the time of iterating
Can you describe more about what is it that the AJAX theme is not mature?
Maybe I should consider to use DOJO manually?
On 8/8/07, Oleg Mikheev [EMAIL PROTECTED] wrote:
sol myr wrote:
1. Have you used struts2 in production, and did you feel it was mature
and stable?
We used it.
It's
Hi, my validation file is:
!DOCTYPE validators PUBLIC
-//OpenSymphony Group//XWork Validator 1.0.2//EN
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd;
validators
field name=nome
field-validator type=requiredstring
message key=requiredstring/
Hi,
I tried to set some UI elements (button, select, ...) to be disabled, but they
are still clickable. I would like to disable certain UI objects from an action
code, where some logical verification will occur as the form is prepared. Any
ideas about how this can be done?
Thanks,
Session
Hi,
I'd like to bind an enumeration directly to a select tag, so that all
possible values appear in the ui and I don't need to change the JSP if
the enumeration changes. Does anybody have a code snippet how to do
this? I could not find anything about it in the documentation.
Cheers,
Thorsten
I have my working copy updated, revision 563485.
The maven run has build failure. The log-file in attachment.
http://www.nabble.com/file/p12049328/log0708081004.txt log0708081004.txt
--
View this message in context:
http://www.nabble.com/maven-error-tf4234956.html#a12049328
Sent from the
vadocz wrote:
I have my working copy updated, revision 563485.
The maven run has build failure. The log-file in attachment.
http://www.nabble.com/file/p12049328/log0708081004.txt log0708081004.txt
Sorry, I have missed clean. (mvn clean ...).
So my question is not relevant.
--
View
--- Sawan [EMAIL PROTECTED] wrote:
But still I am seeing ;jsessionid=XXX in the url.
Please suggest me for any possibility for this.
- On the first request the server has no way of
knowing if you have cookies enabled.
- Server configuration doesn't know if your browser
has cookies enabled.
Hi,
You can use the below given statements in javascripts to forward the control to
the action.
document.forms[0].action='myAction.do';
document.forms[0].submit();
Thanks Regards
Rajam Thirunavukkarasu
-Original Message-
From: msg2ajay [mailto:[EMAIL PROTECTED]
Sent: Wednesday,
Hello,
Is it possible to localize the options in the list attribute of the
s:select-tag? I've tried several approaches but none of them seem to work.
What I'm aiming at is something like the following:
s:select name=somename
list=#{
'01' : 'this should be some localized text from a
Thanks for that. This is what I have ended up doing. It was more
straightforward than I thought it would be anyway.
Kind regards,
Martin
-Original Message-
From: Zoran Avtarovski [mailto:[EMAIL PROTECTED]
Sent: 08 August 2007 06:16
To: Struts Users Mailing List
Subject: Re: [S2]
How can I do that from the Scriplet ?
TIA,
Oleg.
On 8/2/07, Aram Mkhitaryan [EMAIL PROTECTED] wrote:
Try this
${actionFormName.propertyName}
Best,
Aram
Aram Mkhitaryan
52, 25 Lvovyan, Yerevan 375000, Armenia
Mobile: +374 91 518456
E-mail: [EMAIL
Hi all!
I've created a display table to show a list of things and their attributes.
But one of those attributes is another list of objects. I don't know how to
print their names.
Let's see what I have:
display:table name=usersBase class=displaytag pagesize=10
defaultsort=1
Set the uid attribute in the display:table -tag like this:
display:table uid=row name=... id=... ...
after that you can refer to the row from struts tags by using #attr.row
so the iterator should now works like this:
s:iterator value=#attr.row.roles
On 8/8/07, fergunet [EMAIL PROTECTED]
Any clues??
Thanks,
Vinod
Original Message
Subject: Extending ActionConfig in Struts2
From: Vinod Singh [EMAIL PROTECTED]
To: user@struts.apache.org user@struts.apache.org
Date: Tuesday, August 07, 2007 3:05:36 PM
Hi All,
The Struts 1.x provides a facility to extend the
Hi,
Is there a way to customize the error message with multiple keys provided
from the resource bundle, using the XML/annotation approach ?
In S1, we could do :
field property=primaryApplicant.firstName depends=required
arg0 key=error.pleaseenter /
Thanks for your help. I don´t understand your answer, can you explain me with
more detail?
mihel wrote:
rrecoba wrote:
i have an ajax submit button that replaces the div specified by the
targets
attribute with the result from an action, and the result returned by the
action has some
Have you tried overriding the struts.configuration property with a new
Confguration class that builds and returns your new ActionConfig?
Vinod Singh wrote:
Any clues??
Thanks,
Vinod
Original Message
Subject: Extending ActionConfig in Struts2
From: Vinod Singh [EMAIL
On 8/7/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
Then again, if I *really* had my druthers, I'd use DWR for everything on
the back-end and pick best-of-breed widgets on the UI to construct my own
client-side framework... the last project I did more or less did this,
although we used S1
Hi,
I have the following checkbox in my jsp:
s:checkbox key=overwriteCheckbox name=overwriteFlag labelposition=left
onclick=if (this.checked) {javascript:return
confirm('%{getText('elementOverwriteConfirmation')}')} /
In my action, I have defined overwriteFlag as a String variable, and have a
Session A Mwamufiya wrote:
s:checkbox key=overwriteCheckbox name=overwriteFlag
Isn't key a shorthand for name, value, and label? If so, I'm not sure
which of name and key will win. Look in the generated html--is the name
attribute of the corresponding input tag overwriteCheckbox or
The name appears as overwriteFlag, so the name took precedence. I used the key
to get the label text from a properties file.
Interestingly, the html source code shows the value as true, even if it is not
checked when displayed.
The action variable should be a String or a boolean? I tried
Hi Ted/Frank,
Is there a more detailed post/article that you have done regarding this
architecture?
Thanks
Rahul
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ted
Husted
Sent: Wednesday, August 08, 2007 12:27 PM
To: Struts Users Mailing List
Subject: Re:
--- Session A Mwamufiya wrote:
Interestingly, the html source code shows the value
as true, even if it is not checked when displayed.
Not relevant; the only time the value matters is on
submission--The value has to be set so the browser
knows what to send on submission.
d.
Session A Mwamufiya wrote:
I used the key to get the label text from a properties file.
If that's the only reason you used it, then the label attribute is more
appropriate.
Interestingly, the html source code shows the value as true, even if it is not
checked when displayed.
That means
Not specifically, no... although, both of my books go into this sort of
thing, and the first one includes a DWR-based project.
I'm also in the midst of a third book which will very definitely cover
this topic in detail right lots of practical examples... due out in,
roughly, this coming January.
Dale Newfield wrote:
OK--now this request goes to your server. Hopefully eventually to
struts. Struts then steps through the interceptors and eventually calls
your action. The action does it's thing and selects a result.
And this whole process can generate as many logs as you have log4j
We have several projects that will have many common actions and links to
common JSP names. For example, all of our projects will have a Welcome
action and a related welcome.jsp.
I'd like to be able to create a common-actions.jar that would essentially
contain all of the source code needed for
I have JavaScript, DOM Scripting and Ajax Projects -- good book for people
who want to get into AJAX.
On 8/8/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
Not specifically, no... although, both of my books go into this sort of
thing, and the first one includes a DWR-based project.
I'm also
Thanks Paul... The envelope is in the mail! wink-wink/
:)
Frank
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
(2006, Apress, ISBN
Hi,
I am having trouble using my constants class in my jsp.
I defined a service for lookup list of values for my select box. This
in my jsp works fine
s:select name=type value=myVO.type
list=%{lookupService.getList('type')} listKey=id listValue=type /
But when I tried to change the
Thanks Paul and Frank for the books.
I used some AJAX in a project, and I had made a mental note to myself(though I
dont remember why,exactly, hehe) that for data calls that do not change the
content of the page = ajax.For calls that may result in the way a page can be
rendered = new left nav,
Jiang, Jane (NIH/NCI) [C] wrote:
But when I tried to change the list=%{lookupService.getList('type')}
to
list=%{lookupService.getList(MyConstants.Type)}
Try list=%{lookupService.getList(@[EMAIL PROTECTED])}
http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/staticFields.html
-Dale
I'm iterating a collection (keys) from s:action to get corresponding
hashmap (values) from aforementioned s:action then creating multiple
s:select.
Does anyone know how to construct a hashmap with ognl on a jsp? What
type is then needed on the action to populate the hashmap?
James
That works. Thanks a lot, Dale!
-Original Message-
From: Dale Newfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 08, 2007 2:25 PM
To: Struts Users Mailing List
Subject: Re: S2- How to use Constants in s:select tag
Jiang, Jane (NIH/NCI) [C] wrote:
But when I tried to change the
I appreciate the explanation on how it's all supposed to work, but given my
limited experience with struts 2 and this type of framework as a whole, I am
not yet proficient enough to figure out where things are being generated. I
use log4j to log a number of events in my code, but I don't even
Hi all.
Is there any way to make a dynamic anchor tag in a struts link? I'm also
using tiles. The following does not work as the JSP interpreter can't...
html:link action=showsitehelp.do anchor=tiles:getAsString
name=helppointer /
I'm trying to have a link to a help page that's context
Use the Tiles tag that can expose the tiles attribute as a page attribute.
Maybe getAsString can do it. But once it is a page attribute, you can do:
html:link anchor=${myvar} /
Paul
On 8/8/07, Paul Uszak [EMAIL PROTECTED] wrote:
Hi all.
Is there any way to make a dynamic anchor tag in a
Session A Mwamufiya wrote:
Is there a simple example I can follow? That's the best way I learn.
http://struts.apache.org/2.x/docs/using-checkboxes.html includes a
detailed example.
-Dale
-
To unsubscribe, e-mail: [EMAIL
Looks like you are talking about creating a plugin. I think the issue
is that struts.xml needs to be renamed to the plugin specific name.
WiltOnTilt wrote:
We have several projects that will have many common actions and links to
common JSP names. For example, all of our projects will have a
The JSPs cannot be accessed if they are inside a jar.I could be wrong
on this, but I don't think that putting struts.xml inside the jar will
work.
If you package it as a plugin, and map the actions in the plugin xml,
and use FreeMarker for the viewer you will be fine.
musachy
On 8/8/07,
Does anybody know if I can use Struts Url Validator for intranet url?
For exampe: http://intranet or http://localhost:8080
Thanks,
semaj
--
View this message in context:
http://www.nabble.com/Struts-Url-Validator-tf4238692.html#a12060732
Sent from the Struts - User mailing list archive at
How I get the properties (variable result) when the for is submit with
Ajax theme, look:
Form:
s:div theme=ajax id=success
loadingText=Loading information...
errorText=Unable to contact server
href=${pageContext.request.contextPath}/success.jsp
Ok, I found, targets property in the submit button.
Thanks.
Manuel Correa.
-Original Message-
From: Manuel Correa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 08, 2007 4:04 PM
To: Struts Users Mailing List
Subject: get properties action for theme ajax
How I get the properties
Hi there,
I am looking for ways to prevent automatic session creation on certain
monitoring pages of my site. The rest of the application will indeed
have regular session support.
Any one has any recipes they want to share? I'm using struts 2.0.9 with
sitemesh decorators and freemarker as
Greetings to all,
i am trying to use jasper reports under liferay. I think that i managed
to add successfully my portlet to liferay although i had issues with the
struts.xml file (had to manually add the result type jasper pointing
to the plugin class).
The problem is that now i get an
Hi!
Jasper reports is, as far as I know, not tested in the portlet
framework. I'm not too familiar with Jasper, but if it's something
that should be generated and displayed on the fly (that is of binary
type), this cannot be done in a portlet in a portable manner. You
might have better luck
On Today at 4:16pm, HR=Haroon Rafique [EMAIL PROTECTED] wrote:
HR [..snip..]
HR
HR Any one has any recipes they want to share? I'm using struts 2.0.9
HR with sitemesh decorators and freemarker as the view.
HR
Since I use sitemesh, I think I know the culprit is sitemesh. I found the
following
The default value for a type mismatch error (when doing conversion) is:
xwork.default.invalid.fieldvalue=Invalid field value for field {0}.
I'd like to change it to render something like Please enter a valid date.
or Please enter a valid number.. Is it possible to decipher the type of
the field
I believe by default, Struts will load multiple struts.xml files on
the classpath, so creating jars, each with their own struts.xml,
should work. As mentioned, JSP's won't work, but you could put the in
the usual places, leaving the jars for config and Java code.
Don
On 8/9/07, Ian Roughley
The bigger question is why you would want to do this. In Struts 1, it
was one of the few ways to pass configuration information to an
Action. In Struts 2, you can pass values directly to an action via
setters, which is a better solution imo.
Don
On 8/9/07, Ian Roughley [EMAIL PROTECTED] wrote:
Hmm...could you use a custom TextProvider impl that recognizes that
error key, checks the type of the parameter, then looks up a new error
key, say 'xwork.default.invalid.fieldvalue.number'?
Don
On 8/9/07, mraible [EMAIL PROTECTED] wrote:
The default value for a type mismatch error (when doing
hi,
I have used that it is working, but the problem is I need to
re-load the page freame newly. In my present case, Iam getting data from
database. All the values will be displayed on the textbox's.
When i used the code which u have given it is reloading
I can validate http://www.google.com, https://www.google.com, but not
http://google
Is this the limitation of struts url validator?
I would really appreciate if someone would reply.
Thank you,
semaj
semaj.najraham wrote:
Does anybody know if I can use Struts Url Validator for intranet
Hi
I believe I'm using the redirect-action result type in the recommended
way, but I'm seeing warnings from OgnlUtil in my log4j logs. Is there a
way to avoid the warnings, short of adjusting log4j.xml? The stack
traces are very deep, so they spam the logs. But I don't really want to
exclude all
S1 or S2?
On 8/8/07, Thorsten Schäfer [EMAIL PROTECTED] wrote:
Hi,
I'd like to bind an enumeration directly to a select tag, so that all
possible values appear in the ui and I don't need to change the JSP if
the enumeration changes. Does anybody have a code snippet how to do
this? I could
60 matches
Mail list logo