JSP file cannot locate beans
I created a JSP file that calls a bean, I placed the bean in Web-inf/classes folder (I manually created classes folder because the application server didn't create it, bug). The problem is that my JSP page cannot access the bean, even when I modify setEnv.cmd file. Please HELP!!
I have the same problem:
I try to get the Emp bean in examples\intro from weblogic 5.1 working on WL
6 sp1: I take the jar file and deploy it in console (either as EJB or as
Application), and my JSP page EmpQuery.jsp miserably fails since it can't
get to the bean classes.
When I extract all the *.class files from the jar in the
config\examples\serverclasses
it works like a charm.
BUT this defeats the idea of bean deployment !
How can I make it work ?
Should I modify the CLASSPATH as well ? Isn't the deployment supposed to do
that automatically for me ?
"Jean" <[email protected]> wrote in message
news:3affe733$[email protected]..
I created a JSP file that calls a bean, I placed the bean inWeb-inf/classes folder (I manually created classes folder because the
application server didn't create it, bug). The problem is that my JSP page
cannot access the bean, even when I modify setEnv.cmd file. Please HELP!!
Similar Messages
-
Hi
i have a form from which i am gettin values and i am using struts to get those values and perform actions in my DAO,
i am able to retrieve values from DAO but the value is not gettin printed in front end.. its throwing
"javax.servlet.jsp.JspException: Cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope" error
got any suggestions
thankxGot the solution,. i had closed my <html:form> before closing one of my <html:form>
thankx -
JSP file cannot find the beans
Hi all,
My question is about Tomcat and JSP with Javabean.
I put my .jsp files under c:\tomcat\webapps\examples\jsp\Demo,
it works correctly, but when I add:
<jsp:useBean id="data" scope="session" class="DataBean" />
Where DataBean at:c:\tomcat\webapps\examples\WEB-INF\classes\DataBean.class
it throuws exception as follow:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 25 in the jsp file: /jsp/Demo/base.jsp
Generated servlet error:
C:\Tomcat\work\localhost\examples\jsp\Demo\base$jsp.java:60: Class org.apache.jsp.DataBean not found.
DataBean DataBean = null;
BTW:The DataBean.class compiled withou any error.
OS:WIN2000
Tomcat4.0
It looks like the Server can't find the class, but it exists.
Any suugestion?
Thanks!Try putting the Bean in a package - for some reason Tomcat doesn't always find classes in the default package.
i.e. add a package statement to DataBean and change the useBean to include class="yourpackage.DataBean".
Hope this helps. -
How to configure multiple jsp files with diff beans in faces-config.xml??
Hi All,
I have 2 seperate jsp pages one is a login page and the other is the main application page.Now i am handling both the pages with seperate Bean class with respective setter and getter methods.How can i state the same in faces-config.xml file???..
Is the below way correct???
<?xml version='1.0' encoding='UTF-8'?>
<!-- =========== FULL CONFIGURATION FILE ================================== -->
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
<managed-bean-name>LoginForm</managed-bean-name>
<managed-bean-class>useraccess.LoginForm</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/login.jsp</from-view-id>
<navigation-case>
<from-action>#{LoginForm.CheckValidUser}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/success.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{LoginForm.CheckValidUser}</from-action>
<from-outcome>fail</from-outcome>
<to-view-id>/fail.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>DSRApplication</managed-bean-name>
<managed-bean-class>DSRApplication.LoginForm</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/DSR.jsp</from-view-id>
<navigation-case>
<from-action>#{DSRApplication.checkValidDateInAllFields}</from-action>
<from-outcome>alldatasuccess</from-outcome>
<to-view-id>/success.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-action>#{DSRApplication.checkValidDateInAllFields}</from-action>
<from-outcome>datafail</from-outcome>
<to-view-id>/fail.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>Thanks in advance to all.
regards,
Viswanadh.Thanks ejp for the reply.
Since i am a beginner even i dont know the exact reason to answer you for why am i using JSP with Facelets.Kindly provide me the suggestion and valuable information you have so that i can learn.
Apart from this i want to know whether the way provided in that faces-config.xml is possible or do we have a way to make that possible???
regards,
Viswanadh. -
Unable to open jsp file with BI Beans tags.
Hi partners,
I have successfully deployed a BI Beans applications, but when I try to open it, I get next error messages at my OC4J logfile:
06/03/22 18:08:14 Notification ==> Initialize Dashboard.ear begins...
06/03/22 18:08:14 Auto-unpacking /ofappltst/OC4J/j2ee/home/applications/Dashboard/Dashboard.war... done.
06/03/22 18:08:16 Copying default deployment descriptor from archive at /ofappltst/OC4J/j2ee/home/applications/Dashboard/META-INF/orion-application.xml to deployment directory /ofappltst/OC4J/j2ee/home/application-deployments/Dashboard...
06/03/22 18:08:16 Notification ==> Initialize Dashboard.ear ends...
06/03/22 18:08:16 Notification ==> Initialize Dashboard begins...
06/03/22 18:08:20 Notification ==> Initialize Dashboard ends...
06/03/22 18:08:22 Notification ==> Application Deployer for Dashboard COMPLETES [ 2006-03-22T18:08:22.190CLT ]
06/03/22 18:08:27 Error: oracle.dss.addins.jspTags.BIThinSessionTagTEI
06/03/22 18:08:27 Errors parsing file:/ofappltst/OC4J/j2ee/home/applications/Dashboard/Dashboard/WEB-INF/BITags.tld
06/03/22 18:33:07 Error: oracle.dss.addins.jspTags.BIThinSessionTagTEI
06/03/22 18:33:07 Error: oracle.dss.addins.jspTags.BIThinSessionTagTEI
06/03/22 18:33:07 Error: loading Tld's into cachedConfigTable: null
We are using JDeveloper with 9.0.4 and BIBeans 9.0.4 too.
Any help or advice will be really appreciated.
Kind regards,
Francisco Mtz.I have solved my issue after copying tnext jar files from my Database Server to my JDeveloper installation (PC):
$ORACLE_HOME9i/jdbc/lib/classes111.jar to C:\JDeveloper904\jdbc\lib\classes111.jar
$ORACLE_HOME9i/jdbc/lib/classes12.jar to C:\JDeveloper904\jdbc\lib\classes12.jar
$ORACLE_HOME9i/jdbc/lib/classes12dms.jar to C:\JDeveloper904\jdbc\lib\classes12dms.jar
$ORACLE_HOME9i/jdbc/lib/nls_charset11.jar to C:\JDeveloper904\jdbc\lib\nls_charset11.jar
$ORACLE_HOME9i/jdbc/lib/nls_charset12.jar to C:\JDeveloper904\jdbc\lib\nls_charset12.jar
Also I copied classes12dms.jar, classes12.jar and nls_charset12.jar files to my jdbc/lib/ directory of my OC4J Standalone installation server.
Don't forget to set the DISPLAY environment variable before starting OC4J again.
Best regards!!!!!
I really appreciate your help.
Frank Mtz. -
Downloaded Firefox 2wks ago. Just now working with a large Excel spreadsheet when something happened losing all 6 sheets of data. My file location now shows sheet data as Firefox Document. Now I can't retrieve this file of data; it was financial data! What happened for Firefox to intervene?
No, Sir. I was strictly working within a newly created Excel file. Actually, Internet Explorer is current browser.
Thank you for interest and any suggestion.
Re-thinking thru this, it is probable I downloaded the base data thru FIREFOX. I was working with the project on an Excel spread sheet when I lost the data. The sheets still exist but the data is missing. Very strange. -
Jsp:useBean cannot locate class name
I used the following code in my JSP page:
<jsp:useBean id="myBean" class="myBean"/>
<%= myBean.getNum() %>
Container error:
Unable to compile class for JSP.Thank you all for the timely responses...
I tried 2 classes actually. One in an unnamed package which resided in /WEB-INF/classes/ and other in /WEB-INF/classes/packageClasses/. Both qualified names were not detected by the container. I'm confused as to whether the container follows a specific search algorithm when using the jsp:useBean which is not specified in the specification? -
Jsp-file="/WEB-INF/index.jsp" cannot load
Hi,
I am defining a servlet in the web.xml file using the following syntax.
<servlet>
<servlet-name>TestServlet</servlet-name>
<jsp-file>/WEB-INF/index.jsp</jsp-file>
</servlet>
Then when I tried to access this servlet, I get a 404 not found error. The weblogic.log
file complains with the following message:
java.io.FileNotFoundException: no resource '/WEB-INF/index.jsp' in servlet context
root '/home/dev/web/apps/MyApp'
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:293)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
My jsp file in located in /home/dev/web/apps/MyApp/WEB-INF/index.jsp, I know weblogic
doesn't support jsp under WEB-INF, however, according to Sun's Servlet specification,
anything under web-inf should be accessible to getResource and getResourceAsStream
method, and it looks like that's what weblogic implementation is using (from the
error message). So I am not sure whether this is weblogic issue or I am doing
something wrong. By the way, the above config in web.xml is supported in Tomcat.
What version of WebLogic will incorporate Servlet spec 2.4 and allow jsp under
web-inf?
Chris
"Narayan Anand" <[email protected]> wrote:
>Regarding S-12864 - It will not work as stated in the solution in any
>of
>the available releases of WLS.
>Please ignore that. I already informed the concerned person to correct
>the
>solution.
>
>The story behind this is:
>Our engineering team is already aware of the fact that the request
>dispatcher calls (include/forward) for a jsp under the web-inf directory
>works in other app server - Tomcat.
>Our engineering team had a discussion with the servlet/jsp spec experts
>group for clarifying the spec and the tomcat implementation.
>So the servlet expert group has decided to explicitly state in the spec
>that
>RD.forward() and RD.include() should be allowed access to resources in
>/WEB-INF and it will be included in servlet spec 2.4. For now, WLS works
>as
>per the current specification.
>
>So far the story is - WLS will implement this in our next major release
>which will be compliance with servlet spec 2.4.
>In all the currently available WLS releases, accessed to a jsp under
>the
>WEB-INF directory is prohibited.
>
>--
>Best Regards,
>Narayan Anand
>Developer Relations Engineer
>BEA Systems, Inc.
>
>
>
>
>
>
>"Ming Fan" <[email protected]> wrote in message
>news:[email protected]...
>>
>> Thanks for the explanation. So this means weblogic treats such mapped
>servlet request
>> as a direct request to the jsp under WEB-INF, instead of forwarding
>it to
>some
>> JspCompiler servlet and let that compiler servlet use some resource
>loader
>to
>> load the jsp and then compile. I believe that latter implementation
>approach also
>> conforms the Servlet spec (it's a different way of treating the request,
>I
>guess).
>>
>> Now here's another question. According to Web logic Customer Support
>Solution
>> ID S-12864 (WLS 6.x - Cannot access JSP under the WEB-INF directory),
>the
>servlet
>> should be able to get a request dispatcher, and then forward the request
>to the
>> jsp under WEB-INF. I am still using WLS 5.1, so does the above solution
>apply
>> to 5.1 also? It doesn't seem to work with 5.1. So is this a 5.1 problem
>and I
>> should upgrade to 6.1?
>>
>> Thanks.
>>
>> "Narayan Anand" <[email protected]> wrote:
>> >Hi Ming,
>> >
>> >It is legal to put files under WEB-INF directory. But as mentioned
>in
>> >the
>> >spec, it will be available only to servlet code and not directly to
>client
>> >request.
>> >Read the last statement of the same paragraph in section9.5.
>> >"Since requests are matched to resource mappings case-sensitively,
>client
>> >requests for '/WEB-INF/foo', '/WEb-iNf/foo', for example, should not
>> >result
>> >in contents of the web application located under /WEB-INF being returned,
>> >nor any form of directory listing thereof.".
>> >
>> >So in your case, when you access the servlet which gets mapped to
>> >/WEB-INF/your-jspfile, under no condition it should result in display
>> >of jsp
>> >contents.
>> >It is working as per the specification.
>> >
>> >I hope this helps.
>> >
>> >Regards,
>> >Narayan Anand
>> >Developer Relations Engineer
>> >BEA WebLogic Support
>> >
>> >
>> >
>> >"Ming Fan" <[email protected]> wrote in message
>> >news:[email protected]...
>> >>
>> >> Actaully there are other ways to solve my problem. But what I am
>> >interested to
>> >> know is under the Servlet specification 2.3, is it legal to put
>jsp
>> >under
>> >WEB-INF,
>> >> define it in <jsp-file> xml tag, and should the JSP compiler be
>able
>> >to
>> >see this
>> >> as a resource. Apparently, Tomcat allows this behavior, so does
>this
>> >mean
>> >Tomcat
>> >> conforms better to the Servlet spec, or Tomcat is wrong but Weblogic
>> >conforms
>> >> better? Can anyone let me know what's the correct interpretation
>of
>> >section 9.5
>> >> in servlet spec 2.3?
>> >>
>> >>
>> >> "Jerrie Pineda" <[email protected]> wrote:
>> >> >Try moving it to a different dir. You normally don't place jsp
>file
>> >> >in the
>> >> >WEB-INF dir.
>> >> >
>> >> >
>> >> >"Ming Fan" <[email protected]> wrote in message
>> >> >news:[email protected]...
>> >> >>
>> >> >> Hi,
>> >> >>
>> >> >> I am defining a servlet in the web.xml file using the following
>> >syntax.
>> >> >> <servlet>
>> >> >> <servlet-name>TestServlet</servlet-name>
>> >> >> <jsp-file>/WEB-INF/index.jsp</jsp-file>
>> >> >> </servlet>
>> >> >>
>> >> >> Then when I tried to access this servlet, I get a 404 not found
>> >error.
>> >> >The
>> >> >weblogic.log
>> >> >> file complains with the following message:
>> >> >> java.io.FileNotFoundException: no resource '/WEB-INF/index.jsp'
>> >in
>> >> >servlet
>> >> >context
>> >> >> root '/home/dev/web/apps/MyApp'
>> >> >> at
>weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:293)
>> >> >> at
>> >weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:227)
>> >> >> at
>> >>
>>
>>>weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:
>2
>> >0
>> >> >0)
>> >> >> at
>> >>
>>
>>>weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.ja
>v
>> >a
>> >> >:115)
>> >> >> at
>> >>
>>
>>>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextI
>m
>> >p
>> >> >l.java:922)
>> >> >> at
>> >>
>>
>>>weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextI
>m
>> >p
>> >> >l.java:886)
>> >> >> at
>> >>
>>
>>>weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletConte
>x
>> >t
>> >> >Manager.java:269)
>> >> >> at
>> >>
>>
>>>weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380
>)
>> >> >> at
>> >> >weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
>> >> >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
>> >> >>
>> >> >> My jsp file in located in
>/home/dev/web/apps/MyApp/WEB-INF/index.jsp,
>> >> >I
>> >> >know weblogic
>> >> >> doesn't support jsp under WEB-INF, however, according to Sun's
>Servlet
>> >> >specification,
>> >> >> anything under web-inf should be accessible to getResource and
>> >> >getResourceAsStream
>> >> >> method, and it looks like that's what weblogic implementation
>is
>> >using
>> >> >(from the
>> >> >> error message). So I am not sure whether this is weblogic issue
>> >or
>> >> >I am
>> >> >doing
>> >> >> something wrong. By the way, the above config in web.xml is
>supported
>> >> >in
>> >> >Tomcat.
>> >> >
>> >> >
>> >>
>> >
>> >
>>
>
>
-
My JSP file does not reflec the change of a Bean
My test environment: Win 2000, JDK 1.3.1, OC4J(standalone)
My problem:
In servlet, the change of a Strng value is reflected at the next refresh of a browser.
But, when a jsp file call a bean's getXXX(return a String value) method, and if the String value of that bean is changed, the next refresh or visit to that jsp file does not reflect the change of that bean.
For example:
1) TestClass.java
public class TestClass {
private String txt;
public class TestClass {
txt = "Test"; ----- (g
public String getTxt() {
return txt;
2) test.jsp
<html><body>
<h2>
<% TestClass test = new TestClass(); --(h
out.print(test.getTxt()); %> --(i
</h2>
</body></html>
In my first vistit to "http://localhost:8888/test.jsp" the brower shows "Test" String, but after I change the txt value to "Test1"((g) the brower does not reflect the change.
I found that if I use <jsp:useBean id="test" class="TestClass" /> instead of (h-(i line, the brower reflects the change of the bean.
Why does this occur?
Thaks in advance.
PS) In some cases(Not above example), I get the java.lang.ClassCastException.
So Each time I change a Servlet or a Bean, I restart OC4J.
nullSangKyu,
<jsp:useBean > has a property called scope, which defaults to "page".
So the bean gets reset everytime you reload the page.
Can I suggest that you set it to "session"?
The following syntax card I have found userful:
http://java.sun.com/products/jsp/syntax.pdf
Cheers,
Scott
Atlassian - Supporting YOUR 'Orion/OC4J' World
http://www.atlassian.com - [EMAIL][email protected][EMAIL] -
Cannot create bean of class...using TOMCAT 3.1
my root is: "notwww.ucsd.edu/somesub/"
my beans are in .../WEB-INF/classes/aseBeans/
the error msg:
Error: 500
Location: /studentaffairs/aseAppValidate.jsp
Internal Servlet Error:
javax.servlet.ServletException: Cannot create bean of class aseBeans.AseApplicationBean
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)
at _0002faseAppValidate_0002ejspaseAppValidate_jsp_0._jspService(_0002faseAppValidate_0002ejspaseAppValidate_jsp_0.java:138)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:496)
Root cause:
javax.servlet.ServletException: Cannot create bean of class aseBeans.AseApplicationBean
at _0002faseAppValidate_0002ejspaseAppValidate_jsp_0._jspService(_0002faseAppValidate_0002ejspaseAppValidate_jsp_0.java:71)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:496)
I think I have all the necessary elements:
package aseBeans;
pickled my beans
<jsp:useBean id="app" scope="session" class="aseBeans.AseApplicationBean" >
<jsp:setProperty.../>
</jsp:useBean>
MANIFEST.MF was created, are the name/attribute pairs necessary?
Name: AseApplicationBean.class
Java-Bean: true
THANK YOUhubertn I modified the jsp file and the bean: here's the code:<!--
Copyright (c) 1999 The Apache Software Foundation. All rights
reserved.
Number Guess Game
Written by Jason Hunter, CTO, K&A Software
http://www.servlets.com
-->
<%@ page import = "num.NumberGuessBean" %>
<jsp:useBean id="numguess" class="num.NumberGuessBean" scope="session"/>
<jsp:setProperty name="numguess" property="*"/>
<html>
<head><title>Number Guess</title></head>
<body bgcolor="white">
<font size=4>
<% if (numguess.getSuccess()) { %>
Congratulations! You got it.
And after just <%= numguess.getNumGuesses() %> tries.<p>
<% numguess.reset(); %>
Care to try again?
<% } else if (numguess.getNumGuesses() == 0) { %>
Welcome to the Number Guess game.<p>
Play with default limits ( a number between 0 and 100)<p>
or enter upper and lower limits.<p>
<form method=get>
Play with defaults?: <input type=radio name=default value="yes">Yes
<input type=radio name=default value="no">No
</form>
<% if (numguess.getRadio().equals("no")) { %>
<form method=get>
Enter upper limit:<input type=text name=upperLimit>
Enter lower limit:<input type=text name=lowerLimit>
</form>
<% numguess.reset(); %>
<% } %>
<form method=get>
What's your guess? <input type=text name=guess>
<input type=submit value="Submit">
</form>
<% } else { %>
Good guess, but nope. Try <b><%= numguess.getHint() %></b>.
You have made <%= numguess.getNumGuesses() %> guesses.<p>
I'm thinking of a number between <jsp:getProperty name="numguess" property="lowerLimit"/> and <jsp:getProperty name="numguess" property="upperLimit"/>.<p>
<form method=get>
What's your guess? <input type=text name=guess>
<input type=submit value="Submit">
</form>
<% } %>
</font>
</body>
</html>
and the bean:
* Originally written by Jason Hunter, http://www.servlets.com.
package num;
import java.util.*;
public class NumberGuessBean {
int answer;
boolean success;
String hint;
int numGuesses;
String radiochoice;
int lowerLimit=0;
int upperLimit=100;
String error;
public NumberGuessBean() {
reset();
public void setGuess(String guess) {
numGuesses++;
int g;
try {
g = Integer.parseInt(guess);
catch (NumberFormatException e) {
g = -1;
if (g == answer) {
success = true;
else if (g == -1) {
hint = "a number next time";
else if (g < answer) {
hint = "higher";
else if (g > answer) {
hint = "lower";
public void setRadio(String s) {
radiochoice=s;
public String getRadio() {
return radiochoice;
public void setLowerLimit( int lowerLimit) {
this.lowerLimit=lowerLimit;
public int getLowerLimit() {
return lowerLimit;
public void setUpperLimit(int upperLimit) {
this.upperLimit=upperLimit;
public int getUpperLimit() {
return upperLimit;
public boolean getSuccess() {
return success;
public String getHint() {
return "" + hint;
public String getError() {
return ""+error;
public int getNumGuesses() {
return numGuesses;
public void reset() {
if (getRadio().equals("yes")) {
answer = (int)(Math.random()*100);
else {
int i;
i=(int)(Math.random()*upperLimit);
if (i<lowerLimit) {
i=i+lowerLimit;
answer=i;
success = false;
numGuesses = 0;
} -
Unable to edit JSP files in a JAR file
Hi,
I am trying to edit biller direct screens and I am not able to open any JSP or XML file in NWDS editor. I get this below error whenever I try to edit a JSP file
cannot open default editor on content_custExtension_html.jsp. Unsupported editor input type org.eclipse.jdt.internal.ui.javaeditor.JarEntryEditorInput
any help will be rewarded for sure
Thanks and regards,
Nrisimhanadh YandamuriWas mistaken... have to edit similar source in another DC.
-
Hi,
I am getting the following error
Cannot find bean allJobsForm in any scope. I need some help in trying to identify the problem. I have attached the strust action mapping, the JSP, and the action and form classes. Please have a look and assist me in solving this problem as it I am becoming really frustrated.
Warm Regards
Denzil
Action Mapping
<action
path="/secure/moshomo/search/GetAllJobsAction"
type="za.co.mpilo.moshomo.web.action.GetAllJobsAction"
name="allJobsForm"
scope="session"
input="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
unknown="false"
validate="true"
>
<forward
name="success"
path="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
redirect="false"
/>
JSP
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/war-extranet" prefix="extranet" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html-el" %>
<nested:root name="allJobsForm">
<div align="center">
<table width="80%" class="mstable" >
<thead>
<td>Posted Jobs</td>
</thead>
<tr>
<td>
<table width="100%" >
<tr class="mssubhead">
<td width="60%" ><font color="#160866">
Job Title
</font></td>
<td width="22%" align="center" ><font color="#160866">
Posted Date
</font></td>
<td width="18%" align="center" ><font color="#160866">
Expiration Date
</font></td>
</tr>
<tr>
<td width="80%" ><font color="#160866">
Job Description
</font></td>
</tr>
<nested:iterate property="all" id="ref" type="za.co.mpilo.moshomo.vo.JobVO">
<tr>
<td width="60%"><font color="#160866">
<nested:write name="ref" property="jobTitle"/>
</font></td>
<td width="22%"><font color="#160866">
<nested:write name="ref" property="postedDate"/>
</font></td>
<td width="18%"><font color="#160866">
<nested:write name="ref" property="expirationDate"/>
</font></td>
</tr>
<tr>
<td width="80%" align="center"><font color="#160866">
<nested:write name="ref" property="jobDescription"/>
</td>
</tr>
</nested:iterate>
<nested:empty property="all">
<tr>
<td colspan="3"><font color="#160866"> No results found. </font></td>
</tr>
</nested:empty>
</table>
</td>
</tr>
</table>
</div>
</nested:root>
Action Class
package za.co.mpilo.moshomo.web.action;
import java.util.HashMap;
import java.util.logging.Level;
import javax.ejb.FinderException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
import za.co.mpilo.common.web.action.CommonAction;
import za.co.mpilo.moshomo.interfaces.CVRepositoryManager;
import za.co.mpilo.moshomo.util.CVRepositoryManagerUtil;
import za.co.mpilo.moshomo.vo.CVVO;
import za.co.mpilo.moshomo.vo.SearchVO;
import za.co.mpilo.moshomo.vo.JobVO;
import za.co.mpilo.moshomo.web.form.AllJobsForm;
import za.co.mpilo.moshomo.web.form.AllTertiaryEducationForm;
import za.co.mpilo.moshomo.web.form.JobSearchForm;
* @struts.action
* name="allJobsForm"
* path="/secure/moshomo/search/GetAllJobsAction"
* input="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
* scope="session"
* validate="true"
* redirect="false"
* @struts.action-forward
* name="success"
* path="/secure/CVHomeHR.do?p_content=/jsp/secure/moshomo/ms_recruiter_jobs.jsp"
* @version $Revision: 1.4 $
* @author $Author: denzilf $
* @date $Date: 2006/11/02 11:03:10 $
public class GetAllJobsAction extends CommonAction{
public ActionForward execute(ActionMapping mapping, ActionForm f, HttpServletRequest request, HttpServletResponse response) throws Exception {
if ( getLogger().isLoggable(Level.INFO) )
getLogger().info( "execute" );
ActionForward result = mapping.getInputForward();
ActionMessages errors = new ActionMessages ();
AllJobsForm form = (AllJobsForm) f;
try {
//vo.setAllORany( form.getAllORany());
//vo.setMatch( form.getMatch());
//vo.setSearchText(form.getSearchText());
String uid = request.getUserPrincipal().getName(); //logged in user
CVRepositoryManager manager = CVRepositoryManagerUtil.getHome( getIntialProperies() ).create();
HashMap jobs = manager.findAllJobsPerUserId(uid);
form.setAll( jobs.values() );
result = mapping.findForward( "success" );
catch (Exception xe) {
if ( getLogger().isLoggable(Level.WARNING) )
getLogger().log( Level.WARNING , xe.getMessage() , xe );
errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.general" ) );
if ( !errors.isEmpty() )
saveErrors( request , errors );
return result;
Form
package za.co.mpilo.moshomo.web.form;
import java.util.Collection;
import org.apache.struts.validator.ValidatorForm;
import za.co.mpilo.moshomo.vo.JobVO;
* @struts.form
* name="allJobsForm"
public class AllJobsForm extends ValidatorForm {
private int selection;
private Collection all;
public JobVO[] getAll() {
JobVO[] array = new JobVO[all.size()];
all.toArray( array );
return array;
public void setAll(Collection all) {
this.all = all;
public int getSelection() {
return selection;
public void setSelection(int selection) {
this.selection = selection;
}type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /jsp/Edituser.jsp at line 36
33: <html:form action="/Updateuser" method="post">
34:
35: <table border="0" align="center">
36: *<logic:iterate id="details" name="user">*
37: <tr>
38: <td><html:hidden property="userid" name="details"/></td>
39: <td><html:hidden property="contactid" name="details"/></td>
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:988)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean: "user" in any scope
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.jsp.Edituser_jsp._jspService(Edituser_jsp.java:844)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:988)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.servlet.jsp.JspException: Cannot find bean: "user" in any scope
org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935)
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:232)
org.apache.jsp.jsp.Edituser_jsp._jspService(Edituser_jsp.java:184)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1023)
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:988)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.
-------------------------------------------------------------------------------- -
Hello,
today i installed JSTL 1.1 using Tomcat 5.0.25 and J2SDK1.4.2_03. I noticed, that the EL-expressions are only evaluated, if the jsp-files are located in the root-directory of my web-application. My usual location for jsp-files is /WEB-INF/jsp instead. If the jsp-files are located there, the expressions are not evaluated.
Is it a bug, a feature or a configuration problem?
Below my minimal example:
test.jsp:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>Test</title>
</head>
<body>
<c:out value="${1+1}" />
</body>
</html>web.xml:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<description>TestApp</description>
<servlet>
<servlet-name>TEST</servlet-name>
<display-name>TEST</display-name>
<jsp-file>/WEB-INF/jsp/test.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>TEST</servlet-name>
<url-pattern>/run</url-pattern>
</servlet-mapping>
</web-app>The URL to test.jsp is http://localhost:8080/testapp/runMoving test.jsp from TOMCAT_HOME/webapps/testapp/WEB-INF/jsp to TOMCAT_HOME/webapps/testapp and calling http://localhost:8080/testapp/test.jsp works just fine instead.
Does anyone know, what's going wrong?
Thank you in advance,
Tobi :-)I haven't seen that before, but perhaps the difference is the web.xml DTD. Try using the newest version,
so that your web.xml looks like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<description>TestApp</description>
<servlet>
<servlet-name>TEST</servlet-name>
<display-name>TEST</display-name>
<jsp-file>/WEB-INF/jsp/test.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>TEST</servlet-name>
<url-pattern>/run</url-pattern>
</servlet-mapping>
</web-app> -
Hi!
I have a jsp with Combo boxes, when i select a value of one combo box
OnChnage of it the 2nd combo box gets its value dynamically from the
database..
Here is my JSP..............................
<script language="JavaScript">
function ELMORG_MNEMONIC1Changed() {
var frm = document.RetrieveReportDynaForm;
frm.actionType.value = "1";
frm.submit();
function ELMORG_MNEMONIC2Changed(){
var frm = document.RetrieveReportDynaForm;
frm.actionType.value = "2";
frm.submit();
function ELMORG_MNEMONIC3Changed(){
var frm = document.RetrieveReportDynaForm;
frm.actionType.value = "3";
frm.submit();
</script>
</head>
<body>
<table>
<html:form action="/RetrieveReport.do" styleId="RetrieveReportDynaForm">
<input type="hidden" name="actionType" value="">
<table cellspacing=0 cellpadding=2 border=0 class="table_data" id="TABLE1" >
<tr>
<td height="20px" colspan="5" class="table_top_td">Telecom DashBoard</td>
</tr>
<tr >
<tr class="table_data">
<td width="90px"></td>
<td class="smalltext" width="75px" align="right"><b>Organizational Element1</b></td>
<td>
<html:select property="ELMORG_MNEMONIC1" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC1Changed()">
<html:option value="">Select</html:option>
<html:optionsCollection name="reportlist" label="ELMORG_MNEMONIC1" value="ELMORG_MNEMONIC1"/>
</html:select>
</td>
</tr>
<tr class="table_data">
<td width="90px"></td>
<td class="smalltext" width="75px" align="right"><b>Organizational Element2</b></td>
<td>
<html:select property="ELMORG_MNEMONIC2" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC2Changed()">
<html:optionsCollection name="mnemonic1" label="ELMORG_MNEMONIC2" value="ELMORG_MNEMONIC2"/>
</html:select>
</td>
</tr>
<tr class="table_data">
<td width="90px"></td>
<td class="smalltext" width="75px" align="right"><b>Organizational Element3</b></td>
<td>
<html:select property="ELMORG_MNEMONIC3" styleClass="mediumtext" style="width:120px; height:30px" onchange="ELMORG_MNEMONIC3Changed()">
<html:optionsCollection name="mnemonic2" label="ELMORG_MNEMONIC3" value="ELMORG_MNEMONIC3"/>
</html:select>
</td>
</tr>
<tr class="table_data">
<td width="90px"></td>
<td class="smalltext" width="75px" align="right"><b>Organizational Element4</b></td>
<td>
<html:select property="RC_MNEMONIC" styleClass="mediumtext" style="width:120px; height:30px" onchange="RC_MNEMONICChanged()">
<html:optionsCollection name="mnemonic3" label="RC_MNEMONIC" value="RC_MNEMONIC"/>
</html:select>
</td>
</tr>
<tr>
<td></td>
<td><html:submit/></td>
</tr>
</table>
</html:form>
</body>
</html:html>
I am getting a error....
javax.servlet.jsp.JspException: Cannot find bean: "mnemonic2" in any scope
at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935)
at org.apache.struts.taglib.html.OptionsCollectionTag.doStartTag(OptionsCollectionTag.java:173)
at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_optionsCollection_2(reportParameter_jsp.java:469)
at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_select_2(reportParameter_jsp.java:438)
at org.apache.jsp.jsp.reportParameter_jsp._jspx_meth_html_form_0(reportParameter_jsp.java:210)
at org.apache.jsp.jsp.reportParameter_jsp._jspService(reportParameter_jsp.java:130)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
when i execute this page..
I am using struts action where i am setting the "mnemonic2" variable in a session....................................
if ("2".equals(actionType)){
String MNEMONIC1 = request.getParameter("ELMORG_MNEMONIC1");
String MNEMONIC2 = request.getParameter("ELMORG_MNEMONIC2");
if(MNEMONIC2==""){
request.getSession().removeAttribute("mnemonic2");
}else{
ArrayList reportParam1 = (ArrayList)this.reportService.getELMORG_MNEMONIC3(MNEMONIC1,MNEMONIC2);
System.out.println("The arraysize in the Action class2 is"+reportParam1.size());
request.getSession().setAttribute("mnemonic2", reportParam1);
Can any one pls tell me why m i getting this error???hi enoch!
yeah definitely...
<action path="/FourthAction" name="RetrieveReportDynaForm"
type="org.springframework.web.struts.DelegatingActionProxy" >
<forward name="success" path="/jsp/reportParameter.jsp"></forward>
<forward name="failure" path="/jsp/reportParameter.jsp"></forward>
</action>
<form-bean name="RetrieveReportDynaForm"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="GRP_MNEMONIC" type="java.lang.String"
initial="" />
<form-property name="POL_MNEMONIC" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC1" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC1" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC2" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC2" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC3" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC3" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC4" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC4" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC5" type="java.lang.String"
initial="" />
<form-property name="ELMORG_MNEMONIC5" type="java.lang.String"
initial="" />
<form-property name="GRP_MNEMONIC6" type="java.lang.String"
initial="" />
<form-property name="RC_MNEMONIC" type="java.lang.String"
initial="" />
<form-property name="RC_LABEL" type="java.lang.String"
initial="" />
<form-property name="RC_MANAGER" type="java.lang.String"
initial="" />
<form-property name="RC_CODE" type="java.lang.String"
initial="" />
<form-property name="RC_MANAGER_EMAIL" type="java.lang.String"
initial="" />
<form-property name="actionType" type="java.lang.String"
initial="" />
</form-bean> -
Jsp file not able to locate class file in JWS 2.0
hello all,
i am a beginner at jsp...
my problem....
i have created a jsp file which accesses a SpellCheck.class file..
i am using Java Web Server 2.0...
and in the classpath i have set the classpath variable to c:\javawebserver2.0\lib. I have placed the class file in this directory.
Now when i run the jsp file it gives the following errors...
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_wordpro.java:73: Class pagecompile.jsp.SpellCheck not found in type declaration.
SpellCheck help = null;
^
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_wordpro.java:76: Class pagecompile.jsp.SpellCheck not found in type declaration.
help= (SpellCheck)
^
C:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_wordpro.java:81: Class pagecompile.jsp.SpellCheck not found in type declaration.
help = (SpellCheck) Beans.instantiate(getClassLoader(), "SpellCheck");
^
3 errors
i guess this is happening because it cant find the .class file.
MY QUESTION IS:
where should i place the class file so the the .jsp is able to locate it??
the code of the jsp is as follows:
<%@ page language="java"%>
<jsp:useBean id="help" scope="request" class="SpellCheck">
<%
System.out.println("Working with the bean");
help.setWord(request.getParameter("word"));
%>
</jsp:useBean>
<html>
<body>
You entered the input,
<b> <%= request.getParameter("word")%></b><br>
The processed output is:<br>
<%= Integer.parseInt(request.getParameter("mode"))==1 ? help.reverse() : " "+help.check() %>
</body>
</html>just place your class file in JWS2.0/classes directory
and restart you Serverhi
yes ive done it...
1. ive placed the .class file in JWS2.0/classes directory
2. ive placed the .jsp file and the .html file in the JWS2.0/public_html directory... it still does'nt work...
:o(
boney
Maybe you are looking for
-
How to do CSS Rollover Text Links in Muse?
In Dreamweaver, we have to the ability to apply CSS styles to text links in order to make it behave like a rollover (the color changes on mouseover, etc.). How do we do this in Muse? Kind regards- (EDIT): Have a look at the menus on Adobe's main webs
-
Unable to create my third alias
hello all For several weeks I deleted one of my three aliases, and it's been weeks since icloud says I have to wait seven days to create a third alias on the three available. Out within seven days to have the freedom to create my third alias is long
-
What would cause my Iphone 4 to freeze up when it gets cold?
Whenever my iphone 4 is in an enviroment that is below 50* F it goes unresponsive. Any ideas that would cause that?
-
Encapsulating/Wrapping siebel data adaptor
Hi , I am trying to invoke the siebel data connector load/save/listCases methods from my own data adaptor. But at the run time the while executing the load() method following error occured. Code Snippet(Please ignore the syntax errors): Class MyDataA
-
I've a Swing app in wich I've the following code : final ComboBoxEditor editor = comboBox.getEditor(); editor.getEditorComponent().addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(KeyEvent e) { combo_keyReleased(e,editor); Run