jsp 1 « Bean « JSP-Servlet Q&A





1. about BEAN LAW in jsp    stackoverflow.com

Hi I wanna know What is Bean law in JSP part as bean can not have constructor with arguments.When declaring bean object in java no-arg constructor of the bean will run. ...

2. Simple Architecture for just JSP, Servlet and Beans    stackoverflow.com

I'm trying to develop a simple "homework submission system" with Java. I'm working on it as a practice for java web development but it is also goint to be used by ...

3. Editing a bean using only JSP    stackoverflow.com

I am writing a small web app using servlets and JSP ( no additional frameworks ). There is a page that displays all groups in the DB. There is a possibility to ...

4. Need Help on JSP, Bean and Servlet    bytes.com

2008-11-19 00:35:35 StandardContext[/onlineres]: Mapped to servlet 'jsp' with servlet path '/index.jsp' and path info 'null' and update=true

5. Exporting net beans jsp project    forums.netbeans.org

Hi, I have made a simple jsp, jdbc hello world project in net beans 6.7.1. How can I export the project so that I can upload it to my webserver? thanks ...

6. Telnet client from webapp [was: Help needed in jsp and beans]    coderanch.com

Thank you very much Mr Ben...but i m still confused about how actually it can be used to solve my problem... will i able to execute scripts in a remote machine with its help (sorry if you think the question is stupid i m still trying to learn). Thanks a lot in advance

7. executing beans on client side    coderanch.com

8. jsp Beans?    coderanch.com

its java beans not jsp beans, although u can use java beans in jsp pages as well. java beans are just regular java classes with some rules (for example u have to have get and set methods for properties and an empty constructor etc..). we use java beans in jsp page to seperate raw java code from html code. usually in ...

9. jsp with beans not handling    coderanch.com

hello everyone thanks sir bill, for your valuable information it really works and ConnectionBean class is picked up gracefully by conference1.jsp. but there is now another problem that emerged. now the error "java.sql.SQLException: no data found" arised. what to do? please help. my database name is ppp.mdb and it is placed in d:\jakarta-tomcat-4.0-b5\examples\jsp\ppp.mdb in here, i have two tables with the ...





10. jsp beans    coderanch.com

11. JSP-Bean question    coderanch.com

If the properties are for internal use only, it makes it no less a bean for them not to have getters and setters. What the bean 'spec' is saying is that all properties that are exported by the bean should have a standard getter, and if it is a read/write porperty it should also have a standard getter. It does not ...

12. problem using bean with jsp    coderanch.com

13. Servlet --> Jsp with beans    coderanch.com

