3,747 Topics

Member Avatar for
Member Avatar for manikandan_dani

Hi, I am developing web application using jsf2.0. In this case, I wish to validate the email field with the help of import org.hibernate.validator.Email; But it is not working, How to validate the email fileld... Thank.:)

Member Avatar for manikandan_dani
0
105
Member Avatar for NT.

Hi there, I recently added some new code to an existing jsp page, but I don't know why I ma getting this exception. I double ckecked for common errors but I am not sure the reason for this exception. Can anyone help. Thanks. Here is the exception: type Exception report …

Member Avatar for jwenting
0
109
Member Avatar for sachinkore

k..but how to write a insert query.. In my project...see below [code] <% try { ResultSet rs=null; Connection con=null; PreparedStatement st=null; Class.forName("org.gjt.mm.mysql.Driver").newInstance(); con = DriverManager.getConnection("jdbc:mysql://localhost/enrollment","root","root1"); st=con.prepareStatement("select f.tot,f.fcid from formcollection f where f.employername='"+empID+"'and f.flag=0"); rs=st.executeQuery(); %> <table width="713" border="1"> <tr> <th width="93" scope="row">Total Form Collected </th> <td width="70"><strong>DE Done </strong></td> <td …

0
53
Member Avatar for Chander Kararia

Hi All, I am writing a script which opens a popup window & then creates a table dynamically (data is coming from sqlquery) I am able to generate the table successfully. Problem - I want to click on any row & select a cell data, the moment I do this, …

Member Avatar for kvprajapati
0
58
Member Avatar for qutejose

Does J2EE support Enterprise applications? Is Java Beans an application dependent components? Does JavaBeans support sharing among the network? 1 Javabean can contain how many classes? Does Servlets execution starts with main methods?

Member Avatar for fardoonmuhafiz
-1
89
Member Avatar for Ashish Upadhyay

I have developed a java web application and make installer of the application. This application is using SQL Server 2000, Now I want, when user installs this application on his/her machine, the installer install the database also, if the machine does not have SQL Server then it install the SQL …

Member Avatar for jwenting
0
100
Member Avatar for pjbinu

I am trying to load an image using jsf graphicIamage tag. But it is not displaying the image code is ... [code=JSF]<h:graphicImage id="image1" value="/Img/flow2.jpg" width="120" height="80" ></h:graphicImage>[/code] the image flow2.jpg is placed in \WebContent\Img folder but it is not working please help Binu

Member Avatar for parry_kulk
0
64
Member Avatar for harry010

I've got 2 JSPs. JSP1 calls JSP2 to format a table in JSP1 JSP1 calls JSP2 using this code: [CODE] <jsp:include page='<%=(String)request.getAttribute("SB_Format_Path")%>' flush="true" ></jsp:include> [/CODE] The problem is that JSP2 has access to variable XX, at runtime but JSP1 does not have access to it. I'd like to somehow be …

Member Avatar for harry010
0
200
Member Avatar for timetex

As a novice JSP (and non-programmer!) I've bee doing some customisation to a browsers driven application which provides a users with CTI functionality on their desktop. My task was to create a custom "tab" on their page, which gave a series of checkboxes, with an "Apply" button. The purpose of …

Member Avatar for jwenting
0
2K
Member Avatar for Lalit Chattar

how we can resize image in jsp before uploading in database as a blob data. thank you..

Member Avatar for peter_budo
0
61
Member Avatar for Raghu.Pattem
Member Avatar for beanboy

hi, i'm trying to run a servlet code, but i get "HTTP Status 404 - Servlet Update2 is not available" error. i checked code, its perfect, web.xml is correct. but i did not find any .class files in my web-inf/classes directory. how could i get servlet .class files in web-inf/classes …

Member Avatar for fardoonmuhafiz
0
90
Member Avatar for smackdown90

i want to create dynamic table and drop down menu from lists. i have 2 questions: 1. for the drop down menu i can run over the list and write the tag <option> inside the loop? it will create the menu with the number of items in the list? there …

Member Avatar for peter_budo
0
247
Member Avatar for thekashyap

While trying to address a new requirement we wanted to provide a generic soln and pass on our pain to the customer. :) [B]Application: [/B]Say I have some application listening to a port or JMS or something where it receives some encrypted messages/requests. To process the requests it need to …

Member Avatar for ~s.o.s~
0
107
Member Avatar for rajni11

