User Profile

Collapse

Profile Sidebar

Collapse
dirtyhawk
dirtyhawk
Last Activity: Jun 30 '15, 05:32 AM
Joined: Dec 1 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dirtyhawk
    started a topic How to escape all special characters in jsp??
    in Java

    How to escape all special characters in jsp??

    Code:
    String q = ("update institutes set institute_facilities='"+fac+"' where institute_id = '"+id+"' ");
    How can escape all special characters & insert values to db???

    Can anybody help me on this??


    Thank You.
    See more | Go to post
    Last edited by Nepomuk; Dec 5 '08, 11:21 AM. Reason: Added [CODE] tags

  • dirtyhawk
    replied to JSP image upload problem in linux server
    in Java
    It's working now. Path is ok. problem was folder permission. i have to enable write permission.

    Thanks everybody.
    See more | Go to post

    Leave a comment:


  • dirtyhawk
    started a topic JSP image upload problem in linux server
    in Java

    JSP image upload problem in linux server

    Code:
    <%@ page language="java" import="java.sql.*,java.io.File" %>
    <%@ include file="../../connection/conn.jsp" %>
    <%
     	String driver = mysql_driver;
    	Class.forName(driver).newInstance();
    	Connection con=null;
    
    	String s_id = (String)session.getAttribute("login_ses_id");
     	//response.setContentType("text/html");
        //response.setHeader("Cache-control","no-cache");
    ...
    See more | Go to post
No activity results to display
Show More
Working...