issue with autocompleter tag

2008-10-16 Thread akash agrawal
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 = window.event ;
if (e.keyCode == 13)  {
document.searchform.submit();
}
}


On view source:


CCH-1
CCH-2



Using Firebug plugin this is what I see:





  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with checkbox (when using disabled property)

2008-07-09 Thread akash agrawal
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 property it works as expected.

My code:


This checkbox is selected (true), when the form is submitted the value passed 
to the action is not selected (false).

Thanks.



  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: select tag list listKey and listValue usage

2008-06-11 Thread akash agrawal
In the value attribute I am expecting to see the name (name is a property on my 
bean) and I get that correctly by specifying listValue="name". In the listKey, 
I would like to set the object itself instead of another property. 

Further when this form is submitted the whole object is set on the action.

Does this clarify?

Thx.


--- On Wed, 6/11/08, Dave Newton <[EMAIL PROTECTED]> wrote:

> From: Dave Newton <[EMAIL PROTECTED]>
> Subject: Re: select tag list listKey and listValue usage
> To: "Struts Users Mailing List" 
> Date: Wednesday, June 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?
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



select tag list listKey and listValue usage

2008-06-11 Thread akash agrawal
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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



execAndWait interceptor and setting request attribute throws NPException

2008-04-23 Thread akash agrawal
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:500)
at 
javax.servlet.ServletRequestWrapper.setAttribute(ServletRequestWrapper.java:283)

Ideas?

Thx,
-Akash


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: freemarker error - Any ideas?

2008-04-22 Thread akash agrawal
Yes, I am adding an action error in my action. Somewhere in my action a 
NullPointerException gets thrown and I add that exception to my actionerror  . 
I guess thats not incorrect to do that, is it?


--- On Tue, 4/22/08, Jeromy Evans <[EMAIL PROTECTED]> wrote:

> From: Jeromy Evans <[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 line 35, column 4 in
> template/simple/actionerror.ftl.
> > The problematic instruction:
> > --
> > ==> ${error} [on line 35, column 2 in
> template/simple/actionerror.ftl]
> > --
> >   
> 
> Somehow the ActionErrors collection contains a null entry. 
> Add you 
> manually add an actionError somwhere?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



freemarker error - Any ideas?

2008-04-22 Thread akash agrawal
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.core.InvalidReferenceException: Expression error is undefined on 
line 35, column 4 in template/simple/actionerror.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at freemarker.core.Expression.getStringValue(Expression.java:118)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
at freemarker.core.Environment.visit(Environment.java:351)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
   at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:196)
at freemarker.core.Environment.process(Environment.java:176)
at freemarker.template.Template.process(Template.java:232)
at 
org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:168)
at org.apache.struts2.components.UIBean.mergeTemplate(UIBean.java:530)
at org.apache.struts2.components.UIBean.end(UIBean.java:484)
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:43)
at 
org.apache.jsp.docroot.jsps.common.error_jsp._jspx_meth_s_actionerror_0(org.apache.jsp.docroot.jsps.common.error_jsp:188)
at 
org.apache.jsp.docroot.jsps.common.error_jsp._jspService(org.apache.jsp.docroot.jsps.common.error_jsp:94)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:371)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
   at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:997)
at 
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:682)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:87)
at 
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:88)
at 
org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:82)
at 
org.apache.tiles.context.TilesRequestContextWrapper.dispatch(TilesRequestContextWrapper.java:72)
at 
org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:86)
at 
org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:457)
at 
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:140)
at 
org.apache.tiles.jsp.taglib.InsertAttributeTag.render(InsertAttributeTag.java:117)
at 
org.apache.tiles.jsp.taglib.RenderTagSupport.execute(RenderTagSupport.java:171)
at 
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:75)
at 
org.apache.tiles.jsp.taglib.ContainerTagSupport.doEndTag(ContainerTagSupport.java:80)
at 
org.apache.jsp.docroot.jsps.layout.mainLayout_jsp._jspx_meth_t

How to use annotationWorkflow Interceptor

2008-04-11 Thread akash agrawal
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 
starting filter struts2
Unable to find interceptor class referenced by ref-name annotationWorkflow - 
interceptor-ref - 
file:/C:/apache-tomcat-5.5.20/webapps/pm/WEB-INF/classes/struts.xml:32:49
at 
com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:50)


Any ideas?


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Two buttons on same row

2008-04-11 Thread akash agrawal
Hi Marcio,

You are correct. Doing so will change the theme for the whole application. 
There is another way to just change the theme for specific buttons. (Check a 
previous reply to my question by Sharath)

