Re: custom tag - param passing prob

2007-03-21 Thread Graeme McLaren
eference [mailto:[EMAIL PROTECTED] On Behalf Of > Graeme McLaren > Sent: Monday, March 19, 2007 7:03 AM > To: JSP-INTEREST@JAVA.SUN.COM > Subject: Re: custom tag - param passing prob > > Hi there, thanks for your reply, I'm using Tomcat 5.0, will > that code you supplied w

Re: DB Connection prob (next step)

2007-03-21 Thread Graeme McLaren
an think of that would justify connection pooling descriptors on the server.xml would be if you wanted two or more applications (contexes) to be able to share the same connection pool. john Graeme McLaren wrote: Hi all, I'm trying to get connection pooling working, I've altered

Re: DB Connection prob (next step)

2007-03-21 Thread Graeme McLaren
[75A16B90:01C76B4F] You need to import javax.naming.* -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED] On Behalf Of Graeme McLaren Sent: Wednesday, 21 March 2007 10:50 AM To: JSP-INTEREST@JAVA.SUN.COM Subject: Re: DB Connecti

Re: DB Connection prob (next step)

2007-03-20 Thread Graeme McLaren
Hi all, I'm trying to get connection pooling working, I've altered the server.xml and web.xml files, written a class and it compiled with a few errors. What am I doing wrong here? Cheers, Graeme :) in server.xml: in web.xml file: com.javacomponents.DBConnect

Re: DB Connection prob

2007-03-20 Thread Graeme McLaren
for a web application, you should use a connection pool and a datasource. In your current problem, your variables should not be final. -Richard Graeme McLaren wrote: Hi all, I have a prob connecting to my Oracle DB. I have a class called "DBConnection" and have various setter methods whi

DB Connection prob

2007-03-19 Thread Graeme McLaren
Hi all, I have a prob connecting to my Oracle DB. I have a class called "DBConnection" and have various setter methods which set values found in the deployment descriptor, for example: public static void setDriver (String val) { driver = val; System.out.println("driver 2= "+driver

Re: custom tag - param passing prob

2007-03-19 Thread Graeme McLaren
eb.xml, your JSP line would look like this: In this case, there's no need to declare variables or write any scriptlets. > -Original Message- > From: A mailing list about Java Server Pages specification > and reference [mailto:[EMAIL PROTECTED] On Behalf Of > Graeme

Re: custom tag - param passing prob

2007-03-07 Thread Graeme McLaren
d defined In your code, , the second prevMonth should be a variable defined your jsp. There should something like <% int prevMonth = request.getParameter ("prevMonth")%> somewhere before that line. The first prevMonth is an attribute of your custom tag. Don't confuse yourself

Re: custom tag - param passing prob

2007-03-07 Thread Graeme McLaren
UaNlDLxTl2s3DpOjcJ1nhuzrxI/fTr8VSGVME/4jS9j87sZhl60nS4qHvvT1kkXpdF13kQqDXKzQTgZsKNjLTAzYghuShr+8sQpKPsXgiRUt+S2UfYtqo+bXsE= References: <[EMAIL PROTECTED]> Precedence: list Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 08 Mar 2007 05:06:04.0064 (UTC) FILETIME=[78C94A00:01C7613F] Where did you define the "prevMonth" betwee

custom tag - param passing prob

2007-03-07 Thread Graeme McLaren
Hi all, I am building my first custom tag and I want to pass a value to variable around from a jsp to the custom tag: When I try to to run the JSP I get an error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 23 in the jsp file: /calendarTag.jsp

Checkboxes using JSPs

2002-11-03 Thread Graeme McLaren
Hi all, I was wondering how you would deal with checkboxes using JSPs. In PHP one way is to use the isset() function. How would you test to see if a checkbox has been checked with JSPs? Do you have to use a similar function or can you simply do something like: if(thecheckbox == 1) { print "the

Re: Suggestion for JSP book

2002-08-09 Thread Graeme McLaren
I've got "Web Development with JavaServer Pages" by Fields Kolb and Bayern from Manning publications lots of neat stuff in there !! Good Luck G :) Public Sub House() On Error Resume drink If Pint.empty = True Then Pint.refill Else Pint.dri

SQL SELECT Problem

2002-04-18 Thread Graeme McLaren
Hi all, thank you for all the replies to my earlier SQL question, I've now managed to INSERT data to my database. Now I have a problem selecting the data which I have inserted. I have a form which is to be filled out to retrieve a username when a user fills in their personal details. I'm gettin

Re: JSPs/DBs and HTML Forms

2002-04-16 Thread Graeme McLaren
;',"; > >if (query.charAt(query.length() - 1) == ',') > query = query.substring(0, query.length()); > >Now your whole query is ready in query variable. > >If still have any doubt then you can ask me. > >This is just an approach. You can take care

JSPs/DBs and HTML Forms

2002-04-15 Thread Graeme McLaren
Hi everyone, I'm completely new to JSPs and I'm finding a somewhat daunting area. Specifically I'm having a problem inserting information from an html form to a database using a JSP. Basically I've got the problem of getting the parameter and the value from the form then inserting it in to the d