Hidden Text Box

393 byte By Kewl_Spacea at 2007-11-27 10:59:48
Hi, I would like to know, whats the level of difference it makes using a hidden filed in a JSP and using a text filed having its display style as none i.e., virtually a hidden text filed.That is what is the difference the following two code pieces produce?<input type=text ...

Uploading Files to jsp

632 byte By eur0dada at 2007-11-27 11:00:00
Hi,My app requires the user to upload three different files. I'm using the "file" input type for the first time, but it's not doing what I'd hoped it would. I really just need the absolute path (the path that shows up in the textbox after they select their file) to that file. I.e.If they select ...

Deploying my JSP

465 byte By eur0dada at 2007-11-27 11:00:02
My program runs fine locally, as a non JSP application. It uses the CsvReader library javacsv.jar, and one of my files imports "com.csvreader.CsvReader" from this library. When I try running it as a JSP application, it gives me a NoClassDefFound for "com.csvreader.CsvReader" class. I added the ...

How to display wait for page load message when JSF page is loading

454 byte By kbalas78a at 2007-11-27 11:00:06
Hi everyone,Requirement : in my jsp page i load & display my table when my drop down is populated. So i click a button when my drop down is selected. Upon clicking the button my table gets rendered and get displayed.So, the issue the button runs a back end script which needs few minutes to ...

create a sub table in a table data

251 byte By nagesh.reddya at 2007-11-27 11:00:26
<p>Hi all,</p><p>I want to create a subtable inside a row data.</p><p>how should i go about it.</p><p>e.g:</p><p>question and answers.</p><p>i have to show the quetions and answers against it.</p><p>the answers might be more than one.</p><p>thanks</p>

Problem Logging Data to Access Database

6584 byte By Pugmaster0a at 2007-11-27 11:00:39
Hello,First I'd like to start off by saying I'm totally new to JSP so please excuse my beginner errors.I found some code which allows me to grab the NT username along with Domain and Machine name from the clients machine.I plan on using this on a corporate Intranet and everyone uses IE so I ...

Services to start and stop Tomcat

743 byte By oaklandara at 2007-11-27 11:00:50
I have Tomcat 4.1.27 on a Windows 2000 Server where the startup.bat doesnt work and I have to startup the container using the Windows Services tool. The server also doesnt show any Tomcat console window so I can see what is happening.The startup.bat just pulls up a window real quick and it ...

dynamic creation and deletion of rows in table

413 byte By skallurayaa at 2007-11-27 11:01:16
hi friends,i have a problem. i have to dynamically generate rows for a table and at the end of each row there will a checkbox. now outside the table i have a delete button. when i check a row and press delete button, that row should be deleted.This can be done by creating a flg variable for each ...

What is a Portlet

190 byte By javanewbie80a at 2007-11-27 11:01:18
<p>what is a portlet and how is it different from a portal. What i understand is that portal is a normal web application, probably just like this sun java site. right? What is a portlet?</p>

Problem with Session time out

689 byte By Ananth.duraia at 2007-11-27 11:01:21
Hi,I have some problem with session time out. in web.xml i set session time out for 30 minutes and i check the session expiry in each servlet asif((request.getRequestedSessionId()!=null && !(request.isRequestedSessionIdValid()))) { // forward to login expires page}then i use ...

Output Link and Command link problem

597 byte By Arch_Bytesa at 2007-11-27 11:01:44
I have this command link that I want to redirect to a certain url, a complete one with the Http://www.webpage.com.. and its value is Goto This Page..lets say I want it to pass through a certain backing bean before redirecting how am i supposed to do it...?before it was this simple:<h:outputLink ...

getting exception

605 byte By siri85a at 2007-11-27 11:01:57
hi,I am very new to Java Server Faces.I created one jsf page and when I am trying to run this page I am getting the following error.javax.servlet.jsp.JspException: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'POPBean' resolved to nullat ...

Cant read the header info

393 byte By BenjaminJavaa at 2007-11-27 11:02:03
Hi all Am not able to read the header info from my servlet . In JSP response.setHeader("UNIVERSALID","nave");RequestDispatcher view = request.getRequestDispatcher("Login");view.forward(request,response);In Login Servlet-request.getHeader("UNIVERSALID") is resulting nullHow to get the header am ...

I'm unable to run jsp pages in ecllipse

172 byte By sindhu.garapatia at 2007-11-27 11:02:13
<p>Hi,</p><p>I have written JSP pages and i am not able to run those files in ecllipse.Can any one tell me the actual procedure of running JSP files written in ecllipse</p>

calling a servlet by passing the parameter

297 byte By ravishankera at 2007-11-27 11:02:18
<p>hi all,</p><p> the scenario is :</p><p>I have a JSP page where in if i click on an element (not a button) it must invoke the servlet by passing the element value (which is clicked).</p><p> Please help me in figuring out this....</p><p>thanks in advance....</p><p>Regards,</p><p>Ravi Shanker</p>

Why do you use jsp:useBean?

637 byte By Troilusa at 2007-11-27 11:02:20
Hi,I have one "simple" question :) : When or why do you are using <jsp:useBean>,<jsp:getProperty> and <jsp:setProperty>? For practice, I am creating a form, sends the data to a servlet and the servlet "packs" the parameter into a Bean and put this Bean into a request- or SessionScope. ...

