3,760 Topics

Member Avatar for
Member Avatar for localp

I have a List <Food> , which contains values such as food_id, food_catergory, food_detail etc. There is a java file call 'Event.java' it contain the List <Food> as a variable. Now there's a JSF page called event.xhtml. I need to print all the items in the List<Food> in a table …

0
55
Member Avatar for bhanu1607

Hi, Can any one tell me, can i use a value in the entire site? That means, i need to use that value out site project in the same site. Please help me. i got a value in my jsp page, need to forward that value into a different war …

Member Avatar for jwenting
0
132
Member Avatar for rbhavana

Hi all, I have 2 JSP Pages, page 1 contains attachment button for (attachment to be uploaded) and Done button for navigating to second JSP page. Currently Done button is not wait for the attachment to be uploaded .When user clicks on Done Button if attachment is in processing I …

Member Avatar for peter_budo
0
91
Member Avatar for recawo

I am doing a project title "video chat" on web based application. Is there any java framework available to access webcam ?

0
51
Member Avatar for ttchiwandire

Hie good friends! I have got a Jsp form for creating a database record for students. The form has got a drop down box for Countries, but the countries are too many that a user may spend a lot of time scrolling to locate his/her country. The drop down is …

0
49
Member Avatar for anand01

hi friends, This is Anand, am beginner to jsp, now am trying to connect jsp with mysql. Is this possible to code connection code separately and include each and every page. am trying the following code.I code these lines in separated.and I want to use it other pages.at the same …

Member Avatar for anand01
0
138
Member Avatar for josiefrut

Hi there guys! I've been stuck with this problem for quite a while now. I wanted to create a jsp which would upload files to sql database. I've used this code for my upload_page.jsp: [CODE] <%-- Document : upload_page Created on : Mar 6, 2011, 11:01:40 PM Author : Administrator …

Member Avatar for josiefrut
-2
471
Member Avatar for thjchhu0ngthu
Member Avatar for jwenting
0
132
Member Avatar for winecoding

I have implemented a jetty-based servlet under eclipse.It runs fine under eclipse. Right now, I need to deploy it as a Web application. I would like to know the procedures of transplanting these java programs from Eclipse to a real Jetty-based web application. The system is a Linux box. Thanks.

Member Avatar for peter_budo
0
106
Member Avatar for Dean_Grobler

Hi there, The thread title pretty much says it all. How exactly do you send data to, and from portlets? Does it have something to do with the RenderRequest and RenderResponse objects? I haven't a clue... There's hardly any information on the net regarding portlet development, very frustrating. Thanks in …

Member Avatar for peter_budo
0
111
Member Avatar for manish250

hello all i have a tgz file on the system.Now i want to download it in my jsp page.but i have not any idea how to do it. currently i am downloading the text file in jsp using following code [CODE]response.setContentType("Text/html"); response.setHeader("Content-Disposition","attachment;filename="+strFileName+""); [/CODE] please help.....

Member Avatar for manish250
0
153
Member Avatar for reezox

i try to change this scrip into jsp but i stuck at switch statement - switch ($_GET['action'].. Please someone help me.. (T_T) [B]menu.php[/B] [ICODE]<li><a href="index.php?action=home">Home</a></a></li> <li><a href="index.php?action=aboutus">About Us</a></a></li>[/ICODE] [B]index.php[/B] [ICODE]<td width="20%" valign="top"> <?php include ('menu.php'); ?> </td> <td width="85%" valign="top"> <?php switch ($_GET['action']){ case 'aboutus': include 'aboutus.php'; break; case 'home': …

Member Avatar for reezox
0
141
Member Avatar for pankajagar2002

Hi, I want to avoid the addition of the <tr> tag when i am rendering the following code in struts2. [code]<s:textfield name="students[#stat.index].lastName" /> <s:textfield name="students[#stat.index].firstName" /> <s:textfield name="students[#stat.index].userName" /> <s:textfield name="students[#stat.index].userPassword" />[/code] textfield tag will add <tr> tag before each row. I want to avoid the addition of this tr …

Member Avatar for javaAddict
0
100
Member Avatar for arshi9464

i am having problem in this code, i have written //ERROR, where i am getting error.... PLEASE HELP BASICALLUY, WHAT I AM DOING IS:- I HAVE A GENERATE AND OK BUTTON, WHENEVER I CLICK GENERATE BUTTON, A NEW SET OF INFO IS RETRIEVED FROM THE DATABASE AND THE TEXT FIELDS …

Member Avatar for javaAddict
0
172
Member Avatar for manish250

hi i have a jsp page in which there is three radio button one is for dropdown list,another is for text field and last is for File field.What i want is when someone select dropdown list other two fields should be blanked and disabled.and when i select file field then …

Member Avatar for twiss
0
222
Member Avatar for lecoqsportif

Hi there!!! I am new here and new student. I got a question here. If I want to detect whether there is an illegal charater(inside red) - other than what is provided now. how do i have to do it? Thanks in advance. [CODE]<html> <body> <% for (int i=0;i<5;i++) { …

Member Avatar for javaAddict
0
62
Member Avatar for samarinder

I am stuck in quite a tricky problem, That is - My session which contains username is getting invalidating on page refresh in Firefox Mozilla. Same is working fine in IE-9 I am pasting the code of both header and index.jsp file. [U][B]Header.jsp[/B][/U] [CODE] <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%@ taglib …

Member Avatar for samarinder
0
1K
Member Avatar for leeRH

Hi I'm new to JSP and am having a right battle with session scope. Here's what I'm doing: I have created a class with some variables and methods. As I want to be able to access the contents of my created object in other pages, I have instanciated my class …

Member Avatar for kumarvishal_vk
0
295
Member Avatar for Glanet

hi i have validated some fiels in jsp using useBean . But am nt able to get the values into another page.can anyone help me.This is my code. jsp file [CODE] <%-- Instantiate the form validation bean and supply the error message map --%> <%@ page import="com.mycompany.*" %> <jsp:useBean id="form" …

0
53
Member Avatar for OnnDay

Hi everyone. I'm using Tomcat 7.0.8 I have created servlet, which loads image to "webcontent\pic" folder of my project. Then I need to display this image. The servlet works, but with only restriction: i need manually refresh content of project, or directory (I'm using Eclipse). Otherwise ugly cross will be …

Member Avatar for OnnDay
0
166
Member Avatar for anandhikrishnan

Hi All, I have three combo boxes in a jsp file in a form. After i select valus for the three combo boxes I click search button which is a submit button, on submit the corresponding action file is called, there I can get the values by request.getparameter("name"); I just …

Member Avatar for javaAddict
0
93
Member Avatar for arshi9464

i making a system, in which at max 10 users can login and work independently. But the problem is that when a user logs out, i am just redirecting him to the login page, i want to end that session, so that IF HE CLICKS ON THE BACK BUTTON, HE …

Member Avatar for javaAddict
0
81
Member Avatar for arshi9464

i have made a jsp page, in which:- 1) I HAVE CERTAIN TEXT FIELDS 2) AN OK BUTTON 3) A GENERATE BUTTON. The problem:- When i click on generate button, info from database should get filled in the textfields. How can i do this?

