K (Java Servlet
Development kit) - from Sun, a JSP engine, such as GnuJSP (available from
Gnu), and a Serlvet engine for your web-server. Popular ones are JRun
(www.allaire.com) with IIS, or Apache JServ (www.apache.org/jser
your HTML page, your
JSP script would be:
<%
String strShowMe = request.getParameter("showme");
if (strShowMe.equals("true"))
{
// ..process code and output HTML
}
else
{
// do some other stuff
}
%>
Remember, that your HTML form can
> you could try JProbe - I used the evaluation to profile a graphical app in
Java.
> Quite useful but you do have to pay if you want it for longer than the
month.
>
> Also I haven't tried it with servlets, so not sure how well it integrates.
>
> Jari
>
There is another profiler called "Optimize
r way to ActiveX objects. Could anyone explain to me
the advantages and uses of Beans on the server-side? What are the
fundamental differences between Beans, and other Java classes, and when
should one choose one over the other?
Thanks for any information!
John Wh
el free to e-mail me.
John Wheeler.
worked for a servlet class that was called from a
JSP, so I think it should work for normal Java classses as well.
Hope this helps.
John Wheeler
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-IN
As far as I know, yes, but you will
probably need to set up either two IP addresses or use a different TCP/IP
port number for one of the servers (this tends to cause problems with some
firewalls).
John Wheeler
===
To unsub
unc()
{
}
%>
<%
// call
myFunc()
myFunc();
.
%>
For versions less than 1.0, instead of the <%! %>, use
If you do this you need to
pass the implicit objects (out, request, response etc.) as parameters to your
function.
HTH
John Wheeler.
er of a
servlet class. Declaring a class inside a function is not legal Java, hence the
error. You should define your class in a separate Java file and import
it.
Hope this helps,
John Wheeler.
nat="server">
void myFunc( PrintWriter out)
{
out.println("HelloWorld!");
}
You can then call myFunc() from the rest of your script. Remember than the
built-in objects are not available in the function u
e development cycle requiring a server restart if a
class file is modified.
==
I guess the JSP page mechanism is different. The JSP pages are compiled on
the fly to a servlet, and presumably this uses a servlet zone cl
> Dear all,
>
> Does anyone know how we can pass a JavaScript variable into JSP?
>
> For example, when I try to following simple JSP file, it will say that
> jscript_data is not found. Does anyone know how I can achieve this?
> Any help will be greatly appreciate it. Thanks.
>
> Francis
>
e output HTML source for all pages. You probably have a syntax error in
the second page that prevents further output to the browser. If you need
more detailed help, please send/post the source code.
HTH,
John Wheeler.
===
To un
13 matches
Mail list logo