3,760 Topics
| |
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 … | |
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 … | |
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' /> … | |
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 … | |
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 … | |
Hi, I need some help from all of you. I am using JRun4 servers we are facing some problem without running Precompile jsp. We need to pre-compile the JSP for that we need some java code to perform this pre-compilation for http and https request. We don't want to Using … | |
From form on page A, I am retrieving submitted values on page B.jsp. Page B is creating new PersonData class from those dates (using [code]request.getParameter("any_param_name");[/code] ) and adding it into some kind of collection. Problem here is, that after reloading page B again, parameters are left, and new PersonData is … | |
Hi everyone Can sum1 tell how to export data on an excel file from the click of the button which is there on the jsp page.The Data first should appaear on the jsp page and only when the user/client clicked on button then the data get exported to the excel. … | |
Hello. I have a problem. I have a table with employees and some data. I want to generate a xls with that data. How do I do that ? Thanx. | |
You will have to implement the DICE (drop if course exceeds) feature of boss. DICE works as follows: If a student is allowed to bid for n courses (say 5 course), DICE will let the student bid for an additional course if the following criteria are met Student has enough … | |
I want to do a very simple task. I want to have a drop box and display (in the same page) the user input as soon as the user makes his choice. There must be no button involved. I dunno how to pass the values of the forms w/o using … | |
Hi. Is it possible to use a resultset from a scriplet in a <c:forEach> loop? E.g. [CODE]results = prepstatement.executeQuery(); request.setAttribute("results", results);[/CODE] [CODE]<c:forEach items="${results.rows}" var="row"> row.fieldValue <br /> </c:forEach>[/CODE] Thanks. | |
hi everyone, I am able to set Expiry for jsp in IE but in same jsp i have img tag for those i am unable set Expiry ................. response.setDateHeader()...plzzzzzzzzzzzz any one help out | |
Hi, I m in urgent need of form validation using ajax and jsp.. The form validation is something like when i prints wrongly and enters the second text box it will show red mark error in the side of the approipriate field..please send some sample code... | |
i have a small problem in opening the record , in the sever there is a folder which contains n number of word documents, i made them to list all the files in the order and if i click on the file it should open in the MS Word and … |
The End.