3,760 Topics
| |
I tried querying database records using pass variable from ibatis servlets it works fine and fetch the records if correct pass value is entered but return error message if wrong pass value is entered eg <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <sqlMap namespace="Display1"> <!--- quer … | |
Hey there, I have a jsp page and a checkbox inside it: <input type="checkbox" name="some" onchange="test()">Check me</input> I also have this function: function test() { out.println("checkbox checked status changed"); } I want the function test to be invoked every time I check/uncheck my checkbox. It is not working. Since I … | |
Hello everyone happy new year to all. i want get length of only fractional part of number in java script function. example if number is 4.321 then length of fractional part is 3. please help me. thank you | |
Hello everyone.. I want to learn JSP. But don't know any online portal for study about JSP. If any one knows any place where i can learn JSP. where i can learn without any charge. Please make it shre with us. | |
Hi guys i m doing an EJB project on Library Management using NetBeans Out of which the first Step create a "CREATE ACCOUNT" page & get all the details from User & store it in Database. Using JSP for this. Everything is created, but when i try to Click Submit … | |
I need to encode the sending messages/data(not MD5)and then they will be decoded on the other side. Codes have to be in android libraries not in java. Is there any code or information that may help me around internet? Thx all for your help. | |
I want to sent e-mail when the user is logged to inform him that was logged and all these. Which is the best library to use for this? The server is on localhost for now Thank you very much | |
Hello fellows! I have question. Iam doing some project to my school and I have small problem. I have chart (iam using jfreechart) in Chart.java file and after user is loading to his profe he should be able to push button and chart wit his statistics should appear. My problem … | |
Data fetching I am creating a website and I am facing trouble to fetch URL data .How can i fetch URL data with the help of PHP and AJAX.And i need to fetch the data fast as facebook or the earlier version of Digg did it.If there is a code … | |
hi friends. i need a help how to enable and disable multiple textboxes corresponding a button click belwo i will show u the image ![catalogsearc](/attachments/large/3/catalogsearc.JPG "catalogsearc") when i click the check box i want to enable these text fields.. hw it possible please provide a sample codes or give me … | |
Hi, I have a jsp file which call java class file function passing connection as a parameter all was working fine once but when i changed few code in java file and compli it complied successfully but jsp file still giving previous class function output. I am working on amezon … | |
I am trying to test [this](http://www.tutorialspoint.com/jsp/jsp_java_beans.htm) code but unfortunately I get `Can't find a method to write property 'age' of type 'int' in a bean of type 'test.StudentsBean'` error. But when I change age type to String and also its getter and setter methods it works well. Can anybody tell … | |
(netbeans latest, windows 7) So, from what I understood, once I start a servlet program the html page with a form in it loads and I can debug the program only when I click the Submit button at the end of the form. if the form is doPost then by … | |
[CODE] <tr> [B][U]<td><a href="inbox.jsp" ><%=rs.getString(1)%></a></td>[/U][/B] <td><%=rs.getString(2)%></td> <td><%=rs.getString(3)%></td> </tr>[/CODE] See lines in Bold.....after i click it has to set session variable with value reterived from <%=rs.getString(1)% >based on which i am going to display particular contents in redirected page | |
i have certain codes in JSP and JSTL as following : <sql:transaction dataSource="${dataBase}"> <sql:query var="tDate"> SELECT starttime FROM campaign WHERE cid=25; </sql:query> </sql:transaction> <c:forEach var="row" items="${tDate.rows}" varStatus="totalRow" step="1"> <c:set var="starttime" value="${row.starttime}" /> <c:set var="datetime" value="${fn:split(starttime,' ')}" /> <c:set var="date" value="${fn:replace(datetime[0],'-',',')}" /> </c:forEach> <% Calendar d = Calendar.getInstance(); d.set(date); %> but … | |
Howdy, for instance this JSTL snippet produces following result. <a href="<c:url value="Profile"> <c:param name="username" value="${requestScope.username}"/> <c:param name="logout" value="true"/> </c:url>"> Logout </a> Result: <a href="Messages?username=abc&logout=true">Logout</a> Ofc this thing works. However, validating against XHTML 1.0 Strict ends up with: > cannot generate system identifier for general entity "logout" href="Messages?username=abc&logout=true">Logout</a> Apparently it doesn't … | |
hi folks, i am a beginner in JSP, and i am studying headfirst servlet & JSP,but at the time of running a code from there,i have an problem there is directory structure **src/com/example/web/BeerSelect.java** and the code is package com.example.web; import com.example.model.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public … | |
i have installed tomcat and deployed axis folder in the tomcat->webapps and my .jsp and .jws files in the axis folder of webapps, while my .jws files are executing successfully and showing the wsdl code, my .jsp files are showing the error page as follows: type Exception report message description … | |
how can i make a servlet to validate a form with two file upload one image and other a pdf file. along with the other string parameters like name age gender etc., i need to validate the pdf and image files in servlet and save it in folder of my … | |
this code has following error --it ensures that the username is unique but still insert it into database please help me to debug this error. | |
| |
Hi i have a page say test.jsp It has some href links which redirect to the same page with some unique attributes depending on the link Now depending on the link clicked the page will be reloaded(as it redirects to itself) with new data. Now i want to take an … | |
Hi Everyone, I'm hoping that someone might be able to help me on the following: I would like to have a textarea type control on a webpage that would permit a user to highlight some text in the 'textarea', open a file dialog box, and insert a link behind the … | |
I'm creating an app, that displayes a String from a database. This String is then displayed in a textbox that cannot be edited. I now require that varible (ID passed) in the text box to be compared with a column in a SQL database table which is an identical String. … | |
I am new to JSP. I am doing a course. where they require me to build a registration page. and when we submit entries must be into database. So that when we log in the username and password must match then only welcome page should come otherwise error page. and … | |
A web server is used to process http request and send a response back to the client browser. I was wondering how does a client browser send a http request to the web server? Is it done via socket connection? Which socket connection is used to establish a connection with … | |
Hello i want to encrypt or hash some data and put them on the database. Which is more secure encryption or hash and how i can do this? thank you very much for your help | |
Hi, My below code is working only if there is a single row. could you please help me in doing it for all the rows retrieved from the database. view plaincopy to clipboardprint? <%@page import="java.util.concurrent.CountDownLatch"%> <%@include file="DBCon.jsp" %> <html> <head><script type="text/javascript"> function invoke(but) { if(but==5) { document.abc.action="Users_2.jsp"; } else if(but==6) … | |
How to add css to all jsps in java web project. Is it possible using web.xml ? |
The End.