3,760 Topics

Member Avatar for
Member Avatar for Shaikh_1

Hello guys this may be easy question but I m finding it quite tricky. Scenario is I m printing all the values from the database table using jstl foreach. <c:forEach items="${pal}" var="p"> <tr> <td><c:out value="${p.pid}"></c:out></td> <td><c:out value="${p.pname}"></c:out></td> <td><c:out value="${p.pdesc}"></c:out></td> <td><c:out value="${p.pestd}"></c:out></td> <td><a id="popa" href="#">Allocate</a></td> </tr> </c:forEach> And now onclick Allocate …

Member Avatar for cool_zephyr
0
2K
Member Avatar for bharatgs7

I have designed the jasper report in iReport and integrated it with jasper server. It works perfectly. But I am facing problem with my next requirment. I need to integrate the same report with my jsp application. I meant I am not getting how to integrate this report in eclipse …

Member Avatar for milil
0
177
Member Avatar for shivakr

i am lerning advanced java so while practising the jstl topic i get this error on the eclipse browser... i had deployed the "jstl1-2.jar" then also this error is comming can anyone help me to find out what is the reason behind this HTTP Status 500 - The absolute uri: …

Member Avatar for peter_budo
0
244
Member Avatar for anand11mc04

sir , I have need to start a thread on click of submit button on my jsp page. I am using Java Bean for Codeing. please write small program to start thread on button click of jsp page. Thank you.......

Member Avatar for stultuske
0
85
Member Avatar for dev90

