wood burning stoves 2.0*
The moose likes Servlets and the fly likes Problem with calling a java bean in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem with calling a java bean in JSP" Watch "Problem with calling a java bean in JSP" New topic
Author

Problem with calling a java bean in JSP

Ira Jain
Ranch Hand

Joined: Sep 06, 2000
Posts: 70
Hi,
I am trying to import a Java bean in Jsp(1.0)thru the following command -
@page import ="example.bean.Employee"
However,the Jsp complains that "Attribute page has no value".
Will be really obliged if somebody could help me .
Thanks in advance
Ira
Brian Nice
Ranch Hand

Joined: Nov 02, 2000
Posts: 195
DO you mean <%@ page ...
Your syntax wasn't correct
Ira Jain
Ranch Hand

Joined: Sep 06, 2000
Posts: 70
Yeah,I meant this-
<%@ page import="example.bean.Employee" %>
Sorry for writing in vague manner.
I have got another query too-
Q - Can we assign values of JavaScript variables to JSPvariables ?If yes,could u please tell me how to do this.
Thanx in advance
Ira
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Ira Jain wrote: Can we assign values of JavaScript variables to JSPvariables
Someone else asked a similar question in this thread. Please have a look to see if it answers your question.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5

If you are getting the error "Attribute page has no value" then there is something wrong with the syntax earlier in the page because JSP is not picking up the fact that you have a page directive. Look for miss-matched quote marks or tag start/ends
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with calling a java bean in JSP
 
Similar Threads
submit using scriptlet
Question related to Tomcat /JSP
Error while calling beans in jsp
using jsp:useBean
How to Import a JAVA File in JSP