eg:


previous reply:
Hi Akash,
   
Put 'theme=simple' this will solve your problem.
   
  --Sharath.


--- On Fri, 4/11/08, Márcio Gurgel <[EMAIL PROTECTED]> wrote:

> From: Márcio Gurgel <[EMAIL PROTECTED]>
> Subject: Re: Two buttons on same row
> To: "Struts Users Mailing List" 
> Date: Friday, April 11, 2008, 3:04 PM
> Hi Akash,
> 
> I think that is not a good idea just change the theme..
> Doing that you're
> gona lose some functionality.. Like validation, etc..
> There's a way, overwriting the xhtml theme (I made this
> in a project, and
> it's working).
> 
> Do the following steps:
> 
> 1 - Unzip the struts 2 core jar;
> 2 - Copy template/xhtml and paste into your WebContent
> directory;
> 3 - Overwrite your "submit.ftl" with the code:
> <#--
> /*
>  * $Id: Action.java 502296 2007-02-01 17:33:39Z niallp $
>  *
>  * Licensed to the Apache Software Foundation (ASF) under
> one
>  * or more contributor license agreements.  See the NOTICE
> file
>  * distributed with this work for additional information
>  * regarding copyright ownership.  The ASF licenses this
> file
>  * to you under the Apache License, Version 2.0 (the
>  * "License"); you may not use this file except
> in compliance
>  * with the License.  You may obtain a copy of the License
> at
>  *
>  *  http://www.apache.org/licenses/LICENSE-2.0
>  *
>  * Unless required by applicable law or agreed to in
> writing,
>  * software distributed under the License is distributed on
> an
>  * "AS IS" BASIS, WITHOUT WARRANTIES OR
> CONDITIONS OF ANY
>  * KIND, either express or implied.  See the License for
> the
>  * specific language governing permissions and limitations
>  * under the License.
>  */
> -->
> <#t/>
> <#include
> "/${parameters.templateDir}/simple/submit.ftl"
> />
> <#t/>
> 
> This also can help you:
> http://struts.apache.org/2.0.11.1/docs/template-loading.html
> 
> You also, can make calls to diferent css classes for
> rendering labels, td's
> etc.
> Hope that help you!
> 
> 
> 
> 
> 2008/4/11, Michael Gagnon
> <[EMAIL PROTECTED]>:
> >
> > Edit your struts.xml to reflect the following:
> >
> >  encoding="UTF-8" ?>
> >  > "-//Apache Software Foundation//DTD Struts
> Configuration 2.0//EN"
> >
> "http://struts.apache.org/dtds/struts-2.0.dtd";>
> > 
> >  value="simple" />
> > ...
> > ...
> > 
> >
> >
> >
> >
> > The behavior should be more as you expect after that.
> You will lose things
> > like the label property on textfields though. In that
> case you just type
> > it
> > outside like:
> > ...
> > 
> > User ID:
> >  name="account.login" />
> > 
> > ...
> >
> >
> > -Original Message-
> > From: akash agrawal [mailto:[EMAIL PROTECTED]
> > Sent: Friday, April 11, 2008 3:51 PM
> > To: user@struts.apache.org
> > Subject: Two buttons on same row
> >
> > 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 spam
> protection around
> > http://mail.yahoo.com
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Two buttons on same row

2008-04-11 Thread akash agrawal
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 spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
David,

It is a Boolean property but I still think it should work no matter whether it 
is boolean or Boolean. APIs I am using are not mine so I can't change the bean, 
but there are workaround I can put in although they aren't pretty. I was hoping 
something can be done on the framework (Struts2) side.

Thx.
-Akash


--- On Fri, 4/4/08, David Durham, Jr. <[EMAIL PROTECTED]> wrote:

> From: David Durham, Jr. <[EMAIL PROTECTED]>
> Subject: Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()
> To: "Struts Users Mailing List" , [EMAIL 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 situations where
> I was hoping
> isX would return a reference to a Boolean (when reference
> with
> JavaBean dot notation), but I had to implement a getX
> instead.  Just 2
> cents.
> 
> -Dave
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
myBean is not null, There are other field which are not boolean and I do get 
them fine.

Thx

--- On Fri, 4/4/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:

> From: Musachy Barroso <[EMAIL PROTECTED]>
> Subject: Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()
> 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. isXyz() does not work for me.
> What am I doing incorrectly?
> >
> >   value="myBeanObject">
> >
> >   label="xyzLabel" value="%{#myBean.xyz}"
> required="true"
> tooltip="xyzTooltip"/>
> >
> >  Thx.
> >
> >
> >  --- On Fri, 4/4/08, Musachy Barroso
> <[EMAIL PROTECTED]> wrote:
> >
> >  > From: Musachy Barroso <[EMAIL PROTECTED]>
> >  > Subject: Re: Struts2 tags behaviour
> customizable? isXyz() instead of getXyz()
> >  > 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 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 that so that instead of
> getXyz(), it
> >  > looks for isXyz()? My boolean property has
> accessors which
> >  > starts with isXyz() instead of getXyz().
> >  > >
> >  > >  Thx
> >  > >
> >  > >  -Akash
> >  > >
> >  > >
> >  > >
> >  > >
> >  > >
> >  >
> 
> >  > >  You rock. That's why Blockbuster's
> offering
> >  > you one month of Blockbuster Total Access, No
> Cost.
> >  > > 
> http://tc.deals.yahoo.com/tc/blockbuster/text5.com
> >  > >
> >  > >
> >  >
> -
> >  > >  To unsubscribe, e-mail:
> >  > [EMAIL PROTECTED]
> >  > >  For additional commands, e-mail:
> >  > [EMAIL PROTECTED]
> >  > >
> >  > >
> >  >
> >  >
> >  >
> >  > --
> >  > "Hey you! Would you help me to carry the
> stone?"
> >  > Pink Floyd
> >  >
> >  >
> -
> >  > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >  > For additional commands, e-mail:
> >  > [EMAIL PROTECTED]
> >
> >
> >  
> 
> >  You rock. That's why Blockbuster's offering
> you one month of Blockbuster Total Access, No Cost.
> >  http://tc.deals.yahoo.com/tc/blockbuster/text5.com
> >
> > 
> -
> >  To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >  For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
Here is my JSP snippet. isXyz() does not work for me. What am I doing 
incorrectly?





Thx.


--- On Fri, 4/4/08, Musachy Barroso <[EMAIL PROTECTED]> wrote:

> From: Musachy Barroso <[EMAIL PROTECTED]>
> Subject: Re: Struts2 tags behaviour customizable? isXyz() instead of getXyz()
> 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 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 that so that instead of getXyz(), it
> looks for isXyz()? My boolean property has accessors which
> starts with isXyz() instead of getXyz().
> >
> >  Thx
> >
> >  -Akash
> >
> >
> >
> >
> >  
> 
> >  You rock. That's why Blockbuster's offering
> you one month of Blockbuster Total Access, No Cost.
> >  http://tc.deals.yahoo.com/tc/blockbuster/text5.com
> >
> > 
> -
> >  To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >  For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2 tags behaviour customizable? isXyz() instead of getXyz()

2008-04-04 Thread akash agrawal
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 with isXyz() instead of 
getXyz().

Thx

-Akash



  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



xml based validation vs Annotations based validation

2008-04-02 Thread akash agrawal
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 Blockbuster Total 
Access, No Cost.

Re: uploaded image file contentType (IE vs Firefox)

2008-03-17 Thread akash agrawal
Thanks for the reply Dave.

I have to support both IE and Firefox so can't use just one browser.

Yes, I can do some processing on the server side and handle image/pjpeg and 
image/jpeg as same and image/x-png and image/png as same but would prefer not 
to as decoding these images requires 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 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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Never miss a thing.   Make Yahoo your homepage.

uploaded image file contentType (IE vs Firefox)

2008-03-17 Thread akash agrawal
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 uploading using IE and Firefox returns different 
content types. IE returns content type as image/x-png whereas Firefox returns 
image/png.

What can I do to resolve this conflict and not get different content types? Is 
there other property which can be accessed regarding the image types (like mime 
type)?
Anyone else came across such a use case?

Thanks.

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

selective validation using validation.xml

2008-03-07 Thread akash agrawal
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 validate different set of validation of 
invocation based on my application requirement.
1. Put validation for field A and B in xml file
2. validate field A but not field B on one invocation.
3. validate field B but not field A on other involcation.

Thanks,

-Akash

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

Re: validation excludeMethods version 2.0.11

2008-03-06 Thread akash agrawal
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 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 we don't need to spell out
> each getX method?

Yeah. String's startWith method.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Never miss a thing.   Make Yahoo your homepage.

validation excludeMethods version 2.0.11

2008-03-05 Thread akash agrawal
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 we don't need to spell out each 
getX method?

Any better ideas are welcome.

Thanks,
-Akash

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

s:datetimepicker version 2.0.11 issue

2008-02-20 Thread akash agrawal
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 list to post this question.

Thanks,

-Akash



   
-
Never miss a thing.   Make Yahoo your homepage.

struts 2.0.9 tooltip attribute problem

2008-01-08 Thread akash agrawal
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 miss a thing.   Make Yahoo your homepage.

Issue with Datetimepicker initialization (2.0.11)

2007-12-18 Thread akash agrawal
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

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

struts 2.0.11 datetimepicker problem of type time

2007-12-12 Thread akash agrawal
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.
   

This with the type="time" shows up INCORRECTLY.
   


   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Re: struts 2.0.9 error /template/xhtml/tree.ftl not found.

2007-12-07 Thread akash agrawal
Hi Martin,

Thanks for the reply. The form I am using is very simple.

<%@ taglib prefix="s" uri="/struts-tags" %>

 
 
 





   
 
 
 

I also looked at the struts2-core-2.0.9.jar and couldn't find the file in jar 
at location /template/xhtml/tree.ftl

Thanks,
-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,
>
> 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! Mobile.  Try it
now.



   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

struts 2.0.9 error /template/xhtml/tree.ftl not found.

2007-12-06 Thread akash agrawal
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! Mobile.  Try it now.

Re: Struts 2 tree tag question

2007-11-29 Thread akash agrawal
Hi John,

Thanks for the insight. If you can share some code that will be helpful to 
understand how you used multibox tag. ( I haven't used multibox tag before).

Thanks,
-akash

john feng <[EMAIL PROTECTED]> wrote: I have created tree that each node 
displays several attributes of an object,
i.e., top node is Dept object that user could see a checkbox field 
DeptNo>, DeptNo field, DName field, Location field. clicking top node +
image, the second layer nodes display Employee object that user could see a
checkbox field, EmpNo, EName field, Sal field, NumberOfDepents
field. Clicking the second node Employee + image, then displays Dependent
object...

You see my tree is not like a Windows folder like tree, it has more fields
to display for each row of the nodes. Its each parent node field header left
most position has a checkbox that could check or uncheck all the 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 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 homepage.


   
-
Get easy, one-click access to your favorites.  Make Yahoo! your homepage.

Struts 2 tree tag question

2007-11-28 Thread akash agrawal
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 homepage.

Tree ui component with each node having a checkbox (struts 2.0.9)

2007-11-27 Thread akash agrawal
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. Text or chat with friends inside Yahoo! Mail. See how.

Re: struts.xml usage of element in element

2007-08-30 Thread akash agrawal
Chris,

When would this setter be called? Can I access this property inside an 
interceptor (custom interceptor/pre-packaged interceptor)? (This would help to 
check it before execute is called)

Thanks.

Chris Pratt <[EMAIL PROTECTED]> wrote: Yes, setRole(String role) for my example.
  (*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 property inside interceptor before my execute() is called?
>
> Thanks,
> -Akash
>
> Chris Pratt  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? 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.  Join our Network Research Panel today!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> Need a vacation? Get great deals to amazing places on Yahoo! Travel.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 

Re: struts.xml usage of element in element

2007-08-30 Thread akash agrawal
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() is called?

Thanks,
-Akash

Chris 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? 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.  Join our Network Research Panel today!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 

struts.xml usage of element in element

2007-08-30 Thread akash agrawal
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.  Join our Network Research Panel today!

location of DTD/schema for struts.xml Struts 2.0.9?

2007-08-30 Thread akash agrawal
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. 

Re: struts 2.0.9 backward compatible with struts 1.x in respect to role on action mapping

2007-08-30 Thread akash agrawal
Dave,

Thanks for the reply. The link you mentioned does not have much detail in it.

Although, How would interceptor would solve the definition of roles information 
for each action in an application? If you use this interceptor you mentioned, 
where would you put roles information for each action?

Thanks
-Akash

Dave Newton <[EMAIL PROTECTED]> wrote: Whoops; wrong button.

IIRC a simplistic roles interceptor [1] was added
(possibly even at my request, but it was awhile ago)
which had functionality similar to S1.

d.

[1]
http://struts.apache.org/2.x/docs/roles-interceptor.html

(Doesn'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
> (essentially) nothing to do with S1.
> 
> d.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 

struts 2.0.9 backward compatible with struts 1.x in respect to role on action mapping

2007-08-30 Thread akash agrawal
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

   
-
Pinpoint customers who are looking for what you sell. 

action mapping roles attribute in struts 2

2007-08-29 Thread akash agrawal
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

   
-
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.