4,248 Topics

Member Avatar for
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
302
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
95
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
344
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
182
Member Avatar for Muni123

I am trying to add some text in to a page by using a textarea where text is entered the text gets saved in to a database after clicking on a add button on a page. However, I am unable to achieve this after trying. I have two tables matchreportcomments …

0
224
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
119
Member Avatar for mateusz.baran1

what iam trying to do is get field parameter and run mysql query to update(decrement) value from field quantity, can any one tell me how to do that? <form method="post"> <table class="bordered"> <thead> <tr> <th>No</th> <th>Drug Name</th> <th>Strength</th> <th>Quantity</th> <th>Dis Qty</th> </tr> </thead> <% try { String query="select * from …

Member Avatar for stultuske
0
185
Member Avatar for Muni123

I have a login jsp page where users can login in to my web application, I have also a sign Up form where user can register if they are not members. I'm trying to do the login and sign up forms in one JSP called login.jsp. Login part works fine …

Member Avatar for ckide
0
2K
Member Avatar for Muni123

I have a login jsp page where users can login in to my web application, I have also a sign Up form where user can register if they are not members. I'm trying to do the login and sign up forms in one JSP called login.jsp. Login part works fine …

Member Avatar for JorgeM
0
312
Member Avatar for msolomon.ashish
Member Avatar for jackjuma12

Hi guys Can anybody tell me what is wrong with this code? When I select the contractor number (with only one script code)it loads the details, but when I add the second function to load the farmer details, non now works!!!!! What am I doing wrong code <%@ page import="java.sql.*" …

0
111
Member Avatar for PawelK

I have problem with Java session. I have a TplanServlet where I request values from html form and I am going to create Monday object with createMonday(). So I pass my form to this sevlet if (option.equalsIgnoreCase("createMonday")) { String title = request.getParameter("tpName"); String g1 = request.getParameter("g1"); String a1 = request.getParameter("a1"); …

0
94
Member Avatar for PulsarScript

Hi all! I do the project about seafishing from the boat.Can anyone help to build the interesting storyboard.? Opened for ideas 24/7.Regards.

Member Avatar for stultuske
0
159
Member Avatar for Muni123

I am unable to run a Java web application due to apache tomcat server failing to start. I checked in the console and it mentions that the error is Caused by: java.lang.ClassNotFoundException: org.hibernate.Session The apache tomcat server error shows Server Apache Tomcat v7.0.50 at localhost failed to start. The web …

0
85
Member Avatar for Narayanan.Sagit

Hello, I am facing an issue in struts 1.2 This code is in my JSP file. I am using multi select option. Initially the values will be populated to the multi select box from database through LabelValueBean. While I select one or more options and click submit, the values are …

Member Avatar for Narayanan.Sagit
0
191
Member Avatar for anand01

Hi all, I have deployed an application(.war) in jboss6 in linux machine. Now I am able to access the url inside network. If I want to acces the same in internet (out side the network) what should I do . Do I need to follow some other technique to deploy. …

Member Avatar for peter_budo
0
97
Member Avatar for jackjuma12

Hi guys. I have this code disturbing me and I don't know how to sort it out, can somebody help me out?I want to load data from mysql database to these text boxes on selection of Input_id and every time I change the Input_id, the data should also change. Code …

Member Avatar for stultuske
0
165
Member Avatar for anand01

Hi all, I am having two different jsp files which having different applet embedded it. I want to run both jsp files in different jre in the client machine. kindly help Thanks in advance

Member Avatar for anand01
0
191
Member Avatar for sathya88

is there any alternative ways to generate dynamic list in jsp ... i want to avoid jdbc connectivity code in jsp.... with out jdbc connectivity in jsp...i need to generate dynamic select list??

Member Avatar for anand01
0
219
Member Avatar for sathya88

how to pass javascript variable value to jsp variable??? ex: <script> var name="balaji"; </script> <% String name1 = name (i need to store java script name value here.) %>

Member Avatar for Alberto Bucur
0
64
Member Avatar for theGrinch

I'm trying to use html onclick in java servlets like this; ShoppingCart cart = new ShoppingCart(); out.println(" <h1><button type=\"button\" onclick=\"cart.addBook(b.getIsbn())\">add</button> </h1>"); addBook is a method in ShoppingCart class, and I'm calling it when the button is clicked, but it's not getting called. Please help.

Member Avatar for Tu Dinh
0
4K
Member Avatar for Tu Dinh

Hi every body, I tried to search for my own problem, I would think this must be popular issue but unfortunately I found no solution in Google. I tried to use `(boolean) session.getAttribute("IsValidUser")` to get the attribute of Session, but that caused error: org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for …

Member Avatar for Tu Dinh
0
478
Member Avatar for jackjuma12

Hi guys I am trying to write some code here in jsp. I want to select some employee using its attributes. The first option is to select the criteria on which I want to base my search e.g. EMP ID. When I select this it should load for me all …

Member Avatar for stultuske
0
131
Member Avatar for wallet123

Im trying to integrate my website with facebook so that users wont have to sign up. By just using their FB accounts, they can automatically be logged in, but im encountering an error: java.lang.NullPointerException at com.fblogin.CallbackServlet.doGet(CallbackServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) …

Member Avatar for jwenting
0
319
Member Avatar for wallet123

I want to connect my website with Facebook. I'd like my user to be able to login to my site without having to sign up. Jut by clicking the facebook logo, I will be able to fetch the data needed like their email, name, age, etc. I used **restFB** but, …

0
135
Member Avatar for mahaboob Basha

hi can any one help me in this.. i have a html/jsp form in that i have a field .. enter password... first time password will be stored in the databse... from second time when user enters passowrd wrongly for 3 times then it has to dispay some msg contact …

Member Avatar for rexraja
0
2K
Member Avatar for cfinhas

Hello Everyone. My application is installed on tomcat it works fine, but after 48 hours it give error below. if we restart the server everything works fine again Can anybody tell me what's wrong here with the bottom error? Thanks a lot........... [code] HTTP Status 500 - type Exception report …

Member Avatar for stultuske
0
2K
Member Avatar for dany12

I would like to know what means Java Web UI with html5 knowledge,flex,javascript,css? Do you have to use plain jsp jsf servlet and then use a MVC pattern? If so the views are made with html5 flex? If anyone knows more about this please explain it to me because I …

Member Avatar for stultuske
0
343
Member Avatar for Prakash.G

To integrate our data base with other site, I've got a xml coding (given below) but they require a JSP output steps and tips to achive that would be appriciated. TIA. <?php include('db_connect.php');?> <?php $query=mysql_query("select * from tbl_seat")or die(mysql_error()); $xml="<libraray>\n\t\t"; while($data=mysql_fetch_array($query)) { $xml .= "<From>".$data['fromloc']."</From>\n\t\t"; $xml .= "<To>".$data['toloc']."</To>\n\t\t"; $xml .= …

Member Avatar for stultuske
0
220
Member Avatar for khadija.cheeko

i want to change the colour of output text field when i check the check box. its working fine if instead of output i use inputext field but not working with out put text field. this is the code snipt of jsp page <af:panelFormLayout id="pfl3"> <af:selectBooleanCheckbox label="Noun " id="sbc1" selected="true"/> …

Member Avatar for JorgeM
0
644
Member Avatar for Prakash.G

I'm trying to connect mysql database through API, and I'm using the following coding. I could't get the proper access to the database. Do I need to create a JDBC to the database or is there any other options available? <%@page import="java.sql.DriverManager"%> <%@page import="java.sql.ResultSet"%> <%@page import="java.sql.Statement"%> <%@page import="java.sql.Connection"%> <% String …

Member Avatar for milil
0
225
Member Avatar for murali2489

Hi Team, I am almost going to finish learning core Java and my employers said openings are available for Hibernate/Spring/Struts. I am just wondering whether can i directly start studying one of these frameworks after Core Java. Some people said these Frameworks contains JSP,servlets and important J2EE concepts so that …

Member Avatar for rubberman
0
266
Member Avatar for rithish

<% String name1=(String)name.get(i); %> <input type="hidden" name="inputName" value='<%=name1%> it shows me a error how to put jsp dynamic data in value attribute

Member Avatar for rithish
0
634
Member Avatar for rgkrish183
Member Avatar for saharqdr

Hi all, Can anyone guide me how to create JSP page on condition. I'm trying to call two different .jsp pages in one index.html page. I tried different conditions to achieve this bt did not succesed. Kindly help me. Its urgent.

Member Avatar for milil
0
297
Member Avatar for patelsagar.nandlal

<%@page import="com.image.vo.ImageDetailsVO"%> <%@page import="com.image.controller.Global"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <form action="Image" id="image" method="post"> <table> <tr> <td><strong>UserId:-</strong></td> <td><input type="text" name="name"><br> <br></td> </tr> <tr> <td></td> <td><input type="submit" name="submit" value="submit" /></td> </tr> <% if …

Member Avatar for JamesCherrill
0
677
Member Avatar for rgkrish183

i'm creating the Simple CRUD Using Jsp, Servlet and MySQL program and i'm using the eclipse, and i all most done it, finally i'm going to run myself, it can't be run. i will install the jar file of jstl, servlet, mysql connector and finally standard.jar files are installed. but …

Member Avatar for rgkrish183
0
1K
Member Avatar for rgkrish183

hey buddy's i had one problem in servlet in jsp program. Exactly i'm getting this error, why i'm getting this error and how to solve this error., Have some tips: thanks in advance.,

Member Avatar for rgkrish183
0
281
Member Avatar for rgkrish183

hey buddy's, i'm creating the program of employee details and i will inserted the fields are ADD,UPDATE,DELETE,EXIT,. I hope the all thing to find the exact solutions but, particular one thing only, that was UPDATE and these are the following some tips and code: 1.the input is not going store …

Member Avatar for rgkrish183
0
325
Member Avatar for amitgorule

First of all sorry , I am developing an messenger using servlet & jsp . please help me with code in servlet & jsp a user to register via register module, followed by login and use encrypted or normal chat. Each stated function depends on its own module. The encryption …

Member Avatar for masijade
0
739
Member Avatar for coervivekmca

Hi !! I am having a technical problem to run the code of servlet ,jsp and jar file .can you plz tell me how to put these in diferent folder to execute it..plz plz plz tell em the folder arragement to execute j2ee project.. Plz help i need help...

Member Avatar for stultuske
0
198
Member Avatar for rgkrish183

this front page: Form.jsp <html> <head> <title> Data Inserting Form </title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> </head> <body> <h1>ENTER THE EMPLOYEE DETAILS</h1> <form action="./Insert.jsp" method="post"> <table cellspacing="5" cellpadding="5" border="5"> <tr> <td align="right">Employee Name:</td> <td><input type="text" name="EmployeeName"></td> </tr> <tr> <td align="right">Employee_id:</td> <td><input type="text" name="Employee_id"></td> </tr> <tr> <td align="right">Nationality:</td> <td><input type="text" name="Nationality"></td> </tr> …

Member Avatar for peter_budo
0
407
Member Avatar for gtsiga

Hie guys I am prety new to JSF and Iam working on some peice of code. I am using primefaces components and JSF backed beans. Here are a list of my questions; 1. Is there a way of running a method each time a page loads. 2. During page load …

0
141
Member Avatar for rgkrish183
Member Avatar for lisy

Hi I am doing a project where i need to edit values in textboxes from database using jsp, here is my code, Please can anyone help me to solve this: retrieve.jsp [code] <%@ page import="java.sql.*" %> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");%> <HTML> <HEAD> <TITLE>Fetching Data From a Database</TITLE> </HEAD> <BODY> <H1>Fetching Data From …

Member Avatar for stultuske
0
3K
Member Avatar for vasudha k

Hi..... I have a small doubt............ I have a page which is used to send mail. In the mail I want a link to be specified. I have written this link in the message part of the mail. this is a a text area. I have used anchor tag.but it …

Member Avatar for stultuske
0
4K
Member Avatar for sciwizeh

Ok, so I'm working on a web-project, I connected a custom hanlder to the root Logger in `contextInitialized()` of a ServletContextListener: @Override public void contextInitialized(ServletContextEvent sce) { Logger def = Logger.getLogger(""); Handler hand = new DatabaseLoggingHandler(); hand.setLevel(Level.WARNING); def.addHandler(hand); } which looks like: import java.io.PrintWriter; import java.io.StringWriter; import java.util.logging.LogRecord; import java.util.logging.Logger; …

0
256

The End.