4,248 Topics
![]() | |
I'm having a session problem with jsf. I've googled abut sessions and none of the results answer this question: what happens when a user logs in, copies the link, logs out and pastes the link in the browser? They say that I should validate the user when the page loads … | |
hi, i'm trying to build a web page which permits the user to login before accessing the contents of the site. the login works fine (i did it using jsp), but i am not able to logout properly, that is, when i click on a "logout" hyperlink, it sends me … | |
hi, my problem is that i have a database where i have stored information month wise of various user and i want that user details in month wise and its shows too but when its move to another column like means in next month like jan to feb its creats … | |
Hai . I'm Smith. In this section We have to discuss about JSP. I want to know more about JSP.I thnk the people interested in JSP will help me out to find out some answers. How is a JSP processed ? | |
Hi everyone! I want to secure my URL to my webapplication so that nobody can get straight to the maps on the server wich are in the url. Can anyone help me with this? Thx | |
I'm a neewbie in this help what's wrong with this one.. <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %> <%@ page import="java.sql.*" %> <% //create a Connection, Statement, and ResultSet object to connect to the database Connection con = null; Statement stmt = null; ResultSet rs = null; String queryText … | |
Hi all, I am trying to compile the following class, but I keep getting this error message. Class: [code] package com.tool; public class WebTopBrowserTreeTag extends com.documentum.webtop.control.WebTopBrowserTreeTag { protected Class getControlClass() { return com.tool.WebTopBrowserTree.class; } } [/code] Error: [code] com/tool/WebTopBrowserTreeTag.java:4: cannot access javax.servlet.jsp.tagext.TagSupport file javax\servlet\jsp\tagext\TagSupport.class not found public class WebTopBrowserTreeTag extends … | |
to this servlet i have to get values of to,from address and filename from a jsp though all jar files are put in class path the servlet is not recognized public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try{ String to = request.getParameter("to"); String from = request.getParameter("from"); String … | |
Hello everybody i'm here for the first time n i hope you can help me i have to do a project for web-based course i didn't get the full idea yet my friend told me to do a web site like Hotmail or yahoo but i don't know how to … | |
Would appreciate any assistance.... Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 9:45:56 PM, on 11/19/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16544) Boot mode: Normal Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe C:\WINDOWS\system32\services.exe C:\WINDOWS\system32\lsass.exe C:\WINDOWS\system32\svchost.exe C:\WINDOWS\System32\svchost.exe C:\WINDOWS\system32\LEXBCES.EXE C:\WINDOWS\system32\spoolsv.exe C:\WINDOWS\system32\LEXPPS.EXE C:\WINDOWS\Explorer.EXE C:\WINDOWS\ehome\ehtray.exe C:\WINDOWS\system32\hkcmd.exe C:\WINDOWS\system32\igfxpers.exe C:\Program Files\Java\jre1.5.0_06\bin\jusched.exe C:\Program Files\Intel\Modem … | |
Hi I want to populate my second drop-down menu based off of the value selected on my first drop down. Is there a function or a way of doin g this... P.S my code is in a JSP: [code=java] <% Vector theStates = WeatherDAO.getWeatherStates(); %> <html> <head> <meta http-equiv="Content-Type" content="text/html; … | |
Hi, I am using a JSP from to collect data from user and then inserting those values into a table in MySQL.But it is returning 'null' always.I am able to query the DB and view the entire table and everything else is fine. But the INSERT is not working somehow!!! … | |
Dear sir, I am using jsp(Model View Controller platform) for making web site. I have to create dynamic treeview by quering data from database. I think I have to use ajax , jsp code for making tree. Can anybody help me. Thanks. | |
hi, i am using tomcat server to executing the jsp files. my task is to open an application while clicking the hyperlink it throws an popup error msa Access is Denied. and also i used the path of a file in href it also not opening a file. give me … | |
[B]how to open any exe file using java. i alrerady used the Runtime.getexec() code. but when i refresh the page the application is opening. my thought is the application should be open after clicking the button in jsp page. if u have any code send me.[/B] | |
I am using structs to try and get the "update" functionality working. I have a list of items appearing in the jsp page, "viewItem.jsp" . I am getting this list from the database. At the moment I am just displaying the item description, but item id is also available in … | |
hi everybody! i am a new programmer in jsp. i am working on project where i would like to use crystal report.But i donot know how to connect with crystal report using jsp.so would anybody please help me. looking forward for answer. Thanks kabir | |
Hi can somebody help me i am new to developing. ADD the new record to the existing database table at the end of all rows.Something like registration form details. <%@page import="java.sql.*" %> <% String fisname=request.getParameter("firstname"); String lstname=request.getParameter("lastname"); String sex=request.getParameter("gender"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:Bharath"); Statement st=con.createStatement(); DataInputStream din=new DataInputStream(System.in); while(rs.afterlast()) … | |
Just what to do and how to become an advocate of jsp. | |
Hi In my servlet program , i retrive some records from my database. These records should be print in another jsp page.so how to pass records from servlet to jsp. how to do it and what are the way to do? Thanks in advance by arun | |
I have a Servlet that checks for information and if there is an issue it forwards the message to presentation page (JSP). Now I want to stop using conditions in scriptlets in the JSP. Please advise how I can do it in this situation in my Tomcat 4.1.27 container. I … | |
Can anyone tell me the proper steps to go through to collect data from a jsp send it to getters and setters in bean? Presently I am learning the wrong way. If I knew how to set variables in a bean then I would need to know what some code … | |
I would like to know how to add a css file to my jsp page ? | |
hi guys am new to the forums n a beginner in software could u pls tell me how to connect to MS access using JSP regards, arvin6 | |
Hi all, I would like to know whether there is any one who is hosting Tomcat/JSP with SVN. Please reply me if anybodyknows it, Thanks in advance. Regards, Harish | |
Alright so I created a website using HTML. I later found out that I had to store links via .jsp and use a database so i made an index.jsp page instead. The first couple sections look like this: [code]<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE html PUBLIC "-//W3C//DTD … | |
![]() | hey guys, I'm realtively new to jsp, and I want to create java objects and use them later in the jsp code. Here's what I do: [CODE]<%! public static java.util.List attrTypesArray = new java.util.ArrayList(50); public static boolean myBool; attrTypesArray.add("aaaa"); pageContext.setAttribute("attrTypesArray", attrTypesArray); pageContext.setAttribute("myBool", myBool); myBool = attrTypesArray.contains("aaaa"); %> <c:out value='${myBool}'/>[/CODE] However, … ![]() |
i want a date selection form in jsp and that date variable should be caught in servlet so that i can insert date in mysql. its very urgent plz help me | |
Hello ppl, I am working on a site these days, which is coded in JSP and based on J2EE technology.I have a requirement where i have to play a WAV/MP3 file on the JSP webpage. The file is saved in a database repository and is loaded in the output stream … | |
Hello! I have problems saving values from checkboxes in the database. My jsp page contains several checkboxes (representing values from a static database table). When I choose one or a few checkboxes in my jsp, the values are passed to my SimpleFormController and they should be saved through the onSubmit … | |
I am new to web development. Can somebody advise me on how I can pass an ArrayList from my JSP to action class. I have the following link in my JSP which links to an action class. <li> <A href="inboxMsg.do">Link to action</A></li> Can I pass the arraylist in the above … | |
Is there anybody know any "tricks or treat" of how to apply for a computer programming job? I graduated with a Computer Science degree in 2006 and has been desperately looking for a job since then. I'be been through countless job interviews and none of the employers accepted me AT … | |
Hi, I'm basically just trying to submit this whole page into an email when I press submit at the bottoM...any suggestions? [code] <%@ page language="java" %> <%@ page import="trader.webservices.util.Utils" %> <%@ page import="trader.webservices.data.UserInfoDAO" %> <%@ page import="trader.webservices.data.UserDataVO" %> <%@ page import="java.util.*" %> <%@ page import="java.text.*" %> <% String theAcctName = … | |
I currently have a small Java project on my local setup (Im using Tomcat). I want to get this out on the internet, but not many hosts offer Java. Im not really looking for the cheapest host out there, but Im not very rich either. I just want something reliable, … | |
Hello, I've been trying to figure this out but still no luck, can anyone see what im doing wrong here?, the if statement just isn't working! Thanks, [code] <% String name = request.getParameter("username"); %> <% if ("name" == null) { %> <jsp:forward page = "invalid.jsp"/> <% } %> [/code] | |
Can anyone see it..I can't find it [code] <% RequestDispatcher dispatcher = request.getRequestDispatcher("/jsp/ErrorPage.jsp"); UserDataVO userData = null; String username = request.getParameter("username"); String password = request.getParameter("password"); boolean loginOkay = false; boolean trialOkay = true; boolean pageError = false; boolean hasBlanks = false; String menuType = null; String adminServer=request.getServerName(); String javaAdminServer=request.getServerName(); if … | |
I was on sprint today and when you click on a phone the page get's see through and a windows open's open can someone tell me how to do it ? | |
hi all i am new to jsp i am looking in to this example first... [CODE] <html> <head> <title>My first JSP page </title> </head> <body> <%@ page language="java" %> <% out.println("Hello World"); %> </body> </html> [/CODE] and save as helloworld.jsp at present am using linux machine i.e. fedora7. when i … | |
Hey everyone. Brand new to the forums. I have been looking all over and could not find much help. I have found one instance of the problem but it always occurs in JBoss and I am running Tomcat. I am pretty new to JSP, XML, and servlets so bare with … | |
hello friends, plz give the kinks where I can download simple jsp projects Thank you | |
Hi, I am new to mysql connectivity using jsp. but i have tried it with MS Access nd it worked out for me. I have installed jdk1.4, Tomcat5.0, mysql 4.1 and mysql_connector_odbc_3.51.21_win32.msi. For the following code i am getting error code 500.. I have set the Env paths as path … | |
On clicking on a link at(home.jsp), I ned to forward the request to another page(quickSearch.jsp). With this I have to pass two values to the page. What is the way out? I created a java script function for it as below function report_ref(refid) { <jsp:forward page="quickSearch.jsp"> <jsp:param name="refid" value='refid' /> … | |
Hello , I have a java program that genrates a family tree using swing and I want to use that in my JSP page.For which I have convert it into an Applet.Can anyone tell me how to convert it into Applet or any other alternate solution. | |
I want to create a filter tool in my jsp page which is required to be similar to the column filter in excel sheet. Do we have any such tool in HTML? Or is there any good alternative for this? Sorry for posting html query under jsp topic. | |
Hi All, I am new to jsp. I need to know how to execute certain code on a button click(submit). my form has a text box and a submit button. Onclicking it, it has to execute a SQL query and then forward the control to another jsp page. Where to … | |
opendata.jsp_____________ <% Class.forName("org.gjt.mm.mysql.Driver"); String url="jdbc:mysql://localhost:3306/mydata"; Connection con=DriverManager.getConnection(url,"root","123"); Statement smt=con.createStatement(); ResultSet rs; //int rs; %> counte.jsp_________________________________ <%@ page import ="java.sql.*"%> <%@ page import="java.util.*"%> <%@ include file="opendata.jsp"%> <%@ page contentType="text/html;charset=GB2312"%> <% request.getSession(true); int month,day,hour,today,total,select; String time; int sql; String errmsg=request.getParameter("errmsg"); GregorianCalendar calendar; calendar=new GregorianCalendar(); month=calendar.get(Calendar.MONTH)+1; day=calendar.get(Calendar.DAY_OF_MONTH); hour=calendar.get(Calendar.HOUR_OF_DAY); time="m"+String.valueOf(month)+"d"+String.valueOf(day); //sql="select * from counter … | |
I woke up this morning to find a config/lsass.exe error which with hijack i managed to get rid of by the explorer continues to restart on me. Over and over non stop. I hope you can help. I have tried vundofix to no avail, atf cleaner doesnt help, my virus … | |
The class that my bean uses has an array textFields[407]. I have 407 textfields in my jsp file. I used a loop to make the textfields. So, it looks something like this: [code=JSP] <%for ( int i = 0; i < lineCount; i++ ) {%> <INPUT TYPE="TEXT" NAME="textFields"+i SIZE="4" MAXLENGTH="7" … | |
Hi, I want to use struts-html:checkbox to insert/update a field in a table. I am using dynavalidatoractionform in struts-config and beanutils.copyproperties to populate these fields in a formbean i need this checkbox to be checked by default when the page comes up. on submit, it should send Y if checked … | |
I needed to get links to some good Java, J2EE tutorials and was surprised that daniweb::Java didn't have a thread on that.. Of course it's easy enough having Sun provide tutorials on most things, there might be some covering specific topics in better ways. Anyway here are the links I … |
The End.