systemblue
New Member
I am relatively new to JSP and HTML. I am asked to make a GUI for some project of mine that was in Perl. However, I ma having a problem with the containers.Basically, each container displays the results read from a file in the form of radio buttons. It was working fine but suddenly, one of the containers started to disappear. Any help would be greatly appreciated. Thanks in advance \[code\]<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.io.*, java.net.*"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Bi-Grams</title> <style type="text/css"> body {background-color:white;} h3{color:black} </style> </head> <body> <h3>Tri-Grams of 13th Jan 2013 USA</h3> <div id="content1" style="background-color:#EEEEEE;height:400px;width:400px;overflow:auto;border:2px solid;"> <form> <% int i=0; String line = null; String []line_parts; request.setCharacterEncoding("UTF-8"); FileReader fis = new FileReader("/home/jones/testing/trigram-topics-13th.txt"); BufferedReader br = new BufferedReader(fis); while(br.readLine() != null){ %> <input type="radio" name="event_number" value="http://stackoverflow.com/questions/15542639/<%out.println(i);%>" > <% line = br.readLine(); line_parts = line.split(" "); out.println(line_parts[0]); %> <br> <% i++; } br.close(); %> </form> </div> <br/> <h3>Tri-Grams of 14th Jan 2013 USA</h3> <div id="content2" style="background-color:#EEEEEE;height:400px;width:400px;overflow:auto;border:2px solid;"> <form> <% request.setCharacterEncoding("UTF-8"); fis = new FileReader("/home/jones/testing/trigram-topics-14th.txt"); br = new BufferedReader(fis); while(br.readLine() != null){ %> <input type="radio" name="event_number" value="http://stackoverflow.com/questions/15542639/<%out.println(i);%>"> <% line = br.readLine(); line_parts = line.split(" "); out.println(line_parts[0]); %> <br> <% i++; } br.close(); %> </form> </div> </body></html>\[/code\]