Jump to content
xisto Community

Jack Cheng

Members
  • Content Count

    11
  • Joined

  • Last visited

Everything posted by Jack Cheng

  1. It is nice, but is there any other applicable uses to this other than to irritate your users with crazy, inconsistent, and confusing backgrounds?
  2. Wow, I feel so special - no one mentioned Eclipse as an HTML editor. With WTP, you can code HTML pages in Eclipse, along with other JSP and servlet files. I like it much better because of the tight integration with JSP/servlet development builtin. As for graphics, I use Fireworks. Though I've never used Photoshop, I heard that Fireworks is a much more vector-oriented (graphics don't distort as much when stretched) application.By the way, Notepad is nice too when you just want to make a small adjustment (IE opens the source in Notepad automatically).
  3. I agree, Window's Default FTP is much simpler. For one thing, you don't have to wait for the FTP software to load. Also, you can use the FTP windows as a normal explorer window, making transfers and deletions much simpler.There is a command prompt version of that too (ftp), but I doubt anyone uses that.
  4. It works on the lastest version of Opera, Firefox, and IE. The style property was implemented in all DOM compliant browsers (as in getElementById["id"].style....)
  5. After I read the posts, I wanted to try PostgreSQL. I tried to download it, but all the mirror download links seem to be dead. Did anyone get it to work? If you do, can you post the link that you downloaded it from? Thanks.
  6. The is specific only to HTML. In javascript, it is rendered as is - it is not changed to a space (so the message in the alert box is CENTER! , instead of Center! .
  7. Can you attach the java codes in a file where they are better formatted. It's really hard to read the codes when they are that jumbled.
  8. Check out the WTP 1.0 for Eclipse, which offers web development capabilities to Eclipse. (I don't have the URL, but just do a search on google for it).
  9. You might also want to tell how you compiled the program and tried to run it (i.e. what commands you used, and whether you used the command line or and IDE). In the regards of environment variables, you'll need it if you use just javac or java, without full directory information (such as C:\Program Files\Java\bin\javac). Perhaps the .bat file is trying to set them so that you don't have to do it yourself? As for the classpaths, that is only necessary if you have multiple classes. Then, you'll need to call set classpath=. so that the java interpreter can find the other classes. Hope this helps.
  10. Can you elaborate how what you mean by connecting to web server... like what a browser does, or setting up a web server that supports JSP and servlets. For the "browser" thing, you'll need to use sockets, of which you can find more about from the Java API. For the server, you'll need a servlet compliant server, such as Tomcat. For more information on Tomcat, go to its website (tomcat.apache.com). As for the session, it depends on where you need it. In a JSP, you can just use the implicit object session and call its getAttribute, setAttribute, and removeAttribute methods to modifiy session objects (notice I said objects, so primitive data types don't work). In a servlet, you'll need to first get the session by calling request.getSession() (and this is assuming your servlet is a subclass of HttpServlet, so the request is an HttpServletRequest).
  11. If you want to limit what the user types into the TextArea, you might want to set up a Document listener on the textarea. As such, whenever the user modifies the contents of the textarea, you can perform some type of validation on the content. An example of DocumentListener implementation follows:public class docListener implements javax.swing.event.DocumentListener { public void insertUpdate(DocumentEvent evt) { validate(evt); } public void removeUpdate(DocumentEvent evt) { validate(evt); } public void changedUpdate(DocumentEvent evt) { validate(evt); } // extra methods public void validate(DocumentEvent evt) { if (evt.getLength()>=4) { // alert user } } }
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.