0
86
Member Avatar for josiefrut

Hi guys! Been spending 2 days for this problem. Im having this error message whenever i run the program in netbeans6.9.1, [QUOTE]org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'net.sourceforge.jtds.jdbc.Driver' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136) at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880).... ...[/QUOTE] The was working fine not until i tried exploring iReports 3.7 and creating a classpath (in iReports) …

0
67
Member Avatar for gsting_88

Here are the picture.. [IMG]http://img830.imageshack.us/img830/6774/chequea.jpg[/IMG] [CODE]<jsp:useBean id="chequeStopBean" scope="session" class="my.com.infopro.ibank.ui.bean.ChequeStopBean"/> <jsp:useBean id="labelBean" scope="session" class="my.com.infopro.ibank.ui.bean.LabelBean"/> <jsp:useBean id="lang" scope="session" class="my.com.infopro.ibank.ui.bean.LanguageBean" /> <%@ page language="java" import = "java.util.*" errorPage="" %> <%@ page import="my.com.infopro.ibank.dto.ChequeDTO"%> <% request.getSession(true); String contextPath = request.getContextPath(); chequeStopBean.queryAccList(); //RequestDispatcher dispatcher = null; %> <html> <head> <title><%=labelBean.getLabel("STOP_CHEQUE")%></title> <meta HTTP-EQUIV="Pragma" content="no-cache"> <meta HTTP-EQUIV="Expires" content="-1"> …

Member Avatar for gsting_88
0
271
Member Avatar for anushr

can I know how to access the databse from jena using tdb and arq..am unable to get the resultsetformatter in jsp..the code runs perfectly in java,but i encounter problem in jsp... [CODE] String s = "" + "PREFIX dc: <http://purl.org/dc/elements/1.1/>" + "PREFIX skos:<http://www.w3.org/2004/02/skos/core#>" + "SELECT ?s " + " { …

0
52
Member Avatar for kimpham

Hi All, I have the hidden field defined as: <form method="post" name="userform" id="userform"><input <input type="hidden" id="movieIdHidden" name="movieIdHidden"></input> .... When the form is reload I set this field as document.userform.movieIdHidden.value=1000; In the JSP I read this value as: string strmovie3 = request.getParameter("movieIdHidden"); // convert to int int movie3 = parseInt(strmovie3 ); …

Member Avatar for masijade
0
118
Member Avatar for manish250

hello all I am having a problem when i download the files from the browser there are 2 blank lines on top and 2 blank lines in the last.while in the original file on the system there is no blank line.Code is as follows Thanks in advance [CODE]<jsp:useBean id="campaign" class="com.cellebrum.campaginManager.hourlyMIS" …

0
119
Member Avatar for gsting_88

First page & second page refer attachment!! I have success validate the new limit cannot exceed 2000 for 3rd Party Transfer. Coding for first page !! -------------------------- [CODE]<jsp:useBean id="labelBean" scope="session" class="my.com.infopro.ibank.ui.bean.LabelBean" /> <jsp:useBean id="txLimitMaintBean" scope="session" class="my.com.infopro.ibank.ui.bean.TxLimitMaintBean" /> <jsp:useBean id="lang" scope="session" class="my.com.infopro.ibank.ui.bean.LanguageBean" /> <%@ page import="java.util.Iterator"%> <%@ page import="my.com.infopro.ibank.dto.TxLimitMaintDto"%> <%@ page …

0
81
Member Avatar for Dmith
0
41

The End.