yo richy!! i'll drop you an e-mail to catch up. What I think is your problem is the scope of your javabean, make it scope="request" in your to and from jsp's. Alternatively, keep it session, and implicily set the javabeans properties in the destination jsp page from the request(to do this your input field names have to match up with your ...

14. JSP-Bean question    coderanch.com

I'm not sure th above solution will suit me... I was looking for something like "press the SUBMIT button and all the data in the jsp page to fill firstName[], lastName[], etc" in the bean. It works just fine for textboxes; if I have multiple textboxes with the same name on a page and the correspondent method in the bean to ...

15. A(nother) problem with beans.    coderanch.com

16. data in bean    coderanch.com





17. Bean Introspection    coderanch.com

18. use beans    coderanch.com

19. jsp and beans    coderanch.com

OK here is where I have reached. I have <%! (then I have a method defined called PrintAntennaList() in here which does some stuff and prints out something with System.out.println) %>
<%PrintAntennaList();%>
When I call the method nothing prints out. Does anyone know what the problem might be. Thank you very much.

20. JSP beans within servlets    coderanch.com

21. JSP beans and JRun    coderanch.com

I am trying to use beans with JSP, bean compiles fine, get set works fine with bean tester. Now, I have to make it work with JSP. Where do I put it? I am using JRun, couldn't locate this info in the documentation. There's no error shown in the browser, but the value I am trying to retrieve from the bean ...

22. Beans found - but can't display data! Please help...    coderanch.com

Hi - I've looked thoughout this forum (and the servlets forum) to find a similar problem but no luck. I'm thinking it must be something obvious - but I just can't see it. I'm sending an a array of CatBeans to my jsp and trying to display a property for each bean. I know the array is successfully retrieved because the ...

23. Bean not created...    coderanch.com

I am trying to use a bean in a jsp, but I receive the message: javax.servlet.ServletException: Cannot create bean of class ClientListBean I am running Tomcat 3.somethingOrOther. I have Servlets and JSPs working fine. I have the Bean class compiled and in the /WEB-INF/classes directory of my WebApp directory. The Bean is not in a package. According to the Java Tutorial ...

24. getting beans to see each other    coderanch.com

I'm having a problem compiling a bean which uses another bean in the same package. I compile GuestBean first, in package com.deitel.advjhtp1.jsp.beans, which works OK. Then I try to compile GuestDataBean, which uses instances of GuestBean. Both have the same package statement. The compiler says: C:\devel\jsp-intro\WEB-INF\classes\com\deitel\advjhtp1\jsp\beans\GuestDataBean.java:61: cannot resolve symbol symbol : class GuestBean location: class com.deitel.advjhtp1.jsp.beans.GuestDataBean public void addGuest( GuestBean guest ...

25. How to use bean with Java web server ????    coderanch.com

I m using jsp : useBean tag to call bean from jsp page. I hv compiled .java file (of bean) with javac and put it at Classes folder at JAvaWebServer dir. But my jsp page is unable to find that bean class. Please help me : How to use bean within jsp file while using Java Web Server ? Thanks, Dhamrin ...

26. Bean problem - please help!    coderanch.com

I'm experimenting with beans and I've put a method in my UserBean to retrieve all the user data from the database for the current user name. It works find when I test it with a main method, but when I try to access it from a jsp I just get compilation errors. In the jsp I've got a UserBean called user, ...

27. Handling Dates in JSP + Beans    coderanch.com

Maybe he would like to be able to both compare date values with one another and output them to the response. String representations aren't helpful (necessarily) when you want to find out if a date is after another date. In what context are you trying to use the Date value? Are you trying to assign it to a tag's attribute value ...

28. Beans in JSP    coderanch.com

You're right to worry about carrying around a lot of data in your session (or request, for that matter) because you can really cause the memory needed to increase. However, have you looked at how much of this data you *really* need across the JSPs? Is this is a small amount then just going with a bean (or beans) may be ...

29. JSP, Bean and IO Stream    coderanch.com

Hi, I'm trying to workout how can I do the following. My question for the moment is what I'm thinking to do is correct, or just a wast of time. I wanted to convert an RSS news feed(XML format) in to a JSP. I have no problem with that. But the web site that provide the XML file allows me to ...

30. Bean population    coderanch.com

Hi All, I am new to Javaranch and this is my first message, It may be very simple for many of you. I am developing web application using 3tier architectutre, I have Beans corresponding to each JSP page, like sendmail.jsp have SendMailBean.java, the problem is that my bean is not getting populated, i have used

31. Can't use Bean    coderanch.com

Hi all, When I run jsp on tomcat I get error 500 stating "org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated. An error occurred between lines: 3 and 5 in the jsp file: /CounterBean.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\howjsp\CounterBean$jsp.java:60: Class org.apache.jsp.CounterBean not found. CounterBean counterBean = null;" The CounterBean.jsp is placed in the Context directory(\howjsp) which ...

32. response.sendRedirect not working from bean    coderanch.com

To validate the user, I am calling java bean(scope is request) from my JSP Login screen. When some one enters userid/pwd, validateLogin method of the bean is called: <% beanLogin.validateLogin(request,response); %> validateLogin method is returning null and if the userid/pwd is correct, the method is redirecting user to the Main Screen: response.sendRedirect(strMainScreen); I am running Apache Tomcat 4.0 on my local ...

33. Beans and Jsps and Servlets    coderanch.com

Hello all.... If someone could help me with this it would be GREATLY appreciated. I have a web application that makes use of beans and jsps and servlets. My problem is this... I on my initial JSP and have one user input field. My action on the Form is to go to a Process Jsp page which basically does a ...

34. problem with bean using Apache    coderanch.com

I am not able to to the following in Apache: ****** <%= "User is 1 " + credentials.getUser() %> <%= "User is 2 " + request.getParameter("user") %> ******* When I call this from my html page by entering "Hello" for user field and I get the following: *********** User is 1 User is ...

35. Diff. between Bean & JSP Bean    coderanch.com

36. why use beans in JSP    coderanch.com

38. Empty bean    coderanch.com

39. Running a bean    coderanch.com

40. Bean or Servlet or JSP?    coderanch.com

Hi, Suppose I have a simple login page and the login is to be verified against a MySql database. There are 3 ways I can do this: 1. Have a jsp to accept the login and forward the login details (form post) to a servlet that connects to the database verifies the login and calls back the same jsp with "success" ...

41. help bean!    coderanch.com

42. a mistake for bean    coderanch.com

hi,can anybody help me? when I used the beans in jsp page,a err throw"DBConnectManager.class,init()" there are my code: DBConnectManager.java package com.cqucmre.database; import java.io.*; import java.sql.*; import java.util.*; import java.util.Date; public class DBConnectManager { static private DBConnectManager instance; static private int clients; private Vector drivers = new Vector(); private PrintWriter log; private Hashtable pools = new Hashtable(); static synchronized public DBConnectManager getInstance() ...

43. Problem Using Bean in JSP    coderanch.com

Hi, I have a very simple program which says hello using a bean. Somehow tom cat does not seem to find the been class. I have my jsp page under: Tomcat 4.1\webapps\paviBean\jsp\Hello.jsp and bean class fiile under: Tomcat 4.1\webapps\paviBean\Web-inf\classes\mypackage\HelloBean.class. My code for Hello.jsp: <%-- Hello.jsp --%> <%@ page import = "mypackage.HelloBean" %> ...

44. JSP and BEANS    coderanch.com

the following are the three files that I am using and i get the following message GetName.html

What's your name?
What's your e-mail address?
What's your age?

Savename1.jsp Continue ...

45. JSP/servlets/java-beans..    coderanch.com

Hi e'body, well, i have started working on an already created web-application using IBM websphere 3.5.3 and I was told to make some modifications and also speedify the application.IT is working pretty slow. I have finished the modification part, but still to make it fast. This application is working on the MVC structure ( servlets,java-beans and JSP ). This application was ...

46. Bean Design Question    coderanch.com

I am calling some beans that return a lot of info for reports. There beans are intenisive db calls. I have done a variety of things. *One time I made a huge db call, and then just returned the ResultSet to the jsp. *One other time, I created an object and then returned an array of obects when the method is ...

47. Simple Bean question    coderanch.com

hi Erik consider these two points, 1. in the first post you provided, you have object "items" in the session which is Vector and not a bean. 2. when you do getProperty then it looks for a bean in page, request, session, application scopes (well this sequence of lookup would be altogether another discussion i would say) and tries to do ...

48. Help with Bean problem in JSP    coderanch.com

Hi, i have the next bean code: package BBSpack; import java.util.*; import java.sql.*; public class BBS { public String categoria = ""; public int prueba = 0; public BBS() { initComponents(); } private void initComponents() { //String categoria = ""; //int prueba = 0; try { String userName = "root"; String password = ""; String url = "jdbc:mysql:3306/localhost/bbs"; Class.forName("org.gjt.mm.mysql.Driver").newInstance (); //Connection ...

49. Bean and JSP    coderanch.com

The most comment method of passing beans, or any other Java data, from a servlet to a JSP (assuming that you are forwarding) is to tack it onto the request via request.setAttribute(). You can then retrieve the bean in the JSP either via the request.getAttribute() method, or with the JSP useBean tag. Your instinct to not just throw transient data onto ...

51. bean not right    coderanch.com

Hi, I am getting the following error when requesting a .jsp: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: com.eclinck.web.UserBean.setID(Ljava/lang/String V at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248) I can find absolutely no reason for this problem. Here is my code (first the .jsp segment) statement = connection.getConnection().createStatement(); result = statement.executeQuery(sql); if (result.next()) ...

52. Problems with Bean in JSP...    coderanch.com

I am trying to put beans in JSP so I am creating a fruit order example that a book is giving me... I can show you the code from each part and if you could help me out I would greatly appreciate it... here is the error I get: Error: 500 Location: /myWork/confirm.jsp Internal Servlet Error: org.apache.jasper.JasperException: Fruit at org.apache.jasper.compiler.BeanRepository.getBeanType(Unknown Source) ...

53. getting JSP to recognize my bean!!!    coderanch.com

Hi, I'm calling a bean to process input from a JSP. I get the following error message: _process_jsp.java [76:1] package foo does not exist foo.FormBean formHandler = null; ^ I'm also getting an invalid package declaration on my java bean, though it compiles. I've placed my classes under foo/WEB-INF/classes I tried putting the jsp in the foo directory and also WEB-Inf. ...

54. using beans in JSP    coderanch.com

55. basic bean question    coderanch.com

56. Where do beans go for Jetspeed    coderanch.com

I'm trying to write a porlet for Jetspeed. (im not sure why they made jetspeed so complicated - my little vent :roll: ) I'm using a jsp which resides in: webapps\jetspeed\WEB-INF\templates\jsp\portlets\html\thecode.jsp I have no idea why a path so wacky is required but anyway.... Heres my declaration in the jsp: I've put the bean in several different ...

57. bean always should be in package ?    coderanch.com

58. Bean could not be loaded by jsp    coderanch.com

59. JSP to Bean to Servlet    coderanch.com

60. Bean not getting populated?    coderanch.com

I have a JSP page and am populating a Bean with a value. Then I call a servlet and try and print out this value, and I am getting a NullPointerException. Can someone look at this code and tell me what might be the problem. JSP Code <%@ page language="java" %> Add ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>61. <a href='http://www.coderanch.com/t/283580/JSP/java/simple-bean-questions'>simple use bean questions</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>Q1. <CODE> <P><jsp:useBean id="bUser" class="com.manish.testapplication.wssd.User" scope="session"/> </CODE> =========================== Above is my use bean code. I need to use the bUser and its property values to do some calculation/evaluation in a code which looks something like: <CODE> <%int count = bUser.messages.size() %> </CODE> where messages is a Vector but this preceding line of code is giving me null pointer exception. However if ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>62. <a href='http://www.coderanch.com/t/283589/JSP/java/bean'>bean problem</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>63. <a href='http://www.coderanch.com/t/283777/JSP/java/bean-not-populated'>bean not populated</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>64. <a href='http://www.coderanch.com/t/283984/JSP/java/little-Bean-Prob'>a little Bean Prob</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>Howdy Ok..here it goes my little Prob: Im currently working on uploading a File via Smartupload. Upload is working as a Servlet. But i also wanna store the Filenames / Extensions and an ID to a MySQL Database. Therefore i need these Strings to store em. Im getting these Strings in my UploadServlet and Im sending em to my Files-Bean. Code ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>65. <a href='http://www.coderanch.com/t/284237/JSP/java/reference-Bean-Servlet'>reference Bean from Servlet</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>Hi all, Here's the situation: I'm dynamically filling in a pdf form, which will be viewed by a user. Now, all the data to fill in the form (i.e. name, age, dob, etc.) is stored in a Bean. I'd like to use JSP alone to do this, but I can't seem to get the JSP page to bring up the pdf ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>66. <a href='http://www.coderanch.com/t/284287/JSP/java/beans'>beans</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>67. <a href='http://www.coderanch.com/t/284316/JSP/java/Beans'>Beans</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>68. <a href='http://www.coderanch.com/t/284532/JSP/java/jsp-beans'>jsp and beans</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>69. <a href='http://www.coderanch.com/t/284880/JSP/java/jsp-bean'>jsp bean issue</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>70. <a href='http://www.coderanch.com/t/284905/JSP/java/setting-bean-JSP'>setting a bean in a JSP</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>71. <a href='http://www.coderanch.com/t/284957/JSP/java/Simple-Bean'>Simple Question about Bean</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>72. <a href='http://www.coderanch.com/t/285028/JSP/java/Simple-Jsp-Bean'>Simple Jsp-Bean problem !!</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>73. <a href='http://www.coderanch.com/t/285063/JSP/java/JSP-Bean'>JSP Bean Problem</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>hey everyone! I'm having awful trouble here. What i want to do is insert username,product id and quantity into my shopping cart table. There is no problem with quantity but i'm havin problems with username and productid because the customer has signed in previous pages before and also they have chosen a product previous pages before also...so i created a java ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>74. <a href='http://www.coderanch.com/t/285164/JSP/java/where-put-bean'>where to put my bean</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>75. <a href='http://www.coderanch.com/t/285349/JSP/java/show-jsp-after-bean-procesing'>how to show a jsp after bean procesing is done?</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>76. <a href='http://www.coderanch.com/t/285802/JSP/java/valid-Bean'>In valid Bean</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>77. <a href='http://www.coderanch.com/t/285879/JSP/java/bean-inside-another-bean'>Using a bean inside another bean</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>78. <a href='http://www.coderanch.com/t/286607/JSP/java/bean-jsp'>problem using bean in jsp</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>79. <a href='http://www.coderanch.com/t/287011/JSP/java/JSP-Bean-best-practise'>JSP and Bean best practise!</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>80. <a href='http://www.coderanch.com/t/287418/JSP/java/bean-write'>bean:write issue</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>81. <a href='http://www.coderanch.com/t/287534/JSP/java/Beans-forEach'>Beans and c:forEach</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>I am having a hard time getting forEach to iterate through a bean I have, which is an array. Here is (I think) the relevant code: Populate the bean: BaseClass bc[] = oCrn.query("CAMID(\":\")//dataSource",dataSourceProps,s,new QueryOptions()); //BaseClass bc[] = helper.getObjects(oCrn,"CAMID(\":\")//dataSource",dataSourceProps); CRNDataSource dataSources[] = new CRNDataSource[bc.length]; //LinkedHashSet dataSources = new LinkedHashSet(); for (int i=0;i < bc.length;i++) { CRNDataSource ds = new CRNDataSource(); ds.setDataSourceName(bc[i].getDefaultName().getValue()); ds.setDataSourceSearchPath(bc[i].getSearchPath().getValue()); ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>82. <a href='http://www.coderanch.com/t/287557/JSP/java/bean-jsp'>use of bean in jsp</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>83. <a href='http://www.coderanch.com/t/287581/JSP/java/bean'>use bean</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>84. <a href='http://www.coderanch.com/t/287646/JSP/java/JSP-Bean'>JSP Bean</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>85. <a href='http://www.coderanch.com/t/287731/JSP/java/Beans-servlets'>Beans in servlets?</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>86. <a href='http://www.coderanch.com/t/287738/JSP/java/Beans-again'>Beans (again)</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>I have another problem with beans if anyone is interested. My JSP (Validate.jsp) collects user information from another JSP, then it creates a bean. My servlet(Spreadsheet.java) now recieves the bean, and its properties are displayed. The problem is, the servlet(Spreadsheet.java) only displays the bean, when the page is loaded, so if many users enter information, the single bean I'm using will ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>87. <a href='http://www.coderanch.com/t/287822/JSP/java/beans'>beans</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>88. <a href='http://www.coderanch.com/t/287830/JSP/java/why-bean-not-jsp'>why bean not jsp</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>89. <a href='http://www.coderanch.com/t/287834/JSP/java/bean-each'>bean and for each</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>90. <a href='http://www.coderanch.com/t/287962/JSP/java/bean-jsp'>bean in jsp</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>Hi, The code in one jsp is: <% while(e.hasMoreElements()) { NewTicket ticketBean = (NewTicket) e.nextElement(); %> <a href="http://localhost:8084/qatts/ticketdetails.jsp"> <%= ticketBean.getTicketID() %> </a> .... and the code in another ticketdetails.jsp is: <jsp:useBean id="NewTicketbean" scope="session" type="ticket.NewTicket" class="ticket.NewTicketImpl" /> <i>Ticket ID</i> <% NewTicketbean.getTicketID(); %> where NewTicket is an interface which is implemented in NewTicketImpl.java My question is: which ticketid I click that particular ticketdetails ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>91. <a href='http://www.coderanch.com/t/288071/JSP/java/java-beans-your-jsp'>Using java-beans in your jsp</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>92. <a href='http://www.coderanch.com/t/288242/JSP/java/add-bean-many-servlets-which'>add a bean to many servlets which share their data</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>93. <a href='http://www.coderanch.com/t/288258/JSP/java/bean'>problem with bean</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>94. <a href='http://www.coderanch.com/t/288316/JSP/java/Help-me-bean-JSP'>Help me using bean in JSP</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>95. <a href='http://www.coderanch.com/t/288425/JSP/java/jsp-bean'>jsp bean</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>96. <a href='http://www.coderanch.com/t/288462/JSP/java/beans-jsp'>beans in jsp</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>97. <a href='http://www.coderanch.com/t/288683/JSP/java/when-should-beans'>when should i need to use beans</a><span class='articleProductElementHost'>    coderanch.com</span></h3></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>98. <a href='http://www.coderanch.com/t/288771/JSP/java/bean-JSP-Solved'>Problem with using a bean in JSP [Solved]</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>I have a sample bean called CarBean.java and is compiled to CarBean.class file. I have put the class file at /root/web-inf/classes CarBean.java code... import java.io.*; public class CarBean{ private String modelName; public String getModelName(){ return modelName; } public void setModelName(String modelName){ this.modelName = modelName; } } I have a jsp file carBean.jsp at root/forums and the code is... <body> <jsp:useBean id="myCar" ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>99. <a href='http://www.coderanch.com/t/288797/JSP/java/odd-bean-prefixes-Tomcat'>odd problem with bean prefixes in Tomcat4</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>I'm porting a Tomcat3 application to Tomcat4. When JSPs are translated all generated variable names based on bean tag prefixes that contain the '-' character are incorrectly translated. The problem is that generated variable names based on these bean prefixes contain the "-" character. For example for an html-el tag using the prefix "html-el", generatedStuff_html-el_moreGeneratedStuff. Variable names with "-" in them ...</p></div></td></tr><tr><td><div class='articleProductElement'><h3 class='articleProductElementTitle'>100. <a href='http://www.coderanch.com/t/289028/JSP/java/Bean-JSP'>Bean In JSP problem</a><span class='articleProductElementHost'>    coderanch.com</span></h3><p class='articleProductElementParagraph'>Hi to all, I facing problem while executing JSP .I using bean eith JSP .HTML code for program is as follows <HTML> <BODY> <FORM METHOD=POST ACTION="SaveName.jsp"> What's your name? <INPUT TYPE=TEXT NAME=username SIZE=20><BR> What's your e-mail address? <INPUT TYPE=TEXT NAME=email SIZE=20><BR> What's your age? <INPUT TYPE=TEXT NAME=age SIZE=4> <P><INPUT TYPE=SUBMIT> </FORM> </BODY> </HTML> _____________________________________________________________________ JSP code for program is : <jsp:useBean ...</p></div></td></tr></table></div></div><footer><p class='pull-right'><a href='http://www.java2s.com/'>java2s.com</a>  | © Demo Source and Support. All rights reserved.</p></footer></div></body></html>