Stupid newbie question

2001-11-14 Thread Papo Napolitano
MessageI only want to know how can i do to stop the execution of a JSP script. For example: if (i == 666) { STOP HERE! } else { continues . . . } In php I use die() but I can't found the correct method for JSP. Regards Papo =

question

2001-11-16 Thread Papo Napolitano
Hi!! I have a JSP Script that includes another JSP script with a tag. The included Script returns a value. How can I do to get this value in the main script ?? Regards Papo === To unsubscribe: mailto [EMAIL PROTECTED] wi

Re: question

2001-11-16 Thread Papo Napolitano
I think that this doesn't works with Tomcat 4.0 because it returns this error: [EmbeddedCatalinaServiceSX] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 2 in the jsp file:

Re: question

2001-11-16 Thread Papo Napolitano
I tried with this alternatives: <%@ include file="userfunc.jsp" %> after the include a try: <%=retval%> The variable retval is defined in the userfunc.jsp file with this instruction: int retval = 0 ; The server returns this error: [EmbeddedCatalinaServiceSX] StandardWrapperValve[jsp]: Se

Re: question

2001-11-17 Thread Papo Napolitano
RE: questionHi! Finally all is working fine. Thank you all for your help! Cheers, Papo. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set

returning values...

2001-11-18 Thread Papo Napolitano
Hi!   If have a function that returns some kind of object (a HashMap for example)... How can I do to return an error value if the function fails ??   Cheers,   Papo

jsp-mysql auto_increment

2001-11-26 Thread Papo Napolitano
Hi! I've a mysql table with an auto_increment field so.. How can I, after having inserted the results get back in the application the id of the experiment ? I may not do a select max afterward since this application is being used by quite a lot of people concurrently cheers, Papo

Binary print....

2001-11-26 Thread Papo Napolitano
Hi! I want to know how can I do to print a "image" file that I have in a String var ?? I'm setting a header with content-type and the execute an print with the string. The problem is that it doesn't print the 00 Chars any idea ?? Regards, Papo ===

Catching exceptions....

2001-11-29 Thread Papo Napolitano
Hi! I've a method in an EJB that returns a CachedRowSet. This method before returning the rows, checks from some privileges of the user that is logged in. If the user haven't necesary privileges doesn't return the CachedRowSet. Now I want to now how can I do to know which exception has made the

Servlet & Mysql

2001-12-01 Thread Papo Napolitano
Hi! I've written the following Servlet to read an Image from a Mysql Database and send it to the browser. public class ImageServlet extends HttpServlet { public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { try { InitialContext

Re: Servlet & Mysql

2001-12-02 Thread Papo Napolitano
t; } finally { > // make sure it's closed > if (rs != null) rs.close(); > if (stmt != null) stmt.close(); > if (conn != null) conn.close(); > } > > regards, > Wayan > > -Original Message- > From: Papo Napolitano [mailto

Re: BLOBs within MySQL and JSP

2001-12-03 Thread Papo Napolitano
Yes.. I've did it a few days ago.   What do you want to know ??   Cheers,   Papo

Re: BLOBs within MySQL and JSP

2001-12-03 Thread Papo Napolitano
I just used rs.getString() to read the data from the database and for I've written a Simple Servlet to send the image to the browser.   Cheers,   Papo

Simple Question

2002-04-16 Thread Papo Napolitano
Hi! How can I do to to put inside a JSP String Variable this information <%=VarName%> I'd tried with this but i get an error: String myVar = "<%=VarName%>" ; Any idea ?? Regards, Papo === To unsubscribe: mailto [EMAIL P