Re: Accessing Request URI using struts tags

2007-08-01 Thread Mon Cab
It works. Thanks Chris. --- Chris Pratt <[EMAIL PROTECTED]> wrote: > Try > > > <%@ include file="bla.jsp"%> > > > (*Chris*) > > On 8/1/07, Mon Cab <[EMAIL PROTECTED]> wrote: > > I am trying to do the following from with

Accessing Request URI using struts tags

2007-08-01 Thread Mon Cab
I am trying to do the following from within a jsp, using Struts tags <%@ include file="bla.jsp" %> However, I cant seem to find the tags to do do this. I would have imagined that one could do something like: <%@ include file="bla.jsp" %> but this does not work. Any adivice would

RE: Connection, pool exhausted error

2007-02-28 Thread Mon Cab
.getConnection(), you actually get a proxy class > which > delegates your calls to actual vendor specific connection. When you > call > close on this, an event is fired which will actually return the > database > connection to the pool. > > > > -Original Messag

RE: Connection, pool exhausted error

2007-02-28 Thread Mon Cab
ote: > > Where are you closing the connection? > > > -Original Message- > From: Mon Cab [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 01, 2007 12:23 PM > To: Struts User Group > Subject: Connection, pool exhausted error > > > > I am getting

Connection, pool exhausted error

2007-02-28 Thread Mon Cab
I am getting a connection, pool exhausted error, in the action class below. The error happens exactly after the hundredth connection, even though I have closed all my statements, result sets and contexts. (I know that one would not normally do db access in an Action class, however, I'm implem

Re: getting Session from SessionId

2007-02-10 Thread Mon Cab
use a singleton to store the map and then access the sessions from there. Why do you say this might not be a good idea? --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > Mon Cab wrote: > > Im guessing that this might require my storing the sessionId's in > the >

Re: getting Session from SessionId

2007-02-09 Thread Mon Cab
t; solution would have to be dependent on what app server your running > on > and something specific to it. > > Frank > > (P.S. - I could be wrong! LOL) > > Mon Cab wrote: > > I am trying to integrate a web application to an external service, > and > > need to

getting Session from SessionId

2007-02-09 Thread Mon Cab
I am trying to integrate a web application to an external service, and need to be able to take an incoming sessionId from the external service server, and to return details from the session to which that sessionId applies. I understand that there was a getSession(String sessionid) method, in Ht

Struts considering exceptions in Action class .execute() as unhandled

2006-11-24 Thread Mon Cab
I have an action class with an execute method as follows public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse re

Logging in Struts

2006-11-16 Thread Mon Cab
Good day I am having a hard time understanding how to use logging in Struts. The struts.apache.org suggest the following usage (presumably for business objects) (taken from: http://struts.apache.org/1.x/userGuide/building_controller.html ) package com.foo;

Re: Not getting URL rewriting with

2006-06-20 Thread Mon Cab
ributes to set the action parameter. > > -Richard > > Mon Cab wrote: > > I have a jsp page called link test (included below), However, the > url > > for *Login Link* is not being rewritten to include the jsessionid. > > Cookies are disabled on my browse

Not getting URL rewriting with

2006-06-19 Thread Mon Cab
I have a jsp page called link test (included below), However, the url for *Login Link* is not being rewritten to include the jsessionid. Cookies are disabled on my browser, and jsessionid is being generated for form submissions, but not for links. Am I missing something here? Pleae help. <%

Re: OT: Tomcat not setting session cookies ? Please help :(

2006-06-15 Thread Mon Cab
Thanks Craig. You were right. I just tured off ZoneAlarm and url rewriting switched off after the first page. I must not have checked past the first page, when I first tried testing whether it was ZoneAlarm. --- Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 6/15/06, Mon Ca

RE: urgent- exception in sending e-mail from application

2006-06-15 Thread Mon Cab
from IP: bytes=32 time=326ms TTL=125 > Reply from IP: bytes=32 time=252ms TTL=125 > > Ping statistics for IP: > Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), > Approximate round trip times in milli-seconds: > Minimum = 252ms, Maximum = 361ms, Average = 315ms > &

Re: OT: Tomcat not setting session cookies ? Please help :(

2006-06-15 Thread Mon Cab
McClanahan <[EMAIL PROTECTED]> wrote: > On 6/15/06, Mon Cab <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > > > All of a sudden tomcat has stopped settign session cookies. I have > > been developing on my local machine for approx 1yr. Now, When

RE: urgent- exception in sending e-mail from application

2006-06-15 Thread Mon Cab
gt; > -Original Message- > From: Mon Cab [mailto:[EMAIL PROTECTED] > Sent: Friday, June 16, 2006 10:48 AM > To: Struts Users Mailing List > Subject: Re: urgent- exception in sending e-mail from application > > Patil > > Your smtp server may require authenticat

OT: Tomcat not setting session cookies ? Please help :(

2006-06-15 Thread Mon Cab
Hi All of a sudden tomcat has stopped settign session cookies. I have been developing on my local machine for approx 1yr. Now, When I goto my webapps home page: http:/127.0.0.1:8080/webapp), tomcat is rewriting the URL as http://127.0.0.1:8080/webapp/Welcome.do;jsessionid=DAF0604E76E234C157A9BF

Re: urgent- exception in sending e-mail from application

2006-06-15 Thread Mon Cab
Patil Your smtp server may require authentication. Find out and, if so, Add the following lines to your code. class MyAuthenticator extends Authenticator { protected PasswordAuthentication getPasswordAuthentication() { PasswordAuthentication pa =

not detecting hidden parameters in multipart forms

2006-01-04 Thread Mon Cab
I am using hidden fields and multipart forms in a jsp, and it seems that the tag is not detecting the hidden field as being present when the multipart form is submitted. In MyJsp I have Myvar is present etc I h

Re: Tomcat not displaying (or logging) runtime exceptions for STRUTS !!

2006-01-03 Thread Mon Cab
You were right Laurie. I thought I had commented out the , however, I had used instead of <%-- --%>, so the code was still included in the servlet. Thanks for the tip. --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Mon Cab wrote: > > Please help. > > >

Tomcat not displaying (or logging) runtime exceptions for STRUTS !!

2005-12-30 Thread Mon Cab
Please help. It seems that Tomcat is no longer displaying (or logging) runtime errors. I have in a jsp, and no tags surrounding this. If I call this jsp without the var parameter, Tomcat just returns a page with the following html source: Thats it! No exceptions or anything! So ther

NOT throwing runtime exception when parameter is not present !!

2005-12-28 Thread Mon Cab
Hello I have one Nested.jsp included in a Frame.jsp. In my nested jsp I have the following: Do something. I have NOT wrapped this in tags and there are no tags in Frame.jsp. When I call the page, without the my_parameter, instead of getting a: javax.servlet.ServletException: Canno

Re: Repost:- Accessing an array from within a JSP

2005-12-03 Thread Mon Cab
Lauri I did an explicit cast and it worked. Thanks so much. --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Mon Cab wrote: > > Sorry. The formatting was messed up on my first post. Hopefully > this > > is better > > > > I am trying to de

Repost:- Accessing an array from within a JSP

2005-11-30 Thread Mon Cab
Sorry. The formatting was messed up on my first post. Hopefully this is better I am trying to define a string array as a property of DynaValidatorForm in my struts config file and then access that array from within a JSP but am getting an incompatible types error when trying to do this. My fr

Accessing an array from within a JSP

2005-11-30 Thread Mon Cab
I am trying to define a string array as a property of DynaValidatorForm in my struts config file and then access that array from within a JSP but am getting an incompatible types error when trying to do this. My form bean definition is as follows: In my JSP (MyJSP.jsp) I wrote: <%@

Re: Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-26 Thread Mon Cab
th > Ethereal) to see if there are Expires or other > caching-related headers > being included by something else? > > L. > > Mon Cab wrote: > > It's understandable that my browser would retireve > > from cache when I hit the back button. BUT: > Should my

Re: Using message resources to specify value in an button

2005-11-26 Thread Mon Cab
Thanks Everyone for your help with this. It's working now. I opted to nesting in the submit tag), per Wendy/Frank/Hermod. --- "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: > Wendy Smoak wrote: > > (Does no one trim their posts anymore?! That > thread is nearly > > impossible to follow with

Re: Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-26 Thread Mon Cab
Got it. Thanks Michael. --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 11/25/05, Mon Cab <[EMAIL PROTECTED]> wrote: > > It's understandable that my browser would retireve > > from cache when I hit the back button. BUT: > Should my > > browser a

Re: Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-25 Thread Mon Cab
It's understandable that my browser would retireve from cache when I hit the back button. BUT: Should my browser also be retrieving from cache when I click on the same url twice, even if the url/uri is a get request. I am implementing a logout link as follows: login.do?use_case=logout When I cl

Using message resources to specify value in an button

2005-11-24 Thread Mon Cab
Does anyone know how to specify what is written on the submit button using message resources? I thought it might be titleKey but when I tried to use that, it just labelled my submit button "submit". __ Yahoo! Music Unlimited Access over 1 mil

Re: Can RequestDispatcher be used in an Action class

2005-11-24 Thread Mon Cab
; page. I am presuming that if I tried to generate an ActionMapping on the fly or use a global forward, that there would be more work with little added benefit. --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Mon Cab wrote: > > I am trying to build a login page which will > direct

Can RequestDispatcher be used in an Action class

2005-11-24 Thread Mon Cab
I am trying to build a login page which will direct the user to a different page depending on what action they were trying to perform before they logged on. I was thinking of using a passing a request parameter in the request for the login page which could be used by a request dispatched in the

Re: Runtime debugging - and Painfull Tomcat restarts

2005-11-18 Thread Mon Cab
Thanks Laurie. --- Laurie Harper <[EMAIL PROTECTED]> wrote: > As far as I know, Tomcat only supports fully > reloading the whole app. > You might want to ask on the Tomcat list to be sure, > though. > > L. > > Mon Cab wrote: > > Thanks Laurie. > >

Re: Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-18 Thread Mon Cab
er("Cache-Control", "no-cache"); > response.setHeader("Cache-Control", "no-store"); > response.setDateHeader("Expires", 0); > %> > > to keep your browser from caching the page and see > if it works. > > HTH. > > ATTA >

Action.execute() only being invoked the first time a url is requested ??!!!

2005-11-17 Thread Mon Cab
For Example if I type in my browser address bar: http://127.0.0.1:8080/webapp/userSignup.do?action=whatever The first time, I type this in, this invokes the execute method of my Action class (I'm using System.out ("Action execute Invoked") in Action execute to test this). If I then enter the ex

Re: Runtime debugging - and Painfull Tomcat restarts

2005-11-13 Thread Mon Cab
; * if the previous file was not found for this > application, in > individual file at /META-INF/context.xml inside the > application files > > -- > > So, for example, you can create a file > /META-INF/context.xml in your > webapp with something like the fol

Re: Runtime debugging - and Painfull Tomcat restarts

2005-11-13 Thread Mon Cab
te see which file I would set that in. Would that be in web.xml? --- Mon Cab <[EMAIL PROTECTED]> wrote: > Is there any way to avoid having to restart Tomcat > every time a class is recompiled in a webapp. I am > debugging a webapp at the moment, and everytime I > recompile

Re: Problems with "validwhen"

2005-11-13 Thread Mon Cab
gt; [1] the country is "United States" and *this* is not > null > [2] the country is not "United States" and *this* is > null > > (((*this* != null) && (country=="United States")) || > ((*this* == null) && (country!="United > Sta

Re: Problems with "validwhen"

2005-11-13 Thread Mon Cab
Nice one. Thanks Lorie. It works now. --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Mon Cab wrote: > > I am trying to use validwhen to make sure that > > validator only requires a valid State and Zip if > the > > country selected is "United States".

Runtime debugging - and Painfull Tomcat restarts

2005-11-12 Thread Mon Cab
Is there any way to avoid having to restart Tomcat every time a class is recompiled in a webapp. I am debugging a webapp at the moment, and everytime I recompile my Action class I am having to wait 1 minute for Tomcat to restart. __ Yaho

Problems with "validwhen"

2005-11-12 Thread Mon Cab
I am trying to use validwhen to make sure that validator only requires a valid State and Zip if the country selected is "United States". But I am getting required error messages from both state and zip when the form is submitted without these values. I am using the following config for validato

Re: What happens to exceptions not handled within Action class ?

2005-11-11 Thread Mon Cab
The browser is just redirecting to my "fail" ActionMapping. And there's nothing going in the logs (neither the localhost, or the stdout logs) I'm using Tomcat 5.0.28. --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Mon Cab wrote: > > Specifically excepti

What happens to exceptions not handled within Action class ?

2005-11-10 Thread Mon Cab
Specifically exceptions in execute(). Shouldnt these result in a stack trace printout in Tomcat 5. Or are they printed out to the logs. __ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com

Re: barfs if it's parameter is null

2005-11-09 Thread Mon Cab
Nice one. Thanks Rahul. I ended up wrapping in tags... --- Rahul Akolkar <[EMAIL PROTECTED]> wrote: > On 11/7/05, Mon Cab <[EMAIL PROTECTED]> wrote: > > Hi all... > > > > I.e any way of using the tag less > > strictly, so that > value=&q

barfs if it's parameter is null

2005-11-07 Thread Mon Cab
Hi all... I.e any way of using the tag less strictly, so that will not cause an exception if var is null. At the moment I am getting: javax.servlet.ServletException: Cannot compare null variable to value signup org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.

Re: How to display an error image next to an invalid form field?

2005-10-24 Thread Mon Cab
whatever to each > of your form > fields. Or do you mean how would you write the CSS? > Something like > css-class-name { background: url('/path/to/img') > left center no-repeat; > } in your style sheet should get you started. > > L. > > Mon Cab wrote: > >

Re: How to display an error image next to an invalid form field?

2005-10-22 Thread Mon Cab
Thanks Laurie How would you write this. The usage doesnt seem to be clear from the tag API. --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Wendy Smoak wrote: > > From: "Mon Cab" <[EMAIL PROTECTED]> > > > >> I know will > give me >

Re: How to display an error image next to an invalid form field?

2005-10-22 Thread Mon Cab
Thanks Wendy... Much appreciated. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Mon Cab" <[EMAIL PROTECTED]> > > > I know will give > me > > the error message for username, but I don't care > about > > that. I just want to d

Re: How to display an error image next to an invalid form field?

2005-10-21 Thread Mon Cab
done? --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Mon Cab wrote: > >>I have read the struts documentation and am trying > >>to > >>work out how I would display an error image next > to > >>an > >>invalid form field. > >> &

Re: How to display an error image next to an invalid form field?

2005-10-20 Thread Mon Cab
> > I have read the struts documentation and am trying > to > work out how I would display an error image next to > an > invalid form field. > > Ramesh mentioned that property="custName"/> would display the error > message > associated with a particular field. Is there a (set > of) struts tag(