Hi,I try to figure out how to pass an attribute to a custom tag that is of a type other than "String"? In my case, I should pass an attribute with a type of "java.util.ResourceBundle".My tag looks like this:<tt:cs sel="ab" ce="<%= java.util.ResourceBundle.getBundle("de", ...
328 byte By
brads at 2007-9-26 3:45:48
I'm sure this easy one's Bean asked many times but I'm too burnt out right now to search.I'm learning JSP and am try to get a Bean to work and I can't get the servlet engine or whatever it is to reload the modified Bean.class. What's up with that?Please shed light,TIA,Brad ...
Hi All~~I use Tomcat to run my servlets,and the server works fine.But when I made some modification to a servlet,and I compiled it successfully,but the result did not change.And when I restart the server,the changes appeared.I don't know if the server wasn't be configured correctly.Do you ...
320 byte By
yu_hung at 2007-9-26 3:46:14
Hi thereI have got a jsp page and I want to forward it to error page if there is an exception. But I need to write some data to the output before the exception could occur and this gives the HTTP error code 500. Does anyone know how to solve this problem?Thanks a lot!FromEdmund ...
246 byte By
caiyun01 at 2007-9-26 3:46:35
Hi everyone,I has a text file. I need to read the data inside the text file word by word to store them in my database. Anyone know how to declare a file and read word by word? Please help... Thanx in advance....
426 byte By
srt_engg at 2007-9-26 3:47:12
I am having jswdk1.0.1 . My servlets are working.Now I want to run my JSP code. My JSP code contains "Hello World" in a loop .The for loop is in a JSP tag. Whatever may be the value of loop(0) , browser shows Hello World only once. In short JSP is not working.The problem maybe in classpath ...
3583 byte By
madhuvr at 2007-9-26 3:47:16
hi, i am doing a applet-servlet communication my applet is sending name and number i am able to sent the data from the applet but in the servlet i am not able to receive it in my servlet i am using the following method public void DoGet((HttpServletRequest req, HttpServletResponse ...
409 byte By
jnarolia at 2007-9-26 3:47:19
Hello Java Practitioners,I am using jsp under tomcat. I am using beans withing the jsp. Now, i have created some subdirectories within the project. I have a bean in root\web-inf\classes directory. now i want to access that bean from jsp pages within subdirectories(like root\mydir) then i am ...
4160 byte By
HongX at 2007-9-26 3:47:46
I want to make a bean for JDBC connection pool. And the Singleton patten is the best way. But my code is something wrong, who can help me to finish it?import java.util.*;import java.io.*;import java.sql.*;import javax.sql.*;import oracle.jdbc.driver.*;import oracle.jdbc.pool.*;import ...
I have two beans that are instantiated by a JSP. Is it possible to write code in one of the beans that will access methods in the other bean? If yes, then how? Many ThanksJ-P
250 byte By
sribk at 2007-9-26 3:48:12
say like I have servlets... BO's..Helper classes..I wanted to code a servlet which will execute my DB queries.. can I call this servlet from BO...this servlet should return values to BO's.. Is this possible?
25 byte By
Zigi at 2007-9-26 3:49:10
tools.jar ?
739 byte By
avselvi at 2007-9-26 3:49:33
Hi, I have a huge JSP with more than 100 fields (the user wants it this way) with lot of combos and radio buttons and some portion of the form being dynamically generated. The entire JSP along with clientside & serverside scriptingruns to 53 pages(just to give you an idea how big the form ...
Hi to the forumI have uploaded my project to the server. It is a jsp driven by connection pool components.Now the context after it gets set it wont gets removed until the tomcat is restarted and this is not possible to always restart the server.ServletContext context2 = getServletContext(); ...
301 byte By
npw_wine at 2007-9-26 3:49:57
Has anyone made a tree display (like you can with javascript) using JSPs? If so, can you give me some direction as to how to get it accomplished?I want to grab the items from the backend and use JSPs to display the items in a tree structure similar to an explorer folders display. ...
How can I exit a function in JSpmy code is<%! String Dothis(int level){if(level==2){//exit the function}else{.....}}%> How can I exit this function .....Break label does not work...as I am not able to declare a label Pl...guide mesmita ...
495 byte By
jnicholz at 2007-9-26 3:50:04
I am working on a website using JSP and Servlets that contains multiple webapps. A user could potentially leave one webapp and spend a large amount of time in another before going back. We would like to find a way to prevent timeout from occurring if this happens. Does anyone have any ideas how ...
106 byte By
fagane at 2007-9-26 3:50:15
How can I get my jsp form to submit when the user chooses an option from the drop down list?
I have a Jsp page that should open Excel in IE. Here is the test page. Currently there is no java code on the page. When I run it, it just displays the table. Any ideas to get this to work?<html><head><meta http-equiv="content-type" ...
I have a problem with a servlet i'm writing.i'm trying to use the servlet to construct a html page with a java applet GUI inside of it. I'm using the information collected by this GUI to create a new html page that utilizes the collected information. My porblem is that as I understand it to ...
hi,i'm trying to implement a tree structure using jsp for which i have a taglib.tld which has different tags and attributes.My jsp page has the taglib uri:<%@ taglib uri="taglib.tld" prefix="tree" %>but i get the foll errorNo such tag folder in the tag library imported with prefix ...
678 byte By
gentyt at 2007-9-26 3:51:15
Hi,Anyone was able to solve my last problem ( http://forums.java.sun.com/thread.jsp?forum=45&thread=158695) so I'm trying another way...I create a TextProperties class wich is a Properties class but only accepts String and return only String (just to don't have to cast each object returned ...
194 byte By
eeenrico at 2007-9-26 3:51:22
How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.
I have a web site consisting of jsp's and servlets running on apache/tomcat. The site will be run on a standalone computer in kiosk mode. So, the webserver and browser will be on the same machine. The customer would like a button that will print the current jsp but we don't want the print ...
306 byte By
geetuR at 2007-9-26 3:51:39
Hi I have a problem with File upload. Although, I have got it to work, I would like to customise it further. I want the user to be able to specify the directory where he would like to upload the directory to. How do I achieve doing this ?Please, any help is greatly appreciated. ...
1194 byte By
rgorrie1 at 2007-9-26 3:51:45
Hey all,I've created a Session manager which records all of the Sessions that are created when somebody logs into my system so I can track and monitor server activity. It catalogs all the info about the session in a servlet that is instantiated when the server starts up (sort of like a JDBC ...
122 byte By
sjsda at 2007-9-26 3:52:03
I am using tomcat to load my java server pages. I need to display a picture in the page. Can somebody help?
407 byte By
tmoore1 at 2007-9-26 3:52:25
Hello,I have a problem and I hope someone has some suggestions.I have a jsp that will post to a sevlet wich starts a very long proceedure. I want to be able to show some kind of status while this is going on.I have tried to start this proceedure (servlet side) with in a thread but it does not ...
692 byte By
Greg_B at 2007-9-26 3:52:28
Is it possible to redirect the output of a JSP either directly to a printer or directly to a File object? I would like to write a report template using JSP and be able to display it via a browser (so far so good, that's what JSP does) but I'd also like to take the same output that the JSP ...
598 byte By
gnanesh2 at 2007-9-26 3:52:46
I have 3 pages ...1) index.jsp 2) Forward.jsp 3) welcome.jspI have 2 fields in the index.jsp once upon filling & hit submit it has to to go Forward.jsp page...in the Forward.jsp..i have coded only one tag with<jsp:forward page="welcome.jsp" />I have one question...once the page comes ...
1241 byte By
cyy2001 at 2007-9-26 3:52:48
Hi,Friend: I created a Java Bean to process database data and from my jsp page I call the bean method to get the resultset value and assign to the Array variables. The Java code compiled and run properly, I can get the right result. but when I used the bean method from jsp, MBArray array ...
In my JSP page i am using Callable Statements for storing the data. The stored procedure returns a value after inserting the data. I want to know, how to access the output parameter passed by the stored procudure in the JSP page
793 byte By
mestine at 2007-9-26 3:52:51
I am developing a web-based data retrieval utility whereby researchers can download multiple data files pertaining to work they have had done in our labs. These files are zipped on the fly and then delivered to the end user via JSP. My zip files are created using a utility class, and the ...
603 byte By
rdare at 2007-9-26 3:53:05
My platform is Linux (Redhat 7.2) with Apache and Tomcat 3.3-b1, using mod_jk.so to talk to Apache.How do I set it so that the webserver DocumentRoot getshandled by Tomcat. I want to put .jsp pages in the webDocmuentRoot, and I haven't been able to figure this outwith mod_jk.so. For example if ...
I am wanting to create a JSP custom tag (not with a body) that accesses content from a database and then displays it to the user. Within the contet being displayed, there are additional JSP custom tags that need to be handled by the JSP container. Is their a way to have JSP custom tags that ...
How can I check for the existence of a gif (in a war) from within a jsp?
well i am a beginer and i need to take the information from the html form and send it to the database for different users. if u can suggest any site with this information.
Whenever I run my servlets I get Following errorjava.lang.NoSuchMethodError: javax.servlet.http.HttpSession: method getMaxInactiveInterval()I not foundcan any body tell me the reason of above error and how to remove it?
I want to add some Jsp Model into my project , if so I can do my job faster. For example: I want to create a model to display the record of the database table.But I don't know how to begin.Where has the example and the document about it? Who can help me?Thanks in advance! ...
Hi, I use Jrun to run my servlets. I have two servlets A and B. Both of them are to be auto loaded. A depends on API's of B for some operation. However, the first few API calls made by A do not go thru, since apparently servlet B is not loaded inspite of B being specified to be loaded before ...
is the following code valid . if not can anyone help me out ..... examples or links ...........................import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.sql.*;import java.net.*;public class Service extends HttpServlet{public void doGet(HttpServletRequest ...
201 byte By
ajalali at 2007-9-26 3:55:03
I like to include the result of a servlets output on a diffrent server inside an static html page. is this possible? I know that you can do this with cgi but how is it done with a servlet
184 byte By
anu_code at 2007-9-26 3:55:11
HI I want to read information from the database and check the box on/off but the user shudnt be allowed to change it. What is the way to do it?Thanks
482 byte By
tcsguna at 2007-9-26 3:55:23
Hi, I need to save data from an xml file into database. I have tried weblogic's xml-over-http ejb example. But, the example constructs xml dynamically based on the user input.I don't want to do that. I'm presenting an editable xml file to the use and when the user presses submit i want to ...
1051 byte By
obersong at 2007-9-26 3:55:35
I have a <select> object on my html page, with ~50 <option> values.My user must be able to select many options (with the ctrl key).How can I get more than one value with request.getParameter("...") ?currently, when I select more than 1 options, and I submit the form, I can only get ...
220 byte By
anu_code at 2007-9-26 3:55:40
HII want to call a PDF file from JSP. From the documentation it appears that I can call only the Applet plugins?How should I call the PDF Plugin or is ther any other way to do it?Thanks
215 byte By
xallan at 2007-9-26 3:55:43
I looked up the examples/web-inf/web.xml, but I cann't find the mapping info for HelloWorldExample servlet. When I browse the servlets/index.html and click Execute HelloWorld, how can Tomcat find it?
245 byte By
aninu at 2007-9-26 3:55:49
Hi all,String [] paramvalues = req.getParameterValues("p");out.println(paramvalues.length);the first line throws NullPointer Exception why is it so?What should I do to avoid this error?Nin.
236 byte By
BRoberto at 2007-9-26 3:55:55
From various days I am searching for one solution...I have to create an application in JSP on a Linux server. Details at the address: http://www.ileda.it/question.asp Thanks!!email: caaib@tin.it
380 byte By
fagane at 2007-9-26 3:56:21
I have a date field on my jsp form. I want to ensure that the date is entered correctly. To do this I have 3 drop down lists....year, month, date.How can I populate the date list when the user selects a month?e.g. user enters "Feb". Date list should only display numbers 1 to 28 or 1 to 29 if it ...