3,760 Topics

Member Avatar for
Member Avatar for prafulla23

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 …

Member Avatar for prafulla23
0
531
Member Avatar for Soujanya_2

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 …

Member Avatar for milil
0
19K
Member Avatar for boddupallianvesh

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

Member Avatar for milil
0
2K
Member Avatar for Britto_1

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 …

Member Avatar for Britto_1
0
149
Member Avatar for MrCapuchino

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 …

Member Avatar for vinay.yash.3
0
6K
Member Avatar for servent123

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 …

Member Avatar for servent123
0
343
Member Avatar for asaidi

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 …

0
90
Member Avatar for solyana.mesfin

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

Member Avatar for Traevel
-4
182
Member Avatar for Shivam_7

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 …

Member Avatar for stultuske
0
440
Member Avatar for man.chester.581

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

Member Avatar for stultuske
0
209
Member Avatar for man.chester.581

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 …

Member Avatar for milil
0
231
Member Avatar for cool_zephyr

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 …

0
100
Member Avatar for ankit.pandey3

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 …

0
368
Member Avatar for vigneshnayak29

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"

0
86
Member Avatar for moaz.amin.37

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 …

Member Avatar for JamesCherrill
0
233
Member Avatar for mc3330418

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 …

Member Avatar for cool_zephyr
0
165
Member Avatar for anubhavat

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 …

Member Avatar for anubhavat
0
203
Member Avatar for steph7

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

Member Avatar for JamesCherrill
1
1K
Member Avatar for NagaSwarupa

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?

Member Avatar for janissantony
0
101
Member Avatar for amita_1

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

Member Avatar for janissantony
0
154
Member Avatar for Kapeesh

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 …

Member Avatar for janissantony
0
188
Member Avatar for ankit1122
Member Avatar for janissantony
0
100
Member Avatar for kroken

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

Member Avatar for harpreetfervaha
0
2K
Member Avatar for Prasho30

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

0
93
Member Avatar for adsegzy

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

Member Avatar for adsegzy
0
92
Member Avatar for sciwizeh

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 …

Member Avatar for sciwizeh
0
198
Member Avatar for ManiVasagam_1

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

0
91
Member Avatar for Chem_1

Web address of some web sites end with ".aspx", ".php", ".jsp", etc.How web developers can hide the extensions from visibility.

Member Avatar for diafol
0
217
Member Avatar for dinesh07.msc

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 …

0
247
Member Avatar for joshua_8

$('#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

0
96
Member Avatar for dinesh07.msc

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 …

0
101
Member Avatar for navjeet123

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

0
418
Member Avatar for dinesh07.msc

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

0
99
Member Avatar for joshua_8

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 …

Member Avatar for stultuske
0
144
Member Avatar for James_30

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 …

Member Avatar for jwenting
0
140
Member Avatar for James_30

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 …

Member Avatar for James_30
0
144
Member Avatar for xxmp

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 …

0
176
Member Avatar for echocoder

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 …

0
162
Member Avatar for tanmaymisra

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.

Member Avatar for stultuske
0
184
Member Avatar for surum
Member Avatar for stultuske
0
123
Member Avatar for softDeveloper

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

Member Avatar for stultuske
0
223
Member Avatar for James_30

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.

Member Avatar for James_30
0
154
Member Avatar for ronaldpaul

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 …

Member Avatar for jwenting
0
1K
Member Avatar for James_30

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 …

Member Avatar for James_30
0
175
Member Avatar for ianian944

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 …

Member Avatar for peter_budo
0
2K
Member Avatar for Varunkrishna

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 …

Member Avatar for peter_budo
0
83
Member Avatar for Nesre

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

Member Avatar for Nesre
0
184
Member Avatar for ianian944

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 …

Member Avatar for jwenting
0
303
Member Avatar for london-G

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

Member Avatar for peter_budo
0
132
Member Avatar for razor2890

I have the following field in a jsp page.. <select size="1" name="typ"> <option value="C">Coffe</option> <option value="T">Tea</option> &nbsp; </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 …

Member Avatar for trhtrh
0
6K

The End.