The Artima Developer Community
Sponsored Link

Java Answers Forum
how to call to bean from jsp in weblogic 6.1

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Birendar S Waldiya

Posts: 21
Nickname: ebiren
Registered: Nov, 2003

how to call to bean from jsp in weblogic 6.1 Posted: Jul 31, 2004 3:16 AM
Reply to this message Reply
Advertisement
<pre>
Hi All,
Can any one help me , my problem is i have a jsp that is calling a simple bean method for displaying a message .
When im trying to call the beans methods it conntinusly giving me error unable to resolve the Beans' name
my jsp content is:

jsp code is :-
<code>
(i have remove the code symbol and as its not appearing )
page language="java" import="com.Arvind*"
jsp:useBean id="mybean" scope="session" class="com.Arvind"
out.println("Hello"+mybean.callMe());

</code>

beans is :-

<java>
package com;
public class Arvind
{
private String st ="This Is Me??";
public String callMe(){
System.out.println("Hello World!");
return st;

}

public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
</java>
i have tried it a lot but all time it fails resolve the class name itself ??

can anyone please help me urgently

thanks in advance
rgds
Birendar

</pre>

Topic: clicking for invoking a java program Previous Topic   Next Topic Topic: Hi I'm new to java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use