Deploy servlet error(Kindly Help me please)

1401 byte By nitin403a at 2007-11-27 11:02:32
What the step by step method of deploying a servlet.This what I did to deploy servlet.1). I created a "servlet.java" File2). Compiled it on my machine.3). Then on the machine I want to deploy it I created a folder "TestServlet" in tomcats webapps.4).Under "TestServlet" I created "WEB-INF" folder5). ...

JSF-file download

366 byte By spicy-pinka at 2007-11-27 11:02:34
On clicking a link on my page i want to download the doc file. The jsp page containing jsf & html tags are displayed inside a portlet. i tried using myfaces file upload but it was showing error when i deployed & run the file. i tried using html <a href >also.the doc file which i want 2 ...

Deploy servlet error(Kindly Help me please)

1401 byte By nitin403a at 2007-11-27 11:02:36
What the step by step method of deploying a servlet.This what I did to deploy servlet.1). I created a "servlet.java" File2). Compiled it on my machine.3). Then on the machine I want to deploy it I created a folder "TestServlet" in tomcats webapps.4).Under "TestServlet" I created "WEB-INF" folder5). ...

help me

113 byte By onRowClicka at 2007-11-27 11:02:37
<p>i want get data from <rich:dataTable> when onClick on row . Data will output at below. i can't get it.</p>

JSTL and Scriptlet

853 byte By Sebastien.Bervoetsa at 2007-11-27 11:02:38
Hi,I take back a code from another developer, I get an error and I don't understand why. RAD 7 tells me "media cannot be resolved" in the scriptlet.Could you help me to understand why ? There is may be another way to do the same.Thanks<bean:define id="media" name="accountForm" property="media" ...

Is EJB3.0 supporting ServiceLocator design pattern

133 byte By javamnr948a at 2007-11-27 11:02:41
<p>hi,</p><p>Does EJB3.0 support service locator design pattern.If it supports how we write the code in that ServiceLocator class</p>

redirect user to login if not logged in

383 byte By eLIXa at 2007-11-27 11:02:52
Hi,I know there are allready lots of topics on this subject but I can't seem to understand the solutions yet.So basically what I want to prevent is that users can just type in the url of the admin page (admin.jsp) in their browser and thereby skipping the login page (index.jsp)Can someone give me ...

Input value from SQL database into html Form

