Re: Tool for testing and debugging Javabeans?

2000-05-28 Thread D. J. Hagberg
e-run the test suite to ensure you didn't break something else. Hope this helps, -=- D. J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQ

Re: High points about Jason Hunters Servlet book?

2000-05-26 Thread D. J. Hagberg
Robert Nicholson wrote: Can somebody tell me what is consider the high point of Jasons book? I think: 1) general introduction to the topic of servlets and how web protocols work 2) demonstrations of dynamic image creation using AWT stuff and the ACME GIF encoder 3) demonstration of file upload

Re: write method within response object

2000-05-23 Thread D. J. Hagberg
Claire Ryan wrote: what's the method to use for to write to HTTP output, i 've tried using response.write(String), but this doesn't work, any ideas? thanks in advance claire Grab the JSP cheat-sheet at http://java.sun.com/products/jsp/ which will tell you about all the implicit objects you

Re: Source Management

2000-05-23 Thread D. J. Hagberg
to apply these principles to web development is: http://durak.org/cvswebsites/ We use it extensively to synchronize development between multiple developers across the US on our jsp/html/image-based web sites and all our java source and makefiles. -=- D. J. anderson wrote

Re: JPEG/GIF Width

2000-05-22 Thread D. J. Hagberg
anderson wrote: Anyone knows how can I get the GIF or JPEG width ? I have the beginnings of an open-sourced GIF decoder at: http://millibits.com/djh/java/ Look at the implementation of readGIFIdentifier and readGlobalImageDescriptor for a way to determine the image type and the header

Re: Memory for development machine running application server?

2000-05-18 Thread D. J. Hagberg
to consider... -=- D. J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.

Re: CHECK-BOX

2000-05-16 Thread D. J. Hagberg
The call to request.getParameterValues("chkbox") should be returning null, not throwing an exception. Anyway, if you want to make sure you have a non-null array with 0 or more elements, you could write a scriptlet like: % String[] chkboxes; if( request.getParameter("chkbox") == null ) {

Re: Render HTML with images to PDF using JSP?

2000-05-15 Thread D. J. Hagberg
. There is also html2ps which will take you to Postscript output, and then Ghostscript's ps2pdf that will take you to PostScript output. You can use the freshmeat.net search facility to find most of these. -=- D. J

Re: curious. Getting database info

2000-05-09 Thread D. J. Hagberg
y [4]) when the load is distributed across multiple servers. -=- D. J. Rick Reumann wrote: For example say you have various people in a database and have their name, phone number, address, etc. stored in there. Where I work we don't do the database select statements in the jsp p

Re: Model 3 Architecture

2000-05-08 Thread D. J. Hagberg
for this transform? Is it: - container-specific implementations of servlet chaining? - jsp 1.1 taglets that transform their whole contained body? - relying on cutting-edge browsers that actually do XSLT? - some other mechanism like Cocoon? -=- D. J. Daniel Lopez wrote

Re: jRUN AND JSP

2000-05-05 Thread D. J. Hagberg
Support questions about specific products should be directed to their specific support forums. In this case, you should visit http://www.allaire.com/support/forums/index.cfm Mohan Radhakrishnan wrote: Is it possible to configure JRun for JSP 1.0 without installing it again ?

Re: How to write doGet/doPost method in JSP1.0?

2000-05-04 Thread D. J. Hagberg
nimize the amount of scriptlet/declaration/expression code in your .jsp pages. -=- D. J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs

Re: images stored in database

2000-05-03 Thread D. J. Hagberg
One thing to remember is that JSP pages were designed for *text* output, like text/plain, text/html, or text/xml. Binary data should be output by *Servlets*, not JSP's. -=- D. J. Antonio Jimenez wrote: i trying to view images stored in database the mime-type image/gif

Re: User Authentication

2000-04-13 Thread D. J. Hagberg
John Tangney wrote: On 4/12/00 7:13 PM, Vyacheslav Pedak at [EMAIL PROTECTED] wrote: See Java Servlet API specification 2.2, you can download it from http://java.sun.com/products/servlet/2.2/ Thanks, but I *also* scoured the spec. What parts of the spec answer my question? I don't know

Re: JSP and IIS?

