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:
Javascript:
function processKey(e)
{
if (null == e)
e
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 disabled
une 11, 2008, 12:52 PM
> --- On Wed, 6/11/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
> element?
>
&g
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 unsubs
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
org.apache.catalina.connector.RequestFacade.setAttribute(RequestFacade.java:5
s <[EMAIL PROTECTED]>
> Subject: Re: freemarker error - Any ideas?
> To: "Struts Users Mailing List"
> Date: Tuesday, April 22, 2008, 9:14 PM
> akash agrawal wrote:
> > FreeMarker template error!
> >
> >
> > Expression error is undefined on li
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:
--
freemarker.cor
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
I get an error from framework:
2008-04-11 18:04:58.817 ERROR [StandardContext3638]: Exception
?>
> > > "-//Apache Software Foundation//DTD Struts
> Configuration 2.0//EN"
> >
> "http://struts.apache.org/dtds/struts-2.0.dtd";>
> >
> > value="simple" />
> > ...
> > ...
> >
> >
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 spa
PROTECTED]
> Date: Friday, 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
yz()
> To: "Struts Users Mailing List"
> 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. is
yz()
> To: "Struts Users Mailing List"
> Date: Friday, April 4, 2008, 10:47 AM
> Struts 2(OGNL technically speaking) will call getX() or
> isX() if one
> of them exist, when "y.x" is evaluated.
>
> musachy
>
> On Fri, Apr 4, 2008 at 1:37 PM, akash ag
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 wi
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 Bl
]> wrote: --- akash agrawal wrote:
> What can I do to resolve this conflict and not get different content types?
Only use one browser?
Can't you just do some processing/aggregation of content types on the server
side?
Dave
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 up
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
Dave,
Thanks for the response.
Could you give an example of how to use the approach you suggested?
Here is my code:
delete, getA, getB
Thanks,
-Akash
Dave Newton <[EMAIL PROTECTED]> wrote: --- akash agrawal wrote:
> I am using validation framework and woul
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 w
Hi,
My code is:
Issue:
1. Time cannot be edited by going straight to the text field and entering using
keyboard. It only allows to pick up the time from the popup. However popup only
gives minutes granularity in 5 minutes interval.
Any workaround? Is there a better mailing lis
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 mi
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.
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,
>
> I am seeing an error while using tree tag and using struts
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! Mobil
children
nodes' 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 checkbo
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.
*Chris*)
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 prop
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
Hi,
Can someone explain me the usage of element under element? How
to access it property inside java action?
Is this a valid config?
xyz, abc1, abc2
How to access roles property in an action class?
Thanks,
-Akash
-
Shape Yahoo! in your own image.
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.
oesn't 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
> (essentiall
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
-
Pinpoin
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
---
36 matches
Mail list logo