3,760 Topics

Member Avatar for
Member Avatar for daravindm

Hi all, How to display search results from MYSQL database in JSP page?? is it possibile to create gridview in jsp page? please help

Member Avatar for anand01
0
326
Member Avatar for anand01

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 …

Member Avatar for rajesh1158
0
1K
Member Avatar for elya158

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. …

Member Avatar for johannsig
0
1K
Member Avatar for Vanquish39

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 …

Member Avatar for komalikaa
0
448
Member Avatar for dtkhshi

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 …

0
82
Member Avatar for shandow

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 …

0
65
Member Avatar for Jiten@energos

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) …

0
70
Member Avatar for apanimesh061

[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 …

Member Avatar for ghul-mur
1
339
Member Avatar for bcwoodz
0
99
Member Avatar for screenedcreamy

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()) { …

Member Avatar for deepadinnu
0
678
Member Avatar for archie.herbias
Member Avatar for Arhur.C
-1
152
Member Avatar for anand01

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 ..

Member Avatar for anand01
0
121
Member Avatar for hemanth suram

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 …

0
61
Member Avatar for archie.herbias

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 …

0
92
Member Avatar for shandow

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 …

Member Avatar for shandow
0
1K
Member Avatar for Andy90

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; …

Member Avatar for Andy90
0
159
Member Avatar for hprem991

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 …

Member Avatar for harinath_2007
0
101
Member Avatar for shandow

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 ?

Member Avatar for shandow
0
71
Member Avatar for koricha

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"?> …

Member Avatar for thines01
0
186
Member Avatar for koricha

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" …

Member Avatar for IIM
0
2K
Member Avatar for Valten1992

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 …

0
132
Member Avatar for Traps

Say I have an image-generating website and every image is unique, and there is no way to know of the images beforehand, and each image has it's own page. On a button-click I would have to generate this unique (.JSP) file/page and then display the image in that one. e.g …

Member Avatar for Philippe.Lahaie
0
127
Member Avatar for wolwayne

Am getting **java.lang.IndexOutOfBoundsException** while I try to uplaod a file to server. I checked the code at loaclhost and it was working fine, but after uploading it to the server am getting the error. **upload.jsp** <form action="UploadServlet" method="post" enctype="multipart/form-data"> <input type="file" name="select" value="" /> <input type="submit" value="Select Profile Pic" /> …

Member Avatar for IIM
0
414
Member Avatar for koduruabhinav

i have image on my web application. When i click that i will be redirected to track jsp.What that jsp does is track the image that is clicked and redirect to that image url .At present i asing response.sendredirect(URL) which will redirect in same window.Is there any possiblity to open …

Member Avatar for CrazyDieter
1
116
Member Avatar for gusfraba

I've had nighmares about this since 3 days ago and couldn't find anything by googling so here I am. As the title says so i need to find a way to store and then retrieve images from a mysql database I have tired the code below to do so (the …

Member Avatar for imdeadsoul
1
1K
Member Avatar for beanboy

hi, i managed to upload files from client to server hard disk using apache commons. how could iretrieve files to client from server again? plz gimme an idea of implementation thx beanboy.

Member Avatar for imdeadsoul
0
1K
Member Avatar for Pravinrasal

I want to display image from database to my htnl form but it id not displayed. Image copied from database to local c:\file_upload folder but from this folder i want to display in img src in html form .project doesn't give any error but image not displayed on html form. …

Member Avatar for imdeadsoul
0
277
Member Avatar for meghasinghal29

hi, actualy i want to bring values from servlet to the dropdown of jsp. in my servlet i fetch the values from the database into the variable and now i want to list thosevalues in the dropdown of jsp page. please provide me the syntax for that.

Member Avatar for Philippe.Lahaie
0
116
Member Avatar for rhyll07

Hello, need help from experts in jsp/servlet.. i have a program in jsp that needs to upload a file and save this in desired folder and send the filename to database.. and its working properly.. my problem is.. i dont know how to save the additional input text in database.. …

Member Avatar for Philippe.Lahaie
0
284
Member Avatar for RiiPatel

Hi all, I am in new in Advance Java. Can you suggest me good books or videos or any site to learn from scratch.and from where I have to start? Thanks in advance

Member Avatar for testbmx
0
28

The End.