This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

transferring 200 params from an applet to a JSP

 
Wally Schnok
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm repeating the question , for me it's a biiiigggg problem :
and I need to find a solution :
I need to generate an HTML page which should contain 200 parameters values passed from my applet .
I thought to create a .txt file to store all the values and than reading them in my .JSP , but I'm using a product that is not only a webserver ( Windchill from www.ptc.com ) and it doesn't work .........
Calling directly my JSP from my applet with all my 200 parameters ( something like http://my_server/my_page?param1=value1�m2=value2&...�m200=value200 ) it seems isn't a solution , because the browser has a limited field for calling a web page ( I made different tests ), isn't it ?
Here's the code I'm using to create and read a .txt file ....
In a normal web page it works well , integrated in my Windchill ambient it does nothing ..... Any suggestions , solutions? Thank you .
public void writingFile(){
try{
FileWriter file = new FileWriter("http://my_server/windchill/attributes.txt");
BufferedWriter buff = new BufferedWriter(file);
buff.write("testing !");
buff.close();
}catch(IOException ex) {
System.out.println("Error ..."
+ ex.toString());
}
}
public void readingFile() {
try{
FileReader file = new FileReader("http://my_server/windchill/attributes.txt");
BufferedReader buff = new BufferedReader(file);
boolean endoftext = false;
while(!endoftext){
String line = buff.readLine();
if (line == null) endoftext = true;
else System.out.println(line);
}
buff.close();
}catch(IOException ex) {
System.out.println("Error ... " + ex.toString());
}
}

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic