%!
static String[] pages = new String[] { "contents.html", "intro.html", "first.html", "need.html", "audio.html", "textbook.html", "software.html", "flashcards.html",
"reader.html", "optional.html", "study.html", "help.html", "conclusion.html"};
static String[] titles = new String[] {"Contents", "Introduction", "First Steps",
"What You'll Need", "Audio Courses", "Textbook", "Software", "Flashcards",
"Reader", "Optional but Useful", "Self Study", "Getting Help", "Conclusion"};
%>
<%
String content = pages[0];
String title = titles[0];
int id = 0;
if(request.getParameter("id")!=null) {
try {
id = Integer.parseInt(request.getParameter("id"));
if(id>0 && id < pages.length) {
content = pages[id];
title = titles[id];
} else {
id = 0;
}
} catch(NumberFormatException e) {}
}
%>
coljac.net - How to Learn a Language
|
|
| (C) Colin Jacobs 2004. Please send comments to coljac at coljac dot net. |
|