4,248 Topics
![]() | |
Hello friends, I am working with jsp and oracle database and The problem is after inserting 3 enteries(rows) through form filling into database next enteries are not going in databse.So please suggest me something. | |
| |
hey there, I am trying to set up tomcat on my computer (I am so new to this, I am not even sure I am explaining my problem correctly.) I was told to install XAMPP. I did using the installer that appache's web site offers. It says that the installer … | |
When I run the follwin cod it shows err could any one tell me <%@page import="java.util.ArrayList"%> <%@page import="BeanClass.User"%> <jsp:useBean id="listUser" type="ArrayList<BeanClass.User>" scope="session"/> Its Shows undefined type error thanks in advance | |
Good evening, I have a simple problem. I'm making a shopping basket and i want to add some prices for the items but i can not figure out how to pass the value from one page to another in order to view the total ammount of payment in the cart … | |
Hi there, I wrote code that reset search settings, code is: function formReset() { var fields = document.getElementsByTagName( "input" ); for ( i = 0; i < fields.length; i++ ) { if ( fields[ i ].type == "checkbox" ) fields[ i ].checked = false; } document.getElementById( 'rrpmin' ).selectedIndex = 0; … | |
I installed Apache Tomcat 7.0.28 in my JBuilder6. I use JDK 1.6.0_32 (jre6). I can get http://localhost:8080/ page. However, when I tried to run my JSP file, I encountered following error: org.apache.catalina.startup.Bootstrap start -config "C:\Documents and Settings\user\jbproject\whoznextdoor\conf\server8080.xml" -nonaming Jun 23, 2012 8:22:47 AM org.apache.catalina.startup.Bootstrap main WARNING: Bootstrap: command "-nonaming" does … | |
i am facing a problem in running multiple queries in jsp page, as it is unable to store the values in the 2nd result set i use in my page. tha code is written below: [code] String strQuery = "select * from services "; ResultSet rs =null; ResultSet rs1 = … | |
I'm having trouble trying to run the unoconv command in a .jsp file. Here's my code : String pyfilelocation = request.getRealPath ("/") ; String[] cmd = new String[4]; cmd[0] = "unoconv"; cmd[1] = "-f"; cmd[2] = "html"; cmd[3] = "temp.doc"; Runtime rt = Runtime.getRuntime (); Process pr; String helplocation = … | |
My source code runs fine in IBM RAD. When I tried to run it in JBuilder, I encountered an error "Incompatible object argument for function call" while running a JSP file. Any idea how to handle it? See details below: 012-06-16 10:20:48 - Ctx( ): Exception in: R( + /FileUploadAction.jsp … | |
I am hoping this is an easy question. I am not well versed in Java, I am a ITSM admin, but the ITSM product we use comes with Tomcat as it's web server. I am trying to find out if there is a simple way to set index file (welcome … | |
Hello All, I am stumbled with one problem regarding HTML Tag Name which is a Varible and I am reassigned it value in runtime. Actually the Code is something like this. <% String var=null; for (int i=0;i<=5;i++) { var=(String)i; %> <div id=var> </div> <% } %> No if I want … | |
Hi friends,, please help anyone.. I want to send a auto mail when i apporve(button click) the user. how it possible, please provide the link or code.. thanks in advance | |
Hi All I am using struts2 for my multi lingual web application.Here I am faceing a problem with select box ,which contains options in different languages. I am using standard HTML code for representaion of the characters in different languages. Problem is selectbox not showing options in diff languages,rather it … | |
Hi All, I am facing an issue with apostrophe. Please look in to my code [CODE]String ss1="St: Mary's School."; out.println("<input type='text' name='shipTest' value='"+ ss1 +"'>");[/CODE] Output: St: Mary Not able to display letters after the apostrophe. Kindly help me to resolve this issue. Thanks in advance -- Vinith | |
Hi All, Can you please help me how to create user defined function for database connectivity and return values to anather servlet. I have tried following code but it indicates error can not find symbol package controller; import java.io.IOException; import java.io.PrintWriter; import java.sql.*; import java.util.*; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import … | |
Hi All, I am not been able to understand "What is application context" even after trying a lot on google.Can anybody make be understand the application context concept and how it is different from servlet context. Thanks | |
i have adoubt about passing a parameter in JSP page.. could u help anyone please.. i have getiing a value from text box in jsp page 1 -> am using that text box value in jsp page 2 -> now i want to use that same textbox value in jsp … | |
Hello. Me and my classmates are working on a project and we ran into some trouble. We are making an online storage system and for the storage we need a map. We decided to do it with a table (letters from A-Z are rows, numbers from 1-10 are collumns) that … | |
Hello I am learning JSP authentication and am having issues. I think my code for this simple test looks pretty good but everytime I try to login I get my login error page: web.xml <!-- Define security roles --> <security-role> <description>administrator</description> <role-name>administrator</role-name> </security-role> <!-- Restrict access to all files in … | |
please give the code for searching a value from mysql databse in jsp page?... i created **1.search jsp 2.searchAction.jsp 3.searchBean.java** and created **DBConnection.java** for db connection and i need to view the search result in new page which is **searchresult.page** | |
Pl. help in handling button events in JSP like calling a servlet on Button click or executing java code. | |
hi all , I know how to develop Mvc architectur application , Now I paln to learn frameworks, which one will be best choice structs or spring? , should I learn both ? | |
i created a jsp page and put a javascript code " window.onload=func(); " in the header when the page is loading.In that func(),i set two objects to the session (using AJAX) and get them back into the jsp.After debugging the aplication everything is ok.but jsp page doesn't display the content … | |
Hi all, I am giving the href to give a link to a file. The problem is that in IE it opens the text files in the same browser, but in mozilla it works fine(gives prompt of save as option). I want the same functionality for IE also, searching Google … | |
Hi everyone, I have been active on this forum, but I changed jobs and cannot receive my new password because I cannot get to my old email address, so I made a new account. It seems DaniWeb has been standing still the last year. There are new frameworks for web … ![]() | |
Hi all, How to display search results from MYSQL database in JSP page?? is it possibile to create gridview in jsp page? please help | |
hi all I am new to JSTL , I need to display content in JSP using JSTL. Its Student information project I have list of students , i need to display them in jsp using jstl, my servlet code try { UserList userList = dataCon.getListUsers(strClassId); session.setAttribute("userList",userList); response.sendRedirect("/CMS/classsearch.jsp"); } catch (Exception … | |
Hi, I'm building a battleship game that has multiple sessions over an apache server. It's a server/client containing servlets & jsp's. Let's say i have a jsp page that shows all the boards, for each session i want this page to be refreshed as soon another player makes a move. … | |
Hey guys i have a problem and I'm starting to fall short of solutions. Here is the scenario. I created a student registration HTML file and a servlet to answer this file. The problem is the submit button doesn't work on the html form. I have tried dozens and dozens … | |
I have written a web app with a few JSP pages and Java servlets running on a Tomcat server. The app needs to be able to send location updates to a Servlet every x seconds. I have found the html5 watchPosition(sucess_callback, error_callback) function to get the location updates from the … | |
hey guys, im new in web services. Recently i develop a project in netbean 7.1 which provide rest web services from this link http://netbeans.org/kb/docs/websvc/rest.html I tested it with test restful in netbean and its work. But now i have no idea how to consume it. My idea way is develop … | |
2012-03-23 10:42:08 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exceptio java.lang.NullPointerException at org.apache.jsp.jsp.TitleFrame_jsp._jspService(TitleFrame_jsp.java:66) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) … | |
[CODE] import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import java.lang.NullPointerException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; /** * * @author Animesh Pandey */ public class anilet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter … | |
how to run servlet automatically on everytime browserstart up | |
I'm getting a null pointer exception pointing to the line containing [COLOR="Green"]dispatcher.forward(request,response); [/COLOR] Any suggestions as to where i have gone wrong. it wud be of gr8 help... thanks in advance:)[CODE] ArrayList empList =EmployeeDao.getEmpDetail();//this is defined already request.setAttribute("empList",empList); RequestDispatcher disp = request.getRequestDispatcher("/myPage.jsp") disp.forward(request,response);[/CODE] [CODE] ArrayList employeeList=null; ArrayList employeeList=(ArrayList)request.getAttribute("empList"); if(!employeeList.isEmpty()) { … | |
i need help in converting special characters in displaying in the web page. | |
Hi all, Now i am learning Jstl , The amin advantage of jstl is to avoid scriptlets ad avoid hard code in jsp , But still we have to code using <c:if>,<c:forEach>,<c:choose> etc , then wh ywe are using jstl , pls some one guide me. thanks in advance .. | |
Hi All, I need to display a image on page load , but it is not displaying In my jsp page i am calling a method which do some processing (it is taking long to do the process) and after calling the method i am sending the request to another … | |
i want to display some code snippets for my forum. i want to display and html and jsp codes or other codes but i don't know how to fix it because if i display it in a page. it is like that it is included in the page code. i … | |
hello guys my code is not giving me any errors but wont execute the task it just loops can, anyone help me debug it. its a code for extracting book information from a chinese website. thanks in advance. using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Text; using System.Text.RegularExpressions; using System.IO; … | |
hey guys, i got a question which stuck my brain few days and here is it. i studies some drop down list tutorial but some how i still have no idea to generate a three level drop down list by which value of the drop down list is dynamic, mean … | |
Hello, I m new to servlets. I have written a servlet program which reads http header of local host! How to read http header of any website say www.google.com? /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Header; … | |
Hello Every one I m new Struts 2 and i m trying to upload a image on server with the help of struts 2 but i was unable to do that i m pasting my code here .. please tell where i m wrong here is my action class package … | |
Hi All, I am designing a web page using JSP / JDBC / JavaScript and apache tomcat 5.5. There seems to have a major issue after few page request. Initially, all pages respond was excellent but after few ( 10 - 15 ) requests, the respond time drops to minutes … | |
I need to calculate the difference between two timestamp or datetime fields (0000-00-00 00:00:00) into hours, any idea or reference can share ? | |
So i have a java program running as a lib on a server. I need to just simply run a method within that library. In order to do so through J2EE, i need to get a call from a JSP -> EJB ->ResourceAdapter->Method. So i have the Reasource Adapter and … | |
i get an error "org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jsp at line 18" i think my exception code is wrong. i don't know how to return an empty string when the user doesn't enter any number and clicks "continue". any suggestions <%@ page import="java.io.*"%><%@ page import="java.util.*"%><?xml version="1.0" encoding="UTF-8"?> … | |
i am trying to get the sum of 2 number.. it should give me a message if the sum is correct. i get an error "21 in the jsp file: /index.jsp Incompatible operand types String and int" .any suggestions whats wrong with the program. <%@ page import="java.io.*"%><%@ page import="java.util.*"%><?xml version="1.0" … | |
I'm currently adding a dashboard-like view to my web project, which polls data from OIDs using SNMP. My current step is to use AJAX to reload the page but I'm running into some design issues on that front. Accessing the servlet class on the server will generate hello.jsp, which displays … |
The End.