- Strength to Increase Rep
- +3
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
- Interests
- football, pro evolution soccer, books
- PC Specs
- java,ubuntu
[code=Java]public class logout extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { process(request,response); } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { process(request,response); } public void process(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); session.invalidate(); response.sendRedirect("index.jsp"); } }[/code] session is … | |
Re: [CODE=java] public class ElectricityBill { public static void main(String args[]){ current c1=new current(500,"January"); current c2=new current(1600,"February"); c1.print(c1.total,c1.month);//this is the place i wanna know,how to call print() c1.print(c2.total,c2.month); } } [/CODE] I think you should create print method outside of the class | |
Hi !! i faced problem with javascript. When I call function change() it applies only second element that is link2. I wanted when i click the link, the link name must appear to textfield.can anyone help?? here is code: [code=html] <html> <body> <form> <a id="static" href="staticContentAdmin.ioml">link1</a></br> <a id="static" href="staticContentAdmin.ioml">link2</a></br> <input … | |
Hi there .. I have error on my firebug it says:document.getElementById("category") is null Could someone help me?? and i wanted to set the default drop down option [code=html]<html> <head> <script type="text/javascript"> var i = 0; var someValue = '4'; var mySelect = document.getElementById('category'); while(i < mySelect.options.length) { if(mySelect.options[i].value == someValue) … | |
Re: Hi I think you have to use at least sessions because browser sends requests. | |
hello could someone help me with div position This is code: [code=html] <th width="200" scope="col" bgcolor="#666666""> <div class="css" id="myOtherElement"> <span><strong>Menu</strong></span> <div> <a href="#">Menuelement 1</a> <a href="#">Menuelement 2</a> <a href="#">Menuelement 3</a> </div> </div> </th> [/code] css code: [code=css] .css{ position:absolute; left:0px; top:0px; z-index:-1 }[/code] the problem is when i set its … | |
Hello progers There is a big question in my mind I know that now PHP is popular but JSP is also known . . . so can you answer which language will be popular in future | |
Hello , I created link to admin/admin.jsp I want to create a link to index.jsp in admin page Mysite___ |___index.jsp |___admin/ |___admin.jsp |