Hello friends, I am j2ee student and searching for a job of j2ee programmer , but i am facing one problem.............. I am showing three projects one of them is based on online course named is onebook application, now the problem is, when i went for an interniew my interviewee …

Member Avatar for peter_budo
-4
123
Member Avatar for ttchiwandire

Hi guys out there! I've been developing a java web application using jsf, jpa crud generator and hibernate as the persistence provider. Everything has worked well up to until now that I want to authenticate my system users. If anyone can help with the how of keeping track of system …

0
77
Member Avatar for muthumari

Hi, I hava 1 error in accessing database using javabean in jsp(jsp custom actions).The error like this javax.servlet.ServletException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt my source code is given below.Anybody help me?? [code=java]package SQLBean; import java.sql.*; import java.io.*; public class DbBean implements java.io.Serializable{ private String …

Member Avatar for georgequinne
0
352
Member Avatar for makarim

Help Me Please, I Have a problems, with calender scriptng in jsp. I want to calculate the difference in dates. Where Saturday, week, and holidays are not counted. result = (end date - start date) - (number of Saturday / week + holiday) How do I know this date Saturday …

0
47
Member Avatar for muusa

hi friends, i am doin a project named online compiler. the basic idea is to compile a program online. i am well acquinted with core java but not with web technologies. i know the basics of jsp n planning to do the project in jsp. i know how to compile …

Member Avatar for muusa
0
129
Member Avatar for madristaa

Dear Friends, I have created a file upload utility which will read the .csv files. My database structure is-- 1)id 2)mobile_no 3)address The administrator will do bulk upload for the above. If the id and mobile_no are already present in the database...then it will update the existing data. If doesnot …

Member Avatar for madristaa
0
387
Member Avatar for mayaaa

Hello All, Can anybody plz guide me how to write a new method in servlet. I am using netbeans 6.8 A code snippet will be highly appreciated. Also I will be calling these method of servlet B from servlet A. In Servlet A there are 2 hyper links, which should …

Member Avatar for mayaaa
0
3K
Member Avatar for cutesniper22

Recently , i just used jcreator with apache ant 1.7.1 for jsp development. I have a issue that I always performed "remove", "dist", "install" to update and deploy my latest web project. Is there any easier way to reload entire web project without always click on these three. It takes …

Member Avatar for ~s.o.s~
0
57
Member Avatar for vidhun
Member Avatar for javaAddict

I had a problem at work which I solved, but that raised me another question. I wanted to export a page to excel, so I used this: [CODE] response.setContentType("application/vnd.ms-excel;charset=iso-8859-7"); [/CODE] It worked but while I was searching for an answer I found 3 possible content types for the excel: > …

Member Avatar for javaAddict
1
884
Member Avatar for shahali88

hello i m ali i m new to jsp please tell me about how jsp runs in openwave

Member Avatar for peter_budo
0
45
Member Avatar for by89

Sorry this is the first time posting so if there is any wrong placement of thing, i apologize. Basically I'm trying to retrieve all the field of the food by typing the foodname and display it into the addfood.jsp. There are 2 class and 1 jsp which is foodmanage.java where …

Member Avatar for musthafa.aj
0
180
Member Avatar for salman4u

Hello, I want to create a sub domain, when the user registers on my site. How can i do that in java? Any help would be appreciated. Thanks in advance :)

Member Avatar for jwenting
1
53
Member Avatar for Neerajavi

hi friend can you tell me how to create servlets and how we can deploy it on the apache web server.

Member Avatar for jwenting
0
129
Member Avatar for AliAliAli333

Hi im just wondering how i could improve this to make it secure from either the jsp file itself or external java files. [CODE] <html> <head><title>JSP Page</title></head> <body> <jsp:useBean id="user" scope="session" class="shop.UserBean" /> <jsp:useBean id="dataFactory" scope="session" class="data.factory" /> <% String userName = request.getParameter("userName"); String userPassword = request.getParameter("userPassword"); user.setLogin(dataFactory.getUser(userName,userPassword)); user.setUser(userName); if …

Member Avatar for jwenting
0
91
Member Avatar for feoperro

Hi, I have pasted my code below, please paste it into a JSP and tell me why it gives the error "Unterminated String Constant" [CODE] <html> <head> <title>Debugging</title> <script language="javascript"> function changeOn(object, objectId) { alert('in function'); if (object == 'bookingsButton') { alert('first if'); document.getElementById(objectId).src = 'Images/BookingsOn.png'; } else if (object …

Member Avatar for feoperro
0
199

The End.