3,747 Topics
| |
Hi please help me with paging as i am searching it for last 3 days but no success I have a table in JSP ,which is getting values from java / database and displaying record via beans here is my JSP code [CODE]<logic:iterate name="list" id="user" scope="session"> <tr><td><beanOld:write name="user" property="username" /></tr></td> … | |
I am using microsoft access as my database. When i click on the button Enter Details nothing happen. Please suggest where the mistake is. The doGet method contains the following code [CODE] super.doGet(request, response); String Name = request.getParameter("txtName"); String Designation = request.getParameter("txtDesignation"); Connection con = null; PreparedStatement pstmt = null; … | |
Hi, I have a jsp web application running in Tomcat 6 that uses a set of 3rd party jars. One of the jars is attempting to load a log4j property file by using a relative path. ( \folder\.properties) I have the property file but I need to know where to … | |
Hello there, I am trying to develop a web site and I am asking this: Let's say that I own [url]www.mydomain.com[/url]. Now if I type [url]www.mydomain.com/whatever[/url] I want this site to be linked to [url]www.mydomain.com[/url] and pass the string "whatever" as a parameter. So If I type [url]www.mydomain.com/john[/url] the website … | |
Hi, I am using Eclipse Helios in Fedora 10 i386. I am using WebSphere Application Server Community Edition plugin [B][COLOR="red"][COLOR="Red"]( Apache Geronimo 2.1)[/COLOR][/COLOR][/B] in Eclipse. My problem is that , I can not upload a file using [B][COLOR="red"][COLOR="red"][COLOR="Red"]UploadBean ( a very popular JavaBean )[/COLOR][/COLOR][/COLOR][/B]. I am adding the jar files … | |
I am trying to make a servlet thread-safe by synchronizing a block of code.The counter needs to count how many times a page has been visited.But it starts at 2 and when i refresh the page, it increments by 2(so it goes 2,4,6).I tried to remove the object variable while … | |
Hi I have started doing servlets. I am stuck somewhere. I have installed weblogic server and also configured it. I have also installed the J2EE SDK on my machine. But when I compile my servlet program, it says javax.serlvet.http.* and javax.serlvet.* packages are not found. Please help me out how … | |
Hi! Is it possible to retrieve XML data and input it to mysql database using JSP? If so, how will I do it? I'm new to java by the way. Thanks in advance to those who will reply! | |
I am new to java, I need to save a image file from my system to my web application. How to do that in jsp or java? Need help urgently..... | |
Hi I have number of checkboxex on my page.I want to insert all the check box values and some associated values for the checkbox selected by user. [code]<% Categories cat = new Categories(); Vector<String[]> v = new Vector<String[]>(); String[] data; v = cat.getPermissions(); Iterator<String[]> i = v.iterator(); while(i.hasNext()){ data = … | |
dear members, now i am developing a login page for my system using jsp. here is my boundary code [CODE]<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="java.util.*" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head><body> <jsp:useBean id="idHandler" class="DBConnection.Login" scope="request" /> <jsp:setProperty name="idHandler" property="*" /> <% String username = request.getParameter("USERNAME"); … | |
please help me ........when i create connection sql with jsp and use javascript for validation control..but when i click submit button there has work only one thing either insert data into database or javascript(when i remove <form action=""...>) i want to do work both .. | |
| Hello, yes, I have been seraching on google for it in a hour. How can i set a max height for pcitures that are going to be seen in lightbox? Cheers |
I was atteched two file with this poll, I m facing problem when <select> attrib value fetching. email.txt Originally file(email.jsp),where i was connection with database & taking E-mail Field in to <select> dynamically,But when i redirect to otherpage this <select> attrib that time (request.getAttri(...))// Is taking Null value... I can't … | |
Hi, In JSP for some responses from the server the header is null. Is this because the header size becomes very large? If yes then is there a possibility wherein we can increase the size of the header? What is the maximum possible size limit? I am using JSP and … | |
Alright well im trying to code a multiplication table for a webpage im making. This needs to be in a separate java Servlet as opposed to an inline javascript. Basically the code should output embedded html code something like [code] <table> <tr><td>4*0=0</td><td>4*1=4</td><td>4*2=8</td></tr> <tr><td>5*0=0</td><td>5*1=5</td><td>5*2=10</td></tr> <tr><td>6*0=0</td><td>6*1=6</td><td>6*2=12</td></tr> </table> [/code] There is an HTML … | |
I am writing Spring web MVC app whereby the client and the server communicates by sending json messages. On the client I am making asynchronous calls to update textboxes. Could you please let me know if I am using the right syntax? I have hit a brick wall and cannot … | |
HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: File "/WEB-INF/struts-html.tld" not found org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:160) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:430) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:499) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1558) org.apache.jasper.compiler.Parser.parse(Parser.java:130) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:245) org.apache.jasper.compiler.ParserController.parse(ParserController.java:101) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:176) org.apache.jasper.compiler.Compiler.compile(Compiler.java:317) org.apache.jasper.compiler.Compiler.compile(Compiler.java:298) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) note … | |
HTTP STATUS 500 PLEASE HELP ME description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause java.lang.NullPointerException org.apache.jsp.janki.bsal_005fsearchresult_jsp._jspService(bsal_005fsearchresult_jsp.java:107) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the … | |
hey U guys.. I need a jsp code which uses AJAX with dropdowns.. Something like COUNTRY NAME in one dropdown and STATE NAME in the other... You may select any STATE at first.. Later when we CHANGE the COUNTRY NAME, states of that particular COUNTRY WILL GET REFRESHED IN THE … | |
Hello, I a student and Java is very new to me. I am trying to multiply 2 numbers together to be displayed in a dialog box but I keep getting the error of "cannot find sysmbol" and I do not know what I am missing in my file to clear … | |
Hello I am a beginner in JSP and I wanted to include a Applet from my build/classes with the package chapter8 in my JSP file. What I have at the moment is: [CODE] <jsp:plugin code="MyApplet.class" codebase="../build/classes/chapter8/" type="applet" width="400" height="300"> <jsp:fallback> Cant load Applet </jsp:fallback> </jsp:plugin> [/CODE] Im running it from … | |
HI ... I m trying to make a form entry with input elements..I have an ADD button on the form besides a SUBMIT button..After the user enters the input fields & presses the ADD button, I want the form data to be displayed on the same form page. When the … | |
Dear members, I am displaying table data using displaytag where i define [COLOR="Green"]pagesize=15 [/COLOR] the struts action that i use (along with the appended parameters) is: [COLOR="Green"]showAllTheArticle.action?user.id=1&user.username=admin [/COLOR] the table shows the first 15 record nicely, but when i click on the [COLOR="Green"]next/last[/COLOR] links- the following hyperlink generates: [COLOR="Green"]pages/AllTheArticle.jsp?d-49309-p=2&user.id=1&user.username=admin[/COLOR] - … | |
Hi... I'm new here! does someone know how can i get a javascript variable from jsp? I've tried some ways but no one works! :icon_sad: please help! | |
I am hosting a servlet on my Tomcat server.. Have port forwarded and everything but it wont accept connections from a wan address.. i have used port-check sites to verify port and they show it as open.. but my jsp page on the server just cannot be displayed.. is there … | |
i want to use two different css for firefox and chrome but unable to do it.. :( please help !! the code i tried is given below !! [CODE] <script> function css_append(file){ var css = document.createElement('link') css.setAttribute("rel", "stylesheet"); css.setAttribute("type", "text/css"); css.setAttribute("href", file); document.getElementByTagName("head")[0].appendChild(css) } if(navigator.userAgent.indexOf("Firefox") > -1){ alert("Firefox"); css_append('css/default_ff.css'); } … | |
Servlet tag and servlet mapping tag are present in the web.xml as shown below [CODE] <servlet> <servlet-name>AbcServlet</servlet-name> <servlet-class>edu.studies.service.AbcServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>AbcServlet</servlet-name> <url-pattern>/abc/*</url-pattern> </servlet-mapping> [/CODE] But it still says The requested resource (Servlet AbcServlet is not available) is not available. What did I miss? Please help. | |
| Hi, Does anyone know where I can read about ways to protect a website from potential threats? i.e. SQL Injection, etc. In particular, a website using HTML/JSP/Servlets/Java/Tomcat. Thanks, Ashton. |
Hi All, Iam really stuck with this issue.... I have HashMap values like these below [0.76,.0818] from DB i want to display these values in each <TD> in jsp. this is what am trying....... setting HashMap values in arraylist in DAO class and iterating that arraylist into <TD> of Html … |
The End.