User Profile

Collapse

Profile Sidebar

Collapse
davidr69
davidr69
Last Activity: Nov 28 '08, 05:38 PM
Joined: Nov 28 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • davidr69
    started a topic instantiating objects in servlets
    in Java

    instantiating objects in servlets

    I am completely new to servlets. I have an extensive programming background (C, C++, assembler, PHP, python, javascript, others) and I am trying to get into servlet programming. I have done several jsp's and small java apps, and I have code that works both as a java app and as a jsp:

    Code:
    class foobar {
            int x = 0;
            public void foobar() { }
    }
    
    public class mytest {
            public static
    ...
    See more | Go to post

  • davidr69
    replied to Javascript vs JSP
    in Java
    re: Javascript vs JSP

    I see a big problem with the code. The jsvar is a variable within your browser:

    var jsvar=monthNum;

    Only your browser understands what jsvar is, but then you are trying to use it within your jsp, which basically gets compiled into a servlet and is only known to you app server (e.g. Tomcat). You cannot do this:

    String jspvar="<script >document.write ln(jsv...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...