3,760 Topics

Member Avatar for
Member Avatar for lalyahyan

good day could anyone solve this error ??? it occurs in the below code for (int i = supportedLocales.length-1; i >= 0; i--) { %> <a class ="langChangeOn" onclick="javascript:document.repost.locale.value='<%=supportedLocales.toString()%>';<%= session.setAttribute("userId",supportedLocales.toString())%> ; document.repost.submit();"> <%= supportedLocales.getDisplayLanguage(supportedLocales)%> </a> &nbsp; <% } } %> any support is highly appreciated

0
43
Member Avatar for vinaysrk

when i login the page then it navigate to the home page and when i logout then i came back to the login page, the problem is that when i click the back button in the browser then the page navigate to the home page without login it..

Member Avatar for anand01
0
53
Member Avatar for alex8206

I have created a home page with a division in which 2 other JSP pages are to load. The validations fire properly when I lauch those 2 pages seperately. The problem is, validations arent working when they load within the first page. How can I solve this? Should i write …

Member Avatar for Taywin
0
186
Member Avatar for teddy_kul

[CODE]<% String Username = request.getParameter("USER_ID"); String Password = request.getParameter("USER_PASS"); String Mobile = request.getParameter("Mobile"); String Address = request.getParameter("Address"); String sql = ""; { int LoaiSubmit; String DriverName; String connectionURL; Connection con; Statement stmt; LoaiSubmit = 0; LoaiSubmit = Integer.parseInt(request.getParameter("LoaiSubmit")); DriverName = "oracle.jdbc.driver.OracleDriver"; connectionURL = "jdbc:oracle:thin:@"; con = null; stmt = null; …

Member Avatar for peter_budo
0
143
Member Avatar for kiranShankar

sir -- i wrote in the jsp for remving junk character from the application [code]<% request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=UTF-8"); %>[/code] but still some page show the junk character what should i doo...

0
63
Member Avatar for m1051f

I am currently at this URL localhost:8080/Test/students/Steve The page from that URL displays some info about Steve and a link that goes to teachers. [CODE]<a href="teachers/all">Click to view all teachers</a>[/CODE] When I click the link it goes to localhost:8080/Test/students/teachers/all I want localhost:8080/Test/teachers/all How can I do that? I managed to …

0
124
Member Avatar for ali143810

hi i want to do valiation of text area and database in one of my project the main thing i in database and that values i stored in arraylist and in jsp i used that list object in jsp after that i am not getting how to compare the values …

Member Avatar for peter_budo
0
68
Member Avatar for sherinwip

Hello there, Can any one please tell if it is possible to create user defined methods inside a servlet and call the appropriate one as in when required??

0
31
Member Avatar for vaitalaziz

Hi… I’m looking for any popup calendar like where I may select previous, present or future date like “datetimepick” to include in my jsf page. But I’m failure to do it. So here I’ve attached code of my project to show where I need to add to run calendar properly. …

0
82
Member Avatar for IIM

Can anyone tell me how can we perform code analyze using PMD or Checkstyle during develop time.... I want to know it so as instead of checking at the last for bugs,i can correct them as soon as i find it. I searched in google and there i found a …

Member Avatar for peter_budo
0
93
Member Avatar for Peter Hon 123

In the following code, there exist items="${message}". I know it is EL. But I cannot find out where "${message}" is came from . Please help. Thanks. [CODE]<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> <%@ taglib prefix="spring" uri="/spring" %> <%@ taglib prefix="z" uri="/WEB-INF/tag.tld" %> <%@ page language="java" contentType="text/html; …

Member Avatar for peter_budo
0
147
Member Avatar for jaykool74

Using NetBeans IDE 7.0.1 with Java SDK 1.7.1 and Glassfish 3.x: I am trying to load an ArrayList from a database in the Servlet to be used on the JSP page in a dropdown box that would show stock symbol and company name. I get the following message when trying …

Member Avatar for jaykool74
0
5K
Member Avatar for deepakarora01

[B]Hi, How can i create Multilingual Website. I Have created two Properties file for different language but how to assign the right property file at runtime... Thanks.[/B]

Member Avatar for peter_budo
0
41
Member Avatar for vishalonne

[B]Here is the [COLOR="Red"]Oracle[/COLOR] site from where [/B]I tried to learn JSP [URL="http://192.9.162.55/products/jsp/html/jspbasics.fm2.html"]http://192.9.162.55/products/jsp/html/jspbasics.fm2.html[/URL] But after following all th instructions and creating folders as per site I got a big error- HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it …

Member Avatar for peter_budo
0
276
Member Avatar for Slyvr

I'm not sure how it's done, but I need a link to change an attribute so that the main content page can get the attribute and then display the appropriate content. My following code does not work...and it always seems to include home.jsp no matter what (home is set from …

0
95
Member Avatar for babbu

Is it possible to trigger an informatica job in JSP/Servlets? For eg. in unix we use pmcmd command to perform this task. Is it possible to run informatica jobs in JSP/Servlets?

0
61
Member Avatar for Pizza67

Hi all. I'm a JSP newbie and I'm trying to write a small client application that should facilitate the user authentication onto wifi hotspots provided by a telco operator from my country. Basically the application stores the user credentials and when the user push the (only) button on the GUI …

0
149
Member Avatar for jeypijeypi

I am creating a web-based app written in JSF and Java. One functionality of the system is that the user can select a text file from his pc and import it in order to get the data inside the text file. Do you have any idea on how can I …

0
111
Member Avatar for Slyvr

I'm completely new to JSP but not Java [CODE]<div> <%@ page import="java.util.*" %> <%= Date date = new Date(); out.println(date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()); %> </div>[/CODE] All I need is [CODE]Hour:Minute:Second[/CODE]. (Edit: stupid emoticons) I'm getting this error on Date [CODE]Multiple annotations found at this line: - Syntax error, insert ")" to complete MethodInvocation …

Member Avatar for Slyvr
0
224
Member Avatar for SagarSe7en

Hello Everyone! Very close to completing my project but a small favor needed! Which is blocking me from finishing the last section of the project! This is how it goes!!!!! Have an Interface with inc complete methods [CODE] //OshwalDAO.java void InsertLog(String LogID , String Username , java.Util.Date CurrentDate) throws ClassNotFoundException …

Member Avatar for SagarSe7en
0
894
Member Avatar for vishalonne

Hi Every Body Does any one help me in deploying and running Servlet and JSP in Tomcat 5.5 I tried all the ways I found on net. I downloaded lots of tutorials and tried them also. But always getting same ugly error CONTEXT Path not found \TestInput I am just …

Member Avatar for peter_budo
0
198
Member Avatar for danielagaba

Hi, i have eclipse indigo 3.7.1 and running xampp 1.7.4 with the tomcat plugin. I followed the tutorial at [URL="http://www.vogella.de/articles/EclipseWTP/article.html"]http://www.vogella.de/articles/EclipseWTP/article.html[/URL] and all went well till i reached the jsp/servlet tutorial where i keep getting a HTTP 404 error saying "[B]de.vogella.wtp.jsp.controller[/B]" is unavailable, preventing me from navigating amongst the pages. Thanks.

0
45
Member Avatar for lse123

To play audio clips in an Applet either in browser or viewer, needed set any env var, or plugin to install?

0
59
Member Avatar for Raj619
Member Avatar for anand01
0
96
Member Avatar for torkolort

Hi, My problem is pretty simple, but I'm not sure about the solution. The idea is simply to send a list with an unknown number of java objects from a servlet to a jsp page, and display the objects as checkboxes on the page. The user should then check the …

0
65
Member Avatar for jigglypuff13

I am having problems running a JSP with a java class file on a Tomcat server. My files are located at: tomcat/webapps/ROOT/temp.jsp tomcat/webapps/ROOT/WEB-INF/classes/tempbeans/TempBean.class The contents of my JSP file: [CODE]<%@ page import="tempbeans.*" %> <% TempBean bean = new TempBean(); %>[/CODE] The contents of my class file. package tempbeans; [CODE] package …

Member Avatar for javaAddict
0
378
Member Avatar for ranu jain

hello, i just want to know what is the need that we make a custom tag...i know that its for reusebility..but i want some examples where should i use them. thanks

0
83
Member Avatar for prashanthmukund

Hi all, I am doing my second year undergraduate and I have a new project which is due in 10 days. I wanted to create an Online Bookstore project using JSP. *** I haven't used JSP before and also I wanted it to run in Linux system. So everything is …

Member Avatar for anand01
0
246
Member Avatar for onsir

i have code like this in page1.jsp <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <html xmlns="http://www.w3.org/1999/xhtml"> <body> <h1>Test</h1> <script language="javascript"> function JSGetSelectedItem() { var dropdownIndex = document.getElementById('lang').selectedIndex; var dropdownValue = document.getElementById('lang')[dropdownIndex].text; alert("Hello JSCript " + dropdownValue); } </script> <!-- to fill combobox i had get from …

Member Avatar for anand01
0
3K
Member Avatar for anand01

Hi all, I am learning j2ee with the help of this forum . First thanks for all of your replies realy that makes me to know more things . Now i have doubt, i don't know whether it is silly or not . How does RequestDispatcher works? I know it …

Member Avatar for anand01
0
109

The End.