4,248 Topics

Member Avatar for
Member Avatar for pradeepkumarb

my logout application is not working.when i logged out it is coming to the login page but when i clicked the back button on the browser it is again displaying the previous page.i tried all ways like setting the http headers,deleting the temporary files etc....but no solution can u please …

Member Avatar for javaAddict
0
63
Member Avatar for samuelhenry

i m workin with jsp's i am doing a project on online movie ticket booking system. i encountered a problem when i started executing code for seat booking.... let me tell u my prob.... i m tryin to execute a query like this.... [code=java]select s.seatno,'"+seat+"' from booking where s.screenid='101';[/code] seat …

Member Avatar for jwenting
0
240
Member Avatar for mimsc

Hello..Im trying to read the HTML from a URL and I threw in yahoo.com as a test...for some reason, "n.readLine()" is coming back as NULL and the while loop fails...and ideas?? thanx [code] <%@ page import="java.io.*" %> <%@ page import="java.net.*" %> <%@ page language="java" %> <%@ page import="trader.webservices.util.Utils" %> <%@ …

Member Avatar for kk4real
-1
109
Member Avatar for manikandan_dani

hi, I am developing web application using jsf2.0. In this case, I used rich:dataTable tag for display the values from mysql. so this is working.. my problem is, How to select the perticular row or index from the datatable for another processing... help me.. Thanks.

0
69
Member Avatar for Emmett_1981

Hi everyone, I am using the Struts 1 framework to develop a web application for my FYP. So far I have been able to access the properties file from all jsp in my application with example such as the following code. [CODE]<bean:message key="welcome.title"/>[/CODE] I want to have the entire web …

0
173
Member Avatar for vvrekha

Hi All, In my jsp page, I am getting the data from Ms-sql for 3 combos.first 2 combos are independent, like course,location. either i can select course or location in 3rd combo i need to display the name of student. I was not able to pass the two combo values …

Member Avatar for peter_budo
0
79
Member Avatar for manikandan_dani

hi, I am developing web application. In this case, I wish to find the client side operating system using java(without javascript) . How to find. Please tell me... Thanks.

Member Avatar for jwenting
0
125
Member Avatar for pradeepkumarb

how to display the randomly selsected questions from a database one at a time in jsp like in online quiz.please help me

Member Avatar for jwenting
0
260
Member Avatar for karamjeet2004

i want to send value to another jsp page from sessions i add the attribute session=true in both jsp pages but i am getting error during running mode can u find any errors in code [B]try123.jsp[/B] [CODE]<% String val=(String)session.getAttribute("itemValue").toString(); %> <TD>IMAGE NAME</TD> <TD><INPUT TYPE=text NAME="img" VALUE="<%=val%>"></TD> </TR> <tr>[/CODE] [B]try.jsp[/B] [CODE]String …

Member Avatar for javaAddict
0
145
Member Avatar for chicago1985

-------------------------------------------------------------------------------- I have this test working where it takes data from a Java class and shows it in a JSP: [code] String targetItems = "test" List pageItems = New ArrayList; for(int i = 0;i < calculatedResults + 10;i++) { pageItems.add(targetItems + " " + i) } request.setAttribute(pageItems, "pageItems");[/code] I would …

0
90
Member Avatar for karamjeet2004

i hav cod to redirect to two different pages but one cod is working and one not one form enctype is urlencoded which is default is working and other with enctype=multipart is not working plz help i googled about this but nothng works so i came here 4 d sol …

Member Avatar for jwenting
0
110
Member Avatar for henrybahus

Hi all, I want to say first of all that I'm a beginner with jsp. Now I explain my issue: I have a page (called A) where I want to execute some code if user come from page B and other code if user came from page C. How could …

Member Avatar for peter_budo
0
83
Member Avatar for manikandan_dani

hi, please give some information regarding dialog box, conformation box in jsf2.0. In my login screen, how to show the success or failed message through dialog box thanks.

0
59
Member Avatar for webcare

jsp is a good language or php/mysql for web devlopment process by<FAKE SIGNATURE>

Member Avatar for jwenting
0
85
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
111
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
113
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
56
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
60
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
91
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
105
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
66
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
293
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
64
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
92
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
253
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
110
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
126
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
81
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
364
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
50
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
131
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
397
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
60
Member Avatar for mimsc

Hello guys I normally write java...but heres my question [CODE] int propId = Integer.parseInt(request.getParameter("property")); <script type="text/javascript"> function doReport1() { document.forms[0].target = "_blank"; document.forms[0].action = 'http://<%=accountName%>/JAABA/jsp/cpanel/homeSellerReport1.jsp?propId=<%=propId%>'; document.forms[0].submit(); } <div class="marginTopBump5 marginBottomBump9"> <div class="left paddingRight2 paddingTop21">Dear</div> <input type="text" name="custName" maxlength="100" size="40" value="" class="fullBox left" /> <div class="left">&nbsp;,</div> [/CODE] as you can see …

Member Avatar for mimsc
0
148
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
929
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
51
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
187
Member Avatar for laelzio.mosca

I just started my Java class, and I`m trying to Install Jgrasp from [url]http://java.sun.com/javase/downloads/index.jsp[/url] I choose the first picture, the one that just says java, with the JDK. But after I install it, I still can`t find it in my computer. Can anybody help me. Thanks

Member Avatar for doha786
0
96
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
55
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
132
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
97
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
205
Member Avatar for ElieM

from the search I made I understood that I must declare the class in a package then put it in WEB-INF/classes. and call it from the jsp page. SO. my class is: package x.com; import java.io.*; [code]public class X { public static void main(String[] args ) throws IOException { File …

Member Avatar for javaAddict
0
664
Member Avatar for billybobc

Hello, When I add a simple <c:set var="foo" value="bar"/> line to my jsp I get the following error: javax.servlet.ServletException: javax/el/ELException org.apache.jasper.servlet.JspServlet.service(JspServlet.java:273) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) root cause java.lang.NoClassDefFoundError: javax/el/ELException java.lang.Class.getDeclaredMethods0(Native Method) java.lang.Class.privateGetDeclaredMethods(Unknown Source) java.lang.Class.getDeclaredMethods(Unknown Source) java.beans.Introspector$1.run(Unknown Source) java.security.AccessController.doPrivileged(Native Method) java.beans.Introspector.getPublicDeclaredMethods(Unknown Source) java.beans.Introspector.getTargetMethodInfo(Unknown Source) java.beans.Introspector.getBeanInfo(Unknown Source) java.beans.Introspector.getBeanInfo(Unknown Source) java.beans.Introspector.getBeanInfo(Unknown Source) java.beans.Introspector.<init>(Unknown Source) java.beans.Introspector.getBeanInfo(Unknown Source) …

Member Avatar for heathersh
0
2K
Member Avatar for guravharsha

Hi everyone I have one we application developed using java,servlet and jsp. i am running it using Apache tomcat server 5.5. When i am running it on my local machine, i am given path as [B][url]http://localhost:8080/student/[/url][/B] where as student is name of application. Now if i require run same application …

Member Avatar for jwenting
0
113
Member Avatar for indu_ss4

Hi Im a newbie of jsp and Im developing a project in jsp. I want a text box that display data from database in the same place when i click a link.all the links are available in a table. Any help appreciated... Thanks in advance, Indu.

Member Avatar for indu_ss4
0
201

The End.