Solved

how to save a http file to server

Posted on 2006-06-19
1
235 Views
Last Modified: 2013-11-24
let say i want to save http://www.experts-exchange.com/Web/Web_Languages/JSP/askQuestion.jsp
to c:\askQuestion.jsp using jsp
0
Comment
Question by:aaaaaa
1 Comment
 
LVL 27

Accepted Solution

by:
rrz earned 50 total points
ID: 16939354
Can you use JSTL ?
<%@ page import="java.io.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:import  url="http://www.experts-exchange.com/Web/Web_Languages/JSP/Q_21892028.html" var="page" />
<%
   FileWriter fw = new FileWriter(new File("c:\\askQuestion.jsp"));
   fw.write((String)pageContext.getAttribute("page"));
   fw.close();
%>
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
countAbc challenge 9 60
netstat -ano | find "8000" and taskkill /f /pid 2984 3 56
egit plugin on eclipse 8 62
login jsp example 24 47
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question