3,760 Topics
![]() | |
I m new in jasper report and eclipse. Actually I created a receipt in jasper studio (.jrsml file) and I want to change the report properties on run time. Description: I want to fetch a report properties in jsp page and user can change this properties at runtime and save … | |
My servlet is not working even though the code seems to be correct. where have I gone wrong? First.java import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class First extends HttpServlet { protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter … | |
i am working on a project. i have database and it has 20 coloumns for each row. i display rows in form of table. in table i am retrieving data from database and displaying it. <% While(special.next()){ %> <ul class="features"> <li><%= special.getString("company")%></li> <li><%= special.getString("catagory")%></li> <li><%= special.getString("place")%></li> <li><%= special.getString("verified")%></li> <li><%= special.getString("phone")%></li> … | |
Dear All, I need to choose the value of a list item in jsp. There are many employees in various departments and i need to choose that employees in department wise. Example. I have two list items in jsp 1. Select dept_no,dept_name from departments 2. SElect emp_name from employees, departments … | |
Hi I have a Select element in my page, It looks like this [CODE] <select name="test"> <option value="1">Hi</option> <option value="2">Hello</option> <option value="3">GoodBye</option> </select> [/CODE] Ok, don't mind the syntax or if I missed something, everything works fine, the problem is that I want to get the selected option value from … | |
Hi there , We know that we can use taglibs in JSP page. Is it possible to refer tlds and its tags from the servlets. Can we have control over the taglibs in the servlet programmatically ? I googled but invain. All the results are about creating custom taglibs. Any … | |
Hi i have an application created in grails.. class Route { Integer prlNo String name String address String address2 String address3 String month Integer week Integer day Integer position String van String period Integer rang static mapping={ sort:["rang","day","position"] } and i have a controller that look for same van to … | |
# Heading Here # **Design and implement a simple web application that automates few of the management aspects for the business of your liking.** ## Sub-Heading Here ## Please follow the following pattern, as this is to demonstrate and capture your understanding on the subject matter. **Version 1** ➔ Use … | |
type Exception report message Unable to compile class for JSP: description The server encountered an internal error that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the jsp file: /index_submit.jsp name cannot be resolved to a variable … | |
if i have html forms that takes data from the client with jsp code i want to save this data at mysql data base how can i do this with code ??? | |
I have website project .user can log in to use it at the home page now the problem is if any user write URL for any other page without login it will show him the page I need to ensure that any user visit other page have already logged in … | |
I need to create stateful web pages consisting of various forms to be filled up by the user. I want to make UI tools look something like that DOJO framework provides. My problem is what tool is better suited for this type of website?? DOJO+JSP ? (but i'm confused about … | |
Hi Friends, I have tomcat 7 and eclipse. My problem is when I start tomcat without war file it starts successfully but when I am Adding my war file by right clicking on Tomcat Server in eclipse, it gives in following exception : java.lang.RuntimeException: Unable to scan WEB-INF for JAX-RS … | |
i have written a connectivity code for ms access to jsp but i get a error message root cause "java.sql.SQLException: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application" | |
hello!I install tomcat server and set CLASSPATH variable `servlet-api` and my servlets running properly but when i compile and run my old program program of `java 2 SE` then it compile successfully but not run it prints an error message G:\Java>javac BinarySearchDemo.java G:\Java>java BinarySearchDemo Error: Could not find or load … | |
I'm trying to update an input value using jquery and I can't get it to do anything. I've tried .val(), .attr, .html, .text. $('#acctnum').click(function(){ var index = this.selectedIndex; var bal1 = $('#bal1').val(); var bal2 = $('#bal2').val(); var bal3 = $('#bal3').val(); var bal4 = $('#bal4').val(); if (index == 0){ $('#poamnt').val(bal1); alert … | |
Hi, i want to submit list of object of selectted check box and want to receive same object in controller from jsp. Jsp Code-><form name="multiCheckBox" method="post" action="multiCheckbox.html"> <table> <th>Below are the list of items with status</th> </tr> <tr> <td>Select</td> <td>Print Strip</td> <td>Planogram DB Key</td> <td>Planogram Name</td> <td>Planogram Description</td> <td>Status</td> <td>Print … | |
Hello, so I'm a student and in one of my projects I have to capture the image of a client from a WebCamp and then save it on the database. Now, I'm having some problems and doubts. I've found some videos where they use the library JMF (Java Media Framework), … | |
As we observe during online ticket reservation we will enter passenger details in textfields in a table. how values will be fetched from that Jsp page to action class? | |
how can I sent value to JSP by javascript? I want to sent latitude and longitude parameters to JSP <body> <button onclick="getLocation()">click</button> <script> function getLocation() { if (navigator.geolocation) navigator.geolocation.getCurrentPosition(displayLocation); else alert("Oops, no geolocation support"); } function displayLocation(position) { var latitude = position.coords.latitude; // ดึงเอาค่า lat var longitude = position.coords.longitude; // … | |
Hello Dear, Plz tell me how to create a bar chart fetch data from database using in jsp. this is my connection code and plz tell me i add new code in same page or another page. Thanks <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Customer … | |
hello, how can i access a variable or object defined in a java class to my jsp in same project? | |
Hi i didnt find anything about this here on the forum and i cant figure out how to do it myselfe either. i have a homepage runing java with servlets and jsp pages and i want a simple contactform that sends a message from the form to a specific mail. … | |
I have javascript variable as var str = "str"; want to access this value in jsp scrptlet Want to know what r the possible ways? Thanks | |
Hello friends, I have a greeting card website am working on and i need my customization page to be like this http://www.funkypigeon.com/Pages/CustomiseCards.aspx?ProductId=122130 Also to be able to create DIV with a click of a button. Specify the width & height, margin-top & margin-left tec. Pls which software/script/plugin do I need. … | |
I'm trying to list currently online users on a pet project I'm working on. I've found a few ways to do it, but I'm having difficutly getting the one I chose to work properly. The basic idea was to use an HttpSessionBindingListener on the users information to add it to … | |
I am trying to edit and delete a single record from multiple records.Here below is my sample record displaying on jsp page, ![enter image description here][1] [1]: http://i.stack.imgur.com/suJMS.png I can edit the record for each row easily using below code, <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page import="java.util.List" %> … | |
Web address of some web sites end with ".aspx", ".php", ".jsp", etc.How web developers can hide the extensions from visibility. ![]() | |
404 error.requesting the resource while i click submit, i included lib files of struts in web-inf dir in this project. build success, not forwarding as per code in mainpage.java. index page(run): <body> <h1>Hello World!</h1> <a href="mainpage">Main page</a> </body> main page: out.println("<html>"); out.println("<head>"); out.println("<title>Servlet mainpage</title>"); out.println("</head>"); out.println("<body>"); out.println("<form action='strapp' method='post'>"); out.println("<input … | |
$('#selectList :selected').text(); //retrieve text from multiselect how do you check in the servlet if the text equals to this do this method else the text is this do other method | |
When i click hlink in index.jsp , showing null.. and so the output shd be helloworld. i use netbeans 6.9. initservlet.java: public class initservlet extends HttpServlet implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { ServletContext con=sce.getServletContext(); try{ System.out.println("Hello world"); con.setAttribute("p",con.getInitParameter("print"));// setting context attribute here... }catch(Exception e) { con.log("Error occured",e);}// throw … | |
Sir I get the following problem in my code that is-- The method getPart(String) is undefined for the type HttpServletRequest my servlet code is: package Servlet; import java.io.IOException; import java.io.InputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import javax.servlet.ServletException; import javax.servlet.annotation.MultipartConfig; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; … | |
While compiling the error is build failed; I want to access the listofdvd.txt as getInitparameter using servletcontext and to setAttribute dvdlist in initservlet. Meanwhile also i need to getattribute the dvdlist in listdvdservlet.java; # Somebody help me in this case.. # initservlet.java: public class initservlet implements ServletContextListener { ServletContext sc; … | |
Hi I could get my session values in my jsp, now I want to compare the session value whether it matches the textbox, if it matches, it will redirect the user to another page else it will remain the same page, I am not sure how to proceed, please help … | |
hello I am working with the daniwebjsptutorial the first one. I have a src and in it I have the resource.dir. I have the HttpServlet.jar there. I do not know how to get the LoginServlet class to find it using eclipse. Is there a standard entry point for the web … | |
It has been about a year since I have even looked at code. I have written a few db desktop apps and I am beginning to learn the db web app. I am looking for advice. I had a hard time running apps I built in the netbeans environment as … | |
i have a page with this code <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core"> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:outputText value="#{pros.handleIpn(request)}"/> </h:body> </html> and althought i can access this page throught internet ip:8084/path to the page when i insert this page … | |
I have an instance of Tomcat 7.0.32 installed. The server.xml is configured to use clientAuth="want" in the Connector. I have a Context that has a docBase set to be a network share. This particular Context I want the user to be authenticated before they can access it, otherwise I want … | |
There is a project i am working on its a social networking between chilldren teacher and parents .I want to restrict typ of user to these three only.Do u guys have any idea how to initiate. | |
hi i want to start developing web page using jsp in netbeans ide | |
Hi everybody! I´ve used jdk to generate my certificate with the following command: keytool -genkey -keyalg RSA -alias certificatekey -keystore keystore.jks -storepass password -validity 360 -keysize 2048 Everything works fine when I want to digitally sign an e-mail using: import javax.mail.* and import javax.mail.internet.* # and MimeMessage and Multipart. #. … | |
Who wrote the code for these "dumb"telepones and were is the fraking keyboard because this is not typing. Anyway I can not remeber the [/code] tags. I could not find the editor toolbar on this phone . Any help please. | |
Hi, I've done my bachelors in Computer Science and was working for the past 2 and a half years in PHP and MySQL. Now I'm planning to change my career path to IBM Websphere Administration. However, changing directly from PHP to Websphere seems quite impossible. So I've planned to take … | |
Hello. please excuse my ignorance It has been 1 year or so since I finished my 2 million line desktop app. An app with extensive use of every thing you can think of as far as multi tabbed desktop with multi profile login. properties. properties xml properties apache db, extensive … | |
I am trying to make a vehicle advertising website like autotrader or ebay. I am using html, css, jsp, java and mysql for the database.Basically I want the user to be able to search for a vehicle (advert) via a form, then they are directed to a results page after … | |
Hi all I wish to start learning Spring 3 mvc how do I get it started with either Gradle/maven in Spring Tool Suite (STS). What is the easiest way to learn Spring 3 mvc. I know that there are many tutorials out there, but I could not find the right … | |
Hello everyone, Can you help me with the following problem. I am working on Eclipse IDE. I created new Dynamic Web Project and when I tried to create a Servlet class though every required package is imported it gives a compiler error. The following is a sample code. import java.io.*; … | |
Hi I am getting a **HTTP Status 500 - An exception occurred processing JSP page /registration.jsp at line 15** error. The page is a registration jsp page that submits the following parametres into the database. However there are no hints in Eclipse as to what caused the error. Can someone … | |
Hello, I have installed glassfish server with netbeans. I have created a new JDBC Connection Pool and when I ping it I get error message "Ping Connection Pool failed for MyDatabae. Class name is wrong or classpath is not set for : com.mysql.jdbc.Driver Please check the server.log for more details." … | |
I have the following field in a jsp page.. <select size="1" name="typ"> <option value="C">Coffe</option> <option value="T">Tea</option> </select> Now when the user selects Coffeand and clicks submit, I want the page to go to Coffe.jsp and when Tea is selected , i want it to go to Tea.jsp I tried … |
The End.