Re: Automatically detecting struts-config changes and reload app.

2004-03-24 Thread Geeta Ramani
Hey Antony: Check out the struts admin functionality: Make sure you have the admin mappings in your struts-config.xml, then point your browser to /yourContext/admin/reload.do and you'll see the magic..:) Regards, Geeta Antony Paul wrote: Is it possible to automatically detect changes in

Re: Struts cookbook

2004-03-19 Thread Geeta Ramani
Danilo: Is there a chapter or two which you could make available on-line for a preview..? :) Geeta Danilo Gurovich wrote: Actually, a struts cookbook is just in the finishing stages. George Franciscus and I have been hard at work at it for the last year, and it's in final review.

Re: Mapping Forward to new form

2004-03-19 Thread Geeta Ramani
Ciaran: Just create a new formbean and put it in the request before you forward..:) Geeta Ciaran Hanley wrote: I would like to map to a new blank form, how do I do this? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: how to implement such an action?

2004-03-18 Thread Geeta Ramani
Alex: ok, let me state the problem as i understand it: ActionA -- page1.jsp --ActionB if (success in ActionB) forward to success.jsp else forward to ActionA. Your question is how to get the if failure part working. If my understanding of your problem is wrong, please write back and tell us

Re: how to implement such an action?

2004-03-18 Thread Geeta Ramani
recognize the formbean's variable? maybe this is the key point here. Regards, Alex From: Geeta Ramani [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: how to implement such an action? Date: Thu, 18 Mar

Re: how to implement such an action?

2004-03-17 Thread Geeta Ramani
Alex: Your initial page is just a jsp, right? So why would you not use your action mapping to say something like if success then forward to newpage.jsp and if not forward to samePage.jsp..? This will work unless you are using this refresh action in many pages..? In which case, you will have to

Re: Struts book give-away

2004-03-17 Thread Geeta Ramani
Hi Srikanth: I tried to download the sample chapter via the link on http://www.objectsource.com/ but seem to run into trouble..? I got the following error message on the status bar of my browser: An error has occurred while trying to use this document. I am using Mozilla 5 and Acrobat 4..

Re: Struts book give-away

2004-03-17 Thread Geeta Ramani
Clarification: I did manage to download the pdf, but cannot seem to open i in Acobat 4.0: the file apparantly is corrupted.. Geeta Geeta Ramani wrote: Hi Srikanth: I tried to download the sample chapter via the link on http://www.objectsource.com/ but seem to run into trouble..? I got

Re: Struts book give-away