2000-04-13 Thread D. J. Hagberg
, with Resin being a bit speedier and having better developer support (dynamic class reloading). -=- D. J. zoxx wrote: Does anybody know some plugin for IIS which enables JSP to run? Note that there is a lot of .asp on that IIS, and boss wants that both .asp and .jsp works

Re: crypt() for Java...

2000-04-12 Thread D. J. Hagberg
Please, people! crypt() has VERY LITTLE to do with JSP. I would suggest the comp.lang.java.programmer newsgroup and maybe, perhaps, using a search engine -- google comes up with several relevant entries with "crypt() for java" In addition, a deja.com search turns up:

Re: Model 2, where to store and access the Database ConnectionPool

2000-04-11 Thread D. J. Hagberg
time at idle times, detecting database restarts and initiating re-connections, etc. Since this thread is still active with a reference to the pool, the GC cannot collect it. -=- D. J. Sam Heisz wrote: On Fri, 7 Apr 2000, Sam Heisz wrote: sam What stops the instance from

Re: localization

2000-04-11 Thread D. J. Hagberg
don't know about other engines. I would be interested in others opinions on this part of the spec, esp. those working on Tomcat or other implementations... -=- D. J. === To unsubscribe: mailto [EMAIL

Re: Automagically convert your JSP 0.92 files to JSP 1.1

2000-04-04 Thread D. J. Hagberg
in `find . -name '*.jsp' -print`; do jsp2jsp.tcl $f done which converted our whole site in a matter of about 2 minutes, plus some manual correction of LOOP tags etc. -=- D. J. Govind Seshadri wrote: Interested in learning about how to seamlessly convert your

Re: More on Model 2 discussion - Interesting option to ActionClass approach.

2000-04-03 Thread D. J. Hagberg
one eliminates some really ugly, redundant code in their JSPs... Hope this helps, -=- D. J. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQ

Re: Using EJB in a JSP

2000-03-29 Thread D. J. Hagberg
ments, etc. for the EJB and generate your JavaBean's .java file with wrapper methods and constructor... -=- D. J. Nidhi Singhal wrote: I am in desperate need for this information. I have been trying to dig this out but... I have an EJB which is deployed on the Oracle 8i.

Re: A Peculiar Problem with the HTTP Get method :- JSP

2000-03-29 Thread D. J. Hagberg
See below for comments... Biju Nambisan wrote: [ . . . ] A typical URL with parameter in this case is something like this http://localhost:/xyz.jsp? myselect_sk0=whmyselect_macro0=weather myselect_sk1=spmyselect_macro1=sports change=CHANGE [ . . . ] parameter..When I am trying to print

Re: how to uplaoad a file??

2000-03-28 Thread D. J. Hagberg
You should take a look at jspFileUpload -- recently listed on the Java Servlets Taverne page: http://www.interpasnet.com/JSS/ Alternatively, as suggested elsewhere, Jason Hunter's File Upload Servlet will do this. Murtaza Ali wrote: i would like know how to upload the file to the my

Re: HTML from a bean?

2000-02-19 Thread D. J. Hagberg
can be ugly for .jsp artist-types to program, you could wrap the ResultSet with a kinder/gentler type of enumerated interface. Same problem with needing a try/finally block in the .jsp page to close things up. -=- D. J. John Parrish wrote: What is the preferred method

Re: Capturing PrintStackTrace in Error.Jsp

2000-02-19 Thread D. J. Hagberg
"Loganathan, Kamalesh" wrote: I would like to capture the 'PrintStackTrace' from the ServletException and print it to the browser. This is easy to implement in the Servlet. Anybody know how to implement this in a JSP page. %@ page isErrorPage="true" % HTML BODY PRE %

JSP 1.0 Specification jsp:setProperty.../ Documentation Unclear

