Solved

how to save a http file to server

Posted on 2006-06-19
1
233 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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now