RE: Dont want fields to be reset in the case of error

2007-09-17 Thread Asthana, Rahul
I found a non elegant way of doing it. Was wondering if it was possible to do it through config. But this will do for now, Thanks.. -Original Message- From: Asthana, Rahul [mailto:[EMAIL PROTECTED] Sent: Monday, September 17, 2007 2:00 PM To: Struts Users Mailing List Subject: RE: Dont

RE: Dont want fields to be reset in the case of error

2007-09-17 Thread Asthana, Rahul
Sent: Monday, September 17, 2007 1:54 PM To: Struts Users Mailing List Subject: Re: Dont want fields to be reset in the case of error Why don't you want the reset? On 9/17/07, Asthana, Rahul <[EMAIL PROTECTED]> wrote: > > Hi, > In case ActionForm validate function throws an err

Dont want fields to be reset in the case of error

2007-09-17 Thread Asthana, Rahul
Hi, In case ActionForm validate function throws an error,I dont want form fields to get reset. How can I do this? Thanks Rahul

Problem with stripping the .jsp part from the forward

2007-09-14 Thread Asthana, Rahul
Hi All, I am using struts 1.3.4 with tiles. Facing a weird issue.Forward to abc.jsp removes the ".jsp" part and says that "abc" not found and gives a path validation error. This is happening with the introduction of a new jsp.The old app is working fine. IF anyone can think of anything from on t

RE: struts1 or struts 2?

2007-08-10 Thread Asthana, Rahul
Hi Ted/Frank, Well, The first project I did in the industry,(I was a trainee then) in 2000 was a full scale ajax(of course,we called it something else) project. Ajax was used out of compulsion.We had a gigantic user entry form with around 100 controls;which was divided into 5 tabs, which were ac

RE: struts1 or struts 2?

2007-08-08 Thread Asthana, Rahul
Thanks Paul and Frank for the books. I used some AJAX in a project, and I had made a mental note to myself(though I dont remember why,exactly, hehe) that for data calls that do not change the content of the page => ajax.For calls that may result in the way a page can be rendered => new left nav,

RE: struts1 or struts 2?

2007-08-08 Thread Asthana, Rahul
Hi Ted/Frank, Is there a more detailed post/article that you have done regarding this architecture? Thanks Rahul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ted Husted Sent: Wednesday, August 08, 2007 12:27 PM To: Struts Users Mailing List Subject: Re: s

RE: Need to forward to Nothing

2007-07-26 Thread Asthana, Rahul
Forward to null has worked for me in struts 1.2.x. -Original Message- From: Manisha M Sathe [mailto:[EMAIL PROTECTED] Sent: Thursday, July 26, 2007 11:48 AM To: user@struts.apache.org Subject: Need to forward to Nothing The action class does not forward to anything - it's like killing t

RE: Book recommendations for performance tuning

2007-03-21 Thread Asthana, Rahul
Chris, I think before going for performance tuning you would have to decide on two things- A Load Generator and a Performance Profiler. Then you generate load and profile the application to find out exactly which layer\section of code\network needs to be tuned\upgraded. Then you focus on tuning

RE: Cross site scripting issue

2007-03-14 Thread Asthana, Rahul
Check for a predefined pattern of characters in a filter,as you have suggested, (probably read from xml) and forward to an error page if you find any. -Original Message- From: rapsy [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 3:50 PM To: user@struts.apache.org Subject: Cross

s2 and AJAX

2007-01-29 Thread Asthana, Rahul
Hi, I wonder if there are any design guidelines on how to use AJAX with s2.There was that traditional MVC architecture;now with AJAX there would be a lot of processing done on the client side. Also, it seems to me that we can do away totally with the submission of the page to the server and

[s2] Debugging and profiling

2007-01-26 Thread Asthana, Rahul
Hi All, I found this line "Built-in debugging tools supporting profiling, problem reports, and interactive object model queries. " here http://struts.apache.org/2.x/docs/how-does-struts-2-make-web-applications-easier-to-develop-deploy-and-maintain.html Where can I find something more to read abou

FW: Moving from struts-1 to struts-2 or spring mvc

2007-01-10 Thread Asthana, Rahul
Struts-1 as in which version? Why do you want to migrate in the first place? -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 10:55 AM To: Struts Users Mailing List Subject: Moving from struts-1 to struts-2 or spring mvc Hi, we have a pr

additional scope of a variable

2007-01-04 Thread Asthana, Rahul
Hi all, Leons posting about the scopes reminded me of something I have been meaning to post. My application is organized into logical modules, such as purchasing,banking, credit , shoppingcart etc. There are some variables that we have to use within a module.So,we added a new scope to our appl

using 1.2.4 and s2 together

2007-01-02 Thread Asthana, Rahul
Hi All, We have a fairly large application, with about 500 actions.We have a release every 6 months in which about 50 actions get added. We are currently on ver 1.2.4 but want to use S2.Is it possible and feasible to use s2 only for the new actions that get added(probably use a new extension?)?

RE: Performance issue

2007-01-02 Thread Asthana, Rahul
Assuming the lists are user dependent.. 1)You should run some profiling and load tests.There may be no performance issue in the first place. 2)Keep the actual content of the lists in application scope and only the ids in session.Lets say you have to show {"New York","London",Toronto"}; keep an in

RE: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread Asthana, Rahul
The roadmap has info pertaining to this thread. http://struts.apache.org/roadmap.html -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 6:04 PM To: Struts Users Mailing List Subject: Re: Struts2, Shale, Seam, pure JSF - what to use? Hi there,

[s2]Portlet support

2006-12-19 Thread Asthana, Rahul
Hi, I dont know anything about portlets,but our project may have to migrate to it in future..This line is from the "Struts 2" features.What does it mean? "Easy portlets - Automatic portlet support allows portal and servlet deployments with no code changes." thanks Rahul

RE: Struts Tiles question re menus

2006-12-12 Thread Asthana, Rahul
ponse, ServletContext servletContext) throws Exception { LOGGER.log(Level.FINE, "in tile controller execute method"); ArrayList subMenuItemList = (ArrayList)tileContext.getAttribute("subMenuItems"); if (subMenuItemList != null) { // do stuff

RE: Struts Tiles question re menus

2006-12-12 Thread Asthana, Rahul
Look at "5.2.2 One Controller - Multiple Views" in http://www2.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf This allows you to choose layouts on the fly. This can also be done by using just an org.apache.struts.tiles.Controller. -Original Message- From: Adam Gordon [mailto:[EMAIL PR

RE: The first request

2006-12-05 Thread Asthana, Rahul
Look at org.apache.struts.tiles.Controller I couldnt find a decent example though. Here is an article. http://www.theserverside.com/tt/articles/article.tss?l=Tiles101 That of course means that you will have to use Tiles. -Original Message- From: Thom Burnett [mailto:[EMAIL PROTECTED] Se

RE: The first request

2006-12-05 Thread Asthana, Rahul
Actually org.apache.struts.tiles.Controller is called just before the tile is inserted, and that would be after the action forwards to the JSP.That may not satisfy your requirement. -Original Message- From: Asthana, Rahul [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 3:13

RE: Autocomplete attribute in Struts tags

2006-12-04 Thread Asthana, Rahul
the browser options, I am not sure of any way to keep this from happening. But then, I am very much a novice at forms and browsers. Al Asthana, Rahul wrote: > Extend html:text to support "autocomplete"? > > -Original Message- > From: grifoxx [mailto:[EMAIL PROTE

RE: Autocomplete attribute in Struts tags

2006-12-04 Thread Asthana, Rahul
Extend html:text to support "autocomplete"? -Original Message- From: grifoxx [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 3:43 PM To: user@struts.apache.org Subject: Autocomplete attribute in Struts tags Hi I am developing a web application that allow the user to make onlin

RE: tiles: error

2006-12-04 Thread Asthana, Rahul
This error comes due to a variety of reasons.There may be a bean in one of your tiles that is null and preventing that tile from displaying.If I cant infer anything from the log,I remove everything from the JSP and add incrementally to find out the code block that is the root cause.Hope this hel

RE: Newbie question about using beans in html:link tags

2006-11-30 Thread Asthana, Rahul
: Struts Users Mailing List Subject: Re: Newbie question about using beans in html:link tags My search returns multiple rows (as seen in the for loop).. How can I possibly have a session when I dont know what link the user is going to click? On 11/29/06, Asthana, Rahul <[EMAIL PROTECTED]>

RE: Newbie question about using beans in html:link tags

2006-11-29 Thread Asthana, Rahul
eans instead of having to set attributes seperately.. I have a lot of attributes to set other than name, id, etc...all this will be passed around quite a lot.. Priya On 11/29/06, Asthana, Rahul <[EMAIL PROTECTED]> wrote: > > Would you mind using jstl? > > > > > Caveat

RE: Newbie question about using beans in html:link tags

2006-11-29 Thread Asthana, Rahul
Would you mind using jstl? Caveat: I havent used it myself.But I remember having come across code like that. AFAIK, html:link doesnt support passing multiple params except by a Map. -Original Message- From: priya [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 3:25 PM To:

RE: Simple java question

2006-11-14 Thread Asthana, Rahul
You can do this- private void testField() { String aField = "test1"; System.out.println(aField); System.out.println("global="+this.aField); } Also, name you class Struts2 instead of Test2 so that it does not feel out of place in this List.:-) Cheer

RE: RE: Input and results on the same JSP

2006-11-09 Thread Asthana, Rahul
AJAX is very simple and does not need any special serverside support. http://www.maxkiesler.com/index.php/weblog/comments/make_an_ajax_website_in_less_than_10_minutes/ -Original Message- From: robin bajaj [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 4:04 PM To: Struts Users

Struts 2 and JSTL

2006-11-09 Thread Asthana, Rahul
Hi All, Is JSTL and JSTL EL the library and expression language of choice in Struts 2? I read about OGNL somewhere.What library does it use? What are its advantages over JSTL? regards Rahul

unit testing struts actions

2006-10-26 Thread Asthana, Rahul
We are thinking of designing a unit test plan for our struts based application. We have found in past that Junits for struts action are cumbersome to write and difficult to maintain.Any other suggestions? Winrunner?

RE: Two drop downs, and I need that the contents of the second dependent on the value selected in the first!!!

2006-09-19 Thread Asthana, Rahul
Could you set a hidden parameter before submitting- And write code in the function setDependentList() of the LookupDispatchAction Here i am assuming document.forms[0].operation is the name of the property the DispatchAction expects. -Original Message- From: Domingo A. Rodriguez

RE: dependent drop down lists

2006-09-15 Thread Asthana, Rahul
Other option is 1-Store all the data in tokenized form in a hidden variable. something like this- a1|b1|[EMAIL PROTECTED]|b2|c2@ "|" and "@" are delimiters. 2-Use javascript split function on the onchange of first list and create the second list with javascript -Original Message- From:

RE: struts issue...

2006-09-15 Thread Asthana, Rahul
The code posted by punit works.The only problem is that suppose the user clicks on submit and for some reason stops the form from submitting through the browser controls(it happened with me, some users did it apparently because it was taking a long time), then the form would never be submitted a

RE: [struts 1.2.4] Problem with DispatchAction

2006-09-12 Thread Asthana, Rahul
FYI setting validate="true" makes the whole thing work somehow. -Original Message----- From: Asthana, Rahul [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:47 AM To: user@struts.apache.org Subject: [struts 1.2.4] Problem with DispatchAction Hi All, Actio

[struts 1.2.4] Problem with DispatchAction

2006-09-12 Thread Asthana, Rahul
Hi All, Action which is derived from org.apache.struts.actions.DispatchAction was working fine with this entry,with the appropriate method being called. Please note that as yet I had not made any entry for the form bean in struts-config.xml.

Problem while deploying on Weblogic

2006-09-08 Thread Asthana, Rahul
Hi All, I am trying to deploy a struts 1.2.4 application on WebLogic Server 8.1 SP3. The application deploys correctly on tomcat.The exception I am getting on Weblogic is this- Parsing of JSP File '/admin.jsp' failed: /admin.jsp(3): Error in using tag library uri='/WEB-INF/struts-html.tld' pref