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
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
.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
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
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
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
>
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
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
I have an action class with an execute method as follows
public ActionForward execute( ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse re
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;
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
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.
<%
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
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
>
&
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
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
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
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 =
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
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.
> >
>
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
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
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
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
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:
<%@
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
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
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
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
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
; 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
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
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.
> >
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
>
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
; * 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
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
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
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".
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
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
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
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
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
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.
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:
> >
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
>
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
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.
> >>
&
>
> 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(
50 matches
Mail list logo