2004-03-17 Thread Geeta Ramani
Old versions of software - the story of my life.. (:( However, the download page does say it should work with acrobat 4 and 5.. ? Thanks for your response! Geeta Bryce Fischer wrote: Clarification: I did manage to download the pdf, but cannot seem to open i in Acobat 4.0: the file

Re: Struts book give-away

2004-03-17 Thread Geeta Ramani
Srikanth: Thanks for your promt reply. Seems like I'll have to wait till I get home and use some decent software then..;) Geeta P.S. You may want to correct the notation about acrobat 4 on the web site then..:) Srikanth Shenoy wrote: Hi Geeta, The PDF was created using Adobe PDF 5 standard

Re: how to implement such an action?

2004-03-17 Thread Geeta Ramani
a back operation in that action class when false return. But actually as I know the action doesnot provide such operation. So do you have some idea about this? Regards, Alex From: Geeta Ramani [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List

[OT] Re: Struts book give-away

2004-03-17 Thread Geeta Ramani
ok, that's 3 strikes.. I'm out..:O Srikanth Shenoy wrote: That applies for the complete ebook :) Since the purchased ebook is not encrypted to constrain the printing, it will open up in Acrobat 4 reader too. Only the sample chapter wont.. ;( -Srikanth Geeta Ramani [EMAIL PROTECTED] wrote

Re: Handling multiple submits from a single form

2004-03-15 Thread Geeta Ramani
Sajith: This very question was asked and answered recently (just within the past couple of weeks, I think??).. Maybe you can search the archives..? Here's the url for the archives: http://www.mail-archive.com/[EMAIL PROTECTED]/ Write back to the list if you cannot find what i am referring to

Re: Context relative URL

2004-03-15 Thread Geeta Ramani
Hi JP: I believe you can use html:rewrite for this. As in: onmouseover=this.src='html:rewrite page=/images/inicio-over.gif /' etc. Hope this helps, Geeta Joao Batistella wrote: Hello! How can I have this generated with all the images with myapp before the source of the image? Like this:

Re: dynamic javascript forms

2004-03-15 Thread Geeta Ramani
How about usng more Javascript and using onFocus() (or is it onChange()?) to populate hidden fields which can be picked up by your form bean..? (Not a solution I like but then i hate most all Javascript..) regards, Geeta mike barretta wrote: thanks in advance for any help... i have a form

Re: how to use bean:define for this

2004-03-13 Thread Geeta Ramani
Dean: First, you need this countries Collection available in kind of an application-wide context, right? I mean there is no reason to attach this as a session variable since I imagine it would not change from user to user... Also such variables are best initialised/populated in a class (the

Re: how to use bean:define for this

2004-03-13 Thread Geeta Ramani
Dean: Oh, Ok, I think i see what your issue is now (shouldn't have hit that earlier send so fast..!) Ok, in the action before you forward to the jsp, populate your countries variable. Then set your session variable (in your Action class), say, session.setAttribute(countries, countries); (though

Re: how to use bean:define for this

2004-03-13 Thread Geeta Ramani
Dean: Yes, I do see your problem and since (as i inderstand it) Struts tags work via reflection, it needs an instance of the class before you can use bean:define kind of things.. So my guess is you will have to bite the bullet and just use plain Java (remember the good ole days??..;)):

Re: [OT] Object Design Question

2004-03-12 Thread Geeta Ramani
Avinash: ...Adding to what Jacob says below: if you are writing your own, this is a good link to study: http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html Regards, Geeta Hookom, Jacob wrote: It's always on a case by case basis. When and how much do you need at a

Re: porting to struts

2004-03-10 Thread Geeta Ramani
Rajat: Markus is quite right.. however, for what it's worth, you may like to know we pretty much did exactly what you are suggesting: Relaese 2 of one of our bigger web applications was an extension (funcionality-wise) of Release 1. Relaese 1 was completely written with servlets/jsps and we

Re: porting to struts

2004-03-10 Thread Geeta Ramani
Correction: Geeta Ramani wrote: Rajat: living togther. As far a we can see, it is a happy co-existance.. Which of course makes sense, since Struts is after all a glorified servlet, albeit a great one..:) ..I meant of course Struts is built around a (controller) servlet .. not Struts

Re: Regarding Error in Validator - Urgent Help

2004-03-10 Thread Geeta Ramani
Hi Ramachandran: Here's a suggestion: look at line number 63 of the servlet (in your work directory) generated by your first.jsp. See what the code there is and that may give you an idea of what's going wrong.. (seems like a null pointer somewhere, so try to see what may be null in that line of

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Geeta Ramani
Hey Brian: Have you tried evaluating the keyValue ahead of time? As in: %String myKey = ..blah-blah.. using userId;% and then: html:text property=%=myKey% readonly=true size=2 / Give it a shot if you haven't.. Good luck! Geeta Brian Boyle wrote: Hey, I am using a map-backed ActionForm and so

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Geeta Ramani
is still being taken literally as %=myId%. I don't know why it should be doing this because shouldn't you just be able to pass in an argument as long as it is of type String? Brian From: Geeta Ramani [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users

Re: Extending Request Processor to append request parameter

2004-03-06 Thread Geeta Ramani
Brad: Here's one very simple way of achieving your objective, but I am quite certain other people will have better ones, but since this is kind of a cute problem, I want to offer this as well..:) First write a simple util method (I always have a Util class in my apps where I gather stuff which

Re: Extending Request Processor to append request parameter

2004-03-06 Thread Geeta Ramani
Oops, typo.. In your Action classes, where you usually have something like: return mapping.findForward(success) you instead could have: return (Util.makeUnique(success)); I meant: return (Util.makeUnique(mapping.findForward(success))); Geeta

Re: Extending Request Processor to append request parameter

2004-03-06 Thread Geeta Ramani
Brad: I looked at the API and noticed the RequestProcessor is a 1.1 feature.. Your solution seems nice and clear! I only have one question for you though: How do you connect the subclass of RequestProcessor that you wrote with the struts ActionServlet..? Do you have to subclass the

Re: 1 request 2 forms

2004-03-06 Thread Geeta Ramani
I have never done this but i don't see why not. When you press your submit button on your jsp, an Action is called, right? You can do whatever you want in that execute method would be my guess. So if you feel like saving one form in session scope and another in in request attribute before you

Re: 1 request 2 forms

2004-03-06 Thread Geeta Ramani
)... Any idea ? Geeta Ramani wrote: I have never done this but i don't see why not. When you press your submit button on your jsp, an Action is called, right? You can do whatever you want in that execute method would be my guess. So if you feel like saving one form in session scope and another

Re: Extending Request Processor to append request parameter

2004-03-06 Thread Geeta Ramani
- From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, March 06, 2004 10:15 PM Subject: Re: Extending Request Processor to append request parameter Brad: I looked at the API and noticed the RequestProcessor is a 1.1 feature.. Your solution

{OT} Was: Returning fully-stocked Actions/JSPs from other Actions

2004-03-05 Thread Geeta Ramani
Michael McGrady wrote: We had a round of discussions on this in the near past. Right Mark? Mark has gone back to crack after that discussion. LOL Well, actually, Mark took Neill's advice and became a cgi programmer.. (So crack is now in his job description.)

Re: Reset all form bean elements in one shot

2004-03-05 Thread Geeta Ramani
Anant: So a brand new form bean won't do the job..? Geeta [EMAIL PROTECTED] wrote: Hi, I wanted to know if there is any way in which we can reset all the elements of the form bean without giving individual resets all the time for e.g I have 4 elements in my form bean. say A,B,C,D I am

Re: Reset all form bean elements in one shot

2004-03-05 Thread Geeta Ramani
session.removeAttribute(myForm); myForm = new MyFormBean(); Regards, Geeta [EMAIL PROTECTED] wrote: How to remove the form bean element from the session if that's the case -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Saturday, March 06, 2004 2:14 AM

Re: Reset all form bean elements in one shot

2004-03-05 Thread Geeta Ramani
Anant: [EMAIL PROTECTED] wrote: Thanks I never thought it would be as simple as this... :-) Why didn't I think of this before..:-( If each of us had a penny for every time we thought this, we'd be all set for early retirement in the bahamas..:) Geeta

Re: Problem with focus in form

2004-03-04 Thread Geeta Ramani
Shobana: Maybe you can post the relavant code so someone could spot a problem..? Regards, Geeta Shobhana.S, ASDC Chennai wrote: hi1 i've got different filed names..i've set the focus for the text field only..but i get an additional focus for a button..y so? shobhana

Re: ConcurrentModificationException

2004-03-04 Thread Geeta Ramani
Sergei: But you're getting there..:) Take the declaration of ArrayList *out* of: public class MyAction extends Action { protected ArrayList list = new ArrayList(); ---Take this out: BAD!! and move it inside the methods to make them local..: public ActionForward execute(...) ... {

Re: DynaActionForm IllegalArgumentException

2004-03-04 Thread Geeta Ramani
Anirudh: I'm assuming your have written getter/setter methods for this newproperty, right? Double-check the case: it should be getMNum() (and setMNum(String)).. If all else fails, clean out your work directory and try again.. Regards, Geeta Anirudh Jayanth wrote: [ERROR] RequestUtils -

Re: JSF RI Final is out!

2004-03-04 Thread Geeta Ramani
Andrew Hill wrote: Well its great to know the word is spreading... ...soon JSF will conquer all! muahahahaha ...I need some sleep :-( But definitely..! Good night..:) Geeta - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: DynaActionForm IllegalArgumentException

2004-03-04 Thread Geeta Ramani
Oops! My mistake entirely: sorry..(:( Ok, try rebuilding the app entirely (clean all first), then clean out the work directory and try again. Seems like something wierd is happening.. Geeta Anirudh Jayanth wrote: Hey Geeta, I am using a DynaActionFrom This doesn't require getter and

Re: ConcurrentModificationException

2004-03-04 Thread Geeta Ramani
on design guidelines when coding Action classes. Too shame to me :(( - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:22 PM Subject: Re: ConcurrentModificationException | | Sergei

Re: DynaActionForm IllegalArgumentException

2004-03-04 Thread Geeta Ramani
doing something fundamentally wrong though Any suggestions? Anirudh Jayanth SysArris Software 120A, Elephant Rock Road, 3rd Block, Jayanagar, Bangalore - 560011 Tel: 6655165 / 052 [ ext - 244 ] [EMAIL PROTECTED] -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Geeta Ramani
..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Geeta Ramani
); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Geeta Ramani
:06, Geeta Ramani wrote: .as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up

Re: Best way to handle big search results..

2004-03-04 Thread Geeta Ramani
Jerry: Jacob's note (see below) already says this would be a problem, but he has also mentioned a way to solve your problem; check if that works for you. Store the records in a session variable (that's right, session, instead of request makes sense here!!) and display just 20 or so records at a

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Geeta Ramani
. Vector myvector = (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Geeta Ramani
*Ouch*!! Niall Pemberton wrote: Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 04

Re: [OT] was: Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Geeta Ramani
lye down.. On 4 Mar 2004, at 18:21, Niall Pemberton wrote: Geeta, it was a good try - but you have to get him to call you a cgi programmer to get the full points ;-) Niall - Original Message - From: Geeta Ramani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Re: success mapping to other module...

2004-03-04 Thread Geeta Ramani
Daniel: Seems like you have too many .dos in your success mapping..? You perhaps may want to do something like this: action attribute=GeralUsuarioCadIBean input=/geral/geralUsuarioCad.jsp name=GeralUsuarioCadIBean path=/cadaltUsuario

Re: Text area in struts

2004-03-03 Thread Geeta Ramani
Hi there: I think if you simply wrote everything in a single line like so: textarea name=info rows=12 cols=50 tabindex=0bean:write name=book property=ISBN //textarea you should be ok! Regards, Geeta I have the followin code producing textarea but it is off set by one or two

Re: Form name from JSP page

2004-03-03 Thread Geeta Ramani
Hi Stu: This is not really an answer to your question, but just a thought: Why are you reluctant to hardcode the name of the form in? My feeling is jsps are kind of lightweight elements so making them more generalised is not really that important..? I look at jsps as easily modified/modifiable

Re: Best way to handle big search results..

2004-03-03 Thread Geeta Ramani
Jacob Ame: Hookom, Jacob wrote: 1. Create view-specific lightweight objects to be pulled from the DB 2. Memory allowed, it's faster to pull them all at once than lazy load 4. The real cause of some of our performance problems were the JSP's/HTML in Excatly what we found too.. and our

Re: (Fwd) row counts in logic:iterate...

2004-02-26 Thread Geeta Ramani
Rinke: Your ctr seems to be an *Integer* object and you are using it as an int. So simply say: ctr.intValue() + 1 and you should be ok. Geeta [EMAIL PROTECTED] wrote: Then why do i get this error? operator + cannot be applied to java.lang.Integer, int [javac] out.print( ctr + 1 ); Rinke

Re: Struts Workflow

2004-02-26 Thread Geeta Ramani
Mike, search this list's archives. This was discussed a few days ago.. Regards, Geeta Mike Duffy wrote: Does anyone have any great ideas on creating customizable workflows in Struts? __ Do you Yahoo!? Get better spam protection with Yahoo! Mail.

Re: jsp:include page=some action Really need help

2004-02-25 Thread Geeta Ramani
Also, have you looked at the source of the jsp (which is not rendered)? Sometimes there are helpful error messages there which for whatever reason don't show up on the browser. Niall Pemberton wrote: Haven't done what you're trying - but isn't the problem that at the end of the action

Re: Implementing A Search Dialog - Struts

2004-02-25 Thread Geeta Ramani
Sean: sean jones wrote: Wendy Smoak Wendy.Smoak at asu.edu writes: SessionListner - hmmm, I really could use that technology, can you explain how and or provid a simple example. Short answer: Your class should implement HttpSessionBindingListener and override this method: public void

Re: ActionForward and onLoad()

2004-02-24 Thread Geeta Ramani
Hi Leticia: You're right, I don't understand your question completely (must be because I'm no guru..;)).. But may be you can use this thought anyways: you can use a session variable when you paint your jsp. What i mean is you can test for the existence of this session variable and if it does not

Re: Encode/Encrypt url parameters?

2004-02-24 Thread Geeta Ramani
David: It's been a real long day and my brain's fuzzing over.. but I'm assuming you know all about java.net.URLDecoder and java.net.URLEncoder..? geeta David Erickson wrote: Hi I was wondering if there are any easy to use Java classes or otherwise that could be used to encrypt or encode url

Re: html:logic tag doesn't recognize Struts dataBean property'svalue

2004-02-23 Thread Geeta Ramani
Jumping in here.. yes, I think you need to trim() before you check. Also, if that too doesn't work, can you check for something positive (like if ShopOrderExist is equals to false rather than ShopOrderExist is not equals to not exists..?). Another thought, try to get this to work just using

Re: Must have action=..... in html:form tag?

2004-02-23 Thread Geeta Ramani
Stella: Any time you incorporate Javascript into your app, you have to wonder if things will work now/ever/always in this/that/other browser. So avoiding everything except the most basic javascript may be a good idea. What you want to do can be done more cleanly (just in my opinion though) in

Re: redirect problem

2004-02-20 Thread Geeta Ramani
Hi Koen: Try adding the foll. lines at the top of your (resultant) jsp: % response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setIntHeader(Expires, 0); % This *may* do the trick.. (I *hate* browser cache problems..(:(..) Regards, Geeta koen boutsen

Re: redirect problem

2004-02-20 Thread Geeta Ramani
-caching issues..:) Geeta Geeta Ramani wrote: Hi Koen: Try adding the foll. lines at the top of your (resultant) jsp: % response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setIntHeader(Expires, 0); % This *may* do the trick.. (I *hate* browser cache

Re: How to make readonly in Select Box

2004-02-20 Thread Geeta Ramani
Hi Ramachandran: So maybe you could force the issue by using Javascript: write an onChange method to ensure the selection is always what you want it to be..? (I assume by a read-only drop-down you mean you want what you have selected to not be deselected by the user..?) Geeta Slattery, Tim -

Re: Form Submission

2004-02-18 Thread Geeta Ramani
. Regards Avinash Tiwari Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Geeta Ramani Struts Users Mailing List [EMAIL PROTECTED] To [EMAIL PROTECTED] 02/17/2004 09:57 PM cc

Re: Moving App to Struts - Best Practices

2004-02-18 Thread Geeta Ramani
Michael: Michael Steiger wrote: Max Cooper wrote: Max, thanks for your help. If I just want to display values I do not need a html:form and html:text tags. What should I use instead? You can either use the html:form anyways (and just not show any submit button) or you can use: bean:write

Re: Form Submission

2004-02-18 Thread Geeta Ramani
2004, at 14:15, Geeta Ramani wrote: Hi Avinash: I have not followed your description very carefully - my eyes started glazing over about mid-way..;) - but here's a thought (and I'm only going by what i remember of your original question, so forgive me if I misspeak..): If you do not have

Re: How to look up a global forward to get its path attribute

2004-02-18 Thread Geeta Ramani
I know the following works if you have access to a mapping object (as within perform/execute): mapping.findForward(login).getPath(); So maybe you can simply create a new instance of an actionMapping and so forth..? Regards, Geeta OFlaherty, Colm wrote: I have the following entry in my

Re: html link tag

2004-02-18 Thread Geeta Ramani
Hi! Replace html:link page=/do/myactionAdd An Employee/html:link by html:link page=/myaction.doAdd An Employee/html:link and it should work.. Regards, Geeta struts fox wrote: I just did an example strust project in JBuilder, and it works. I have a jsp with a form that issues an action that

Re: Form Submission

2004-02-18 Thread Geeta Ramani
2004, at 14:15, Geeta Ramani wrote: Hi Avinash: I have not followed your description very carefully - my eyes started glazing over about mid-way..;) - but here's a thought (and I'm only going by what i remember of your original question, so forgive me if I misspeak

Re: Form Submission

2004-02-17 Thread Geeta Ramani
Avinash: How about trying something like this: %String myLink = /EmplyeeDetailAction.do?employeeId= + employeeId; % html:link page=%=myLinkEmployee Detail Page/html:link Regards, Geeta [EMAIL PROTECTED] wrote: I want to use a hyperlink instead - for example On a typical employee list

Re: html:select

2004-02-17 Thread Geeta Ramani
Well, I guess that's what Wendy was suggesting in the first place: make the value and the text the same, that way sending one is tatamount to sending both.. The other option is to use a hidden field and javascript (onSelect fill hidden field kind of thing along with the

Re: log4j integration

2004-01-29 Thread Geeta Ramani
Hi Shankar: Two other people asked this same question so if you don't mind, I'll post my (simple) solution to the list. Btw, for those who don't remember, this is a way to enable changes in log4j.properties to be seen by the application without a server reboot. Here goes: 1. Create a simple

Re: Tomcat 3.3.1 and Struts 1.1

2004-01-29 Thread Geeta Ramani
Daniel: A fwe months ago I wanted to move to Struts 1.1 and found that unless you upgraded tomcat to 4 or above, at least one fundamental thing would not work. I forget the details of my exact problem, but my situation was the same as yours: I wanted to make struts 1.1 work on Tomcat 3.3.1. I

Re: no process to read data written to a pipe ??

2004-01-29 Thread Geeta Ramani
Khalid: Have you looked at the servlet generated by your billingInfo.jsp? Looking at your stack trace, the problem seems to occur in that servlet in line 763: at _billingInfo_jsp_30._jspService(_billingInfo_jsp_30.java:763) Regards, Geeta Khalid K. wrote: If anyone has seen this error, your

Re: log4j integration

2004-01-28 Thread Geeta Ramani
Please forgive this note if it seems too obvious and I have misunderstood your question/comments.. If you think of both struts and log4j as just a bunch of Java packages/classes, then you will see that integrating struts with log4j is really nothing unusual. The log4j jar (or classes in the jar)

Re: log4j integration

2004-01-28 Thread Geeta Ramani
*Yes*!! The LogManager is the ticket - I didn't know about this class, so tried it out. Works like a charm.. :) Thanks, Shirish (I think? I inadvertently erased the response to this question so am not sure of its author..) Geeta

Re: form validation question

2004-01-27 Thread Geeta Ramani
Andy: What do you see in the source of the html page..? Maybe it is just a question of display not working right..? Geeta Andy Kriger wrote: I am having a curious problem with form validation. I submit a form, see in the logs that the form fails to validate, however, the webapp does not

Re: log4j integration

2004-01-27 Thread Geeta Ramani
Ritchie: Just make sure the log4j.properties is in your class path.. (like maybe right in your classes directory). that should do it.. Regards, Geeta shankarr wrote: Hi! I have integrated log4j with struts. I need to know how to ensure that the changes done to log4j.properties file is

Re: form validation question

2004-01-27 Thread Geeta Ramani
Andy: Any reason why you have the unusual input param..? action path=/SubmitOrder type=MyClass name=orderForm validate=true input=/OrderForm.do scope=request forward name=success path=/OrderThanks.do/ /action I woud have thought you'd

Re: form validation question

2004-01-27 Thread Geeta Ramani
That shouldn't make a difference. I like to refer to actions rather than JSPs to minimize the number of things I have to change if a JSP changes to a different JSP or to another action. -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 3:27 PM

Re: Struts beginner

2004-01-09 Thread Geeta Ramani
Vanessa: Not sure how much help thsi is, but the NoClassDefFoundError is different from the ClassNotFoundError. I have had this error happen when I have *more* than one (conflicting) copy of a jar/class. I *think* what happens is that one jar is used during compile time (depending on the order

Re: Action to JSP

2004-01-09 Thread Geeta Ramani
The easiest way is perhaps to simply add a redirect=true in your action mapping. However, be aware that this will kill your request attributes (since your request object is no longer forwarded..) Regards, Geeta Mauricio T. Ferraz wrote: There are a way to: When a click in a link in my jsp

Re: expiring time

2004-01-09 Thread Geeta Ramani
Otávio: To set session timeout to 60 minutes, add this to your web.xml: session-config session-timeout60/session-timeout /session-config Regards, Geeta Otávio Augusto wrote: How to I set the expiring time for a session (or the sessions)? Thanks in advance Otávio Augusto

Re: Form data preloading

2004-01-08 Thread Geeta Ramani
Patrice: Here's one relatively simple way of doing this: 1. Extend the struts ActionServlet with say MyActionServlet and make this the controller for your app. 2. In MyActionServlet declare a static var (some Collection say) representing your list of secret answers and write the code to

Re: server hangs after finite number of requests

2004-01-07 Thread Geeta Ramani
times. What is interesting is that it always fails on the 9th try. I don't think it is a matter of seconds either. I have tested over a longer period (10 minutes), but it still gives me 8 requests before it hangs. And Geeta Ramani - thanks. I will take another look

Re: server hangs after finite number of requests

2004-01-07 Thread Geeta Ramani
it Best, Heather On Wed, 7 Jan 2004, Geeta Ramani wrote: Heather: Sounds like you nailed down your problem. You defintely do not want to hang on to a connection longer than absolutely necessary. So if you get a connection from your pool at say the start of a database access

Re: server hangs after finite number of requests

2004-01-06 Thread Geeta Ramani
Heather: Check any jdbc code you have. If you don't close statements/result sets and/or release connections that you have opened, then this sort of thing can happen. Regards, Geeta Manfred Wolff wrote: Heather. Have you studied the tomcat logs? Manfred Wolff Heather Marie Buch wrote:

Re: Question regarding ActionForms.

2003-12-01 Thread Geeta Ramani
Sepand: google under java pass by reference vs. pass by value and look at the very first result. It contains a real nice discussion about this.. Geeta EXCELSIS - Sepand Oboudiyat wrote: Hi, I am currently using Struts 1.0.2 and have notice something with regard to handling of ActionForms.

Re: Tokens

2003-11-20 Thread Geeta Ramani
Gurpreet: Don't mean to jump in if you already have found a good solution, but wouldn't it be simpler to just not allow the user to press the submit btton twice? It is easy (using Javascript) to disable a submit button once it has already been pressed.. Regards, Geeta Mainguy, Mike wrote:

Re: Tokens

2003-11-20 Thread Geeta Ramani
and clicking submit on an earlier page. Geeta Ramani wrote: Gurpreet: Don't mean to jump in if you already have found a good solution, but wouldn't it be simpler to just not allow the user to press the submit btton twice? It is easy (using Javascript) to disable a submit button once it has

Re: Antwort: Re: [OT] Re: far reaching db question

2003-10-29 Thread Geeta Ramani
Manuel: Manuel Lenz wrote: I tried to fill in the values with ps.setString(1, anyValue), etc. as shown in the example below. But the db drops an error: not all variables bound Has anybody an idea? The number of question marks in the sql-statement ist exactly the same as the amount of

Re: Planning Struts Application Development

2003-10-29 Thread Geeta Ramani
What's more, the on-line help on the Expresso list is probably the best I have ever encountered.. In fact, I suspect the lead developer of the project is a vampire so he never sleeps..;) You can also pay a pretty nominal amount for prime support - and if you contribute to their open-source

Re: newbie session problem

2003-10-28 Thread Geeta Ramani
for other solutions using url rewriting which somehow doesn't work! Can anyone else enlighten me or is my question just too trivial? Regards, Geraldine -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 9:35 PM To: Struts Users Mailing

Re: Forward Cannot Be Achieved In One Step

2003-10-28 Thread Geeta Ramani
Caroline: ok, I didn't sleep enough last night so I may be blabbering(:(, but why don't you simply say: html:link page=/LogoffLOGOUT/html:link and lose the forward entry in your struts-config.xml? Geeta Caroline Jen wrote: The do/Menu does display my welcome page. The LOGOUT button and

Re: newbie session problem

2003-10-27 Thread Geeta Ramani
Hi! this doesn't explain why a new session is created, but in the link in your original jsp do not link directly to the second jsp: it's a bad practice anyway since it breaks MVC. Instead use something like this: html:link page=/goToJsp2.doJsp 2/html:link In your struts-config.xml, add this

Re: Session-scoped form and synchronization...

2003-10-27 Thread Geeta Ramani
Craig R. McClanahan wrote: Unfortunately, having frames is *not* the only scenario where you have to worry about multiple simultaneous requests. Two simple additional ones: * Your app contains img tags that point back into your app (dynamically generated images, for example). * User

Re: How to do Confirmation page.

2003-10-26 Thread Geeta Ramani
Hi DN! Seems like the specs just changed..;) Please see inline comments.. Dinh Nguyen wrote: Geeta, thanks for pointing out the issue, however, we take care of that in the validation form. Either way if the user misses some fields, he/she'll be redirected back to the registration form

Re: going straight to a jsp

2003-10-25 Thread Geeta Ramani
Hi Simon: I think maybe you have misunderstood what it means to say don't directly go to jsps. What this means is don't break the MVC pattern. So for example, if you have a link on your jsp and all you want it to do is to go to a second jsp, resist the temptation to code the second jsp directly

Re: going straight to a jsp

2003-10-25 Thread Geeta Ramani
the forwardaction a little inefficent compared to linking direct to the jsp (my target environment is 2000 concurrent users)? or do you think the benefits of keeping to MVC might outweigh that? thanks for your help so far simon -Original Message- From: Geeta Ramani [mailto

Re: How to do Confirmation page.

2003-10-25 Thread Geeta Ramani
Hi Dinh Nguyen: We had a similar requirement and we solved it using Javascript's location.href .. I reproduce our code below: script language=JavaScript function confirmPrint(msg){ if (confirm(msg)) {

  1   2   >