3,747 Topics

Member Avatar for
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
138
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
171
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
219
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
285
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
270
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
115
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

Dear guys how can we develop complete mail server from jsp

0
41
Member Avatar for georgeskayal

i am new and i need to call from a push button (in forms builder ) a report that i had made it using report builder thanks in advance

0
48
Member Avatar for kalpanaSankhya

Hello All Im new to JSF, I want to pass Parameters to a method in <h:outputText> is it possible? If yes, how can i...? I dnt want to use CommandLink or CommandButton.

0
41
Member Avatar for shivarocks

hello sir, i am new to jsp and i have to use jsp mail in my project and i got a jsp mail script but unfortunately it is showing error like this one! 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 f10sm3473193anh.25 i am using smtp server:smtp.gmail.com and there …

Member Avatar for Phucok88
0
212
Member Avatar for ronnieaka

i have a form, on which after i click submit, i want the existing elements to get cleared off , ie, all those form fields and button to be cleared, and the result i wanna display be displayed kind of like clrscr() in c++. is there anything in JSP or …

Member Avatar for javaAddict
0
983
Member Avatar for arshi9464

I am working on a project that has 2 persons. The first person acts as a receptionist and the 2nd as the boss. Whenever there is someone to meet the boss, i want the request should directly go onto boss's system WITHOUT THE USE OF ANY database. What could be …

0
71
Member Avatar for rdhiravani

Hi, My homepage of website contains periodic ajax requests, due to which the session does not time out. Referring to [URL="http://ajaxpatterns.org/Timeout"]http://ajaxpatterns.org/Timeout[/URL] I decided to use timer and event (like mousemovement etc.) to check whether user is active or not and thus invalidating session after inactivity for 'certain' time. To set …

Member Avatar for rdhiravani
0
57
Member Avatar for kalpanaSankhya

hello all, can any one please help me in iterationg and printing values in a map\ thanks in advance

0
42
Member Avatar for Eric Cute

Hi everyone, Im trying to download all files in a directory residing in the server to clients pc. I know how to download single files using response.getoutputStream(). My problem is I want to download ALL the files in that directory with a single click of a button. i tried iterating …

0
96
Member Avatar for Eric Cute

Hello Everyone, Im needing a bit of help here. First, Im trying to let client download a file from server and save it on client's pc. When client clicks on button "DOWNLOAD", it will call a servlet that will download the file. Expected outcome is that a SAVE AS DIALOG …

0
128
Member Avatar for aldm

Hi, I would rather search on google, but I have a little time, so I need to do this very quickly. Can anybody tell me how to step-by-step configure web work java framework. I downloaded version 2.2.7? What should I do to use it on my computer? I have installed …

0
71

The End.