• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Problem with calling a java bean in JSP

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 6999
6
Eclipse IDE Debian Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic