Is it possible to set focus (cursor) on a field that has actionError
using standard Struts2 tools?
Best Regards
Johan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry about the delay, APEC holiday (don't ask).
I'm not doing any fancy scripting just simple stuff like using jsp el in the
s:if and s:property tags. I know that I could use the OGNL equivalents and
in some situations do, but it's more a matter of standards.
Our team maintain and develop websi
hi,
I am trying to get a ActionClass's vector object my forntEnd(jsp). I
have tried to set to my form bean and get the values to my jsp. But it is
showing error as .
[code]
[javac]
/usr/java/SUNWappserver/domains/domain2/generated/jsp/j2ee-modules/ILICTreasury/org/apache/jsp/banker_002dweb/js
NO!
> - Original Message -
> From: "Adam Hardy" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> Subject: Re: Using JSTL Expression Language with Struts 2 tags
> Date: Fri, 07 Sep 2007 00:42:11 +0100
>
>
> Is OGNL a standard as well as JSTL?
>
> Ray Clough on 06/09/07 23:43, wro
correct
snowman wrote:
>
>
>
> Chris Pratt wrote:
>>
>> Try reversing the quotes:
>>
>>
>> (*Chris*)
>>
>> On 9/6/07, venichka <[EMAIL PROTECTED]> wrote:
>>>
>>> I'm new to Struts 2. I would like to do a very simple comparison between
>>> Strings.
>>> Incident:
>>> Report:
>>> It d
Chris Pratt wrote:
>
> Try reversing the quotes:
>
>
> (*Chris*)
>
> On 9/6/07, venichka <[EMAIL PROTECTED]> wrote:
>>
>> I'm new to Struts 2. I would like to do a very simple comparison between
>> Strings.
>> Incident:
>> Report:
>> It doesn't work as 'I' is converted to Character.
>> A
Chris Pratt on 07/09/07 00:45, wrote:
On 9/6/07, Adam Hardy <[EMAIL PROTECTED]> wrote:
Is OGNL a standard as well as JSTL?
Depends what you mean by a standard? It comes standard with Struts 2,
but it was not defined by some standards organization.
Sorry, for the bad question. I'll check it
I am using struts tags for the first time in a JSP with S2 and I haven't found
what I'm looking for so I guess it's not available, but could I just check for
certain?
I want to put a string into a button using an i18n bundle. I tried this:
and I tried this:
I know I could do this:
On 9/6/07, Adam Hardy <[EMAIL PROTECTED]> wrote:
> Is OGNL a standard as well as JSTL?
>
Depends what you mean by a standard? It comes standard with Struts 2,
but it was not defined by some standards organization.
(*Chris*)
-
Is OGNL a standard as well as JSTL?
Ray Clough on 06/09/07 23:43, wrote:
My rule is: don't use the S2 tags unless I have to. Typically, if I need
something from the value stack, I use an s:set tag to bring it down into the
page scope, and then use JSTL and EL. Or on some pages I can use JSF
Jennie, tell me if you find out why this is. I don't know myself.
On 9/6/07, Jennie Moeller <[EMAIL PROTECTED]> wrote:
>
> Its not in there but why? Surely c:param or jsp:include should append
> the parameter?
>
> Thanks!
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROT
My rule is: don't use the S2 tags unless I have to. Typically, if I
need something from the value stack, I use an s:set tag to bring it down
into the page scope, and then use JSTL and EL. Or on some pages I can
use JSF tags and get rid of the problem completely. Having said that,
the S2 iterat
I'm a newbie trying learn how to use FreeMarker for Struts result pages.
This code works: <@s.property value="myActionProperty.subProperty" />
This code triggers a FreeMarker error (expression undefined):
${myActionProperty.subProperty}
Obviously, I'm missing something very simple. But what is i
I am not Zoran but
I tried for a few weeks to use OGNL but everytime I tried to type an OGNL
expression it took me 3 or 4 attempts to make it do what I wanted. In every
case, I was able to get the EL right first time.
In the end I settled on the following rules for myself:
- in a struts tag,
Zoran,
what do you want to script in the tags? I would be interested in a small
example, only because I often find my use of JSTL is restricted to situations
where I am not using taglibs. Which leads me to ask, if you rely on JSTL anyway,
surely you use the Standard taglib tags?
Adam
Zoran
sorry, there was a typo in my example, the property value should be "
userInfo.displayName".
On 9/6/07, joe bob <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have been using struts 2.0.9 to build my application. In all of my
> JSPs I would like to display a welcome page involving a user name. I
Thanks for the overview Frank. I'm using struts 2 and will lookup how to
writeup AJAX requests to get this done.
Thanks a bunch,
Session
> Is this Struts1 or Struts2? That will (potentially) change the mechanics
> a little, but in theory, sure, it's easy to do. Assume Struts1 for a
> moment.
Kenton wrote:
${item.imageURL}
Results in this exception (Glassfish v2 RC, Struts 2.0.9, JDK 1.6.02,
Windows XP):
java.io.IOException: Stream closed
...
Could you explain why the EL triggers this exception? Is that a bug or am I
doing something wrong?
I'm not sure; the expression
Is this Struts1 or Struts2? That will (potentially) change the
mechanics a little, but in theory, sure, it's easy to do. Assume
Struts1 for a moment...
1. User triggers event on the page that does the delete. This causes a
Javascript function to be executed.
2. That function makes an AJAX
Hello,
I have been using struts 2.0.9 to build my application. In all of my
JSPs I would like to display a welcome page involving a user name. I already
have an action to get/set this value so I would like to do the following in
a JSP included in all of my other JSPs:
Welcome,
However, th
Hi Chris,
Thanks for the response. I'm really a beginner with ajax/Dojo/Dom tree, and I
have no idea how the tree could be returned from the server. Would you have an
example resource that you could point me to that would show this? Or would you
be able to send me some code snippets if the p
The jsp page sends a delete request to the struts action that determines
whether or not the object associated with the node can be deleted from the
database. The struts action removes the object from the database if all is
well, and at this point, I would like to have the struts action notify t
Hello:
Does anyone have an idea how to debug this?
Thanks,
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.
-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
S
3. Generate JavaScript in the Ajax result that removes
the node (and re-renders the tree if necessary; I
don't know how all that works) and execute it.
--- Chris Pratt <[EMAIL PROTECTED]> wrote:
> You can use the Rhino JavaScript interpreter to
> execute JavaScript
> from Java, but I don't think
You can use the Rhino JavaScript interpreter to execute JavaScript
from Java, but I don't think that's actually what you are looking for.
It sounds like you are asking "How to I run some JavaScript in the
client's browser when something changes on the server?" And the short
answer is, you can't.
Hi,
Does anyone have an example of how to call a javascript function from a java
class? I want to call a javascript function that removes a node from a tree
after a java class removed it from the database.
Thanks,
Session
-
Hi,
I have an ajax div that I use to poll for the status of some asynchronous
jobs:
This works for me in every OS/browser combination except firefox on linux. I
can see from my access log that it is not even making the request.
Help, anyone?
If you want to try it:
The
Al Sutton-4 wrote:
>
> Ok, Looks like the first part is confusion in terminology. I took Action
> to
> mean an action as defined in struts.xml, but I now see Richard meant a
> single class used to declare two actions.
>
> Your solution to the second part doesn't seem right to me. My
> underst
Ok, Looks like the first part is confusion in terminology. I took Action to
mean an action as defined in struts.xml, but I now see Richard meant a
single class used to declare two actions.
Your solution to the second part doesn't seem right to me. My understanding
of things is that if struts vali
Try reversing the quotes:
(*Chris*)
On 9/6/07, venichka <[EMAIL PROTECTED]> wrote:
>
> I'm new to Struts 2. I would like to do a very simple comparison between
> Strings.
> Incident:
> Report:
> It doesn't work as 'I' is converted to Character.
> Am I mistaking something?
> Can somebody help
Good point. Feel free to open a S2 JIRA ticket that cross-references
XW-557 (since I'm not sure if its something we could do here or not)
-- and feel even more free to submit a patch!
As usual, we are short of active volunteers, and we can always use a
hand with the code!
-Ted.
On 9/6/07, mraibl
Thanks for the reply, Laurie! This suggestion of yours works perfectly!
(Although, I had to change var="url" to id="url")
${url}
Your other suggestion doesn't work. I'd like to know why this doesn't work,
as this was what I first tried (I mentioned this in my original post, b
struts.devMode=true will catch setting invalid properties, but not reading
from them. I want to be warned when a property/method doesn't exist. Or in
the instance of calling stating methods with FQCN, I want to be made aware
when I fat finger the package name. If I could use JSP's import and then
Al Sutton-4 wrote:
>
> Hi Richard,
>
> Thanks for the pointer.
>
> I'm using 2 actions because my current belief is that using a single
> action
> would cause problems with result names because you can't define separate
> SUCCESS results for the form prep and the form submission if you only ha
Hi there,
i used to have the following scenario in webwork . A file header.shtml
and footer.shtml . The "shtml" was set as the default velocity
extension. I used to be able to add the velocity servlet to web.xml (can
not do now ...) so the file was parsed as velocity. Now :
1) direct access to
Have you tried doing this with devMode turned on?
For example, if I add to the form on MailReader Login.jsp
and submit the form with devmode=true, the following is logged
Sep 6, 2007 11:14:52 AM
com.opensymphony.xwork2.validator.ActionValidatorManagerFactory
INFO: Detected Annotat
Its not in there but why? Surely c:param or jsp:include should append
the parameter?
Thanks!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Paul Benedict
Sent: 06 September 2007 15:14
To: Struts Users Mailing List
Subject: Re: Issue with c:import or jsp
The directive just tells the container (e.g., Tomcat) not to automatically
create a session. See what happens if you defer the session creation until
the user accesses the log in page.
Paul
On 9/6/07, Jennie Moeller <[EMAIL PROTECTED]> wrote:
>
> So just to clarify adding that to our page (it's t
So just to clarify adding that to our page (it's the header.jsp that
will appear on every page)...won't adversely affect anything regarding
the session tracking we do when a user logs in?
The header.jsp includes data that will be personalized once a user logs
in.
Jennie
-Original Message---
My resulting path doesn't contain myPath value it just replaces nothing.
Do you have any other idea?
Thanks
meeboo wrote:
>
>
> try
>
>
>
>
>
>
> ... (other params)
>
>
>
> TonyD wrote:
>>
>> I'm trying to use a property value into a struts url but doesn't work
>> because
>>
Jennie, I wasn't clear. My apologies. You don't typically need a session
UNTIL a user logs in. So unless you want to track or store state for
anonymous users, you could defer the session creation until sign in. Does
that make sense?
Paul
On 9/6/07, Jennie Moeller <[EMAIL PROTECTED]> wrote:
>
> On
> As the ticket said, I am contemplating an xhtmlVersion attribute. For
> example:
>
>
>
>
> (yes, 2.0 exists as a proposed spec!)
> The first two are equivalent. Otherwise, the version can
> dictate how attributes are rendered.
> What do you think?
Excellent! Thanks very much!
--
Tim Sl
On the website we have a user login and need to track the session of
each user. I assume if we put this in the page its going to void this.
Any other ideas?
Thanks!
Jennie
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Paul Benedict
Sent: 06 September 20
As the ticket said, I am contemplating an xhtmlVersion attribute. For
example:
(yes, 2.0 exists as a proposed spec!)
The first two are equivalent. Otherwise, the version can dictate how
attributes are rendered.
What do you think?
Paul
On 9/6/07, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrot
> And also:
> https://issues.apache.org/struts/browse/STR-2598
This is exactly what I'm talking about. I wasn't aware that the "lang"
attribute disappeared form xhtml between version 1.0 and 1.1, I guess
that's where the problem arose.
One poster said "Current browsers don't even handle XHTML 1.
Jennie, definitely put Struts into your debugger and figure out if the
parameter is attached to the request. Sometimes error messages are telling
the truth -- there is no parameter really in the request.
Let me know what you find.
Paul
On 9/6/07, Jennie Moeller <[EMAIL PROTECTED]> wrote:
>
> I h
Turn off automatic session creation, if you want. It's a JSP directive. I
think it's: <% page session="false" %>
You don't need sessions until you actually want to track user state. If you
need to track user hits, you could turn on mod_tracking if you're using
HTTPD.
Paul
On 9/6/07, Jennie Moell
I'm new to Struts 2. I would like to do a very simple comparison between
Strings.
Incident:
Report:
It doesn't work as 'I' is converted to Character.
Am I mistaking something?
Can somebody help?
--
View this message in context:
http://www.nabble.com/s%3Aif-comparing-Strings-problem-tf4392447.
try
... (other params)
TonyD wrote:
>
> I'm trying to use a property value into a struts url but doesn't work
> because
> I can not use the (" character) twice into a url value, could somebody
> help me?
> Thanks in advance.
>
> ">
>
> ... (other params)
>
>
--
V
The topic is published before and after the request. There is a
parameter to the topic that will be set to "before", "load" or "error"
musachy
On 8/19/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
> ptriller wrote:
> > i am using an
> >
> >
> >
> >
> > and I have some JavaScript Code that alters
Hi
I was wondering if I can rely on the order of the values returned by
request.getParameterValues()?
In my form I have a checkbox, and then underneath I have a hidden field
with the same name. I do this in case the checkbox is unchecked (and
hence the value would not be sent).
This way I always
I have exactly ${mypath} into my path and not the current value.
Also I tried with:
but it is the same thing because a get %{mypath} with my parameters in
output.
Some other ideas? Thanks.
Wesley Wannemacher wrote:
>
> This may work -
>
>
>
> ... (other params)
>
>
> -
I have to include a jsp page in my main jsp page. The include must first
go to an action which uses a dispatch.
example:
/weather.do?dispatch=display
I can only seem to use the bean:include tag for this which we don't want
to use due to the behavior of the bean:include tag.
I tried doing t
On the very first request to our website any html:rewrite tags or
bean:include tags the URL gets rewritten with the JsessionID in it
making the link invalid which then gives a page not found error.
I understand why its doing this as its not sure yet whether cookies are
enabled (cookies are enable
Hi Richard,
Thanks for the pointer.
I'm using 2 actions because my current belief is that using a single action
would cause problems with result names because you can't define separate
SUCCESS results for the form prep and the form submission if you only have
one action (or have I misunderstood t
Dear All,
I create simple application using MVC technology (Struts to define my
JSPs pages), and want to custmize a oracle bpel worklist application,
bpel worklist application should deployed in the SOA server under orabpel
application as parent ,and When i develop a struts application a
This may work -
... (other params)
-Original Message-
From: TonyD [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 06, 2007 8:57 AM
To: user@struts.apache.org
Subject: Struts url problem
I'm trying to use a property value into a struts url but doesn't work
because I can
I'm trying to use a property value into a struts url but doesn't work because
I can not use the (" character) twice into a url value, could somebody help
me?
Thanks in advance.
">
... (other params)
--
View this message in context:
http://www.nabble.com/Struts-url-problem-tf4391946.h
I use the prepare method to populate my lists. See the Prepareable
interface.I also would put this in Action B. Is there a specific
reason why you are using 2 actions?
On 9/6/07, Al Sutton <[EMAIL PROTECTED]> wrote:
> Here's a problem I've come across a couple of times and the solution I hav
Here's a problem I've come across a couple of times and the solution I have
feels clunky so I thought I'd throw it out to see if anyone has any better
ideas;
I have a form which has a s:select populated from a Map of objects which
come from a database, at the moment I'm doing the following;
1)
Hi Session
I am really sorry I couldn't work on the examples as I had promised. I have
just been extremely busy over the last few weeks. I want to contribute and
it's the first thing I will do when I get some time.
I have already answered your question on saving and restoring the state of a
tree.
Hi, ptriller.
I'm trying to make that hook:
var myLoadMessage = {
show: function(event){
event.preventDefault();
alert('ho');
},
hide: function(event){}
}
dojo.addOnL
Hi Session
I don't know if it can be done only via the struts tags but I was able to
achieve this by using some dojo javascript code in my jsp.
Here are some code snippets that might solve your problem
.
.
.
//The following extensions are required to save or restore state of a tree
63 matches
Mail list logo