Article View: comp.lang.java.programmer
Article #480Embedding Applets in JSP
From: jock
Date: Sun, 07 Jul 2002 08:07
Date: Sun, 07 Jul 2002 08:07
33 lines
2347 bytes
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
Technical Details
Message-ID:
<77a43c6a.0207070007.47c75304@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4be4,2d10bf8db4c250cc,start X-Google-Attributes: gidf4be4,public X-Google-Thread: 10026d,2d10bf8db4c250cc,start X-Google-Attributes: gid10026d,public X-Google-Thread: 10a146,2d10bf8db4c250cc,start X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2002-07-07 01:07:15 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: jockey_sql@indya.com (jock) Newsgroups: comp.lang.java.programmer,weblogic.developer.interest.jsp,borland.public.jbuilder.servlets-jsp Subject: Embedding Applets in JSP Date: 7 Jul 2002 01:07:15 -0700 Organization: http://groups.google.com/ Lines: 33 Message-ID: <77a43c6a.0207070007.47c75304@posting.google.com> NNTP-Posting-Host: 128.46.190.79 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1026029235 32017 127.0.0.1 (7 Jul 2002 08:07:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 Jul 2002 08:07:15 GMT