Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Error ???? import EJB class in JSP

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All
This is my when i import my seesion been in jsp it gives errr why is that?
<%@ page import="mcvt.MetricCvtBean , mcvt MetricCvtHome"%>

following is file structure in WAS Studio
MetricConverterEJB
ejbmodule
mcvt
MetricCvtHome
MetricConverterWeb
webcontent
index.jsp

PLs HElp me
Thanks
vasan
 
author & internet detective
Posts: 41262
849
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are missing the period before "MetricCvtHome"
 
Sureshvasan Paramasamy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi janne
I couldnt undastand that
im importing the class
<%@ page import ="mcvt.MetricCvtConstant ,mcvt.MetricCvtBean"%>

this way in jsp
but im getting error
 
Jeanne Boyarsky
author & internet detective
Posts: 41262
849
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sureshvasan,
The second post has the period. What error are you getting? Is the ejb project in your build path?
 
Sureshvasan Paramasamy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Janne
I solve that problem but I have another the error in jsp forword
Here is the code
'<' <br /> jsp:forward page="http://localhost:9080/RockSurveyWeb/SurveyWelcome.jsp" <br /> /<br /> '>'

this is not worked im testing it in websphere studio v 5.0
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You really should read the Javadoc before you ask questions -- it's accepted practice to do due diligence before asking for help. According to the javadoc for this, jsp:forward only uses RELATIVE URL's (see here). The documentation page for the jsp:forward tag specifically says:

The relative URL looks like a path-it cannot contain a protocol name, port number, or domain name. The URL can be absolute or relative to the current JSP file. If it is absolute (beginning with a /), the path is resolved by your Web or application server.

Kyle
[ June 08, 2004: Message edited by: Kyle Brown ]
 
Sureshvasan Paramasamy
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks
Kyle
i corrected it and successfully run the the application
tahnks®ards
vasan
 
That new kid is a freak. Show him this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic