I tried it out... and it worked, But now, when I tried to put in more code,
I keep getting strange errors. For example, I had an error on the line
'String sOpt = "";'.
Do I need to include some library or so? What am I missing here.
Thanx,
Dinesh, S.
-----Original Message-----
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 12:30 PM
To: [EMAIL PROTECTED]
Subject: Re: "Undefined variable or class name : out"
Dinesh,
You might try changing it from out.println(...) to
System.out.println(...) If it was generated code, I'm not sure what the
intent is, but System.out.println(...) will produce output on the console.
-Richard
At 11:27 AM 8/24/01 +0700, you wrote:
>Hi All,
>
>You might want to check out this tool called Code Charge by Yes Software
>(http://www.codecharge.com). It's quite neat. It is a tool that help you
>build webpages using ASP, JSP, PHP, Perl, ColdFusion.
>
>I used it to generate my ASP codes. When I had decided to switch to PHP, I
>simply had to change the language and regenerate. I must say that the codes
>generated are quite good (for ASP and PHP).
>
>I was using the evaluation copy. However just before my evaluation period
>expired, I had decided to try my hand at JSP. I had generated the JSP code
>but never got to try the result simply because I had not installed TomCat
>yet.
>
>Now that I've installed my Tomcat, I tried to run the code, but seem to
have
>some problems with the connection string setup. I went in to manually
modify
>the code.
>
>I noticed that the code is quite nicely structured. They have written
>segments of the page into functions. I wrote the following code the same
>style as code charge. Can someone verify wether this is good or not, plus I
>keep getting "Undefined variable or class name : out" in the function
>"Test_Show()" at the line "out.println()".
>
>
>Thanx,
>Dinesh, S.
>
>Code Sample-----
>
><%!
>String sAction=request.getParameter("Action");
>String sTest="";
>sTest = Test_Action(sAction);
>%>
><% = sTest %> <% Test_Show();%>
><%!
> String Test_Action(String Action) throws java.io.IOException {
> try {
> switch(Action){
> case "Insert":
> return "Inserted";
> break;
> case "Update
> return "Updated";
> break;
> }
> } catch (Exception e) {
> out.println(e.toString());
> }
> return xxx;
> }
> void Test_Show() throws java.io.IOException {
> out.println("HELLO");
> }
>%>
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets