• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with calling a java bean in JSP

 
Ira Jain
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DO you mean <%@ page ...
Your syntax wasn't correct
 
Ira Jain
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic