Re: How to restrict access of my server??
Hi, can anyone let me know how to do the same thing with IBM VAJ4.0? Regards Ramesh Kesavanarayanan [EMAIL PROTECTED] Off : 8113801 ext 2333 Res : 2265360 Mob : 98412 73573 -Original Message- From: Sowbhagyavalli Suryadevara [SMTP:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 2:49 PM To: [EMAIL PROTECTED] Subject: Re: How to restrict access of my server?? Find the following section the tomcat/conf/server.xml and set suppress=true RequestInterceptor className=org.apache.tomcat.request.StaticInterceptor debug=0 suppress=true / Valli IIC Technologies Pvt Ltd INDIA -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Sreenath V Sent: Monday, April 29, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: Re: How to restrict access of my server?? how did u do it, can u explain me as i am not finding an entry in tom cat server.xml - Original Message - From: Sowbhagyavalli Suryadevara [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 2:27 PM Subject: Re: How to restrict access of my server?? Thank you. That worked fine, and solved my problem nicely !!! Valli IIC Technologies Pvt Ltd INDIA -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of subbu Sent: Monday, April 29, 2002 12:42 PM To: [EMAIL PROTECTED] Subject: Re: How to restrict access of my server?? Hai, In tomact's server.xml file set suppress property to true...That's all Done... !-- default handler - static files and dirs. Set the suppress property to true to suppress directory listings when no welcome file is present. NOTE: This setting applies to *all* web applications that are running in this instance of Tomcat. -- - Original Message - From: Sowbhagyavalli Suryadevara [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 29, 2002 10:22 AM Subject: How to restrict access of my server?? HI, Can anyone tell me how I can stop people from viewing the directory listings and files in the server directories? I use JBoss + Tomcat. If the URL used to access the server has some directory name, then the server displays the whole directory listing. This can cause several security problems. I need my servlets and JSPs to access these directories but not anyone else. Valli IIC Technologies Pvt Ltd INDIA == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com == = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at:
Reading checkboxes's values
Hi all! I'm trying to read the value(s) of a checkbox into my JSP file. I don't know if I'm right but I assign the same name to all the possible values of the item. For example: Select one color:br input type=checkbox name=color value=blue Bluebr input type=checkbox name=color value=red Redbr input type=checkbox name=color value=white Whitebr So I don't know how to get all the values checked in the JSP file which will recieve this information. I tried something like this: String[] colorChoosen = request.getParameter(color); Or do I have to change the name of the input tag (checkbox) for each selection to get the value as above? Please, help me.. Thanks and Regards, Nancy. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: import
Import the path where your bean is located: % @ page import = java.sql.*,com.ril.beans.*% Richie === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Reading checkboxes's values
Nancy: If you only want to select one color, why not use radio buttons instead? You are right in leaving all the names the same - then just do: String colorChoosen = request.getParameter(color); and that will give you the color that was selected. - Joel Filosa Binary Research, Inc. -Original Message- From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 5:54 PM To: [EMAIL PROTECTED] Subject: Reading checkboxes's values Hi all! I'm trying to read the value(s) of a checkbox into my JSP file. I don't know if I'm right but I assign the same name to all the possible values of the item. For example: Select one color:br input type=checkbox name=color value=blue Bluebr input type=checkbox name=color value=red Redbr input type=checkbox name=color value=white Whitebr So I don't know how to get all the values checked in the JSP file which will recieve this information. I tried something like this: String[] colorChoosen = request.getParameter(color); Or do I have to change the name of the input tag (checkbox) for each selection to get the value as above? Please, help me.. Thanks and Regards, Nancy. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Reading checkboxes's values
Select one color:br input type=checkbox name=color value=blue Bluebr input type=checkbox name=color value=red Redbr input type=checkbox name=color value=white Whitebr So I don't know how to get all the values checked in the JSP file which will recieve this information. I tried something like this: String[] colorChoosen = request.getParameter(color); using request.getParameterValues(color) should return the returned choices (for example, [blue, white]). request.getParameter(color) will return the first element in the array. Either way, if none are chosen you'll get NULL. Lance Lavandowska www.Brainopolis.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Any idea of how to draw a line or a square on top of an image?
Hello everyone: I have an image in a page, and I need to paint a square (or 4 lines )on top of it depending of certain parameters, to represent a selected area. Any idea of how can I do this? Or how can jsp help to do this? Thanks a lot, Julia - Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Indra. En el caso de haber recibido este correo electrónico por error, se ruega notifíquese inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente. - The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail. - ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Container automaticaly rewite links.
Hi, I have strange problem here. In jsp page i only using standard href link, but when i run in container, in browser it says something like /index.jsp;jsessionid=qweutyqwte?par=value which means the container was rewrite *all* url. in fact, im not using any response.encodeURL(index.jsp) and my browser was accept cookies. What could be wrong? Thanks. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Reading checkboxes's values
Nancy, You could use the getParameterValues() method, here is the javadoc description: public java.lang.String[] getParameterValues(java.lang.String name) Returns an array of String objects containing all of the values the given request parameter has, or null if the parameter does not exist. If the parameter has a single value, the array has a length of 1. Parameters: name - a String containing the name of the parameter whose value is requested Returns: an array of String objects containing the parameter's values See Also: getParameter(java.lang.String) Regards, Enrique -Original Message- From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 8:44 AM To: [EMAIL PROTECTED] Subject: Reading checkboxes's values Hi all! I'm trying to read the value(s) of a checkbox into my JSP file. I don't know if I'm right but I assign the same name to all the possible values of the item. For example: Select one color:br input type=checkbox name=color value=blue Bluebr input type=checkbox name=color value=red Redbr input type=checkbox name=color value=white Whitebr So I don't know how to get all the values checked in the JSP file which will recieve this information. I tried something like this: String[] colorChoosen = request.getParameter(color); Or do I have to change the name of the input tag (checkbox) for each selection to get the value as above? Please, help me.. Thanks and Regards, Nancy. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Working with JSP not with JAVA
Vaishali, This is a basic Java question. The problem is that you don't have your current directory mapped in your classpath. Try java -classpath . MyConnection Regards, Richard At 02:23 PM 4/30/2002 +0530, you wrote: I have writen a connection class in .java and created a class file the same code i have writen in jsp and import it whenever required. in jsp it is working but when i try to run class file it gives me error like import java.lang.*; import java.sql.*; public class MyConnection{ public static void main(String s[]){ Connection con=null; Statement stmt=null; ResultSet rs=null; String code = ; String name = ; try{ Class.forName(com.informix.jdbc.IfxDriver); } catch(Exception e){ System.out.println(Error 1); System.out.println(e); } try{ con=DriverManager.getConnection(*); stmt = con.createStatement(); rs = stmt.executeQuery(SELECT emp_login_id,emp_name FROM login_mst); while (rs.next()) { code = rs.getString(emp_login_id); name = rs.getString(emp_name); System.out.println(code); System.out.println(name); } // return stmt; } catch(Exception e){ System.out.println(Error 2); System.out.println(e); } } } javac MyConnection.java java MyConnection Exception in thread main java.lang.NoClassDefFoundError: MyConnection why? Regards Vaishali Reliance Industries Ltd. India === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Working with JSP not with JAVA
I have writen a connection class in .java and created a class file the same code i have writen in jsp and import it whenever required. in jsp it is working but when i try to run class file it gives me error like import java.lang.*; import java.sql.*; public class MyConnection{ public static void main(String s[]){ Connection con=null; Statement stmt=null; ResultSet rs=null; String code = ; String name = ; try{ Class.forName(com.informix.jdbc.IfxDriver); } catch(Exception e){ System.out.println(Error 1); System.out.println(e); } try{ con=DriverManager.getConnection(*); stmt = con.createStatement(); rs = stmt.executeQuery(SELECT emp_login_id,emp_name FROM login_mst); while (rs.next()) { code = rs.getString(emp_login_id); name = rs.getString(emp_name); System.out.println(code); System.out.println(name); } // return stmt; } catch(Exception e){ System.out.println(Error 2); System.out.println(e); } } } javac MyConnection.java java MyConnection Exception in thread main java.lang.NoClassDefFoundError: MyConnection why? Regards Vaishali Reliance Industries Ltd. India === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Reading checkboxes's values
Hi all! I'm trying to read the value(s) of a checkbox into my JSP file. I don't know if I'm right but I assign the same name to all the possible values of the item. For example: Select one color:br input type=checkbox name=color value=blue Bluebr input type=checkbox name=color value=red Redbr input type=checkbox name=color value=white Whitebr So I don't know how to get all the values checked in the JSP file which will recieve this information. I tried something like this: String[] colorChoosen = request.getParameter(color); Or do I have to change the name of the input tag (checkbox) for each selection to get the value as above? Please, help me.. Thanks and Regards, Nancy. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
JSP or Taglib for converting bitmaps to JPEG or GIF
Hello All: Has anyone encountered a JSP, taglib, or other Java based utility for converting bitmap format images to GIF or JPEG? Some sort of freeware solution with source code would be ideal... Robert --- Robert Burdick Author, Essential Windows CE Application Programming, John Wiley Sons Co-author, Professional JSP, 2nd Edition, Wrox Press Microsoft eMVP [EMAIL PROTECTED] (650)-917-8446 (Office) (650)-906-3707 (Cell) === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Working with JSP not with JAVA
I would like to add to what Richard said, assuming u work in a windows environment java -classpath %CLASSPATH%;. MyConnection. ( you could also switch the dot(.) for your actual working directory name) Deepak -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 1:51 PM To: [EMAIL PROTECTED] Subject: Re: Working with JSP not with JAVA Vaishali, This is a basic Java question. The problem is that you don't have your current directory mapped in your classpath. Try java -classpath . MyConnection Regards, Richard At 02:23 PM 4/30/2002 +0530, you wrote: I have writen a connection class in .java and created a class file the same code i have writen in jsp and import it whenever required. in jsp it is working but when i try to run class file it gives me error like import java.lang.*; import java.sql.*; public class MyConnection{ public static void main(String s[]){ Connection con=null; Statement stmt=null; ResultSet rs=null; String code = ; String name = ; try{ Class.forName(com.informix.jdbc.IfxDriver); } catch(Exception e){ System.out.println(Error 1); System.out.println(e); } try{ con=DriverManager.getConnection(*); stmt = con.createStatement(); rs = stmt.executeQuery(SELECT emp_login_id,emp_name FROM login_mst); while (rs.next()) { code = rs.getString(emp_login_id); name = rs.getString(emp_name); System.out.println(code); System.out.println(name); } // return stmt; } catch(Exception e){ System.out.println(Error 2); System.out.println(e); } } } javac MyConnection.java java MyConnection Exception in thread main java.lang.NoClassDefFoundError: MyConnection why? Regards Vaishali Reliance Industries Ltd. India === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Any idea of how to draw a line or a square on top of an image?
Check out my graffiti wall for an example. http://www.darling.be/wall.html Geert -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Villén Pizarro Sent: dinsdag 30 april 2002 14:33 To: [EMAIL PROTECTED] Subject: Any idea of how to draw a line or a square on top of an image? Hello everyone: I have an image in a page, and I need to paint a square (or 4 lines )on top of it depending of certain parameters, to represent a selected area. Any idea of how can I do this? Or how can jsp help to do this? Thanks a lot, Julia - Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Indra. En el caso de haber recibido este correo electrónico por error, se ruega notifíquese inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente. - The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail. - = To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Any idea of how to draw a line or a square on top of an image?
Julia, I think the only way to place an image on top of another image is through Cascading Style Sheets (CSS) absolute positioning. This is not supported in older browsers and can be tricky to manipulate though. Depending on what you are trying to do, you could get the appropriate request paramaters and manipulate an inline styelsheet and/or the square img width= and height= tags. By dynamically getting the width and height tags from a users input you could manipulate the size of the sqaure. Hope that helps... Zac [EMAIL PROTECTED] 04/30/02 07:32AM Hello everyone: I have an image in a page, and I need to paint a square (or 4 lines )on top of it depending of certain parameters, to represent a selected area. Any idea of how can I do this? Or how can jsp help to do this? Thanks a lot, Julia - Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Indra. En el caso de haber recibido este correo electrónico por error, se ruega notifíquese inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente. - The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail. - ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Any idea of how to draw a line or a square on top of an image?
Julia, I'm not positive but I think the only way to place an image on top of another image is through Cascading Style Sheets (CSS) absolute positioning. This is not supported in older browsers and can be tricky to manipulate though. Depending on what you are trying to do, you could get the appropriate request paramaters and manipulate an inline styelsheet and/or the square img width= and height= tags. By dynamically getting the CSS, width, and height tags from a users input you could manipulate the size and placement of the sqaure. Hope that helps... Zac [EMAIL PROTECTED] 04/30/02 07:32AM Hello everyone: I have an image in a page, and I need to paint a square (or 4 lines )on top of it depending of certain parameters, to represent a selected area. Any idea of how can I do this? Or how can jsp help to do this? Thanks a lot, Julia - Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Indra. En el caso de haber recibido este correo electrónico por error, se ruega notifíquese inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente. - The information in this e-mail and in any attachments is confidential and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Indra. If you have received this communication in error, please, notify the sender by reply e-mail. - ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com ==To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Any idea of how to draw a line or a square on top of an image?
Hi Julia, You can just read the image into a BufferedImage, then use any of the Java drawing commands to write text or graphics on it, then use com.sun.image.codec methods to convert the BufferedImage to whatever format you want, then send it. You can read the image in from disk or you can grab it from the page in memory by saving it in the session, for example. Rick Hello everyone: I have an image in a page, and I need to paint a square (or 4 lines )on top of it depending of certain parameters, to represent a selected area. Any idea of how can I do this? Or how can jsp help to do this? Thanks a lot, Julia === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Reading checkboxes's values
On Tue, 30 Apr 2002 Nancy Crisostomo Martinez wrote : Hi all! I'm trying to read the value(s) of a checkbox into my JSP file. I don't know if I'm right but I assign the same name to all the possible values of the item. For example: Select one color:br input type=checkbox name=color value=blue Bluebr input type=checkbox name=color value=red Redbr input type=checkbox name=color value=white Whitebr So I don't know how to get all the values checked in the JSP file which will recieve this information. I tried something like this: Use String[] colorChoosen = request.getParameterValues(color); So you will get Array Of Colors you have slected String[] colorChoosen = request.getParameter(color); Or do I have to change the name of the input tag (checkbox) for each selection to get the value as above? Please, help me.. Thanks and Regards, Nancy. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com _ Click below to visit monsterindia.com and review jobs in India or Abroad http://monsterindia.rediff.com/jobs === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Working with JSP not with JAVA
something wrong with your classpath I guess... I get the below error which idicates that ur program is correct but is not recognising your class. C:\javajavac MyConnection.java C:\javajava MyConnectionError 1java.lang.ClassNotFoundException: com.informix.jdbc.IfxDriverError 2java.sql.SQLException: No suitable driver add JAVA_HOME environment variable. also have ' ;.; ' in your classpath C:\java Original Message Follows From: "[Vaishali S. Pandya]" <[EMAIL PROTECTED]> Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Working with JSP not with JAVA Date: Tue, 30 Apr 2002 14:23:32 +0530 MIME-Version: 1.0 Received: from [192.18.99.108] by hotmail.com (3.2) with ESMTP id MHotMailBE982E0200AF40043193C012636C95E30; Tue, 30 Apr 2002 11:32:06 -0700 Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid C3574229D8; Tue, 30 Apr 2002 03:16:10 -0600 (MDT) Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 1505350 for [EMAIL PROTECTED]; Tue, 30 Apr 2002 03:14:49 -0600 Received: from mail.ril.com (unknown [202.54.16.41]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 0AF0D481B for <[EMAIL PROTECTED]>; Tue, 30 Apr 2002 03:14:47 -0600 (MDT) Received: from smtpgate.maker.bom.ril.com (smtpgate.ril.com [10.200.0.254]) by mail.ril.com (8.11.3/8.11.2) with ESMTP id g3U9Axq05914 for <[EMAIL PROTECTED]>; Tue, 30 Apr 2002 14:40:59 +0530 Received: from notes.ril.com (localhost.localdomain [127.0.0.1]) by smtpgate.maker.bom.ril.com (8.12.0/8.12.0) with ESMTP id g3U9JAFF002782 for <[EMAIL PROTECTED]>; Tue, 30 Apr 2002 14:49:10 +0530 From [EMAIL PROTECTED] Tue, 30 Apr 2002 12:10:14 -0700 Delivered-To: [EMAIL PROTECTED] X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 X-MIMETrack: Serialize by Router on MKR_LN02/RIL(Release 5.0.8 |June 18, 2001) at 04/30/2002 02:45:59 PM Message-ID: <[EMAIL PROTECTED]> Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> I have writen a connection class in .java and created a class file the same code i have writen in jsp and import it whenever required. in jsp it is working but when i try to run class file it gives me error like import java.lang.*; import java.sql.*; public class MyConnection{ public static void main(String s[]){ Connection con=null; Statement stmt=null; ResultSet rs=null; String code = ""; String name = ""; try{ Class.forName("com.informix.jdbc.IfxDriver"); } catch(Exception e){ System.out.println("Error 1"); System.out.println(e); } try{ con=DriverManager.getConnection("*"); stmt = con.createStatement(); rs = stmt.executeQuery("SELECT emp_login_id,emp_name FROM login_mst"); while (rs.next()) { code = rs.getString("emp_login_id"); name = rs.getString("emp_name"); System.out.println(code); System.out.println(name); } // return stmt; } catch(Exception e){ System.out.println("Error 2"); System.out.println(e); } } } javac MyConnection.java java MyConnection Exception in thread "main" java.lang.NoClassDefFoundError: MyConnection why? Regards Vaishali Reliance Industries Ltd. India === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com Get your FREE download of MSN Explorer at http://explorer.msn.com. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: Container automaticaly rewite links.
At 03:02 PM 4/30/2002 -0300, you wrote: Oopss... Which web container you use? I'm using orion 1.54. But it happens only when first time opening page, the subsequence (or even just refreshing current page) the jsessionid will gone. Just wondering, when browse to www.netsol.com, it always shows jsessionid even browser accept cookie, how to enable it? Angel Java Lopez === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
portable pager
Hi, Is it possible to write pager(scrolling resultset) application which will portable accross databases? Thanks. === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Class definition?
Hi Can anyone explain the following and how to get around it. Apache is running on OpenVMS. Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java, Compiled Code) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va, Compiled Code) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.mimesweeper.com ** === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
GET A Random picture
Hi Guys Try this, htmlheadtitleDynamic Title/title/head %@ page language=java import=java.sql.* % %@ page import=java.io.*,java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg.*,jav a.util.* % %@ page session=true buffer=8kb autoFlush=true isErrorPage=false isThreadSafe = true % % response.setContentType(image/jpeg); int width=780, height=50,col=256; BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics g = image.getGraphics(); Random random = new Random(); g.setColor(new Color(218,254,random.nextInt(height)+200)); g.fillRect(0, 0, width, height); Polygon poly = new Polygon(); for (int i=0; i 20; i++) { poly.addPoint(random.nextInt(width),random.nextInt(height)); } g.setColor(new Color(random.nextInt(height),random.nextInt(col),random.nextInt(col))); g.fillPolygon(poly); g.setColor(new Color(random.nextInt(col),random.nextInt(col),random.nextInt(height)+200)); g.setFont(new Font(Serif,Font.ITALIC,48)); g.drawString(Ravi Kumar,60,40); g.dispose(); ServletOutputStream sos =response.getOutputStream(); JPEGImageEncoder encoder =JPEGCodec.createJPEGEncoder(sos); encoder.encode(image); % /body /html -VTR- === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
Re: GET A Random picture
Hey guys what is this error? java.lang.IllegalStateException: Response has already been committed ??? Hi Guys Try this, htmlheadtitleDynamic Title/title/head %@ page language=java import=java.sql.* % %@ page import=java.io.*,java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg. *,jav a.util.* % %@ page session=true buffer=8kb autoFlush=true isErrorPage=false isThreadSafe = true % % response.setContentType(image/jpeg); int width=780, height=50,col=256; BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics g = image.getGraphics(); Random random = new Random(); g.setColor(new Color(218,254,random.nextInt(height)+200)); g.fillRect(0, 0, width, height); Polygon poly = new Polygon(); for (int i=0; i 20; i++) { poly.addPoint(random.nextInt(width),random.nextInt(height)); } g.setColor(new Color(random.nextInt(height),random.nextInt(col),random.nextInt(col))); g.fillPolygon(poly); g.setColor(new Color(random.nextInt(col),random.nextInt(col),random.nextInt(height)+200)); g.setFont(new Font(Serif,Font.ITALIC,48)); g.drawString(Ravi Kumar,60,40); g.dispose(); ServletOutputStream sos =response.getOutputStream(); JPEGImageEncoder encoder =JPEGCodec.createJPEGEncoder(sos); encoder.encode(image); % /body /html -VTR- === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com === To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff JSP-INTEREST. For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST DIGEST. Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com