<script> function a(){ var filename="test.txt"; </script> <img src="img/test.png" title="?"/> How to get the value of "filename" in "title"?

Member Avatar for Alberto Bucur
0
228
Member Avatar for Shaikh_1

I m trying insert multiple rows in same database (each row had many fields) on submit but unable to do so. I m successfully able to insert single row but when it comes for multiple rows I got stuck. This is the jsp page where you take an input to …

Member Avatar for Shaikh_1
0
6K
Member Avatar for vinnitro

package controller; import dao.CheckDAO; import entity.Users; import java.io.IOException; import java.sql.Date; import java.text.SimpleDateFormat; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.annotation.Resource; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.naming.NamingException; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import model.CipherText; import model.UserService; public class …

Member Avatar for stultuske
0
315
Member Avatar for xxmp

Hello i made a jsf site. Althought the welcome page is normal all the others are domain/faces/pagename.jsf. How i can fix this problem?

0
58
Member Avatar for xxmp

I opened a website business but i am programming at jsf mostly for big sites. Is there any good JAVA VPS or virtual Java server that i can buy because now i can not buy a server and set it up. Do you know any good one that i can …

Member Avatar for peter_budo
0
74
Member Avatar for jithinjohny

Hi, I have linux based hosting. I need to upload and work the jsp/servlet pages. after i uploaded the files into the hosting, when i checked the files , it shows the code itslef. How to fix this. Please help me. Thanks in advance.

Member Avatar for stultuske
0
210
Member Avatar for bharatgs7

Guys, I need your help to finish up my assignment. I have JSP application naming myProject ,which has been deployed in webapp folder in tomcat. I want to provide security for myProject folder. I mean, I want to protect it from copying by someone else. Is there any way to …

Member Avatar for peter_budo
0
120
Member Avatar for mukhtar_1

Hi All, Really, I need your help to create phonebook application with MVC. in which the application contains a contacts database. also the application should contain a login screen to delete or edit contact information. the links of update and delete a contact record should appear at the end of …

Member Avatar for peter_budo
0
175
Member Avatar for Yogesh2591

Hi, What is the main aim of the callable statement? How it is differ from prepared statement?

Member Avatar for stultuske
0
105
Member Avatar for sireiz

Hi everyone, Please help me to register the sql query exceutor in netbeans and java. I am using ireport 5.5.1 and netbeans 8.0 with jdk 8. The problem is that when i run the reports within netbeans, they run but when i build the project and run it from a …

0
193
Member Avatar for sasi_88

hi, i want to disable the back button in IE browser. i have the code but it's not working logout.jsp [CODE] <script language="javascript"> window.history.forward(); </script> [/CODE] i don't know where to put the script code it is put in the logout.jsp file or before please help me out of this

Member Avatar for Satyaveer1990
0
5K
Member Avatar for Dev_6

Can anybody please solve my error: [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project maven-war-plugin: Compilation failure: Compilation failure: [ERROR] \Users\admin\Desktop\Virtual_class\src\main\java\com\iws\controller\LoginController.java:[42,25] error: package javax.servlet.http does not exist [ERROR] \Users\admin\Desktop\Virtual_class\src\main\java\com\iws\controller\LoginController.java:[43,25] error: package javax.servlet.http does not exist [ERROR] \Users\admin\Desktop\Virtual_class\src\main\java\com\iws\controller\LoginController.java:[92,3] error: cannot find symbol [ERROR] \Users\admin\Desktop\Virtual_class\src\main\java\com\iws\controller\LoginController.java:[93,3] error: cannot find symbol …

0
126
Member Avatar for Shreyas_1

I have two different format of code for insert query using jsp+servlet+mysql. Code-1 ====== Class.forName(JDBC_DRIVER); // Open a connection out.println("Connecting to a selected database..."); con = DriverManager.getConnection(DB_URL, USER, PASSWORD); out.println("Connected database successfully..."); // Execute a query st = con.createStatement(); sql = "insert into users (name,email,password) values ('" + name + …

Member Avatar for stultuske
0
2K
Member Avatar for staffmbm

I'm trying to add some mysql table columns to JSF table. And I'm getting error: /index.xhtml: The class 'logon.User' does not have the property 'description'. Please help User.java package logon; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="users") public class User { private int …

Member Avatar for stultuske
0
2K
Member Avatar for sasikrishnasamy

Hi, Is it possible to get the fields label name from jsp to Action/servlet for example, My jsp has some fields like this, Label name: Fields Search: <html:text property="txtSearch"/> Order: <html:checkbox property="chkOrder"/> Now I need to get these label names below mentioned format, HashTable<String,String> labelList=new HashTable<String,String>() lableList ={txtSearch=Search:, chkOrder=Order:} Please …

Member Avatar for sasikrishnasamy
0
632
Member Avatar for deepakusers
Member Avatar for kamalvedha

In Jsp page, on selecting a table name, I need to display all columns associated with the table in a drpdownlist with checkboxes.can anyone plz provide code for that?.

Member Avatar for pritaeas
0
95
Member Avatar for kamalvedha

How to load database table names dynamically in a jsp page?.

0
97
Member Avatar for SagarSe7en

Hello Everyone, I am trying to achieve pagination using jsp javascript and servlets. Here is my code below: SearchUserViews.java `package TestPackage; /** * * @author Sagar */ private String _userid; private String _firstName; private String _lastName; private String _emailAddress; public userProfile(){ _userid = ""; _firstName = ""; _lastName = ""; …

Member Avatar for stultuske
0
3K
Member Avatar for staffmbm

I'm trying to show data from mysql database in JSF, but getting error: javax.servlet.ServletException: /index.xhtml @16,70 value="#{userBean.getUserList()}": The class 'com.dev.UserBean' does not have the property 'getUserList'. javax.faces.webapp.FacesServlet.service(FacesServlet.java:325) I'm using http://www.devmanuals.com/tutorials/java/jsf/database/viewdata.html tutorial UserBean.java package com.dev; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; …

Member Avatar for stultuske
0
1K
Member Avatar for Tu Dinh

Hi everyone, I'm having trouble that always failed to deploy the Project: **This is Deployment Descriptor (web.xml):** <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <display-name>Eagle</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/Beans.xml</param-value> </context-param> <servlet> <servlet-name>Processor</servlet-name> <servlet-class>EITServletPackage.EITProcessorServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Processor</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <filter> <display-name>EITIssueProcessFilter</display-name> <filter-name>EITIssueProcessFilter</filter-name> …

0
281
Member Avatar for jackjuma12

Can somebody help me here plz. I have created a popup login window (resized) jsp from index page. On clicking login, the page is directed to homepage.jsp after verification using servlet. I want the subsequent pages to have the original size not the popup window size. How can I do …

0
92
Member Avatar for Sudhanshu_2

hi ! i ve just started doing mysql. i am making a web application in which employees database is reqiured to be shown in the table. i ve made a database name "educrm" and table name is "info", which i ve done in mysql through xampp(phpMyAdmin). i am showing u …

Member Avatar for Sudhanshu_2
0
342
Member Avatar for vibhuti@sharma

hi everyone recently I made a jsp website as a part of my minor project now my clg wants me to host it ,since i am very new to all this i dont know how to do it ...actually I also want that my website should also be connected to …

Member Avatar for rozermartin28
0
180
Member Avatar for Dinesh_9

Hi everone, Currently i am working on an Pharmacy management project in MVC2 model i have written an servlet code to fetch,insert,update,delete MySQL table contents from the JSP page but my problem is i could insert the data successfully but i am failing at Update and delete here is my …

Member Avatar for Dinesh_9
0
1K
Member Avatar for ppreeti

Hi ! I am new to JSP. I want 2 create 2 dynamic related combobox that pull values from database. I took the help from this link: dynamically populate the city combo box based on the values of state combo +ajax+jsp. It runs fine but if there are special characters …

Member Avatar for ppreeti
0
118

The End.