473,611 Members | 2,236 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

beans in jsp

17 New Member
i am new to beans in jsp.
I used the .class (UserData.class )in new jsp
In my jsp i have written
<jsp:useBean id="user" class="UserData " scope="session" />
but when i compile it cannot resolve the symbol UserData
I think the path is not set

How to set the path.I am using Tomcat 5.5 bundled in net beans.

Pls help
Oct 16 '06 #1
1 1360
r035198x
13,262 MVP
i am new to beans in jsp.
I used the .class (UserData.class )in new jsp
In my jsp i have written
<jsp:useBean id="user" class="UserData " scope="session" />
but when i compile it cannot resolve the symbol UserData
I think the path is not set

How to set the path.I am using Tomcat 5.5 bundled in net beans.

Pls help
Note that UserData class needs to be imported into the JSP page.
Expand|Select|Wrap|Line Numbers
  1. <jsp:directive.page import="UserData"/>

Also, the class file needs to be copied to the .\web-inf\classes directory.
Oct 16 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
5788
by: Tushar | last post by:
Hello, I am working on a client server application involving TOMCAT as Web server, MySQl as the DB and combination of JSP, Servlet, and JavaBeans to access and write Data back. There is another piece of the project (out side my scope of development) that writes to the Same MySQL tables and make changes to the data.
1
3604
by: Glen | last post by:
I have a list of beans that I retrieved from a database. These beans are all of the same class. Now I want to display these beans in a struts form so that the user can modify the data in the beans and save it back to the database. Can anyone help with this problem? Is there any sample code out there that would show how to do this? Thanks
0
1685
by: jenniferyiu | last post by:
Hi. I downloaded the bean builder and followed the steps told on http://java.sun.com/products/javabeans/beanbuilder/1.0/docs/guide/tutorial.html and the sample tools was created as the above link told. I guess the bean builder can let the developers do something without writing
10
3766
by: Nikita A. Visnevski | last post by:
Hi everyone, I am rather new to Java beans. Just picked up a book last night and started reading about them. I am building an application that allows a user to define objects with dynamic properties. Something similar to a java hash table. One can add new properties at runtime and remove them as well. I have a really fancy third party property inspector available to me that I would very much like to reuse. This inspector uses...
0
2248
by: Cruinne | last post by:
Hello, In a JBoss 3.2.4 server, I have deployed several enterprise javabeans (each as a separate .jar, not in an .ear bundle). These beans are completely self-contained, as they include all their needed dependencies inside the jar files (and have a reference to them in the Class-Path entry in their MANIFEST.MF). The problem shows when I want these beans to be scoped, this is, to have their own classloader inside JBoss and not use the...
1
4330
by: milkyway | last post by:
Hello out there, I have seen the docuemntation for the accessing of an array of beans from a .jsp here at: http://struts.apache.org/faqs/indexedprops.html Has anyone acutally done this? I have gotten this to work for something simple (like an array of strings) but have not seen anything for an array of **complex** beans being used by a .jsp.
0
3358
by: DD | last post by:
Hi Guys! Just would like to share with you my experiense in this matter. I was trying to evaluate how suitable Oracle OLAP for our applications. As probably you did, I have downloaded from OTN website OraJDeveloper and BI Beans, installed them and opened Cube Viewer ... no luck! Just did not work. After very long conversation(s) with Oracle Support I finally figured
0
2130
by: donnet | last post by:
To those familiar with Java beans, question on how to do with ASP.NET: I come from J2EE and starting to learn ASP.NET and C#. I want to find a way to display a web form filled with data taken from a SQL table. I need to repeat the layout of my web form in one single page, each time with data taken from the SQL table row. I don't want to put those data rows into a datagrid because I have my own form that I want to populate with a specific...
9
3294
by: Stephen H. | last post by:
Hi, I have an existing web application with java beans that I wanne migrate to ASP.NET using C#. The existing web application has some jsp files that use java beans as follows: .... <%@ page language="java" import="reportgen.*"%>
1
3247
by: maya | last post by:
I started a new job recently for which I need to learn both beans and taglibs (at my last job also did JSP but they didn't use beans or taglibs..) reading up on this in oreilly (JSP, 3rd ed.) I find following beans code: <jsp:useBean.... etc.. but where I work they do stuff like: <bean:define id="showName"> i.e., "bean" here looks like a namespace for taglibs.. can anyone shed
0
8149
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8596
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8561
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5527
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4042
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4108
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1692
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.