2000-02-14 Thread D. J. Hagberg
t; property="*" / to jsp:setProperty name="bean" property="formElem1" / jsp:setProperty name="bean" property="formElem2" / . . . or do I need to write special code to handle form elements that the user could have deliberately (and re

Re: setting check boxes /URGENT HELP

2000-02-11 Thread D. J. Hagberg
Mistroni Marco wrote: can anyone tell me how can i, using getProperty, set the value of a check box to 'checked`? how is it possible to do that?? please help me.. thanx to all in advance Using the ?: ternary operator inside an expression is what I do: INPUT NAME="chk1"

Re: JavaBeans vs Java bean

2000-02-10 Thread D. J. Hagberg
Please direct non-JSP questions to a more relevant discussion group if you can... The volume of non-JSP messages in this newsgroup is very difficult to deal with. That said, here is a reasonable place to start learning about JavaBeans: http://java.sun.com/beans/FAQ.html The parts that matter

Re: New JSP Book

2000-02-02 Thread D. J. Patil
it is perfect === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html

Re: Global Properties

2000-02-01 Thread D. J. Hagberg
You don't need to rely on the servlet engine for this, and you certainly don't need to hard-code these values in any of your classes. You should implement a singleton design pattern "properties" class that loads itself with information from a .properties file -- a fairly simple wrapper around

Re: New session in servlet included as image source

2000-01-30 Thread D. J. Hagberg
David Galimberti wrote: [ . . . ] I am using the servlet as a source to an image as follows: img src="\servlet\myServlet" If I forward/redirect to my servlet from the JSP I have access to the session variables but if I use the servlet as a source to the image I do not (it actually wants

Re: JSP included BeanLets and the processRequest method.

2000-01-21 Thread D. J. Hagberg
f you chose to write this yourself, you're asking for an awful lot of work and maintenance whenever you add another property to your bean. -=- D. J. Rob Fahey wrote: I am including the bean on the page as follows: jsp:useBean id="registerbean" scope="sess

Re: Any JSP sites I can use as a reference?

2000-01-16 Thread D. J. Hagberg
Duffey Kevin wrote: I was wondering if anyone has JSP pages I can show my boss as a reference as to why we should be switching to the technology. He doesn't believe its http://www.lightningstorm.com/ All our dynamic pages and displays are driven by JSP's and beans. We have had very few

Re: How does JSP handle non-persistant web connections andtransactions?

1999-12-14 Thread D. J. Hagberg
Keith Kwiatek wrote: If you are using JSP to do web applications, how are you using JSP to hand the fact that the web server connection to the database is non-persistant? Well, before we talk about update issues, you should really consider Connection pooling, whereby you keep a VM-wide

Re: stored procedure

1999-12-09 Thread D. J. Hagberg
This is not a JSP question but rather a question on JDBC. Books are available from publishers Addison Wesley, O'Reilly, Prentice Hall, etc... Guilherme - PerConsult wrote: I`m trying to call a stored procedure using JSP... well, I have in my form a text box called "descricao", and my sp will

Re: [Fwd: using ResultSet with JSP?]

1999-12-07 Thread D. J. Hagberg
Note this isn't a JSP question -- this is a rather fundamental question about JDBC. Please consult one of the books about JDBC, such as "JDBC Database Access with Java" by Hamilton et. al. Well, first you need to get the ResultSet object from the query. If you know the columns that will be

Re: JSP .92 vs 1

1999-12-06 Thread D. J. Hagberg
Cory L Hubert wrote: Right now I am using the .92 with JRUN. Should I, can I upgrade to 1.0? Yes. Migrate now while (presumably) your code base is small. At the very least, avoid the LOOP, INCLUDEIF, and EXCLUDEIF tags in your jsp 0.92 pages as they are very difficult to mechanically

Re: Connection Pool

1999-12-03 Thread D. J. Hagberg
Cory L Hubert wrote: Ok. I am on a roll now. I am trying to setup a Connection Pool. I have a few samples. But I don't know where to put it in my project. Should I put it in the Beans? Or should I just make one connectionpool jsp file and include it in all the pages?

Re: MATCH=null bug in JRun?

1999-04-29 Thread D J
I have also seen this problem. I mentioned it awhile ago on the list but no one replied. - Original Message - From: Christopher Cobb [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 29, 1999 10:15 AM Subject: MATCH=null bug in JRun? I am using JRun Pro 2.3 build 141.

Re: Handling user errors in Model 2

1999-04-14 Thread D J
e" VALUE="null" MATCH="exact" PHere is the error message:/P PB[Error=DISPLAY PROPERTY="err:message"]/B/P /EXCLUDEIF /BODY /HTML I originally tried to use INCLUDEIF (or EXCLUDEIF) PROPERTY="err:message" MATCH="null

Implementing Model 2 - Searching a database

1999-04-13 Thread D J
ring[] getFirstNames(), String[] getLastNames(), etc). After querying the database, the servlet would create this bean and set these multi-values properties from the database results. The bean then be past to a JSP page to display using multiple L