No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
6 Posted Topics
Generally if we use <form action = "process.php">, this means that after the form is submitted, it will be processed to the file process.php in the directory. Mean while, in JSP, what is the meaning of <form action="<c:url value="/main"/>"> ? Because in the directory there is no main file or … | |
Hi, what is the meaning of the code shown below? <jsp:include page="/exec/employeesList"/> Because usually include is like this include("a.php"), this means the page include the a.php page. But the jsp include is different, it doesn't show any extension like .jsp or .jav or .html. so where does it include? is … | |
Re: what is the SaveSnapshot() method????? | |
[code]import java.awt.*; import java.applet.*; import java.util.Scanner; import java.io.*; public class SuperSaver extends Applet { TextField inputField; Button saveButton; Button clearButton; Label titleLabel; public void init() { setLayout(null); titleLabel = new Label("Super saver"); titleLabel.reshape(260,20,80,30); add(titleLabel); inputField = new TextField(); inputField.reshape(100,60,400,100); add(inputField); saveButton = new Button("SAVE"); saveButton.reshape(100,175,70,30); add(saveButton); clearButton = new Button("CLEAR"); … | |
Re: you can read by using scanner and write by using printstream to read from file save.txt: Scanner in = new Scanner(new FileReader("save.txt")); System.out.println(in.nextLine()); to write to file save.txt: PrintStream out=new PrintStream(new FileOutputStream("save.txt")); out.println("i want to save this file"); |
The End.