744 byte By Maxcorda at 2007-11-27 11:03:06
I was new to jsp and want to make update page for my website, i want to pun value in my html form from table. i using JSP.JDBC ConnectionResultSet rs2 = stmt2.executeQuery("Select * from securityDetails );-html textbox--<form name="f1" action="prosesmyprofile.jsp" method="get" onsubmit="return ...

JSP problem:request object returning null

2457 byte By yuva670a at 2007-11-27 11:03:26
Hello,I am using an authorization JSP before proceeding to another JSP. When the authorization is valid, I go to the next JSP. Now there is a drop down box in this next JSP. I select a value from this drop down and submit the form. When I retrieve the value of this drop down in the next JSP using ...

MDB working

336 byte By prabhu.ramadasa at 2007-11-27 11:03:29
Hi,I am using MDBs in conjunction with JMS queues in an application. I have a basic question. I know MDBs achieve parallel processing. But how?Are different instances of the MDB created? Or are there different threads?Also how do I get a handle to each thread/instance? Does any app server allow us ...

servlet(null pointer exception)

185 byte By terrorratha at 2007-11-27 11:03:30
<p>i want to reterive the data from database to jsp and i should get a populated drop downbox. but it is show the following error.</p><p> null,</p><p> null,</p><p>action=reqid=null.</p>

SAX DefaultHandler throws SAXException trying to get Attributes

903 byte By syg6a at 2007-11-27 11:03:34
I have a class that extends org.xml.sax.helpers.DefaultHandler. In my startElement() method I try to access the Attributes and my program throws a SAXException. I can't imagine why. If I debug my Attributes are all there. But doing something as simple as System.out.println(atts) throws an ...

servlet(null pointer exception)

210 byte By terrorratha at 2007-11-27 11:03:42
<p>i want to reterive the data from database to jsp and i should get a populated drop downbox. with those information. but it is shows the following error.</p><p> null,</p><p> null,</p><p>action=reqid=null.</p>

Open a Local file from JSP

567 byte By shardulba at 2007-11-27 11:03:58
Hi All,I want to access a local file from a JSP. On click of the link the local file should open. The location of the local file isO:/VWS00000000000000000001/REPORT_FRAGMENTS/Title1.docand the hyper link on the JSP showsfile:///O:/VWS00000000000000000001/REPORT_FRAGMENTS/Title1.docsomehow the file ...

JSF 1.2 (MyFaces) + Tomcat 6.0.10 issue

7230 byte By necromancer15a at 2007-11-27 11:04:04
<%@ page import="javax.faces.context.FacesContext" %><%@ page import="javax.faces.application.FacesMessage" %><%@ taglib prefix="jsf" uri=" http://java.sun.com/jsf/core" %><%@ taglib prefix="h" uri=" http://java.sun.com/jsf/html" %><%--<%@ taglib prefix="t" ...

Problem with Struts2 Validator (doesn't parse)

3900 byte By lordfergusona at 2007-11-27 11:04:07
Hi all! I'm trying to create a validator for this form:<s:form namespace="/user" action="create" validate="true"><s:textfield id="nameUser" name="user.nameUser" label="Nombre"/><s:textfield id="surname" name="user.surname" label="Apellidos"/><s:textfield id="address" ...

how to print break line in jsp.

674 byte By ukbasaka at 2007-11-27 11:04:20
in jsp where a bean.getProperty() value has a broken line. but it displays as a single line in the web page. when printing the line by System.out.println() statement, it displays as a verious new line where '\0' is applied but in jspbean.getProperty it does not. For example : It displays by ...

Queries questions regarding jdbc and jsp

470 byte By javaqueuea at 2007-11-27 11:04:55
Hi, I have a few questions regarding jdbc and jsp:1. where does the implementation of the Interface Resultset take place?2. which one is better Resultset or Recordset?3.if in 1.jsp file i include 5 jsp files using inclde directive, then during the translation phase in total how much .class files ...

Servlet doing serialization

3739 byte By n2xta at 2007-11-27 11:04:57
Hi all,I'm designing a small app in order to perform compilation test on struts framework using flash tools. The project is organized this way: the user tells how many "compilation test" he wants to perform on the main page and then these informations are passed to a servlet which generates fake ...

Custom tags

181 byte By muthu2007a at 2007-11-27 11:05:17
<p>Hi any body can tell </p><p>What is the purpose of custom tags?</p><p>and can u give sample program with explanation </p><p>or documentation URL</p><p>Regards</p><p>Marimuthu</p>

So you think you are an Java uber-geek? Then figure this one out. . .

1335 byte By megaskinsa at 2007-11-27 11:05:22
Ok, uber-Java geeks, let's see if you can figure this one out. It' s butt-ugly and got me totally stumped.This is in a Tomcat 5.5 environment.I have a jsp (hierarchy.jsp) which has static nested class called MgmtAuthBean. This hierarchy.jsp creates a TreeMap object which contains instances of the ...

Lotus Notes with java mail

337 byte By muthu2007a at 2007-11-27 11:05:25
Hi guysI had created a mail program it was successfully sent.,When i am view the mail in outlook or gmail etc., it was clearly displayedbut if i am view the mail in Lotus Notes it was not displayed correctly?Why?What is the ...

problem with sorting order in result set

486 byte By shannua at 2007-11-27 11:05:40
Hi, i am using jdbc [b]and my query is String sql="select empname from emp order by lower(empname) where userid=?";pst = con.prepareStatement(sql);pst.setString(1,userId);rs = pst.executeQuery();[/b]in oracle side the results are in sorted order by where in java console they are not comming in ...

Tomcat 5.5 - Root folder not accessible

351 byte By kunal1977a at 2007-11-27 11:05:44
Hello there,I have installed Tomcat 5.5 on my webserver and have connected it to the IIS 6.0. I want to execute the JSPs contained in the ROOT folder. This is somehow not happening - the JSPs in the webapps/jsp-examples are working which means the setup is okay. Can someone help if you have ...

JSF 404 Error

1898 byte By tobiasgpa at 2007-11-27 11:05:48
Hello,I have googled a long time, but I couldn't find a solution to my problem. I am developing my first JSF 1.2 Application in combination with Tomcat 6 with Eclipse. I have imported all libraries needed (jsf_api, jsf_impl, jstl etc.). When I call a JSF page, I get a 404 resource not found error. ...

Creating a url-pattern with a wildcard at the start

456 byte By bubblenut2a at 2007-11-27 11:05:55
How can I create a url pattern with a wildcard at the start? I would like to be able to do<web-app> <servlet-mapping><servlet-name>MyServlet</servlet-name><url-pattern>/*/myAction</url-pattern> </servlet-mapping></web-app>and then be able to access it ...

How to iterate through a ResultSet->List in JSTL?

589 byte By r5ta at 2007-11-27 11:05:59
[nobr]I have a ResultSet that I've converted to a List via:RowSetDynaClass rsdc = new RowSetDynaClass(rs);resultList = rsdc.getRows();and my Stripes JSP has the following:<c:forEach var="row" items="${resultList}">${row.prod_id}<br/></c:forEach>but it produces no output, even through the ...

printLabel

345 byte By Delmonico02a at 2007-11-27 11:06:00
I was wondering if anyone knows how to create a printLabel jsp page. I have no way of going about it. I am in a group and we are creating a application that is suppose to checkin media and also printout copies of media checked in. What do I do, I'm clueless. I have a copy of books that I'm ...

Cant get EJB create method to work inside another EJB

3033 byte By Perryiera at 2007-11-27 11:06:07
I am using EJB 3.0 and trying to create a customer record in the database using the following method in another session EJB:customerFacade.create(cust);I continue to get a null pointer error on the above line, even though I have established non null values for EVERY field in the customer table. The ...

Download file from server

823 byte By Jus55a at 2007-11-27 11:06:17
HiI am using this code thatI got from another post to download a file from serverfinal ServletOutputStream out = response.getOutputStream(); response.setContentType("application/octet-stream");BufferedInputStream is = new BufferedInputStream(new FileInputStream(new File("c:/Test.png"))); byte[] buf ...

selectManyCheckbox set unique ID

464 byte By xtof83a at 2007-11-27 11:06:18
Hi everybody,I have a problem for getting, a specific Checkbox in my page.I explain me :I create a list of 20-30 checkbox in my page by using <html:selectManyCheckbox/>if I write a Id : <html:selectManyCheckbox id="foo"/>In the generated code I get the attribute name called "foo" but no ...

<h:selectOneRadio selecting multi values problem>

356 byte By sivasaia at 2007-11-27 11:06:21
HI,I have array List values from there I am reading values for <h:selectOneRadio, here my code><h:selectOneRadio value="#{row.one}" ><f:selectItem itemValue="#{innerRow.Key}" itemLabel="#{innerRow.Text}" /></h:selectOneRadio> any one can help me how to avoid ...

Init-param tags and related settings?

867 byte By Stark_a1a at 2007-11-27 11:06:26
Hello all,I am completely new to all this and just recently started training for a product called ServiceCenter and was wondering how the servlet technology works in conjunction with the product.There are servlet tags available in the web.xml for servlet names AttachmentDownload, FileDownload, ...

Getting hold of the servlet context within a filter

70 byte By bubblenut2a at 2007-11-27 11:06:39
<p>How can I get hold of the servlet context from within a filter?</p>