🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.java.programmer
1 messages
1 total messages Started by jock Sun, 07 Jul 2002 08:07
Embedding Applets in JSP
#480
Author: jock
Date: Sun, 07 Jul 2002 08:07
33 lines
2347 bytes
Hello all,

I have an unusual requirement . Part of my Java applet has parameters
like this.
I am embedding this java applet into a JSP page

<< portions of applet reproduced below>>
VALUE = '
Param1                 = "Multiple Bars and Lines Combo";
Param2              =  "test0"
Param3             = "test1";
Param4            = "test2";
Background            = ("Some string1","Some string 2",12,2);
HeaderBox             = (null,NONE,5,null,TILE,black);
Legend                = ("",black,"SansSerif",10,0);
Goes on and on and on . Very big
>>

I dont want to write it in my JSP page as it would become very big. I
have 2 or three applets.
But making a JAva class to return this applet string is posing to be a
problem. This is because of a large number of characters like Comma,
Semicolon, brackets.
which will give an error if i compile. Of course, i can write escape
characters. I will be having several hundred escape characters.

Anyone have a solution to this?. How can i return the applet
definition as a string to my JSP form?. Note that some parameters may
change as i have to embed more than one applet. Can i store this as a
string somewhere and return this back  with a few parameters changed?.
I ampassing parameters to the applet froim my JSP page.

Thanks, very much in advance
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads