[JBoss-user] [Installation Configuration] - Re: package javax.servlet.jsp does not exist

2005-05-26 Thread nkkwok
Komo, thank you for your advice.

After I have added the servlet.jar in my classpath, the mentioned problem was 
solved. My system variables now is set like this:

JAVA_Home: c:\Program Files\Java\jdk1.5.0_01 
JBOSS_HOME: C:\jboss-4.0.0

Path=c:\Program Files\Java\jdk1.5.0_01\bin 

Classpath=c;\ jboss-4.0.0\bin;C:\jboss-4.0.0\server\default\lib\servlet.jar

nkkwok



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3879244#3879244

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3879244


---
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation Configuration] - package javax.servlet.jsp does not exist

2005-05-09 Thread nkkwok
I have encounter the following error when I compiled the Ex5AddTag.java which I 
put it under the following path:

C:\jboss-4.0.0\server\default\deploy\jsp.war\WEB-INF\classes

Error message:

Ex5AddTag.java:3: package javax.servlet.jsp does not exist

import javax.servlet.jsp.*;
Ex5AddTag.java:4: package javax.servlet.jsp.tagext does not exist
import javax.servlet.jsp.tagext.*;

Clearly, Java didn't find javax.servlet.jsp.* and  import 
javax.servlet.jsp.tagext.*. 

I understand that the javax.servlet package is not part of J2SE Java. I don't 
know how to get javac to use it and I don't know how to configure it to use 
include the javax.servlet .jar and the javax.servlet.jsp.tagext  in my 
classpath. 

I tried to add the following to my path, but it didn't work too:
C:\jboss-4.0.0\bin;C:\jboss-4.0.0\lib\servlet.jar;

Please advise and thanks in advance!


I checked that I have already have the following .jar files:
javax.servlet.jar
javax.servlet.jsp.jar
servlet.jar

C:\jboss-4.0.0\server\default\lib 

My computer environment as shown:


 Operating system used:  Window professional XP sp1 (English)

System  Environment Variables  User variables

ANT_HOME:  C:\apache-ant-1.6.2
JAVA_Home:  c:\Program Files\Java\jdk1.5.0_01
JBOSS_HOME: C:\jboss-4.0.0 Files\Java\jdk1.5.0_01\bin;C:\apache-ant-1.6.2\bin

System  Environment Variables  System variables
OS Windows_NT
Path: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\Program 
Files\Common Files\Adaptec Shared\System; C:\Program Files\Microsoft SQL 
Server\80\Tools\Binn\; C:\Program 
Files\Java\jdk1.5.0_01\bin;C:\jboss-4.0.0\lib\servlet.jar;

PATHEXT:.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

For your easy reference, the code of Ex5AddTag.java:

package it350;
  | 
  | import javax.servlet.jsp.*;
  | import javax.servlet.jsp.tagext.*;
  | import java.io.*;
  | 
  | public class Ex5AddTag extends TagSupport {
  | 
  | private int num1 = 0;
  | private int num2 = 0;
  | 
  | public int doStartTag() {
  | try {
  | JspWriter out = pageContext.getOut();
  | out.print(The sum of  + 
  |   num1 +  and  + 
  |   num2 +  is  +
  |   sum(num1, num2));
  | } catch (IOException e) {}
  | return (SKIP_BODY);
  | }
  | 
  | public void setNum1(int n1) {
  | num1 = n1;
  | }
  | 
  | public void setNum2(int n2) {
  | num2 = n2;
  | }
  | 
  | public int sum (int num1, int num2) {
  | return num1 + num2;
  | }
  | }







View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3877103#3877103

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3877103


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Jboss4.0_Jsp_page_errorPage_exception problem

2005-05-03 Thread nkkwok
Problem solved.

The solution is just go to IE internet explorer  Tools  Internet option  
advanced  Browsing uncheck   show friendly HTTP error messages.

Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3876282#3876282

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3876282


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Jboss4.0_Jsp_page_errorPage_exception problem

2005-05-01 Thread nkkwok
Related Files: 

C:\jboss-4.0.0\server\default\deploy\jsp.war\Calculate2.html

FORM METHOD=GET ACTION=Calculate2.jsp
  | INPUT TYPE=TEXT NAME=Value1BR
  | INPUT TYPE=TEXT NAME=Value2BR
  | INPUT TYPE=SUBMIT VALUE=Calculate
  | /FORM

C:\jboss-4.0.0\server\default\deploy\jsp.war\Calculate2.jsp

%@ page errorPage=Calculate2Error.jsp %
  | %! private String v1;
  | private String v2; %
  | %  v1 = request.getParameter(Value1);
  | v2 = request.getParameter(Value2); %
  | The sum of %= v1 % and %= v2 % is
  | %= Integer.parseInt(v1) + Integer.parseInt(v2) %


C:\jboss-4.0.0\server\default\deploy\jsp.war\Calculate2Error.jsp

%@ page isErrorPage=true %
  | Calculate2Error.jsp reported the following error:
  | I%= exception %/I.  
  | PA HREF=Calculate2.htmlClick here to try again/A

My problem:

One of the response of the above codes are like this:
When the calculate2html file is displayed on the browser, 
suppose when not entering any value or non-integer value 
in the input box, the Calculate2Error.jsp will be called via
 Calculate2.jsp to display exception error 
message: java.lang.NumberFormatException: null 
or any wrong input like:abcd

But we I do so, I got the following error reported:

ERROR:
Condition: When not puting value on Value1 text box...as shown:

http://localhost:8080/jsp/Calculate2.jsp?Value1=Value2=6

Result: The page cannot be displayed
 HTTP 500 - Internal server error
 Internet Explorer

Please advise why such problem occurs or any idea on the possible cause of it.

Information of my PC:-

---Operating system used:  Window professional XP sp1 (English)

System  Environment Variables  User variables
ANT_HOME:   C:\apache-ant-1.6.2
JAVA_Home:  c:\Program Files\Java\jdk1.5.0_01
JBOSS_HOME: C:\jboss-4.0.0
path:C:\Program Files\Java\jdk1.5.0_01\bin;C:\apache-ant-1.6.2\bin

System  Environment Variables  System variables
OS  Windows_NT
Path:   %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
C:\Program Files\Common Files\Adaptec Shared\System;
C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;
C:\Program Files\Java\jdk1.5.0_01\bin
PATHEXT:.COM;   .EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3876091#3876091

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3876091


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user