Search:

Type: Posts; User: Lord Voldemort

Page 1 of 2 1 2

Search: Search took 0.18 seconds.

  1. [SOLVED] Re: Is this possible? (regarding beans and JSP)

    Yes, it's possible.

    The error was occurring because I didn't put the bean in a separate package.
  2. [SOLVED] Re: What do I need to do to use a bean in Netbeans 7 apart from defining it?

    Thanks a lot dlorde. Putting the bean in a package made it work. It's not necessary for class names to start with uppercase letters though.
  3. [SOLVED] What do I need to do to use a bean in Netbeans 7 apart from defining it?

    Hi!

    I'm learning to use beans in JSP and from what I've gathered all I'm required to do is to create a class with appropriate constructor and getter-setter functions and specify it's name as value...
  4. [SOLVED] Is this possible? (regarding beans and JSP)

    Hi!

    Is it possible to have a setProp(arg) function in class definition but no member called "prop". I intend to use this function to do something else when a JSP tries to set "prop" to particular...
  5. Replies
    4
    Views
    532

    Re: What is wrong in the code

    Try

    String strQuery = "select * from transaction;";

    instead of

    String strQuery = "select * from transaction";

    in the try block.
  6. [SOLVED] Re: How to compare a parameter value to a string literal inside EL?

    Thanks, single quotes worked. It had got into my head that single quotes were only for enclosing characters.
  7. [SOLVED] How to compare a parameter value to a string literal inside EL?

    Hi!

    How do I compare value of a parameter to a string literal inside an EL which is the value of "test" in "c:if" or "c:when"? I want to check if parameter "p" is a string "yes" but

    <c:when...
  8. Replies
    1
    Views
    1,916

    [SOLVED] Re: How to use JSTL 1.1 in NetBeans 7?

    Nevermind, it's working after restart.
  9. Replies
    1
    Views
    1,916

    [SOLVED] How to use JSTL 1.1 in NetBeans 7?

    Hi!

    I've written a JSP which uses JSTL's core library.
    The directive
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> wouldn't compile correctly and reported that it could not...
  10. Re: Form using JDBC works in Netbeans but ClassNotFoundEx when called from HTML doc.

    Forget it then. Thanks a lot anyway for your time.
    Cheers!!
  11. Re: Form using JDBC works in Netbeans but ClassNotFoundEx when called from HTML doc.

    Can you tell from the screenshot if I've opened the right console?
  12. Re: Form using JDBC works in Netbeans but ClassNotFoundEx when called from HTML doc.

    Maybe I was looking at the wrong console. Is the console something that has to be installed as an add-on separately?

    Your post does remind me of something though. I think in windows you get an...
  13. Re: Form using JDBC works in Netbeans but ClassNotFoundEx when called from HTML doc.

    Thanks Norm and copeg for your opinions. I too suspect a permissions issue.
    I enabled "show java console" in the sun java 6 plugin control panel and opened the web console in firefox browser,...
  14. [SOLVED] Re: How to run an example servlet? Using- Netbeans7 & Tomcat6, OS=Ubuntu 10.10, linux

    Thanks copeg! I don't understand what is meant by "path defined by the deployed jar". How is it determined?

    Forget about Netbeans. (Instead of trying to run individual java files, running the...
  15. Form using JDBC works in Netbeans but ClassNotFoundEx when called from HTML doc.

    Hi!

    I'm learning java and facing this weird situation. I've written a JApplet form which accepts data and passes them as a parameter to another class' constuctor. This another class uses JDBC to...
  16. [SOLVED] How to run an example servlet? Using- Netbeans7 & Tomcat6, OS=Ubuntu 10.10, linux 2.6

    Hi!

    I'm learning to use servlets using Netbeans7 and Tomcat6 on a linux machine(Ubuntu 10.10). I have created a user in tomcat with manager,admin,tomcat and role1 roles. I added the Java EE 6 API...
  17. [SOLVED] Re: What kind of object instantiation is this?

    I found this tutorial on Generics.
    Thanks Norm.
  18. [SOLVED] What kind of object instantiation is this?

    Hi!

    I'm new to Java and I was reading up about SwingWorker when I came across this code.


    SwingWorker worker = new SwingWorker<ImageIcon[], Void>() {
    @Override
    public ImageIcon[]...
  19. [SOLVED] Re: Can anyone mail me an e-book on Swings?

    Thanks a lot helloworld922!

    That was exactly what I was looking for.
  20. [SOLVED] Re: Can anyone mail me an e-book on Swings?

    Looks like I figured it out. Just clicked on the tiny "+" beside "generated code". I don't really need any book now but it'd be great if someone could recommend a good book.
  21. [SOLVED] Can anyone mail me an e-book on Swings?

    Hi!

    I'm a student learning Java. I have the complete reference by Herbert Schildt. I've read the chapter on Swings in it and it doesn't contain much of what I need to know. For example if I need...
  22. [SOLVED] Re: Read double from console without having to read a string and converting it to dou

    Thanks a lot Mrc0d3r and Norm.
  23. [SOLVED] Read double from console without having to read a string and converting it to double.

    Is there a stream class with a method that would allow reading double value from console without having to read strings (as in BufferedReader, Scanner) and code explicitly to convert it to a double...
  24. Replies
    7
    Views
    2,496

    [SOLVED] Re: Read double value from console

    How do I read the API doc? This program worked when I wrote it a few months back. It might have worked with DataInputStream (it's commented out now) but I can't be sure or else I wouldn't have posted...
  25. Replies
    7
    Views
    2,496

    [SOLVED] Re: Read double value from console

    I've got a working example of Scanner but I'm trying to remember how this program worked.

    Details about "doesn't work":

    There's no error on compilation. On running, "Enter " is not displayed...
Results 1 to 25 of 26
Page 1 of 2 1 2