User Profile

Collapse

Profile Sidebar

Collapse
VigneshMohan
VigneshMohan
Last Activity: Apr 14 '09, 03:32 AM
Joined: Apr 4 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Great ...

    I need one more clarification

    If I give like this

    Code:
    String aStringVariable = "welcome";
    String test = "sample"+aStringVariable+"sample2";

    What will the compiler do...?
    If we give constants how the compiler interprets internally?

    One more Doubt.

    StringBuffer is Synchronous and StringBuilder...
    See more | Go to post

    Leave a comment:


  • Hi
    JosAH

    But appending a string using " + " will create a new string object right

    Which all cases will create a new string object with the use of + ?

    Will all the different arise only when we use threads?

    In other cases are these all same. ?
    -
    Thanks
    Vignesh.M...
    See more | Go to post

    Leave a comment:


  • StringBuffer replacing String for memory Issues Help!!

    Hi All

    I wanted to replace the String Concatenation using " + " with a string buffer to eliminate performance hogs.

    I have a string

    String str = "Testing "+ firstStrVariabl e + "NextTest" + secondStringVar iable + "ThirdTest" ;

    Is it worth replacing the String in this case with StringBuffer and StringBuffer.Ap pend

    Any Suggestions pl post...
    See more | Go to post

  • VigneshMohan
    replied to How to Retain the UserName text box ?
    in Java
    Hi

    Is using sendRedirect the cause of problem?

    Hoe to do the forwarding from my java code...

    Which class gives the method of "forwarding " instead of redirecting?

    -
    Thanks for the help

    Vignesh.M...
    See more | Go to post

    Leave a comment:


  • VigneshMohan
    replied to How to Retain the UserName text box ?
    in Java
    I redirect to my login page using ServeletActionc ontext.getRespo nse.sendRedirec t("loginPage" );
    from my java class

    How to set the attribute of h here ..

    My loginpage is a jsp file..called login.jsp from there i can get my attribute as request.getAttr ibute("h"); but i couldn get u where to set it...

    I am new to Web
    Thats why

    -
    Vignesh.M...
    See more | Go to post

    Leave a comment:


  • VigneshMohan
    replied to How to Retain the UserName text box ?
    in Java
    Hi ,

    Always the response.getPar ameter("ANYItem "); is returning null
    For example i have a hidden field Its name is"h" and id is "h"

    i give request.getPara meter("h");

    It always returns me NULL

    What could be the reason... If that had worked i would ve solved my issue but that failed ... What could be the reason for the returning of NULL value in...
    See more | Go to post

    Leave a comment:


  • VigneshMohan
    replied to How to Retain the UserName text box ?
    in Java
    Can anyone help me out in this issue

    I ve got only one response so far...

    Is it impossible in JSP?

    Can anyone get me a method to get the prevoius POST values as we get in php and ftl or so

    Pl help me out

    -
    Vignesh.M
    See more | Go to post

    Leave a comment:


  • VigneshMohan
    replied to How to Retain the UserName text box ?
    in Java
    I do whatever you said ... In php we have a coding option like
    <code>
    <input type="text" name="username" value="<?php echo @$_POST['username']; ?>" />
    </code>

    There is some option in FTL also

    Is there any option in JSP files to get back the post values like the above code in php where we get the value of the post...

    Did you get...
    See more | Go to post

    Leave a comment:


  • VigneshMohan
    VigneshMohan posted a Visitor Message for Markus
    can u help me outin java jsp and js?I ve posted a qn in java topic.. can u help me?
    See more | Go to post

  • VigneshMohan
    started a topic How to Retain the UserName text box ?
    in Java

    How to Retain the UserName text box ?

    Hi All

    I am new to JSP Js and Web

    I need to retain my Username text in my text box when the user types the Wrong username and password

    I tried several methods.. I didn get the solution.. I finally sent the username in url to get it back

    Is there a way to retain the username text after the data being posted?

    Please suggest me some details and examples..

    Thanks...
    See more | Go to post

  • VigneshMohan
    started a topic How to Retain the UserName text box ?

    How to Retain the UserName text box ?

    Hi All

    I am new to JSP Js and Web

    I need to retain my Username text in my text box when the user types the Wrong username and password

    I tried several methods.. I didn get the solution.. I finally sent the username in url to get it back

    Is there a way to retain the username text after the data being posted?

    Please suggest me some details and examples..

    Thanks in Advance...
    See more | Go to post
    Last edited by debasisdas; Apr 6 '09, 07:09 AM. Reason: question moved to javascript forum
No activity results to display
Show More
Working...