User Profile

Collapse

Profile Sidebar

Collapse
ajos
ajos
Last Activity: Mar 1 '13, 09:39 AM
Joined: Aug 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ajos
    replied to JSP and Excel
    in Java
    You need to set the content type that displays excel file types, something like this

    Code:
    response.setContentType("application/vnd.ms-excel");
    I think you have to do the disable editing part in your application level(Not sure).

    Google for more information....
    See more | Go to post

    Leave a comment:


  • ajos
    replied to unchecking a checkbox in a visual web jsf page
    in Java
    Err..Nepo this is not related to Swings. Its regarding to jsf components ;)...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to Execute an exe using java code
    in Java
    Did you read this article? JavaWorld...
    See more | Go to post

    Leave a comment:


  • You need javaScript for this, ask this question here in our javaScript forum or do you want the mods to move this thread around?
    Also i would like you to google around for such things, here's what i found.
    google

    regards,

    ajos...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to Digital Clock
    in Java
    Try reading O'Reily's Head First Servlets and Jsp. I dont know whether its the best book around but it certainly helped me ;)...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to REFRESH Problem IN JSP
    in Java
    Im not sure what the actual problem here is, not gone through your code completely yet.


    But by your above statement i think you have a caching problem here.

    Try putting this in right after your <body> tag and see if this helps.
    Code:
    <% response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader
    ...
    See more | Go to post
    Last edited by ajos; Aug 27 '08, 09:49 AM. Reason: too late in replying

    Leave a comment:


  • ajos
    replied to How do i know OS version?
    Hello, I'm a newbie Linux user(Ubuntu) :D. A quick google will give you the answer. google

    Meanwhile the version in ubuntu can be determined in /etc folder in a file called issue. I think the same goes for SuSe too i think :)

    regards,

    ajos...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to Java applet jdbc error [MySQL DB]
    in Java
    Hello, i dont really know what the problem here is, maybe you could expand more here like, a) What the error is. b) What output did you expected and what you get...

    Also never swallow exceptions here. Exceptions are meant to be handled.

    Code:
    static String DBURL = "jdbc:mysql://localhost:3306/users_db?user=****&password=********";
    try {
                
                    try {
    ...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to Hello World trouble
    in Java
    Yes, thats a classpath issue. You need to do a google search on how to set the class path for java. Heres a start google

    and sun docs

    regards,

    ajos...
    See more | Go to post

    Leave a comment:


  • You probably got a classpath issue here. Check whether the classpath has been set properly. Include the jar file in the classpath of your application

    regards,

    ajos...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to jsp and printer
    in Java
    You will need javaScript for that, something like this,
    <A HREF="javascrip t:window.print( )">Click to Print This Page</A>
    or google for javascript print function.

    Edit:- This will work provided your printer has allready been set up.

    regards,

    ajos...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to How to add Servlet package
    in Java
    Servlet.jar and jsp.jar files are found in the tomcats directory or any other web app servers directory and not elsewhere. And nobody puts them in the jdk directory either. Go through a servlet tutorials and find out how to do it.

    regards,

    ajos...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to session.putValue
    in Java
    session.putValu e() works the same way as session.setAttr ibute();.
    Its one and the same, the only difference though is putValue() is deprecated.

    Look Here for more details.

    regards,

    ajos...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to Problems with comma(,) seperator.
    in Java
    Yes its a long standing issue which i think needs to be fixed(or may be rewritten?) considering Java is used widely all around. There is also a related bug if anybody noticed Here.

    regards,

    ajos...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to Problems with comma(,) seperator.
    in Java
    I know this is an old thread, just wanted to point out a bug report which i found today to save others from further searching.Bug

    Hope That Helps,

    ajos...
    See more | Go to post

    Leave a comment:


  • ajos
    replied to JSP Getting Started
    in Java
    I think by validations you mean form validations? I normally do it in the client side as well as in the server side(just to be doubly sure, and thats the way it should be :)). I dont see it as a disadvantage because those are the things a web developer should do, lets say what happens when a ignorant(or any user) turns the javaScript off in the browser? I as a web developer ensure that the user doesnt skip the mandatory things that he needs to fill....
    See more | Go to post

    Leave a comment:


  • How is this "java.lang.Exce ption: ReadAll{0} :no such method exists" this a javascript error? Still i dont know what that means.

    Here's something i found while searching Js Bug

    See if this helps :)

    regards,

    ajos
    See more | Go to post

    Leave a comment:


  • ajos
    replied to Deprication details....
    in Java
    Jos you just replied to thread which is 1.5 years old ;)

    regards :)...
    See more | Go to post

    Leave a comment:


  • Definitely php and javaScript problem here.
    See more | Go to post

    Leave a comment:


  • ajos
    replied to Runtime class.......
    in Java
    Ok so detailed information of Runtime hmm...

    Here goes.....Docs

    JavaWorld(Very imp)

    and Runtime Info

    Read any of these docs, or possibly all :)

    regards,

    ajos...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...