RE: Struts 1.x and Strtus2.x With Tiles 2.x

2012-08-30 Thread Shrinivas Parashar
Hi, Are you using struts-tiles2-1.4.0-SNAPSHOT.jar ? This jar is required for Struts 1 to work with Tiles 2. Regards, Shrinivas -Original Message- From: vsendhil [mailto:vsend...@gmail.com] Sent: 30 August 2012 06:04 To: user@struts.apache.org Subject: Re: Struts 1.x and Strtus2.x With

RE: Including JSP page from a jar file that placed on /WEB-INF/lib

2012-07-26 Thread Shrinivas Parashar
Hi, Does your jar contains JSP or precompiled JSP (.class of Servlet) Regards, Shrinivas -Original Message- From: paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] On Behalf Of Paul Benedict Sent: 26 July 2012 01:26 To: Struts Users Mailing List; Omar Ngarigari Subject:

Type Conversion annotation

2012-07-04 Thread Shrinivas Parashar
Hi, Can we define @TypeConversion annotation of the nested property at the parent level. For Example I have a bean public class Bike { private Name name; public Name getName() { return this.name; } public void setName(Name name) { this.name = name; }

RE: Request is not coming into my action method from the Extjs

2012-04-18 Thread Shrinivas Parashar
You need not use Struts2-JSON plugin unless you are not returning json result. What happens is you copy http://localhost:7001/3pd/adminProcess.action' directly in the browser? Is your action called? -Original Message- From: Rout, Biswajit [mailto:biswajit.r...@hp.com] Sent: 18 April

Which tool is used by Struts 2 to generate tag library documentation

2012-04-02 Thread Shrinivas Parashar
Hi, Which tool is used by Struts 2 to generate tag library documentation? I think Struts 1 was using tlddoc. Regards, Shrinivas

Using HashMap in selectbox

2012-03-28 Thread Shrinivas Parashar
Hi, How can use a hashMap in select box with Map key as listkey and Map values one of the property as listValue. For example I have a Map of type String,Person . In the listValue I want to provide person.name. Is this possible? Regards, Shrinivas

How the reset the model in session scope using ScopeModelDrivenInterceptor

2012-03-23 Thread Shrinivas Parashar
HI, I have extended the ScopeModelDrivenInterceptor to reset the model in session based on some criteria. I have overridden the resolveModel method of ScopeModelDrivenInterceptor as below. I am using this for wizard flow. protected Object resolveModel(ObjectFactory factory, ActionContext

RE: Convention plugin: How do I have two methods on the same action using 2 different Interceptor stacks

2012-03-23 Thread Shrinivas Parashar
You can apply specific interceptor stack for the action using interceptorRef annotations. For ex. Put the below annotation above the method for which you want to apply paramsPrepareParamsStack stack, @Action(value=action1, interceptorRefs=@InterceptorRef(paramsPrepareParamsStack )) For more

Specify default theme

2012-03-20 Thread Shrinivas Parashar
Hi, Can we specify default theme in struts.xml? I am aware that we can specify default theme in struts.properties file. But I am trying to avoid properties file. Regards. Shrinivas

Struts 2: Non Submittable button

2012-02-27 Thread Shrinivas Parashar
Hi, When we create a button using s:button, Struts 2 always renders button of type submit. If we specify the type as button Struts 2 renders as below button type=submit.. / If we specify type as submit Struts 2 renders as below input type=submit ... / In both the cases the button is of type

Wizard (multipage flow) with Struts 2

2012-02-01 Thread Shrinivas Parashar
Hi, Has anyone developed Wizard in Struts 2 without using Spring webflow plugin. Practical Apache Struts 2 book has an example to develop wizard using scope interceptor. But Scope interceptor does not seem to work with ModelDriven interceptor. If anyone has working example, please share the

RE: Wizard (multipage flow) with Struts 2

2012-02-01 Thread Shrinivas Parashar
Thanks eric for the information. I was looking for interceptor based approach where struts would handle putting model in the session, retrieving from the session, removing from session at the end of wizard. Scope interceptor provides similar thing, but this does not work with modeldriven

RE: Wizard (multipage flow) with Struts 2

2012-02-01 Thread Shrinivas Parashar
at the ScopedModelDrivenE approach? Beez -Original Message- From: Shrinivas Parashar [mailto:shrinivas_paras...@symantec.com] Sent: Wednesday, February 01, 2012 8:39 AM To: Struts Users Mailing List Subject: RE: Wizard (multipage flow) with Struts 2 Thanks eric for the information. I was looking

RE: Implementation of Struts 2.x with Struts 1.1

2011-12-02 Thread Shrinivas Parashar
If you are using Struts tiles and planning to use tiles 2 for struts 2 code, then you might have to migrate struts to tiles 2. Regards, Shrinivas -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: 03 December 2011 09:42 To: cwal110...@gmail.com; Struts Users

Struts 2.2.3 Date type convesrion issue

2011-08-18 Thread Shrinivas Parashar
Hi, I am getting following error if my model has a field of type java.util.Date. I am using struts 2.2.3. I have appropriate getter and setter method for birthday. JSP snippet: s:textfield name=user.birthday label=Enter your birthday. (mm/dd/yy)/ java.lang.NoSuchMethodException: