4,248 Topics

Member Avatar for
Member Avatar for daravindm

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 …

Member Avatar for subramanya.vl
0
224
Member Avatar for ruchi18

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 …

Member Avatar for ruchi18
0
188
Member Avatar for manaila

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 …

Member Avatar for manaila
0
104
Member Avatar for Despairy

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

Member Avatar for Despairy
0
205
Member Avatar for nHulk

[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

Member Avatar for jalpesh_007
0
1K
Member Avatar for jake.lawton.12

Today my pc came, (windows 7 32-bit) so i set it all up, it work i installed everything i needed to, but i downloaded minecraft.exe, so i ran it and loged in, then it took 1 second and it closed, a notepad document came up on my desktop (hs_err_pid3400), so …

Member Avatar for JOSheaIV
1
537
Member Avatar for doniandric

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 …

Member Avatar for subramanya.vl
-1
182
Member Avatar for yuri1969

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 …

Member Avatar for yuri1969
0
347
Member Avatar for subhraakasuny

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 …

Member Avatar for subhraakasuny
0
305
Member Avatar for swetha1991

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 …

Member Avatar for jalpesh_007
0
269
Member Avatar for abevenkat

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 …

Member Avatar for subramanya.vl
0
215
Member Avatar for shruti.mendiratta.1

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.

Member Avatar for subramanya.vl
0
89
Member Avatar for Priyanka786
Member Avatar for tarugupta.92

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 …

Member Avatar for subramanya.vl
0
825
Member Avatar for CALGACUS

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 …

Member Avatar for subramanya.vl
0
149
Member Avatar for sunnykeerthi

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

Member Avatar for subramanya.vl
0
786
Member Avatar for mukulbimm

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 …

Member Avatar for subramanya.vl
0
199
Member Avatar for Dee1004

Hello guys! I need some help... I'm new in Java programming and I'm dealing with in issue. I'm at a step of my project that keeps stoping me from going further. I have some xml files that contains diacritics and I need to read them and extract the tag's that …

Member Avatar for rubberman
0
443
Member Avatar for solomon_13000

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 …

Member Avatar for ~s.o.s~
0
226
Member Avatar for xxmp

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

Member Avatar for jalpesh_007
0
872
Member Avatar for sunnykeerthi

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

Member Avatar for radhakrishna.p
0
168
Member Avatar for kirill226
Member Avatar for jalpesh_007
0
77
Member Avatar for muhammed.anas.7583

I develop a project that consist of many tables. In admin menu table names shows dynamically in a dropdownlist from a database. Pls help me to do this

Member Avatar for radhakrishna.p
0
193
Member Avatar for anand01
Member Avatar for jalpesh_007
0
144
Member Avatar for mehnihma

I am trying to build XML to csv conversion The problem is extended attributes ( <AttrList> ) that I do not know how to read: This is the XML: <?xml version="1.0" encoding="UTF-8"?> <ProductCatalog> <Product> <ProductCode>FFC4UINTSATA</ProductCode> <Vendor>INTEL</Vendor> <ProductType>Cable</ProductType> <ProductCategory>Cables</ProductCategory> <ProductDescription>INTEL SAS/SATA internal cable (4xSerial ATA 7-pin (Male) - 1x (Male))</ProductDescription> <Image>https://www.it4profit.com/catalogimg/wic/1/FFC4UINTSATA</Image> …

Member Avatar for mehnihma
0
234
Member Avatar for SagarSe7en

Hey Friends, Developing an Online Shopping System. Firstly had posted a code regarding MD5 Encryption and it was solved very quickly. Require the same help again. While registering an image selected by the User should be inserted into the Database. Posting a Code which follows the DAO Pattern but i …

Member Avatar for SagarSe7en
0
1K
Member Avatar for irshsheikh

hi, i am buliding a website as my mini project. problem: when i submit registration form, if the username or email or even both already exist, I have writen the code to check if either of them exist in the database.. and that is working great.. and if the user …

Member Avatar for jalpesh_007
0
303
Member Avatar for mbarandao

Hello: I have the following div popup window: <div id='PopUp' style='display: none; position: absolute; height: auto; left: 13px; top: 10px; border: solid black 1px; padding: 10px; background-color: rgb(255,255,225); opacity:.95; text-align: justify; font-size: 12px; width: 70%; z-index:1200;'> <iframe id=\"mate\" frameborder=0 scrolling=yes width=100% src='client_edit/edit_client_data.php?customerid=$customerid' height=\"790\" align=\"left\"></iframe><br /> <div valign=\"top\" style='text-align: right; display: …

Member Avatar for rkrockr
0
695
Member Avatar for ct_hunny

hello i have some problem in showing button, when data exist and data not exist. i want the button show if data exist also data not exist. my current problem right now the button only show when data exist but the button automatically hide when data not exist. here what …

Member Avatar for stultuske
0
189
Member Avatar for remz1001

hi... When trying to start up tomcat service in xampp 1.7.7 or earlier, it may not be able to startup properly. Following are the message I noticed when trying to execute it: i am getting an error [XAMPP]: Searching JDK HOME with reg query … Error: The system was unable …

Member Avatar for subramanya.vl
0
193
Member Avatar for anmolanu

Create a full fledged JSP page to get the Users List from Servlet and display in to the user without using Scriptlets. Make use of EL and JSTL.

Member Avatar for subramanya.vl
-1
83
Member Avatar for vaiiibhav

` Inline Code Example Here ` <%@ page language="java" contentType="text/html; charset=ISO-8859-1"%> <html> <head> <%@ page import="java.io.*" %> <%@ page import="java.io.*" %> <%@ page import ="net.sf.mpxj.MPXJException " %> <%@ page import=" net.sf.mpxj.ProjectFile" %> <%@ page import=" net.sf.mpxj.Resource" %> <%@ page import=" net.sf.mpxj.Task" %> <%@ page import=" net.sf.mpxj.mpp.MPPReader" %> <%@ page import …

Member Avatar for jalpesh_007
0
147
Member Avatar for mahemaa.iyer

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { int c=0; String u1=request.getParameter("u1"); String e1=request.getParameter("e1"); String user=request.getParameter("user1"); request.setAttribute("u1",u1); request.setAttribute("e1",e1); request.setAttribute("user", user); out.println("welcOme"); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con =DriverManager.getConnection("Jdbc:Odbc:db5"); String str = "select * from Table1 where email=?"; out.println("welcOme"); PreparedStatement statement = con.prepareStatement(str); statement.setString(1,user); ResultSet …

0
152
Member Avatar for kumar0559
Member Avatar for ct_hunny

Hello I’m struggling in how to create simple pie chart (for dashboard). Since I’m new in jsp, and I have no basic how to connect the chart with database. Any idea or any solution.

0
79
Member Avatar for aiwasen

Currently I'm using netbeans 7.2 using glassfish server. I want to put two numbers using HTML+ Servelet. I'm just a beginner I have no idea. Would somebody help me? I also don't know why I got error: Incompatible types required int found string although I used parseInt to convert String …

Member Avatar for jalpesh_007
0
2K
Member Avatar for Yogeshp

Hi, I was not able to see a spring section. I saw some posts here related to spring, so i am posting it here. I have a requirement. I am working with Java-Spring MVC 3.0 framework. And i am working with form tags too in my JSP. I have the …

Member Avatar for subramanya.vl
0
807
Member Avatar for raul8

Using Ajax after an year...please tell me what I'm missing: JSP/Ajax File: [CODE]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="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> <script type="text/javascript"> function login() { var xmlhttp; var username = document.getElementById('username').value; var queryString = "username="+username; …

Member Avatar for i_M_patil
0
251
Member Avatar for mez.ali.779

I m stuck in some jsp programing issue. I'm working as temp web-admin for my friend who is one vacations. I'm managing his freelance web-designing website. Over the weekend i was told by my friend ; to make changes in the login.jsp page and do some programing to log user …

Member Avatar for anand01
0
133
Member Avatar for bipi09

hi, someone can give some example on how to update option and radiobutton value into database :(

Member Avatar for anand01
0
56
Member Avatar for gorgoro

I want to start as junior in Java in a company but they ask me to present them some tasks that ensures that i am more than a junior.they offer me a task to create a Swing Gui with buttons and stuff.I have already a good knowledge of Java from …

Member Avatar for gorgoro
0
269
Member Avatar for bharatgs7

Guys, I just want to know whether is there any way to give a security to the webpages hosted in server. For example, I have hosted jsp application using tomcat. I want to prevent someone from copying those files from tomcat in my computer(Maybe from C Drive). Anyhelp will be …

Member Avatar for JorgeM
0
138
Member Avatar for mrabrar09

Hello Everyone... Am little bit confuse whether this post is come under Jsp or MySQl... but am posting in JSP because am thinking that it jsp..not Mysql query I created one report but the report is not coming perfectly so i need your help My actual report format is like …

Member Avatar for mrabrar09
0
220
Member Avatar for Web_Sailor

Hi :-/ I have a java function that I want to call inside my JSP page. My function has got parameters.Now the problem is I cannot call it using JavaScript and if I put it inside <% %> tags it just executes while loading the webpage itself. I need to …

Member Avatar for hessah1986
0
205
Member Avatar for prnjn

Hi , I am not able to start "apache tomcat 7.0.22" I have double clicked on "startup.bat" file in the bin folder of the apache tomcat folder after that i typed http://localhost:8080/ in my web broswer but i get the following error " Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the …

Member Avatar for prnjn
0
261
Member Avatar for vaibhav1983

Hi All, I have configured a spring JPA project but when I deploy and start the tomcat I get the exception nin stacktrace as shown below. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/database-config.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: …

Member Avatar for vaibhav1983
0
382
Member Avatar for raj-uk

Hi, found this code work fine how can we update code, the code is below <script type="text/javascript"> var cal_1 = new Calendar({ element: 'inlineCalendar', inline: true, months: 3, dateFormat: 'm/d/Y', o nSelect: function (element, selectedDate, date, cell) { //do something } }); </script> [[Click Here](null)](http://code.google.com/p/calendarjs/) what we need is, only …

Member Avatar for pritaeas
0
65
Member Avatar for kovidd

I and my friend are starting aur project based on java . We are planning to create a java based forum software . But we are confused to wheather make it a app on windows communicating a DB server ...Or to make it based on serverlets/jsp etc (somthing like vbulltein …

Member Avatar for ~s.o.s~
0
230
Member Avatar for connoisseur2010

Good day guys, I'm a java EE developer. I'm to do my final year project in java EE but have no idea of something tangible to earn me a good grade. Any suggestions. Would love to get a feedback by the end of the day. Thanks.

Member Avatar for peter_budo
0
200
Member Avatar for fularipk
Member Avatar for rotten69
0
2K

The End.