3,760 Topics

Member Avatar for
Member Avatar for peter_budo

I running my little blog on Tomcat 6 server. My hosting company allows me to set up multiple sub domains. I was trying to do for last few hours, but no luck. Having started with [code=xml] <Engine name="Catalina" defaultHost="mydomain.co.uk"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> <Host name="mydomain.co.uk" appBase="/home/user/public_html" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>www.mydomain.co.uk</Alias> …

Member Avatar for peter_budo
0
1K
Member Avatar for Styrofoam

I am mostly following this page: [url]http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html[/url] I used this command to create the keystore keytool -genkey -alias tomcat -keyalg RSA -keystore /etc/tomcat6/keystore and answered the prompts Then i edited my server.xml file and uncommented/edited this line [code] <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="/etc/tomcat6/keystore" keystorePass="tomcat" /> …

0
286
Member Avatar for oggiemc

Hello people, Im getting an "Exception occured ---java.lang.NullPointerException" error when i try running the code below: [code=Java]public void Register(String Username, String Password, String Surname, String Firstname, String Email, String Phone) { String a = Username; String b = Password; String c = Surname; String d = Firstname; String k = …

Member Avatar for oggiemc
0
236
Member Avatar for adabq

This is something I've been struggling with for a couple months now without having much luck. I beginning to think it's not possible but I'm hoping someone here can prove me wrong. The environment I am working with is a JSP page that interfaces with a java Bean. I want …

Member Avatar for adabq
0
460
Member Avatar for aditya_22cent

I have created a text box in html and if the string entered by user is a alphabet it will not show any message ,else it should display a error message..These checking validations of textbox is done in java and called in jsp; ---------------------------------------------------------- [B]a.html [/B] [code=html]<font size="4">Enter the search …

Member Avatar for javaAddict
0
132
Member Avatar for jeetudaljit
Member Avatar for moonis.ahmed

Hi, how can I call another JSP without transferring control to that. The response.sendRedirect is transferring control to the next jsp page. I still have some code after the response line which needs to be executed but it doesnt gets executed. Any suggestions? Thanks

Member Avatar for filestofiles
0
96
Member Avatar for albertkao

My controller.java encounter an input string: "undefined". Please help. [CODE]public ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { int rowsPerPage = 20; String rowsPerPageStr = request.getParameter("rowsPerPage"); logger.info("rowsPerPageStr " + rowsPerPageStr); if (rowsPerPageStr != null) { rowsPerPage = Integer.parseInt(rowsPerPageStr); }[/CODE] My jsp page use javascript as follows: [CODE]window.location = "hwdisplay?rowsPerPage=" + …

Member Avatar for javaAddict
0
422
Member Avatar for pradeepktg

Hi All, I have a database table "productdetails",where i have id,name,price,prodimage(blob) fields. Am displaying all the records using jsp inside a div with the help of while loop, am getting all the datas correctly except the image. Check below code and let me know how to display the image retrieved …

Member Avatar for peter_budo
0
72
Member Avatar for novellino

I am trying to make a form using html and JSP, get the data and save them in an XML file. I use also Tomcat 1.6 as server. For generating the XML I am using the XStream library. I have a Customer.java class with get and set methods for a …

Member Avatar for novellino
0
513
Member Avatar for morisboy

Hi, Is it possible to create a jar file (mobile app) from JSP files? I mean instead of using some toolkit to compile the java files and create the jar file, can I do the same using JSP files? Thanks.

Member Avatar for peter_budo
0
118
Member Avatar for zerioni

Ok, so i am quite new to JSP. Working on a big database project, and I'm left scratching my head here. The ugly code below calls the chemical name and chemical id properly, and links the chemical name to a page where the chemical with that id will be viewed, …

Member Avatar for peter_budo
0
81
Member Avatar for Millsington

To me, what I want to do is extremely simple. I will have multiple users, each will login to a character with info stored in a database. Each user enters commands into a text field which will post the info to a page that will return the result of the …

0
50
Member Avatar for albertkao

How to store variables in the jsp page scope with the spring 2.5.x framework? This has compile errors. [CODE]import javax.servlet.jsp.PageContext; @Override public ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception { PageContext pageContext; Object o = pageContext.getAttribute("com.mycompany.pageId");[/CODE] Description Resource Path Location Type The local variable pageContext may not have been initialized …

Member Avatar for albertkao
0
120
Member Avatar for pavan146

Hi , actually we are in need of free web space which supports services for JSP n servlets...Can anybody pls post me the link of that which provide above facilities...Thank you for readin ma thread

Member Avatar for peter_budo
0
77
Member Avatar for rumpleteaser33

Hi, I'm trying my first program using servlets and JSP and would appreciate any help or advice about a problem I'm having. In my servlet I'm connecting to the database and displaying all the records in there. I'm then trying to add data to a JavaBean so that I can …

Member Avatar for peter_budo
0
165
Member Avatar for oggiemc

Hi Everybody, Im having a bit of a problem with an assignment..Im trying to write a JDBC servlet which checks the value of a name in the database against the value inputed in a form..USER and PASS are the values inputted to the by user into the form.. The code …

Member Avatar for oggiemc
0
80
Member Avatar for aditya_22cent

[B]amru.java :--[/B] [code=java]package test; public class amru { public static void fa() { System.out.println("ADitya"); //return; } }[/code] -------------------------------- [B]INDEX .jsp[/B] [code=jsp]<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@page import="test.amru"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <h1>Hello World!</h1> <% amru adi = new …

Member Avatar for peter_budo
0
84
Member Avatar for emteez

I am Linux server with cPanel. My problem is that i keep getting PermGenSpace error; even though i have set the -Xms and -Xmx attributes in starttomcat under /usr/sbin. I have searched thru the net, but I am not been able to find any solution to my problem. Any suggestions?

Member Avatar for ~s.o.s~
0
64
Member Avatar for gayatrib

Hey i have a problem with jsp can anybody help me plz? I want to fetch the data stored on server from the client. If anybody has any solution plz let me know... Basically i want to run the project stored on server from client.... what are the steps for …

-1
57
Member Avatar for JSPnewbie

I have a problem I hope someone can help me with in JSP. Whenever I write code in the JSP page, netbeans underlines it as illegal saying "The content of elements must contain well formed character data" E.g [CODE]<% System.out.println(request.getParameter("user")); %>[/CODE] Why is this wrong? I haven't been able to …

Member Avatar for peter_budo
0
85
Member Avatar for rozbaz

Hello, As a newbie i would like to ask someone to provide me with the code that [URL="http://bookshop.blackwell.co.uk/"]blackwell.co.uk[/URL] is converstion an ISBN-10 to an ISBN-13 through the search box. For example if i paste an ISBN-10 on their search box and click search the system automatically converts it in ISBN-13 …

Member Avatar for peter_budo
0
25
Member Avatar for Hakoo

I connected jsp with mysql. i m beg. level programmer in JSP. So, plz dont comment on my code writing style, bt plz help me to improve ma programming. I can execute query bt whn i try RESULTSET to retrive, getting error. my code is below : <%@page import = …

Member Avatar for Smith5646
0
116
Member Avatar for santhuravi

hi guys, do anyone kno how to play wmv without classid in jsp!! please do the needful waiting for yr reply!!!

0
53
Member Avatar for null880305
Member Avatar for Emmett_1981

Hi guys, I am still building the same Struts 1 app and having serious issues with getting ActionMessages to appear on my Jsp, if anyone can help I would greatly appreciate as this is my final year project and its due in 2 weeks, the Jsp is picking up the …

0
65
Member Avatar for albertkao

How to use "c:if" to test for the boolean true? These does not work: [CODE]<c:if test="${model.value == 'true' }"> <c:if test="${model.value == "true" }"> <c:if test="${model.value == true }">[/CODE]

Member Avatar for albertkao
0
138
Member Avatar for anuplike

hi, i want to access my database through checkbox in jsp if i click on checkbox i should get database records

0
64
Member Avatar for vij123

i have a jsp page which have a some school names link. when i click to link of a school name, school name are appended to a link that will go to a second page. in this second page have same item which i will use same for all school. …

Member Avatar for vij123
0
976
Member Avatar for omkareswari

The End.