Hi,
I am trying to attach javascript event onkeypress with autocompleter tag but
can't. I can't seem to attach any event for that matter. Can anyone throw any
light on it? Please find my code details below.
Thanks.
My code:
s:autocompleter showDownArrow=false
Hi,
Using struts tag for a checkbox. I disable my checkbox using disabled property
so that user cannot change it. When the form is submitted, the value of the
checkbox passed to the action comes out as false, even if the checkbox was
selected (true).
The weird thing is if I remove the
Hi,
1. I have a list of objects which I use to populate select tag (using list
attribute)
2. Use a property on that object for the listValue.
How do I populate listKey with the object itself?
Thx,
-Akash
-
To
/08, akash agrawal
[EMAIL PROTECTED] wrote:
How do I populate listKey with the object itself?
What would that mean? What are you expecting to see in the
value attribute of the HTML option...
element?
Dave
Hi,
When I use execAndWait interceptor and set some request attribute in my action,
I get NPE:
java.lang.NullPointerException
at org.apache.catalina.connector.Request.setAttribute(Request.java:1376)
at
FreeMarker template error!
Expression error is undefined on line 35, column 4 in
template/simple/actionerror.ftl.
The problematic instruction:
--
== ${error} [on line 35, column 2 in template/simple/actionerror.ftl]
--
Java backtrace for programmers:
--
]
Subject: Re: freemarker error - Any ideas?
To: Struts Users Mailing List user@struts.apache.org
Date: Tuesday, April 22, 2008, 9:14 PM
akash agrawal wrote:
FreeMarker template error!
Expression error is undefined on line 35, column 4 in
template/simple/actionerror.ftl
Hi,
s:submit creates a row for a button. I have two buttons and two submit appears
on two different row. How do I put them on the same row? Can anyone give an
example?
Thanks,
-Akash
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best
on textfields though. In that
case you just type
it
outside like:
...
tr
tdUser ID:/td
tds:textfield
name=account.login //td
/tr
...
-Original Message-
From: akash agrawal [mailto:[EMAIL PROTECTED]
Sent: Friday, April 11, 2008 3:51 PM
To: user
Hi,
I am looking at the example provided on this link:
http://struts.apache.org/2.x/docs/annotationworkflowinterceptor.html
I couldn't find annotationWorkflow in my struts-default.xml
interceptor-ref name=annotationWorkflow/
I get an error from framework:
2008-04-11 18:04:58.817 ERROR
Hi,
Struts 2 tags have value attribute where name of property is used to read the
value from the bean. If the property is lets say xyz, tag looks for getXyz().
Is this possible to customize that so that instead of getXyz(), it looks for
isXyz()? My boolean property has accessors which starts
is evaluated.
musachy
On Fri, Apr 4, 2008 at 1:37 PM, akash agrawal
[EMAIL PROTECTED] wrote:
Hi,
Struts 2 tags have value attribute where name of
property is used to read the value from the bean. If the
property is lets say xyz, tag looks for getXyz(). Is this
possible to customize
Mailing List user@struts.apache.org
Date: Friday, April 4, 2008, 11:09 AM
Are you sure that myBean is not null?
musachy
On Fri, Apr 4, 2008 at 2:05 PM, akash agrawal
[EMAIL PROTECTED] wrote:
Here is my JSP snippet. isXyz() does not work for me.
What am I doing incorrectly?
s:set name
, April 4, 2008, 11:33 AM
On Fri, Apr 4, 2008 at 1:17 PM, akash agrawal
[EMAIL PROTECTED] wrote:
myBean is not null, There are other field which are
not boolean and I do get them fine.
Is it boolean, or Boolean? I've seen situations where
I was hoping
isX would return a reference to a Boolean
Hi,
Wanted to get opinion from the struts2 user community if there are any
advantages/disadvantages of using one approach over another (Xml vs Annotation
based validation).
Thanks,
-Akash
-
You rock. That's why Blockbuster's offering you one month of
Hi,
I am using fileuploadinterceptor which is part defaultStack. I upload an image
*.jpg using IE and Firefox and get a different contentType in action for
different browser.
IE returns content type as image/pjpeg whereas Firefox returns content type as
image/jpeg.
Similary for a *.png image
different decoders and may get into some
trouble down the road.
I was wondering if this is an issue of combination of browser and struts
framework and if there is access to more properties which can give more
information about the uploaded images.
Thanks.
Dave Newton [EMAIL PROTECTED] wrote: --- akash
Hi,
Is this possible to do selective validation using validation.xml? What I meant
by this is that calling a different set of validation on each(different)
invocation of same action and same method.
Example: I call UpdateAction and update method and use
UpdateAction-validation.xml and want to
Thanks,
-Akash
Dave Newton [EMAIL PROTECTED] wrote: --- akash agrawal wrote:
I am using validation framework and would like to disable validation for
all the query methods like getA(), getB(), getC().
There is a excludeMethods property using which I can turn off validation
for above
Hi,
I am using validation framework and would like to disable validation for all
the query methods like getA(), getB(), getC().
There is a excludeMethods property using which I can turn off validation for
above methods by spelling out each method.
1. Is there a way to generalize this so that
Hi,
My code is:
s:datetimepicker label=Time
name=validityTimeTime
id=vtTime
type=time
displayFormat=HH:mm:ss
staticDisplay=true
value=%{#sr.validityTime}
Hi,
I am using tooltip attribute on a textfield. The problem is that tooltip does
not comes up completely. Is there a limit on the length of characters a tooltip
can have? How can I fix/change this so the whole tooltip comes up?
Thanks,
-Akash
-
Never
Hi,
DateTimePicker with the time calendar not initializing the time passed to it.
It always initializes to 12:00 AM no matter what time is passed to it.
Looks like a struts bug to me. I am using 2.0.11. Does anyone has seen similar
problem? Any workaround?
Thanks,
-Akash
Hi,
I am displaying date and time separately gotten from server on a JSP using
datetimepicker tag.
My problem is that, the date shows up correctly but the time does not.
Below is the snippet of the JSP code.
Any help is appreciated.
Thanks.
-Akash
This with the type=date shows up correctly.
,
-Akash
Martin Gainty [EMAIL PROTECTED] wrote: please display form and any config
files to group
M-
- Original Message -
From: akash agrawal
To: Struts Users Mailing List
Sent: Thursday, December 06, 2007 8:47 PM
Subject: struts 2.0.9 error /template/xhtml/tree.ftl not found.
Hi
Hi,
I am seeing an error while using tree tag and using struts 2.0.9.
java.io.FileNotFoundException: Template /template/xhtml/tree.ftl not found.
How do I fix this problem?
Thanks,
-Akash
-
Be a better friend, newshound, and know-it-all with Yahoo!
' checkboxes.
I used the regular iterate and multibox tags and CSS to get this done really
straight forward, without using tree tag.
On 11/28/07, akash agrawal wrote:
Hi,
Trying to build a form having a tree where each node in the tree needs to
have a checkbox to take input from the user. How can I
Hi,
Trying to build a form having a tree where each node in the tree needs to have
a checkbox to take input from the user. How can I accomplish this using struts
tree tag?
Thanks,
-Akash
-
Get easy, one-click access to your favorites. Make Yahoo! your
Hi,
Can someone tell me how to build a tree with each node having a check box, so
that user can input their choices by selecting/unchecking each node in the tree
and input can be collected in the action?
Thanks in advance,
-Akash
-
Be a better pen pal.
Hi,
Is role attribute supported in Struts 2? It was supported in Struts version
1.x. ( I would assume that Struts 2 is backward compatible)
If it is supported how to use it? Is there any example or documentation related
to this.
Thanks,
-Akash
-
seem to be displaying properly at the moment,
though?)
--- Dave Newton wrote:
--- akash agrawal wrote:
(I would assume that Struts 2 is backward
compatible)
S2 is a *completely* different architecture and has
(essentially) nothing to do with S1.
d
Hi,
Where is DTD/schema for struts.xml located in S2?
I would like to check it DTD to find out what kind of tags are supported by S2.
Thanks,
-Akash
-
Pinpoint customers who are looking for what you sell.
Pratt [EMAIL PROTECTED] wrote: Just create a mutator in your action and
Struts will populate the
value for you automatically. I use this to set the Role into my base
action
admin
(*Chris*)
On 8/30/07, akash agrawal wrote:
Hi,
Can someone explain me the usage of
element under element
*)
On 8/30/07, akash agrawal wrote:
Hi,
Thanks for the reply Chris.
Do you mean providing a setter like setRole(String role) or setRoles(String
role) would do?
When would this setter be called? If I define an interceptor, Can I check for
this property inside interceptor before my execute
Hi,
In struts 1.x there used to be roles attribute which can be used to associate
role information for an action.
Does Struts 2 also supports that? And if it does how do we use that in Struts
2? Basically I want to authorize action based on user role.
Thanks in advance.
-Akash
35 matches
Mail list logo