User Profile

Collapse

Profile Sidebar

Collapse
vinodsk101
vinodsk101
Last Activity: Mar 16 '10, 01:17 PM
Joined: Oct 8 '08
Location: Bangalore
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • On logout disable the back button and expire session

    Hi all,
    I am developing a web application. I am using Servlet and JSP. After logout the user should not able to see the previous pages and page should navigate to loginpage.jsp.
    I have used following code :
    Code:
    <%
    session.invalidate();
    response.setHeader("Cache-Control","no-cache"); 
    response.setHeader("Cache-Control","no-store"); 
    response.setDateHeader("Expires",
    ...
    See more | Go to post
    Last edited by Nepomuk; Feb 16 '09, 09:45 AM. Reason: Please use [CODE] tags

  • Thank you its working.
    See more | Go to post

    Leave a comment:


  • No i am not passing any value. I just declared the function name and method.
    Its just telling object required error.
    Basically i want to add function to all textbox in table.
    Cau you tell me that, whether the code is proper or not!
    See more | Go to post

    Leave a comment:


  • Can we add function to textbox in dynamic table.

    Hi all,
    I am working on Dynamic table.
    I am creating the new row each time by using add button.
    But i in each row i am adding new text boxes, i want to add function to
    these textboxes like onclick="dosome fuction()" like this.
    The code look like this:

    Code:
    function createNewTextBox(){ 
    var myTable=document.getElementById('myTable'); 
    var plastron=myTable.rows.length;
    ...
    See more | Go to post

  • Hi,
    I used this code to populate the select box.

    [code=javascript]var k;
    for(k=1; k<=lastRow; k++)
    {
    var newOption = new Option();
    var x=document.getE lementById('sel Row'+ k).selectedInde x;
    var y=document.getE lementsByTagNam e("option");

    alert(y[x].text+" In for loop has the index of: "+y[x].index);

    newOption.text =...
    See more | Go to post
    Last edited by acoder; Nov 25 '08, 09:51 AM. Reason: A

    Leave a comment:


  • Hi,
    Actually i have a dynamic table, i have add button to table which will add the new row to table, i want all the table values in servlet for my further use.
    i used hidden select box,and i am adding all values to hidden selectbox, but problem is that i am getting only fist value, but if i give more than 2 or 3 rows, i am not receiving all values in servlet.

    But if i use hidden checkbox how can i put all values in single...
    See more | Go to post

    Leave a comment:


  • Hi,

    But if i declare a array in javascript how can i get that array in servlet???
    Is there any way to declare array in javascript/html and same we can use in servlet??
    See more | Go to post

    Leave a comment:


  • Passing variable from javascript to servlet!!!

    Hi all,
    I have one doubt,
    can we pass a variable from javascript to servlet???

    In Brief,
    i am getting some values in javascript through jsp and the same values i
    want in servlet. Ya i know i can get this values in servlet by using request.getPara meter("");
    But thise values are dynamically generated so i dont know how many values will be. so i am planning to put some array list so that i...
    See more | Go to post

  • vinodsk101
    started a topic How to get listbox values in servlet
    in Java

    How to get listbox values in servlet

    Hi all,
    Please help me,
    can any one tell me how to get list box values in servlet.
    i have used :
    Code:
    <Select name="lstProjectmem" size="5" class="txbEnabledText" multiple="multiple" onChange="javascript  isplay(this)"/ >
    <option selected>..........PROJECT MEMBERS..........</option> </select>
    and in servlet i wrote,
    Code:
    String
    ...
    See more | Go to post
    Last edited by acoder; Oct 8 '08, 11:02 AM. Reason: Added [code] tags
No activity results to display
Show More
Working...