Thank you Toni! It worked!
Only adding
and all is shown ok.
Thank you again ;)
Toni Lyytikäinen wrote:
>
> Set the uid attribute in the display:table -tag like this:
>
>
> after that you can r
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?
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 w
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 ur
> 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 reloa
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 do
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
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 <[EM
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
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
fo
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 dispat
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 unc
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
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 (vari
How I get the properties (variable result) when the for is submit with
Ajax theme, look:
Form:
The Person_save is a action that return success or error and set one var
names "msg" when some message to the user, I want to show that message,
if I don't u
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 N
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, WiltOnTi
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
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 PR
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:
Paul
On 8/8/07, Paul Uszak <[EMAIL PROTECTED]> wrote:
>
> Hi all.
>
> Is there any way to make a dynamic anchor tag in a struts link? I'm also
>
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...
" >
I'm trying to have a link to a help page that's context sensitive, so where
ever you are pressing help takes you to the appropriate poi
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 k
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'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
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
-Da
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,
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
But when I tried to change the list="%{lookupService.getList('type')}"
to
list="%{lookupService.getList(MyConstants.Type)}"
I got this error:
Thanks Paul... The envelope is in the mail!
:)
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 1-59059-695-1)
an
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
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 ea
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 set
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.
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 t
--- 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.
_
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: s
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 both
Session A Mwamufiya wrote:
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 overwriteFlag?
-Dale
Hi,
I have the following checkbox in my jsp:
In my action, I have defined overwriteFlag as a String variable, and have a
getter and a setter for it. Nevertheless, when I submit the form, I always get
null when I try to check the value.
Any ideas what I could be doing wrong?
Thanks,
Session
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
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 PROTEC
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
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 :
In S2 ; we use to denote the error message ; but to what level can
we cus
Any clues??
Thanks,
Vinod
Original Message
Subject: Extending ActionConfig in Struts2
From: Vinod Singh <[EMAIL PROTECTED]>
To: 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 ActionMapping by
defining
Set the uid attribute in the display:table -tag like this:
On 8/8/07, fergunet <[EMAIL PROTECTED]> wrote:
>
>
> 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
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:
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
>
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] Erro
Hello,
Is it possible to localize the options in the list attribute of the
-tag? I've tried several approaches but none of them seem to work.
What I'm aiming at is something like the following:
For some reason it seems to be impossible to use double quotes (") for the
elements in the map, unles
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, Aug
--- 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 ena
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.
--
V
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 Struts
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
-
Hi, my validation file is:
http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>
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.
Hi I am using ajax tag in tag to get status on systems
at the time of loading but when i am doing this through AJAX then
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 three
ajax request would
57 matches
Mail list logo