?
Solved

how to save a http file to server

Posted on 2006-06-19
1
Medium Priority
?
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 28

Accepted Solution

by:
rrz earned 200 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
A solution for Fortify Path Manipulation.
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.
Suggested Courses

770 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