JSP / JSTL :: Fingerprint Enrollment Web Application
Jan 17, 2013
I am trying to create a simple web application which will store fingerprint of a person in database. I have a U.Are.U 4500 fingerprint device from Digital Persona. My database is MS SQL Server 2008.
Basically the web app will consist of 2 JSPs. The first JSP AskUser.jsp will ask for a user_id and will have a button Next. A user will type in his/her user_id and then click Next button.
The second JSP EnrollUser.jsp will ask for user's fingerprint and will have a button Save. User will scan his fingerprint and then click Save button which will save the fingerprint in database.
The concern I have is regarding second JSP. How to wait until the user has scan his fingerprint? I mean how will the app know that scan is done? Also can I show the fingerprint on screen when user scan his fingerprint?
View Replies
ADVERTISEMENT
Mar 27, 2015
How can I connect my j2ee application to a fingerprint reader...
View Replies
View Related
Feb 27, 2015
I have created a simple applet application that is embedded in a HTML. When I did compiled it, I received an error of ClassNotFoundException. I'm using Jdeveloper11gR1. Please see screenshot.
This is my error :
java.lang.ClassNotFoundException: cams.gsis.applet.CAMSApplet
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
[Code] ....
And this is my Error on java console.
basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@c5dde6
security: Expected Main URL: http://localhost:7101/CAMSv6-CAMSv6-context-root/cams/gsis/applet/CAMSApplet.class
network: Cache entry not found [url: http://localhost:7101/CAMSv6-CAMSv6-context-root/cams/gsis/applet/CAMSApplet.class, version: null]
[Code] .....
View Replies
View Related
May 1, 2014
I would like to bring a project in java program written by me, that interfaces with a fingerprint reader (already purchased, the reader U.are.U 4000b) and as I'm using fingerprint sdk sdk's Griaule.
View Replies
View Related
Nov 17, 2014
convert or move standalone java thread application into Tomcat server container for accessing its JNDI services? Also is it possible to schedule this thread application in Tomcat server? is it possible to keep this app in tomcat as web application and schedule in window's scheduler.
View Replies
View Related
Mar 11, 2014
I am new to work on JNLP program. I have created a SWING program, JNLP file when i deploy the ear file i am getting 404 error. Please find the steps in details.
1.Created a dynamic web project JWStartProject in eclipse
2.Create a HelloWorld.java class under default package.
import javax.swing.*;
public class HelloWorld extends JFrame {
private static final long serialVersionUID = 4968624166243565348L;
private JLabel label = new JLabel("Hello Java Web START!");
public HelloWorld() {
super("Jave Web Start Example");
this.setSize(350, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
this.setLayout(null);
[Code] ....
Now I exported this project as JWStartProject.war contains following code.
Created Server in Websphere Admin console
Deployed this war file under the server and started.
I have added MIME types also.
I am unable to launch the application. I am getting 404 errors. May I know where I went wrong?
View Replies
View Related
Mar 12, 2014
I am fetching records from result set and displaying on JSP with <c:forEach> tag
<c:forEach var="outer" items='${ProductList}' varStatus="seq1">
<tr>
<td class='center' nowrap><input type="radio" name="view" id = "view" value="Y" ></td>
<td class='left' nowrap><c:out value='${outer.sourceIndex}' /></td>
<td class='left' nowrap><c:out value='${outer.prodNameAbbr}' /></td>
<td class='left' nowrap><c:out value='${outer.productName}' /></td>
<td class='left' nowrap><c:out value='${outer.effectiveDate}' /></td>
<td class='left' nowrap><c:out value='${outer.uuName}' /></td>
</tr>
</c:forEach>
Below is one row with radio button
SourceIndex ProductAbbreviation Product Name Effective Date UseID
ABC PQR Test123 03/12/2014 smj
I have a view button also to select above radio button. When I select that I need all above values to be set in request.
View Replies
View Related
May 25, 2014
translate this part to jstl and el?
<%
while(i<nrows){
if(i==0){
%>
<tr>
<td ><b>id_article</b></td>
<td ><b><font color="#FF0033">nbr_stock</font></b></td>
<td ><b>critical_nbr</b></td>
<td ><b><font color="#FF0033">date_first_stock</font></b></td>
[code]....
View Replies
View Related
Sep 9, 2014
I am looking at JSP page, which has code line as follows
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
This taglib will have to be installed on local environment. How is it referred in jsp ? I dont see any code in jsp, which refers to the location of JSTL. So how does jsp invoke these tags ? Is it through classpath ?If its so , how is classpath set for JSTL ? Is it just as classpath is set for java ?
View Replies
View Related
Jun 21, 2006
i am doing a code using JSTL to fire a query. everything come fine except the resule is not sorted as desired. i am putting the code below--
String sort_order=(String)request.getAttribute("sort_order");
request.setAttribute("sort_order",sort_order);
<sql:query var="viewQueryj" sql= "select USER_ID, PERMISSION_ID, USER_NAME from administrator order by ?">
<sql:param value="${sort_order}"/>
</sql:query>
now the resule is always sorted by USER_ID. if i want to sort it using USER_NAME i pass parameter from controller to this page in sort_oredr variable which comes fine but the result doesn't sort by name, only by id. if i hardcode USER_NAME in query then the result is as desired.
View Replies
View Related
Aug 29, 2014
I want to use the list element inside my scriptlet. Below is my code which is not working.
<c:forEach var="social" items="${sociallist}">
<%
callToFunction(%>${social}<%);
%>
</c:forEach>
How can i access social var inside scriptlet.
View Replies
View Related
Jul 31, 2014
In JSP page: firstly set the setter of a entity in bean and then set it in session,request etc. and gvet values using foreach loop as follow :
<jsp:useBean id="st" class="beans.student">
<jsp:setProperty name="st" property="roll_no"/>
</jsp:useBean>
<%
[Code]....
Here start is the variable whose value will vary after every time i visit this function.So how would i be able to use above query.
P.S. i was using scriplet before and i was able to deal these issues with scriplet easily.
View Replies
View Related
Jan 25, 2014
I have the following data in a file called books.xml in my WEB-INF folder:
<?xml version="1.0"?>
<books>
<book>
<name>Padam History</name>
[Code] ....
I'm using the following code in a jsp:
<c:import var="bookInfo" url="/WEB-INF/books.xml" />
I know that it's finding the file because if I delete books.xml from the WEB-INF folder I get a FileNotFound exception.
However, for some reason it doesn't appear to be importing the data into the bookInfo variable.
I noticed this problem because when I try to parse it via:
<x:parse xml="${bookInfo}" var="output"/>
I get org.xml.sax.SAXParseException: Premature end of file.
When I try to display the data in the variable either by:
<c:out value="${bookInfo}" />
...or by means of a scriptlet (which I realize is not a best practice):
<%
String myVariable = (String)pageContext.getAttribute("bookInfo");
System.out.print("bookInfo=" + myVariable);
%>
...I get nothing.
BTW when I do:
<c:import var="data" url="http://www.tutorialspoint.com"/>
<c:out value="${data}"/>
that works fine!
View Replies
View Related
Aug 18, 2014
I have a HashMap returned from the server. There are two conditions
1. HashMap returned with only one set of key value pair or
2. HashMap with multiple set of data key value pairs.
Now in UI I have to display either text box or drop down box depending upon the size of map for that I am using length method
Java Code:
<c:choose>
<c:when test="${fn:length(myDto.mayMapInDto) eq 1}">
display text box
</c:when>
<c:otherwise>
display drop box
</c:otherwise>
</c:choose> mh_sh_highlight_all('java');
I can display drop box by looping but not sure how I can get only one element for text box. Tricky is I can't use key value to access since UI don't know what key will be returned.
View Replies
View Related
Mar 14, 2014
I have for values in drop down:
<SELECT name = "productCodeDefault" id="productCodeDefault" value="<c:out value ='${ProductDefBean.productCodeDefault}'/>" >
<OPTION value="" ></OPTION>
<OPTION value="a" >A1</OPTION>
<OPTION value="b" >B1</OPTION>
<OPTION value="c" >C1</OPTION>
<OPTION value="d" >D1</OPTION>
</SELECT>
When I am getting value = "a" from ProductDefBean, In the dropdown 'A1' should get selected. This is not happening. What I need to modify?
Note** When I am doing view Source of my JSP, I am getting value='a'
View Replies
View Related
Sep 13, 2012
Is there a way we can open a .chm file stored at server through jsp application without downloading the file and saving it to the local machine.
What I googled is : we cannot download .chm files from a web browser and simply click Open. Download the .chm file to your computer first, right-mouse click it in Windows Explorer and select Properties. Then click Unblock.
But I want my users to simply view the file without downloading it.
View Replies
View Related
Nov 12, 2013
In jsp when using EL the parenthesis are not allowed for grouping of expressions. I mean
${(2+3)-1}
is not allowed so if i have to group expressions in EL how do i achieve it?
I wanted to do the following in EL
${(a==b && b==c) || (v==r && r==d)}
so how do i achieve this?
View Replies
View Related
Feb 15, 2013
Why will this NOT validate correctly in my IF Statement? Basically, a user chooses an option from the drop down list. The value is passed to t.jsp (itself) and if the option "All" is chosen, then it does something. If any of the years are chosen, then it does something else.
t.jsp (simplified version of what I want)
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<html>
<form method="get" action="t.jsp">
Select Year:
[Code] ....
View Replies
View Related
Mar 7, 2015
I have a variable <c:set var="var1" value = "myvalue" /> , I want to pass var1 as <%= new customclass().method1(var1) %>.what is the syntax to pass this value.
View Replies
View Related
Feb 17, 2015
I am having problem in converting JSTL variable into integer type in JSP (not using Spring). I am looking to do something like below:
<c:set var="total_amt">${list.totalAmount}</c:set>
<c:when test="${new Integer(total_amt) > 500}">
View Replies
View Related
Jul 14, 2014
How to format this "2014-07-14T19:40:46" date to dd-mm-yyyy with time using jstl?
View Replies
View Related
Mar 27, 2015
I'm trying to write a condition to jstl if tag,
<c:forEach var="ledg" items="user_ledgers">
<c:if test="${ledg.transactionID == param['trns']}">
<c:out value="${ledg.name}"/>
</c:if>
</c:forEach>
Ledg is an object of ledger class and transactionID is a field of type long.
I found this error while runtime.
javax.el.PropertyNotFoundException: Property 'transactionID' not found on type java.lang.String
I tried to convert transactioID value to String by several ways. But not working.
String concatenation
<c:if test="${(ledg.transactionID+’’) == param['trns']}">
Using custom tag
<c:set var="equals" scope="page">
<z:doTheyEquals v1="${ledg.transactionID}" v2="${param['trns']}"/>
</c:set>
It also expects String type.
View Replies
View Related
Jun 23, 2014
I am creating a webapp project , in which i have loaded my JSP page having JSTL tags in a DIV tag successfully but when user clicks on a radio button a jquery fires which loads that perticular div tag , and the html content in that div tag is then loaded again but not the JSTL content..
View Replies
View Related
Jan 31, 2014
I create a binary tree and now I would like to display the result in my jsp with conditions.
Each node has 4 elements (id, question, answer, and leftnode rightnode)
If the user clicks "Yes", the program goes to the left of the tree and if he answers "no" to the right of the tree.
For example, the initial question is "you're a man?" If he answers "yes" we will go to the left and page view "you're a singer?" If he answers "no" page displays "you're French? ".
In java, it would
cursor [i]. GetQuestion ()
to the original question.
Then
cursor [i] getQuestion. GetLeftnode ()
For yes and
cursor [i]. GetRightnode (). GetQuestion
for no.
Until the, everything works normally, but when I want to loop until there is no longer any issue by
<c:when test="${not empty cursor[i].getQuestion() }">
The program stops at the first loop and stops it that cursor is not empty
Here is my complete code jstl
<c:set var="cursor" value="${nodes}" scope="session"></c:set>
<c:set var="i" value="0" scope="session"></c:set>
<form>
<c:choose>
<c:when test="${not empty cursor[i].getQuestion() }">
<c:out value="i vaut ${i } au debut de la boucle"></c:out>
[Code] ....
View Replies
View Related
Sep 13, 2012
How bean object have been tagged to JSTL?
View Replies
View Related
Jun 12, 2014
When using trim-directive-whitespaces in a Tomcat 7 application this expression also get trimmed:
<div class="${item.view} ${item.className}">
resulting in the HTML
<div class="personchild">
instead of
<div class="person child">
On the other hand, when I first assign the expression to a varibale it's fine:
<c:set var="className" value="${item.view} ${item.className}"/>
<div class="${className}">
results in the desired HTML
<div class="person child">
Is this the intention of the trim whitespace directive or does this look like a bug?
View Replies
View Related