- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
7 Posted Topics
Re: Hi Albert, We wil use Radio button for single selection, so we need to use same id/name for that buttons. If we have other catogery radio buttons then we can use other id/name. Use same name to both inputs then u will get single value. example : <input type="radio" name="subs" … | |
Re: Hi, In the above code the logic is they divided the give number by 2 and again checking the condition by modulo 2 its not correct . Gust we can check the condition by modulo 2 with the given number as i mentioned below. //if result has no remainder print … | |
Re: Hi newbeejava, This is the JSTL code to populate the combobox .... [code]<select id="day" name="day" > <c:forEach var="daylist" items="<%=JdbcQueryBean.result()%>"> <option value='<c:out value="${daylist}" />'><c:out value="${daylist}" /></option> </c:forEach> </select>[/code] | |
Re: Hi Koushik, Below code is to set the session [B]//This code goes in server side (servlet).[/B] [code]HttpSession session = request.getSession(true); //create a session object session.setAttribute("key", "value"); [/code] [B]//This code goes in client side (jsp).[/B] [code]// this will return the value in session String value=(String) session.getAttribute("key"); [/code] After getting the session … | |
Re: Hi Raul, This is the code to set and get the values from vector variable, [code]Vector<String> vcountry =new Vector<String>(); // <E> Element type of Vector e.g. String, Integer, Object ... // add vector elements vcountry .add("country 1"); vcountry .add("country 2"); vcountry .add("country 3"); for(int i=0;i<vcountry .size();i++) // This loop is … | |
Re: Hi siva, For this u need to check weather session object (which u created) is null or not if it is null then u need to redirect to login page. I am giving some example: [B][U] this is in server side code ..[/U][/B] [code]HttpSession session=request.getSession(false); //here u are geeting the … | |
Re: JavaScript is a programming language Ajax is shorthand for "Using JavaScript to send or receive information to/from a webserver without leaving the current page" jQuery is a library of functions (written in JavaScript) that perform some commonly desired things so that author's don't need to reinvent some common wheels. |
The End.