digester MissingResourceException

2004-03-01 Thread Erik Price
Hi, I'm running into a problem trying to start Tomcat 4.1.30 on my development machine (Win2000). I've downloaded and extracted the Tomcat 4.1.30 zip, placed it at C:\jakarta-tomcat-4.1.30, and set %CATALINA_HOME% to this directory. When I try to start Tomcat from either a DOS prompt using

RE: how can i get a servlet instance from ServletPool

2004-03-01 Thread Erik Price
--- Edson Alves Pereira [EMAIL PROTECTED] wrote: No, i made it static `cause i couldn´t get servlet instance in another servlet, that´s solved my problem, but i´d like to know if is this the best way to solve problems like that? Doesn't it seem like you could refactor that

Re: time zone

2003-04-02 Thread Erik Price
Chakradhar Tallam wrote: the machine (operating system) is in correct time zone, but when tomcat runs it shows GMT times on tomcat's console. Also if you prefer to have your Tomcat synchronized to GMT, I think this works (untested): DateFormat df = DateFormat.getTimeInstance();

work dir

2003-04-02 Thread Erik Price
I just noticed that there are older *.java and *.class files in my hosts's $CATALINA_HOME/work/ directory, that I have long since removed from my webapp directory (and there have been a number of stops and starts of both my webapp and Tomcat itself since then). When do these files get cleared

Re: work dir

2003-04-02 Thread Erik Price
John Turner wrote: I don't think Tomcat clears out the work directory on its own. I've always had to write wrapper scripts for my instances that do a rm -rf work/* right before a call to startup.sh. Oh okay, I didn't realize that's how it's supposed to work. No problem. I also just noticed

Re: work dir

2003-04-02 Thread Erik Price
John Turner wrote: I wouldn't delete work itself...that will probably break things. My scripts just have: rm -rf /usr/local/tomcat/work/* on stop. That way, a startup is clean. Tomcat will rebuild anything it needs to build under work. That will slow things down the first time through,

Re: server-side redirects in web.xml

2003-03-28 Thread Erik Price
I'm sure this is a FAQ, but I can't find a good example of this - I would like to do a server-side redirect on a per-application basis ( e.g. the web.xml ). Basically, I just want : http://server/url/ To be redirected to : http://server/ It needs to be transparent to the user, they should

Re: Guidelines on application development

2003-03-27 Thread Erik Price
Greg Speechley wrote: During development we use a java editor eg jGrasp to edit .java files which are stored in $CATALINA_HOME\webapps\app\WEB-INF\classes and compile these individually. It gets a bit tiresome restarting tomcat after each recompile but I can live with that (I have

Re: db resource mgmt

2003-03-27 Thread Erik Price
On pre-4.1 version of Tomcat it is called Tyrex. Erik Filip Hanik wrote: yes there is, a common module called dbcp search the archives Filip -Original Message- From: Chris Shen [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 5:12 PM To: [EMAIL PROTECTED] Subject: db

Re: OT Dumb JavaScript question

2003-03-27 Thread Erik Price
Collins, Jim wrote: Hi Guys, This is probably a dumb question, does anyone know if is possible to use JavaScript objects from a servlet? When a user makes some selections I want to add objects to an associative array I would then like to be able to access this associative array and save the

Re: IllegalStateException on JSP page

2003-03-27 Thread Erik Price
Kenny G. Dubuisson, Jr. wrote: Hello all. I've got a simple JSP page which is throwing an IllegalStateException when I try to redirect the output to another page. What is the stack trace? Here is a snippet of the code: login = login.toUpperCase(); Connection myConnection =

Re: Conflict between servlets and JSP: urgent!

2003-03-27 Thread Erik Price
Sandra Patricia Hunter wrote: I built my jsp files and they ran just fine. Then I created a servlet that runs just fine as well. But when I try to now run my jsp Tomcat continues to refer to files that are only relevant for the servlet. Even plain html pages don't run correctly. Servlets still

Re: Threads in Servlet2.3 container

2003-03-27 Thread Erik Price
klute wrote: Interesting.. What about the following scenario: say you have a base servlet that implements some interface for your app. it has validate() and forward() methods which encapsulates some logic used by all servlets in your app. doGet() and doPost() are different though. so, say my

Re: Registering Servlets

2003-03-27 Thread Erik Price
Sandra Patricia Hunter wrote: [...] I am creating a passwordFile using a FileOutputStream to the address above like this: String passwordFile = C:\\SANDRA\\BC Transit\\IDCardProject\\Passwords\\passwords.properties; FileOutputStream out = new

Re: Registering Servlets

2003-03-27 Thread Erik Price
Sandra Patricia Hunter wrote: What happens is that when I enter what should be correct username/password pairs they are not recognized. The value above for the name passwordFile is not correct so I do not see the page as I should. Does that help? Sort of. I mean, I understood the nature of the

Re: Registering Servlets

2003-03-27 Thread Erik Price
Sandra Patricia Hunter wrote: Well, it's printing out the value I assign in the web.xml file. Still it is not recognizing the user/password pairs. I think that I don't have the correct value but I don't know what correct would be? I am using the code from Marty Hall's core servlets book called

Re: Registering Servlets

2003-03-27 Thread Erik Price
Sandra Patricia Hunter wrote: Four Yep, I ended up finding it (http://pdf.coreservlets.com/) -- I agree with Justin that it's probably the way you're specifying your file path. Remember that even on Windows, it's easier to use Unix-style file paths in Java. (Think of it as writing your

Re: request parameter question ...

2003-03-26 Thread Erik Price
Mufaddal Khumri wrote: if(str.equals(xyz) == true) { str = ChangedName; request.setParameter(name, str); // - how do i do this ??? There is no method as request.setParameter() } [...] one way to do it would be to append the parameter and its changed value

Re: request parameter question ...

2003-03-26 Thread Erik Price
Mufaddal Khumri wrote: Hi , I tried using request.setAttribute(name, newName); try { String path = /SomeJSP.jsp getServletConfig().getServletContext().getRequestDispatcher(path).forwar d(request, response); } catch(Exception ex) { ex.printStackTrace(); } When i do a

Re: request parameter question ...

2003-03-26 Thread Erik Price
Mufaddal Khumri wrote: I guess if i use setAttribute ... i have to use getAttribute ... thats the reason i get the blank string .. coz i was using getParameter my problem is that the jsp uses getParameter ... it would have been good if i could have used the same method regardless as how the

Re: [OT] Contract Work Hourly Rates

2003-03-26 Thread Erik Price
Micael wrote: I have a job offer to do contract work coding websites. I am well versed in most of the areas required, and wonder what is a good hourly rate to ask for? I know Java (certified programmer), Tomcat, Struts, Ant, blah, blah, as well as scripting, Red Hat, etc. Thanks for any

Re: [OT] Servlet process issue

2003-03-24 Thread Erik Price
Tam, Michael wrote: However, my concern was under the same request, if a client make a request to (A), which passes to(B) and (B) passes to (C) and so on, then a client could terminate the process by quitting the browser or stop the browser am I correct? If so, my question would be how to

Re: [OT] Servlet process issue

2003-03-21 Thread Erik Price
Tam, Michael wrote: Hi all, Sorry for the [OT]. Since many of you are the experts on servlet technology, I'd like to ask for suggestions or comments on the servlet process I am working on. Process: 1) I have a form html (A) to upload data files through an UploadServlet (B) which stores the

Re: User Interface To Tomcat User List

2003-03-19 Thread Erik Price
Having this resource available as a mailing list makes it better-accessible in the long run to the most people. Unlike an eforum or ecommunity, there is a standard storage format for all of the posts made to this list, which can be programmatically accessed and parsed by many email-specific

Re: Netscape navigator

2003-03-19 Thread Erik Price
Susan Hoddinott wrote: Does anyone know if there is a problem using Netscape Navigator with servlet pages generating their own html using the println function. Whenever I attempt to access servlets of this kind (which work fine under Explorer) I just get the HTML text (e.g. HTML etc.)

Re: User Interface To Tomcat User List

2003-03-19 Thread Erik Price
NormW wrote: While pulling down particular threads is feasible, my knowledge isn't that 'compartmentalised'; I might know 4 facts on advanced config and 100 on where to find docs; AIX, Linux, Solaris, Windows 2K, etc I can provide a cup of coffee for. Oh, what I meant was that an option would

Re: Extending HttpServletRequest / HttpServletResponse ???

2003-03-18 Thread Erik Price
Gavin, Rick wrote: I'd recommend getting a Serlvet programming book and optionally a JSP book. They will come in very handy for these questions. really? I have one of each, neither mention the subject or either classes mentioned. Maybe before you make a vague

Re: Model View Controller with JSP

2003-03-17 Thread Erik Price
Jan Behrens wrote: hi list, i am trying to figure out a way to use the model-view-controller paradigm to dynamicaly reload a jsp page when the underlying object has been changed by another user. i would like to achive this without having to use a separate servlet however... any ideas, tips or

Re: Server.xml

2003-03-17 Thread Erik Price
Hunter, Sandra wrote: Frustration abounds: I am plodding through a tomcat tutorial and it suggests modifying the Server.xml file to include a new context path line to allow for playing with a sample file. Everything works tickety boo until I do that, then Tomcat won't startup at all. When I

Re: Server.xml

2003-03-17 Thread Erik Price
sense to you? What do I do? -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 1:03 PM To: Tomcat Users List Subject: Re: Server.xml Hunter, Sandra wrote: Frustration abounds: I am plodding through a tomcat tutorial and it suggests modifying

Re: Strange Tomcat Admin Tool behavior

2003-03-13 Thread Erik Price
Doug Selph wrote: I had checked for this case with an earlier error, but neglected to do so with the symptom reported below until today. Shame on me. Found a reference in Google that seemed to point to an invalid session as the cause. Browser was the beta of Apple's Safari. I have seen a

Re: Tomcat Mailing List

2003-03-12 Thread Erik Price
Chris Dodunski wrote: Wow, my first day on the Tomcat mailing list, and arrived at work this morning to find around 100 emails in my INBOX! What this community perhaps needs is an eForum - or is there one already? Mailing lists are fine for small eCommunities, but not for eContinents. :-) Two

Re: HTTP 500-Internal Server Error

2003-03-11 Thread Erik Price
pcampaigne wrote: Thanks Matt. I had my servlets in the src directory under WEB-INF so I creates a classes directory under WEB-INF and moved them there. However, I still get a 500 error but the root cause is different: NoClassDefinitionFoundError: com/op/test/LoginServlet (wrong name:

Re: A question regarding accessing parameters after the ? ina URL

2003-03-06 Thread Erik Price
p niemandt wrote: As far as I know you should separate parameters with an ampersand ... Build up your query string, end this with a question mark and append your parameters with the ampersand ... ie. Something like MyFavourite.JSP?id=2path=myprojectparam1=2param2=3 etc, etc... Don't forget

Re: response.sendRedirect( .. )

2003-03-05 Thread Erik Price
Geoff Coffey wrote: On Wednesday, March 5, 2003, at 08:32 AM, Tim Funk wrote: I paraphrase as its nice to present some body content in your page since browsers/agents do have the option of displaying/parsing the body for some context before following the redirect. I stand corrected on that

Re: response.sendRedirect( .. )

2003-03-05 Thread Erik Price
Geoff Coffey wrote: It seems like we need our authentication check and redirect (or forward) on the content page itself and not in an include, so Muffi created a taglib to encapsulate this check and that seems to be working. Is this a typical solution? It seems like a frustrating restriction

Re: forward request to static html page loses path for included images?

2003-03-04 Thread Erik Price
Ray Tayek wrote: i was using getRequestDispatcher(). but i have changed that to use redirect (which works, but may cause me some problems later with session - not sure, but i want to have the guy stay in that same sessiosn even if goes off and looks at a static page - i am worried about

Re: Tomcat on WinXP

2003-03-04 Thread Erik Price
Denise Mangano wrote: I have my JAVA_HOME set to point to my c:\jdk1.4.1\bin No, that is not the home of your JDK installation. The home is the main directory -- c:\jdk1.4.1 -- so change JAVA_HOME so that it points to this directory. and export JAVA_HOME in my PATH variable. If you are

Re: Tomcat on WinXP

2003-03-04 Thread Erik Price
Denise Mangano wrote: What boggles my mind even further is that at the command prompt I cahnge to G:\tomcat and I try javac test.java and it gives me no error messages, but no class file is compiled. Try javac -help and see if a help message appears. If it does, then javac is on your path and

Re: response.sendRedirect( ); question

2003-03-04 Thread Erik Price
Mufaddal Khumri wrote: Now if the USER_AUTHORIZED attribute is not set, it will enter the if block and get redirected to the login.jsp page. The browser shows me the content of the body page after the if block instead. Does after getting redirected the call returns to this page and

Re: response.sendRedirect( ); question

2003-03-04 Thread Erik Price
Mufaddal Khumri wrote: Adding a return does not work. Well, it was worth a try. Sorry it didn't work out. My own approach (modeled after the conventional wisdom tossed about on this list and in some tutorials I have read) is to refrain from using decision logic in JSPs wherever possible.

Re: Tomcat on WinXP

2003-03-04 Thread Erik Price
http://catb.org/~esr/jargon/html/entry/AFAIK.html Kenny G. Dubuisson, Jr. wrote: What is AFAIK? Sorry to ask but I see it all the time and I've not been able to figure it out (:p Kenny - To unsubscribe, e-mail: [EMAIL

Re: jsp:forward .. / from within an included JSP file ?

2003-03-04 Thread Erik Price
Mufaddal Khumri wrote: Now, since a request.sendRedirect( .. ) wont work from within an included .jsp page ... i am trying to use the jsp:forward ... / tag. [...] Now if the USER_AUTHORIZED attribute is not set, it will enter the if block and get forwarded to the login.jsp page. I get the

Re: WebDav

2003-03-03 Thread Erik Price
[EMAIL PROTECTED] wrote: Hi, I am not familiar with webdav. What it, any links?? http://webdav.org/ I got the latest version of Tomcat.It is on a Linux Box. I wanted to use webdav inorder to give our developers the ability to modify files in our webapps in Tomcat w/o having to login to the

Re: Installing Tomcat on WinXP with Apache/PHP/mySQL setup

2003-03-03 Thread Erik Price
Denise Mangano wrote: Now I want to integrate Tomcat into the picture, and I am just wondering if there is anything special I need to do so nothing conflicts or do I proceed with the Tomcat installation as normal. Let your web server run on port 80 (the default for Apache IIRC) and let your

Re: Am i doing something wrong while using jsp:setProperty ... /?????

2003-03-03 Thread Erik Price
Mufaddal Khumri wrote: [...] In my JSP page i have the following code / /--- jsp:useBean id=myBean class=MyBean scope=session jsp:setProperty name=faqHelper

Re: forward request to static html page loses path for included images?

2003-03-03 Thread Erik Price
Ray Tayek wrote: hi, i am forwarding a request to a static html page that has some pictures included using IMG SRC=images/help1.jpeg ... and using request.getRequestDispatcher(/help.html).forward(request,response);. the static html file file comes back sans images. but pointing a browser to

Re: WebDav

2003-03-03 Thread Erik Price
Anthony Smith wrote: I can't seem to copy jsp files from my webdav nor an I copy them to my webdav? DO you have this problem? I don't use WebDAV with my servlet/JSP development. I was just suggesting a possible way to do it. Erik

Re: Am i doing something wrong while using jsp:setProperty ... /?????

2003-03-03 Thread Erik Price
Mufaddal Khumri wrote: I downcasted but it did not help. jsp:useBean id=faqHelper class=FAQHelper scope=session jsp:setProperty name=faqHelper property=dbReader value=%= (Object)session.getAttribute(DBREADER)% /

Re: tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Erik Price
Do you have an XML declaration at the top with the reference to the taglib DTD? http://java.sun.com/webservices/docs/1.0/tutorial/doc/JSPTags5.html#66396 Also, your /tag-class tag looks like it has a space in it, though that could just be from the email client. Erik Mufaddal Khumri wrote: I

Re: tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Erik Price
That taglib descriptor has a tlib-version of .0 Mufaddal Khumri wrote: Yes, I do have the XML declaration. I basically am using the .tld from under the examples webapp as a template the contents of my .tld file are : ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE taglib

Re: tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Erik Price
Mufaddal Khumri wrote: Sorry, abt that ... that was a typo, I do have it defined as: tlib-version 1.0/tlib-version The problem persists .. any cues ? Well, I just checked my own taglib descriptor. I'm not sure why there is a discrepancy, but mine uses the tag tlibversion and jspversion

Re: tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Erik Price
Mufaddal Khumri wrote: Hi ... From the error i get ... it seems that it accepts the hyphenated version but it throws an error when it parses the tag element .. The error i get is : Mar 3, 2003 2:19:21 PM org.apache.commons.digester.Digester error SEVERE: Parse Error at line 26

Re: tomcat throws exception while parsing taglib descriptor ????

2003-03-03 Thread Erik Price
Mufaddal Khumri wrote: Hi, Thanks Eric .. that was the problem .. the order ! ... the taglib documentation just said .. you need these elements .. never knew that order would matter. Thanks for your help. No problem. I had the same happen to me when I made my first taglib descriptor. I

Re: ejbs and sql server

2003-02-28 Thread Erik Price
Another one (might be easier to set up) is OpenEJB.org http://www.onjava.com/pub/a/onjava/2003/02/12/ejb_tomcat.html Erik Filip Hanik wrote: nope, Tomcat is a servlet/jsp engine. Take a look at www.jboss.org Filip -Original Message- From: Michael Ni [mailto:[EMAIL PROTECTED] Sent:

Re: Filter - ServletContext

2003-02-27 Thread Erik Price
Günter Kukies wrote: Hello, I want to read some context-param from web.xml within a filter. But the getAttribute is always null. There is no problem to get the same context-param within a Servlet. Don't you want getInitParameter() ? Erik

Re: Performance .. Jsp compile import wildcards

2003-02-27 Thread Erik Price
Reynir Hübner wrote: Hi, I'm wondering what kind of performance decrease (if any) it has to use wildcards in jsp import lines. example : %@ page import=java.util.* % .. but not : %@ page import=java.util.ArrayList % I know in normal java classes using wildcards when importing packages

Re: Filter - ServletContext

2003-02-27 Thread Erik Price
Günter Kukies wrote: Oh, sorry getInitParameter() was the solution. Thanks for your hint. But why is the ServletContext not the same in Filter and HTTPServlet? I am confused. There is one ServletContext in a webapp (as far as I know, which isn't very far). You can access it from a Filter

Re: Performance .. Jsp compile import wildcards

2003-02-27 Thread Erik Price
Reynir Hübner wrote: But JSPs are compiled, so this is still only a compile-time issue. (Unless I'm mistaken?) Erik Yup, that's true... I'm really just trying to find out how much this can slow down the compile of a jsp page (jspc). I'm guessing not much but I am no compiler

Re: R: properties files

2003-02-26 Thread Erik Price
Jose Moreira wrote: thanks :) i noticed that the servlet context isnt available also ... but if i put the properties file inside the WEB-INF/lib, what's it's path ? If the properties file is in WEB-INF/lib, then it must be in a JAR file. The technique for accessing a properties file from a

Re: R: properties files

2003-02-26 Thread Erik Price
Erik Price wrote: However, it must be possible because I believe log4j uses properties files from JAR files in webapps. So, you might want to ask around there or check the log4j source code. Please let us know what you find! Responding to my own post, I took a look at the Log4J source

Re: R: properties files

2003-02-25 Thread Erik Price
Simone Chiaretta wrote: I store properties in my the app WEB-INF/web.xml context-param param-namesmtpServer/param-name param-valuemy.smtpserver.net/param-value descriptionSMTP server to be used to send email from forms in the

Re: is there a tag or some kind of mechanism that would do the following...

2003-02-25 Thread Erik Price
Mufaddal Khumri wrote: There are some cases where this is unavoidable and I was wondering if there was a way to do something like below in a .java file: public class MyServlet extends { doPost( ... ) { . . Some kind of tag that

Re: is there a tag or some kind of mechanism that would do the following...

2003-02-25 Thread Erik Price
Will Hartung wrote: Finally, I'd look at creating a simple script is any convenient language that simply converts an HTML file into java, and then cut-n-paste in into your code. Now, I find cut-n-paste to be one of the great evils of the development communiity, but sometimes it is appropriate

Re: Tomcat 4.1.18 session objects

2003-02-25 Thread Erik Price
Another way to track users would be to use a filter mapped to all of the relevant resources in your webapp. When the request hits the filter, the filter checks the session to find out which user is making the request (assuming that you have bound a User object to the session as you described

Re: Mapping .jsp to controller servlet

2003-02-24 Thread Erik Price
Januski, Ken wrote: I've found a workaround for the time being. Each .jsp page has access to a bean that includes login info. I changed jsp page to test to see if the login flag is true. If so nothing happens. If not then I use jsp:forward to send it back to the login.jsp page. So this will work

Re: Mapping .jsp to controller servlet

2003-02-24 Thread Erik Price
Januski, Ken wrote: Thanks Eric, I know that I do need to learn about filters. It's just something I don't feel like I'm up for at the moment, though I may find it surprisingly easy once I finally look into it. I'll take a look at the articles. I felt the same way until I took a closer look and

Re: RequestDispatcher and WEB-INF

2003-02-21 Thread Erik Price
rf wrote: It is strange that RequestDispatcher considers only jsp and html, why not other extns like jpg/gif or why not just any other resource - is this because of any security concern? I don't think it's security, but I looked at the Servlet spec (page 55) and couldn't find a specific

Re: Mapping .jsp to controller servlet

2003-02-21 Thread Erik Price
I may not be entirely clear on what you're saying, but if you're saying that no one should directly be able to request your JSPs and instead they should only access the contents of your site by requesting Servlet resources (which then forward to JSPs), perhaps it would be worth moving the JSPs

Re: Mapping .jsp to controller servlet

2003-02-21 Thread Erik Price
Januski, Ken wrote: Hmm. I got a 404 error after moving one jsp file to WEB-INF and trying to directly access it. That's not great but at least it prevents access. Worse though is that when I then try to go to page after having logged in I get a root cause: file not found error. So it looks to

configuring JNDI for App-level auth

2003-02-21 Thread Erik Price
Hi, I have an account on a server running Tomcat 4.0.6 and am finally getting around to incorporating connection pooling into my app. At first I was going to use a home-brewed connection pooling class that I read in a book, then I discovered that there is support in Tomcat for the DBCP

Re: [OT] free Database with Transaction (Sorry for the noise)

2003-02-20 Thread Erik Price
Michael Micek wrote: chomp On Wed, Feb 19, 2003 at 08:16:25PM -0500, Jake Robb wrote: Internal and External refer to whether you compile the mySQL source into your program and distribute that (internal), or you just distribute mySQL along with your software (external). Really? Do they

Re: JDBC ORACLE implementation !

2003-02-20 Thread Erik Price
Chong Yu Meng wrote: As a rough indicator (and I invite others to correct me), it takes : - 1 month to understand Oracle - 2 weeks to get JDBC working the way you want Is this indicator specific to Oracle? I set up the MySQL JDBC driver and had working queries in a matter of hours. (I am

Re: RequestDispatcher and WEB-INF

2003-02-20 Thread Erik Price
I do not think you can forward to a .exe file, not sure of what the spec says but the Javadoc says only JSP or HTML files. This link will probably get broken in your mail client, but if you reassemble it you can read the doc:

Re: What is the best book about Servlets/Jsp?

2003-02-20 Thread Erik Price
There's a free one that I found helpful at http://pdf.coreservlets.com/ Be sure to read it in conjunction with the current Tomcat documentation, because although it's a very good book, there are a few (very few) references that are now out of date. If you read the Tomcat docs you will spot

Re: tomcat ant tasks (docs?)

2003-02-20 Thread Erik Price
Wendy Smoak wrote: Now I'm trying to use the tomcat ant tasks to automate things, and I'm running into problems. First, I can't reload this app with the ant task. It says: w:\java\bendevant reload Buildfile: build.xml reload: BUILD FAILED file:w:/java/bendev/build.xml:159:

Re: What is the best book about Servlets/Jsp?

2003-02-20 Thread Erik Price
Shapira, Yoav wrote: To other people who answered, and to the original poster of this question: what do get from the books that you can't get online? Do you not find that the books, or at least parts thereof, become outdated very quickly? Yoav, I'm not sure if you're familiar with the book

Re: What is the best book about Servlets/Jsp?

2003-02-20 Thread Erik Price
Mike Jackson wrote: However I'll agree, I don't look at the books often, usually by this point I go to the java docs. I'll second this, the javadocs are much quicker than going to a book now that I know where to look for stuff. The book was just a great way to get the basics down. And for

Re: tomcat ant tasks (docs?)

2003-02-20 Thread Erik Price
Wendy Smoak wrote: It's taken almost straight from the example: target name=reload description=Reload Web application depends= reload url=${manager.url} username=${manager.username} password=${manager.password} path=/${context}/ /target (With the appropriate properties set, of

Re: is it possible to use setAttribute for request in jsp??

2003-02-20 Thread Erik Price
Ashish Kulkarni wrote: Hi Filip, I know, but i want to achieve some thing like reqeust.setAttribute(), i dont want to save the object in session, as then i will have to put some logic to get it out of session, or size of session will go on increasing, and will create problem in future

Re: [OT] free Database with Transaction (Sorry for the noise)

2003-02-19 Thread Erik Price
Turner, John wrote: Without going into a whole argument...technically MySQL is not free for commercial use. If you use MySQL in a commercial setting, internal or external, without purchasing a commercial license, you may do so only if the application that uses MySQL is also GPL

Re: [OT] free Database with Transaction (Sorry for the noise)

2003-02-19 Thread Erik Price
Turner, John wrote: I guess MySQL AB should remove the phrase internal or external from the statement, then. ;) I agree, it is confusing, and doesn't even say what context internal or external refers to. Erik - To

Re: Basic Auth with Apache+Tomcat

2003-02-17 Thread Erik Price
Jake Robb wrote: Seems to me that if Tomcat had that information, it would be in the Session variable, not the Request variable. See if maybe it's available via Session.getAttribute(). The variables (sometimes called cgi variables since CGI is what they are historically used with) sent by

Re: [OT] question about killfile

2003-02-17 Thread Erik Price
Denise Mangano wrote: Hey all :) Sorry for the dumb question... But I keep seeing people talk about a killfile. Seeing as how this is the first list I've ever subscribed to, I had to ask - what exactly is a killfile? You guessed it -- a file of email addresses whose email you don't want to

Re: An easy one... Default Config in conf/web.xml

2003-02-17 Thread Erik Price
Andoni wrote: Thanks for that. I think I'll look up your other recommendations first. I don't know ant at all so I'll start with the other one. Ant is worth learning -- you can figure it out in a couple of hours. It will make all of your webapp deployment a lot easier. There is a decent

Re: RTFM and Ettiquette was: MY ATTITUDE

2003-02-17 Thread Erik Price
Paul Brinkley wrote: The solution that causes the least amount of distress to all parties (that I can think of) is to teach netiquette to Internet newcomers in some hard-to-avoid location. [...] Unfortunately, this is a culture change, and hence it will take a while, possibly as much as a

Re: Setting up logging - Log4j

2003-02-12 Thread Erik Price
Robert Priest wrote: So the general consensus is Log4j over jdk1.4 logging including commons-logging so in the future when we upgrade and/or switch loggers it will be easier? Hmmm... I heard one person speak out against commons-logging because it is a class loader hack, which appears to

Re: about singletons (ot)

2003-02-11 Thread Erik Price
don't remember them any more. But there's some really good books that we mentioned by other people, the addison westley book is good, and the o'reilly threads book is good. --mikej -=- mike jackson [EMAIL PROTECTED] -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent

Re: java/jsp dynamic data

2003-02-11 Thread Erik Price
Jeff Ousley wrote: I though maybe an applet would suit my needs, but it needs to access data on remote hosts. Doesn't the applet security prevent this? Have the applet consult the originating server for data, and have the originating server do the work of querying the remote server. Erik

Re: MY ATTITUDE

2003-02-11 Thread Erik Price
Hi Steve, RTFM means Read the friggin' manual. It is used in almost any place where a person is asking a question when they could have read a document instead. The idea is that nobody has extra time sitting around to waste re-explaining things that have been explained perfectly well

Re: JAASRealm/LoginManager questions

2003-02-10 Thread Erik Price
Craig R. McClanahan wrote: It seems a little convoluted, but, what it buys me is, any Servlet container which supports form-based authentication, and which supports JAAS for realms (or equivalent), can harness this toolkit. I assume (but have not verified) that this buys me into the major

Re: Valve Access to Principal

2003-02-10 Thread Erik Price
Craig R. McClanahan wrote: Tomcat 5 has integrated support for JSR 115, but that's for authorization, not authentication. Oh no, there's a difference? Is there an explanatory document somewhere that I missed? Erik -

Re: class loader in JSP file

2003-02-10 Thread Erik Price
Ing. Gustavo Edelstein wrote: Hi list! I've a jsp page that use a xx class that I wrote. I put the file class xx.class in WEB-INF/classes but Tomcat cannot find it from my jsp page. Any idea? Thanks, Did you import the class with the %@ import % JSP directive? Don't forget to use a

Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Erik Price
chris schild wrote: Would anyone be able to provide some debugging tips for Tomcat servlets? Logging. Also, what would cause a servlet to be unavailable? If you didn't map the servlet to a URL-pattern in your web.xml. Erik

Re: Question about options

2003-02-07 Thread Erik Price
Hi, It can also be done (unreliably) with JavaScript/frames. I would never use this approach, but the idea is similar to what some domain name registrars use for what is called stealth forwarding (giving the appearance of mapping one URL to another without a true IP mapping). The trick is

Re: SendMailServlet - problem, debugging tips

2003-02-07 Thread Erik Price
tomcat guy wrote: The logs do not seem to tell me a lot. Any suggestions? Err, I didn't mean checking the Tomcat logs (though that helps). I meant that one way to debug servlets is to use a logging framework for your application like Log4J. I wish I could be of greater help with

Re: servlet URL

2003-02-07 Thread Erik Price
Felipe Schnack wrote: I'm writing a servlet that requires to be a Singleton (much like Struts' servlet), and I have some other objects that need to know the URL of this Servlet to make some redirects to it... so I need this servlet to have a method that return its URL, as in web.xml

Re: servlet URL

2003-02-07 Thread Erik Price
Felipe Schnack wrote: Sorry, context-parameter? But then I wouldn't have (again) my servlet's URL written in two different places? This kind of thing worries me, because somebody can change in one place but not on another. You're right, this kind of data redundancy can be dangerous, and

Re: JSP's in other directories

2003-02-05 Thread Erik Price
Nicholas J Campbell wrote: Hi, I have a question, I want to be able to access JSP pages that are outside of the web-inf directory setup by tomcat…I do not know how to do it, obviously. I have Apache 2 installed and use that at my main server and then am running tomcat for the purposes of

Re: WAR format question

2003-02-04 Thread Erik Price
Jacob Kjome wrote: In order to obtain access to a file under WEB-INF in a completely portable way, use something like... getServletContext().getResourceAsStream(/WEB-INF/myproperties.xml); What about if we have a tag descriptor somewhere below WEB-INF, is it safe to refer to the path

  1   2   >