4,248 Topics
![]() | |
Hi All, I'm copying a long text from word and pasting into a html textarea and from here I send it to MySQL database. If the submited text is too long nothing happens. Any ideas on how to submit a large amount of text from a webpage to a MySQL … | |
Hello all, i have a question. Is there possible to get a data (for example some word in website) and then use the sentence to our own JSP page? To make clearly, example : [url]www.facebook.com[/url], is it possible to get the word "Sign Up" (in the middle right of page) … | |
it always output this error: [CODE]Feb 07, 2012 11:25:32 AM org.hibernate.annotations.common.Version <clinit> INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final} Feb 07, 2012 11:25:32 AM org.hibernate.Version logVersion INFO: HHH000412: Hibernate Core {4.0.1.Final} Feb 07, 2012 11:25:32 AM org.hibernate.cfg.Environment <clinit> INFO: HHH000206: hibernate.properties not found Feb 07, 2012 11:25:32 AM org.hibernate.cfg.Environment buildBytecodeProvider INFO: … | |
Hello, i'm new in JSP, and i already install Apache Tomcat for the server, but after install it and then try it to browser and choose example there was some text like below. HTTP Status 404 - /examples/jsp/ type Status report message /examples/jsp/ description The requested resource (/examples/jsp/) is not … | |
Hello i am developing a web app in JSP as front end and ms-access as back end..i hv login.jsp which contains username & password which will be validated in access database upon success user.jsp will be shown..i hv been done with jsp page design..but don't know abt database connectivity..can any1 … | |
Hi All, I'm getting the following "Undefined type: ArrayList" for the following line of code "<jsp:useBean id="students" type="ArrayList<beans.UserBean>" scope="session" />" Could someone tell me what I did / didn't do the get this error and what I have to do to resolve it. Many thanks, AK | |
i am getting lots of error like this for all form inputs. i am trying to use javabeans and jsp where a jsp will be responsible for outputting the final information (cost of booking and bookingreference). The servlet needs to pass control to this JSP. this is the error which … | |
Hi, I am using Paypal to do my payment processing, however the user authentication JSP session variables I am using are expiring during the transition from my site to paypal's then back to mine again. The result is obviously that access is denied on return and the transaction does not … | |
sir i a student of 4th year i need some help in my project i m creating a online quiz 30 question and each question have 6 options which are check boxes and question have more then 1 ans so ,i ll select more then one check box so that … | |
have to display an image(available on the server as a resource) in the webpage using jstl. In the code, I have the image url, but before displaying it in the page, I need to validate if the image is available on the server to display. I tried to use <c:import> … | |
[CODE]<jsp:usebean id="a" beanName="xyz">[/CODE] how to use above syntax in jsp to deserialize data while jsp page running on tomcat | |
Hello, I'm trying to insert values from a form to a table (employee) on my database using prepared statements. From what I can tell the connections are fine, am able to query the database (as shown in the code to check the user type of the current logged in user). … | |
is there possible multimedia file transfer using servlet??? is it possible???? | |
hi to all, i did a project in jsp for "online exams" in my college then here my problem is how can i put into server so that every student can write the exam by connecting to the server how can he connect to the application(jsp file) which i put … | |
Hello, I have been told to design website in JSP. Firstly it contains login page.i hv designed login.jsp but it contains all HTML tags. For the database(Sybase) connection i m planing to write java file login.java which will be invoked in login.jsp action method.... ... ..is this a right way … | |
hello! i have been using Struts 2 for 2 weeks and i want to know if my login design is acceptable or not. here's my code: [CODE] <s:if test="status != null"> status property is NOT null <s:if test="status == 'incorrect'"> <div>Incorrect username/password</div></s:if> <s:if test="status == 'incomplete'"> <div>Incomplete details</div></s:if> </s:if> [/CODE] … | |
Hello all! I'm having some confusions about what to use as the "Home Page" in my web app. Should I use Servlet?([url]www.foo.com/index[/url]) or JSP?([url]www.foo.com/index.jsp[/url]) I dont know what would be their entry point in my site. I mean, let say, they visit [url]www.foo.com/index.jsp[/url], and they click login, the page then … | |
So having a function code in JSP, example is this one: [CODE] function isitinstalled() { try { var myObj = new activity1(plugin.activity); if (myObj) { return "activity123"; } } catch(e) { if (navigator.plugins[plugin.namename]) { return "me"; } else { return false; } } return false; }[/CODE] How do I translate … | |
Dear all, Context: JSP I'm trying to get the value of a java variable and assign it to a javascript variable in order to later on use it in an iframe: [CODE] ... rs.next(); entry1 = rs.getString(3);%> <SCRIPT> [COLOR="Red"] var tt="<%=entry1%>";[/COLOR] [COLOR="red"] var content = "<html><body>" + tt+ "</body></html>";[/COLOR] var … | |
Hi co-programmers, We're currently doing a simple conversion of a jsp to java format. I think we we're able to somehow force our way for a java program to hold our jsp program, but unfortunately we are having a slight problem. We're getting this exception: Exception in thread "main" javax.script.ScriptException: … | |
Hi all! Can anyone help me on finding out if it is possible to fill an iframe in a jsp loading text from MySQL? or a different way to do it? Thanks in advance [CODE] Example: <% Connection conn = null; Statement stmt = null; ResultSet rs = null; String … | |
Hello everyone! I am new to this forum and a beginner programmer. I wish to develop a small social networking site using JSP/Servlet and other useful java technologies. Your help is needed a s I am not much aware of the SDLC process. Need your help starting from the basics … | |
hi all , I know jsp,servlets, now I plan to learn structs what are the things should I learn before start to learn structs thanks in advance | |
in my recent project the user need to attach document when filling a form.But dont have any idea about the implementation.how may i do this?if you have any idea,please help me. | |
I am new to JSP/Servlets, so here is what I am trying to do: suppose my url is [url]http://mywebsite.com/[/url] and user come on this and it shows a login form, after submitting the form I want to keep the url the same as before that is [url]http://mywebsite.com/[/url] means it should … | |
Hi all! Does anybody know a cool and cheap site where I could host my web application (jsp+Mysql)? Thanks in advance! Kind Regards | |
please any one help me to clarify my doubts..... By running my servlet program which having ODBC connection...... It shows an error as [Microsoft][ODBC Driver Manager] Data Source name not found and no default driver specified... Following procedure only i did... 1)I did servlet program by having JDBC connection in … | |
Hi all! I'm copying a poem from MS word ans pasting into a html text area. However only the first line of the text has a tab between the beginning of the phrase and the margin. All the subsequent phrases lose formatting and stay right next to left margin. It … | |
I have one query regarding managing information in JSP pages...! How to ADD UPDATE VIEW DELETE information from any JSP page...! How to perform CRUD (create , read , update, delete) operation on that information in most easiest way ??? Does java support any container or any component to deal … | |
System Information: OS: Ubuntu 11.10 Server: Tomcat 7.0 JVM: openjdk 1.6 I have checked if the server is running by going to [url]http://localhost:8080[/url]. It's working fine. I just need to know the directory in which I should save my servlet in order to run it. I think I am supposed … | |
hi dear daniweb friends... please help me how to run jsp and what are the procedures need to do for running jsp | |
Hey How do I make Apache Tomcat allow to interpret PHP as well? Allowing something like: [code] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("<html><head><meta http-equiv='pragma' content='no-cache' /><title>Hello</title></head><body>"); out.println("<?php echo 'Hello'; ?>"); out.println("</body></html>"); out.flush(); out.close(); } [/code] Thanks! | |
hai everybody am unable to find full path of file. am using following code to import the file. in internet explore am getting full path, but in firefox(version-8) i'm getting only the file name instead of the entire file path.please help me to find full path of file.. <td> <input … | |
hello, all I am trying to insert rows from Excel sheet into SQL database by browsing Excel file in java(JSP). I can insert rows using ODBC connetion. But using odbc user should give DSN in program. I need to insert rows by Browsing file to make it user friendly.i.e user … | |
I am developing a dynamic page in that some text and images should be displayed together...! But before that i had tried to get nevigation page for whole application. In that i am getting same problem, Image is not displayed...! What i should write in src=" ????? " I have … | |
Hi, first of all, sorry for my english, but I´m having a problem and I can´t resolve it. This is part of my jsp code: [CODE]<% if( session.getAttribute("usuario") == null ) response.sendRedirect("index.jsp"); ArrayList pacientes = new ArrayList(); String mensaje=""; String dni="", nombre="", apellido="", email="", sexo="", telefono="", fechanacimiento="", obrasocial="", codigo=""; String … | |
I have one dynamic drop down list from data base (working fine) Use can select random entries from this table & hit "RETRIEVE" On the bottom of the page I should get result set from other table depending on the multiple values selected by user in first drop down list. … | |
Hello Im trying to generate a image from a servlet and display it with browser. Lets say I want to do something like this: [code] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { BufferedImage bufferedImage = new BufferedImage(620, 420, BufferedImage.TYPE_INT_RGB); Graphics2D g2d = bufferedImage.createGraphics(); g2d.setColor(Color.black); g2d.fillRect(0, 0, 620,420); … | |
haii... I have written the code for a social networking site like orkut in php but due to guidelines given by my project guide i need to convert this code to j2EE is it possible??? i am new to j2EE can some one plzz tell me a site to learn … | |
Hi All, I'm trying to get the JSP database connectivity according to (MVC) Model 2 tutorial to work but I'm missing something. I wanted to look at the files available for download to try to locate the answer to my question; danijsptutorial-database.zip and daniwebtutorial.zip. When I try to download the … | |
Hi The code below is not getting executed when i m trying to make a line chart JFreeChart May be theres some problem with the persistence file.Every time I try to run it shows Jasper Exception... It shows the following [B][I][U][I]errors[/I][/U][/I][/B]: **An error occurred at line: 30 in the jsp … | |
hi I am new to AJAX.I am trying to refresh a part of jsp page so that it goes to another jsp page autoamtically after few seconds but i am unable to do this,it remains on the same page and does not get refreshed.Can u please check my code. [CODE] … | |
Hello friends, I am new to Jsp Here am facing a problem while trying to retrieve the data from ms access db using student no(number) form.jps ========= [CODE]<html><head> <BODY style="background-color:SteelBlue"> <center> <p> </p> <p> </p> <p> </p> <p> </p> <form method="post" action="search.jsp"><h3> Enter Ur Number: </h3><input type="text" size="3" name="no"><br /> <p><input type="submit" value="Submit"> </form> … | |
how can i add values of each registered name to a combo box in a servlet dynamically and get each values from it ? i have an ArrayList of each registered name. | |
Hi, I want to open jsp page in particular frame from servlet. plz try to help me. i attached my code. [CODE] RequestDispather rd = request.getRequestDispathcher("Adimn.jsp"); rd.forward(request, response); [/CODE] i want to forward Admin.jsp to frame whose name is "frame1" | |
my question is that can we send e-mail through code written in java? i know that it can be made in php but don't knoe about java...if answer is yes, then can u give me hint that how to proceed means what to use(API, servlets or jsp or link from … | |
Hi i am new to JSP. I am setting a boolean value for session attribute in the java class. Now i am getting the same in the jsp using session.getAttribute("session attribute") method. Now i want to remove the session value in jsp. How could i achieve this??? Plz Help.. | |
friends,, i wanna resize the image with specific dimensions while retrieving from database here is my code help me [CODE]<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <% Connection connection = null; ResultSet rs = null; PreparedStatement psmnt = null; InputStream sImage; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance(); connection = DriverManager.getConnection("jdbc:odbc:ravi", "system", "system"); … | |
hi .... During the 64 kbps testing some of the pages in my web app ,it is taking so much time and those are need to be optimized.. i already have a jar tool to compress the js files though they did not decrease the loading response time if u … | |
Hi all , i configured my jdbc drivers and url in Xml but it shows null value my servlet code [CODE]public void init(ServletConfig config) throws ServletException { // TODO Auto-generated method stub super.init(config); System.out.println(config.getInitParameter("dbUrl")); System.out.println(config.getInitParameter("dbUserName")); System.out.println(config.getInitParameter("jdbcDriver"));} [/CODE] [CODE] <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>CMS</display-name> … |
The End.