• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

transferring 200 parameters from an applet to a JSP

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ? 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());
}
}
 
The City calls upon her steadfast protectors. Now for a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic