null pointer error in HTML tag when session is false in jsp

2003-03-25 Thread Ashish Kulkarni
Hi,
here is a code snippet of my jsp, i get null pointer
error, do i have to have a session, ??

%@ page language=java session=false buffer=16kb
contentType=text/html%

bean:message key=logout.login/


this is the error i get
java.lang.NullPointerException
at
org.apache.struts.taglib.html.HtmlTag.getCurrentLocale(HtmlTag.java:248)
at
org.apache.struts.taglib.html.HtmlTag.doStartTag(HtmlTag.java:138)
at
org.apache.jsp.logout_jsp._jspx_meth_html_html_0(logout_jsp.java:90)

Ashish

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: null pointer error in HTML tag when session is false in jsp

2003-03-25 Thread David Graham
If you set the html:html tag's locale attribute to true it will create a 
session, otherwise you don't need one.

David



From: Ashish Kulkarni [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: null pointer error in HTML tag when session is false in jsp
Date: Tue, 25 Mar 2003 12:32:51 -0800 (PST)
Hi,
here is a code snippet of my jsp, i get null pointer
error, do i have to have a session, ??
%@ page language=java session=false buffer=16kb
contentType=text/html%
bean:message key=logout.login/

this is the error i get
java.lang.NullPointerException
at
org.apache.struts.taglib.html.HtmlTag.getCurrentLocale(HtmlTag.java:248)
at
org.apache.struts.taglib.html.HtmlTag.doStartTag(HtmlTag.java:138)
at
org.apache.jsp.logout_jsp._jspx_meth_html_html_0(logout_jsp.java:90)
Ashish

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: null pointer error in HTML tag when session is false in jsp

2003-03-25 Thread Ashish Kulkarni
Hi,

I tried putting 
html:html locale=false 
in my jsp but still get the same error, 

Ashish
--- David Graham [EMAIL PROTECTED] wrote:
 If you set the html:html tag's locale attribute to
 true it will create a 
 session, otherwise you don't need one.
 
 David
 
 
 
 From: Ashish Kulkarni [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: null pointer error in HTML tag when
 session is false in jsp
 Date: Tue, 25 Mar 2003 12:32:51 -0800 (PST)
 
 Hi,
 here is a code snippet of my jsp, i get null
 pointer
 error, do i have to have a session, ??
 
 %@ page language=java session=false
 buffer=16kb
 contentType=text/html%
 
 bean:message key=logout.login/
 
 
 this is the error i get
 java.lang.NullPointerException
  at

org.apache.struts.taglib.html.HtmlTag.getCurrentLocale(HtmlTag.java:248)
  at

org.apache.struts.taglib.html.HtmlTag.doStartTag(HtmlTag.java:138)
  at

org.apache.jsp.logout_jsp._jspx_meth_html_html_0(logout_jsp.java:90)
 
 Ashish
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!
 http://platinum.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 

_
 MSN 8 with e-mail virus protection service: 2 months
 FREE*  
 http://join.msn.com/?page=features/virus
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: null pointer error in HTML tag when session is false in jsp

2003-03-25 Thread David Graham
Try a recent nightly build.

David



From: Ashish Kulkarni [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: null pointer error in HTML tag when session is false in jsp
Date: Tue, 25 Mar 2003 12:55:09 -0800 (PST)
Hi,

I tried putting
html:html locale=false
in my jsp but still get the same error,
Ashish
--- David Graham [EMAIL PROTECTED] wrote:
 If you set the html:html tag's locale attribute to
 true it will create a
 session, otherwise you don't need one.

 David



 From: Ashish Kulkarni [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: null pointer error in HTML tag when
 session is false in jsp
 Date: Tue, 25 Mar 2003 12:32:51 -0800 (PST)
 
 Hi,
 here is a code snippet of my jsp, i get null
 pointer
 error, do i have to have a session, ??
 
 %@ page language=java session=false
 buffer=16kb
 contentType=text/html%
 
 bean:message key=logout.login/
 
 
 this is the error i get
 java.lang.NullPointerException
at

org.apache.struts.taglib.html.HtmlTag.getCurrentLocale(HtmlTag.java:248)
at

org.apache.struts.taglib.html.HtmlTag.doStartTag(HtmlTag.java:138)
at

org.apache.jsp.logout_jsp._jspx_meth_html_html_0(logout_jsp.java:90)
 
 Ashish
 
 __
 Do you Yahoo!?
 Yahoo! Platinum - Watch CBS' NCAA March Madness,
 live on your desktop!
 http://platinum.yahoo.com
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 



_
 MSN 8 with e-mail virus protection service: 2 months
 FREE*
 http://join.msn.com/?page=features/virus



-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: null pointer error

2001-07-11 Thread Nick Chalko



This 
turned out to be a IBM WTE bug. 

The 
trick is all web apps must use JSP 1.1
Thanks 
to Amit for the answer.
- Here is what Amit said 
--
Yes I did find a workaround the problem. The believe 
this is a bug is in the servlet engine.
You need to change the webapp config file for ALL 
the webapps in your system to use jsp 1.1
compiler. Just changing the 
default_app.webapp to jsp 1.1 is not enough.VAJ seems to 
get
confused if it encounters any webapp config file 
which does not specify jsp 1.1 compiler. Its either
all or nothing. 

Please refer to the following email exchange I had 
with another person who inquired about the same problem.

Hope it helps.

Good luck,

Amit

---
Thank you! It works now! That's a bad 
bug. I was working in a customwebapp, but I guess you need to change 
all of the webapps to 1.1. Thanks 
again,Roger-Original Message-From: Amit Verma [mailto:[EMAIL PROTECTED]]Sent: 
Wednesday, June 27, 2001 10:38 AMTo: Endo, RogerSubject: Re: Taglib 
problem with VAJ 3.5.3You might want to check all of your webapp 
files, that is for all thedifferent webapps. In mycase even though 
the default_app.webapp for set properly there was a webappfor another 
appwhich was using JSP 1.0 which confused the servlet engine. I 
changed all mywebapps to useJSP1.1 which fixed the 
problem.Amit- Original Message -From: Endo, 
Roger [EMAIL PROTECTED]To: 'Amit 
Verma' [EMAIL PROTECTED]Sent: 
Wednesday, June 27, 2001 1:14 PMSubject: RE: Taglib problem with VAJ 
3.5.3 Thank you for you quick reply. Unfortunately I am 
already running JSP1.1. Taglibs work except for ones which implement 
BodyTag, where I get the null "out" stream. 
Thanks, Roger -Original Message- From: 
Amit Verma [mailto:[EMAIL PROTECTED]] Sent: 
Wednesday, June 27, 2001 10:09 AM To: Endo, Roger Subject: Re: 
Taglib problem with VAJ 3.5.3 Yes Roger, I did find 
solution to the problem. The problem stemmed from choice of JSP 
compiler specified in the webapp config file. Make sure you edit 
the default_app.webapp file to use jsp1.1 compiler which 
is 
codecom.ibm.ivj.jsp.jasper.runtime.JspDebugServlet/code 
By default IBM uses Jsp1.0 compiler. The default webapp file on 
my computer was under 
F:\IBMVJava3.5\ide\project_resources\IBMWebSphere Test 
Environment\hosts\default_host\default_app\servlets If you have 
multiple web apps then make sure you edit each one of thewebapp 
config file to specify JSP 1.1 compiler. You will obviously have to 
restart the servlet engine. And it shouldwork. Hope it 
helps. Good luck, Amit - 
Original Message - From: Endo, Roger [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 
Wednesday, June 27, 2001 12:44 PM Subject: Re: Taglib problem with VAJ 
3.5.3  Hello - I saw your posting regarding the 
taglib with BodyTag problem in VAJ  3.5.3. I have the 
same problem. Did you find a solution?   
Thanks,  Roger

  - Original Message - 
  From: 
  Nick Chalko 

  To: '[EMAIL PROTECTED]' 
  Sent: Tuesday, July 10, 2001 9:19 
PM
  Subject: re:having problem with using tag 
  libraries with a body under VAJ
  
  Did you ever find 
  a fix for this problem.
  
  I'm having problem 
  with using tag libraries with a body under VAJ3.5.3 and 
  WTE. The tag library does not work when there is body. 
  Itthrows a NullPointerException from the jsp generated servlet code. 
  The specific line of code where the problem occurs isout = 
  pageContext.pushBody();The JspWriter, out is returned as null. Subsequent 
  call to out.printfails with a null pointer exception. 
  Has anybody encountered thisproblem? Keep in mind that the problem 
  only occurs using taglibraries with a body (i.e. your tag class extends 
  BodyTagSupport).

  


RE: null pointer error

2001-06-28 Thread Niall Pemberton



I dont 
think html:text was designed to take a body - in the tld file for the 
html:hidden tag the body parameter is set to empty and they both extend 
the same parent class (BaseFieldTag).

BaseFieldTag is a child of BaseHandlerTag which extends 
BodyTagSupport and BaseFieldTag returns EVAL_BODY_TAG from its 
doStartTag() method - but I think this looks like a mistake because its not been 
written to process the body - I think it should really return 
SKIP_BODY.

My 
advice - dont put anything in the body.

Niall


  -Original Message-From: Nick Chalko 
  [mailto:[EMAIL PROTECTED]]Sent: 27 June 2001 19:53To: 
  [EMAIL PROTECTED]Subject: null pointer error 
  
  My jsp page 
  with the following tag
  html:text 
  property="username" size="20" maxlength="20" value="test" 
  inside/html:txt
  
  generates the 
  following java code (from VAJ 3.5.3)
   do 
  { 
  // 
  end 
  out.print(_jspx_html_data[4]); 
  // begin 
  [file="C:\\login.jsp";from=(16,0);to=(16,69)] 
  /*  html:text  
  */ 
  org.apache.struts.taglib.html.TextTag _jspx_th_html_text_1 = new 
  org.apache.struts.taglib.html.TextTag(); 
  _jspx_th_html_text_1.setPageContext(pageContext); 
  _jspx_th_html_text_1.setParent(_jspx_th_html_form_2); 
  JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
  "maxlength","20",null,null, 
  false); 
  JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
  "property","username",null,null, 
  false); 
  JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
  "size","20",null,null, 
  false); 
  JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
  "value","test",null,null, 
  false); 
  try 
  { 
  int _jspx_eval_html_text_1 = 
  _jspx_th_html_text_1.doStartTag(); 
  if (_jspx_eval_html_text_1 == 
  Tag.EVAL_BODY_INCLUDE) 
  throw new JspTagException("Since tag handler class 
  org.apache.struts.taglib.html.TextTag implements BodyTag, it can't return 
  Tag.EVAL_BODY_INCLUDE"); 
  if (_jspx_eval_html_text_1 != Tag.SKIP_BODY) 
  { 
  try 
  { 
  if (_jspx_eval_html_text_1 != Tag.EVAL_BODY_INCLUDE) {
  // the next nile sets out to 
  null 
  out = 
  pageContext.pushBody(); 
  _jspx_th_html_text_1.setBodyContent((BodyContent) 
  out); 
  } 
  _jspx_th_html_text_1.doInitBody(); 
  do 
  { 
  // 
  end 
  out.print(_jspx_html_data[5]); 
  // begin 
  [file="C:\\login.jsp";from=(25,0);to=(25,0)] 
  } while (_jspx_th_html_text_1.doAfterBody() == 
  BodyTag.EVAL_BODY_TAG); 
  } finally 
  { 
  if (_jspx_eval_html_text_1 != 
  Tag.EVAL_BODY_INCLUDE) 
  out = 
  pageContext.popBody(); 
  } 
  } 
  if (_jspx_th_html_text_1.doEndTag() == 
  Tag.SKIP_PAGE) 
  return; 
  } finally 
  { 
  _jspx_th_html_text_1.release(); 
  }
  
  
  The proplem 
  is pageContext.pushBody() returns null which then fails the next time 
  something is written to out.
  Any ideas. 
  
  
  R,
  Nick


null pointer error

2001-06-27 Thread Nick Chalko



My jsp page 
with the following tag
html:text 
property="username" size="20" maxlength="20" value="test" 
inside/html:txt

generates the 
following java code (from VAJ 3.5.3)
 do 
{ 
// 
end 
out.print(_jspx_html_data[4]); 
// begin 
[file="C:\\login.jsp";from=(16,0);to=(16,69)] 
/*  html:text  
*/ 
org.apache.struts.taglib.html.TextTag _jspx_th_html_text_1 = new 
org.apache.struts.taglib.html.TextTag(); 
_jspx_th_html_text_1.setPageContext(pageContext); 
_jspx_th_html_text_1.setParent(_jspx_th_html_form_2); 
JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
"maxlength","20",null,null, 
false); 
JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
"property","username",null,null, 
false); 
JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, "size","20",null,null, 
false); 
JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
"value","test",null,null, 
false); 
try 
{ 
int _jspx_eval_html_text_1 = 
_jspx_th_html_text_1.doStartTag(); 
if (_jspx_eval_html_text_1 == 
Tag.EVAL_BODY_INCLUDE) 
throw new JspTagException("Since tag handler class 
org.apache.struts.taglib.html.TextTag implements BodyTag, it can't return 
Tag.EVAL_BODY_INCLUDE"); 
if (_jspx_eval_html_text_1 != Tag.SKIP_BODY) 
{ 
try 
{ 
if (_jspx_eval_html_text_1 != Tag.EVAL_BODY_INCLUDE) {
// the next nile sets out to 
null 
out = 
pageContext.pushBody(); 
_jspx_th_html_text_1.setBodyContent((BodyContent) 
out); 
} 
_jspx_th_html_text_1.doInitBody(); 
do 
{ 
// 
end 
out.print(_jspx_html_data[5]); 
// begin 
[file="C:\\login.jsp";from=(25,0);to=(25,0)] 
} while (_jspx_th_html_text_1.doAfterBody() == 
BodyTag.EVAL_BODY_TAG); 
} finally 
{ 
if (_jspx_eval_html_text_1 != 
Tag.EVAL_BODY_INCLUDE) 
out = 
pageContext.popBody(); 
} 
} 
if (_jspx_th_html_text_1.doEndTag() == 
Tag.SKIP_PAGE) 
return; 
} finally 
{ 
_jspx_th_html_text_1.release(); 
}


The proplem is 
pageContext.pushBody() returns null which then fails the next time something is 
written to out.
Any ideas. 


R,
Nick


Re: null pointer error

2001-06-27 Thread John Townsend



I think you have to have the html:text tag inside an 
html:html tag. For example:

html:html
 html:text property = "username" size = 
"20" maxlength = "20" value = "test"
/html:text
/html:html

I think that might be the source of your problem.


-- John Townsend


  - Original Message - 
  From: 
  Nick Chalko 

  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, June 27, 2001 11:53 
  AM
  Subject: null pointer error 
  
  My jsp page 
  with the following tag
  html:text 
  property="username" size="20" maxlength="20" value="test" 
  inside/html:txt
  
  generates the 
  following java code (from VAJ 3.5.3)
   do 
  { 
  // 
  end 
  out.print(_jspx_html_data[4]); 
  // begin 
  [file="C:\\login.jsp";from=(16,0);to=(16,69)] 
  /*  html:text  
  */ 
  org.apache.struts.taglib.html.TextTag _jspx_th_html_text_1 = new 
  org.apache.struts.taglib.html.TextTag(); 
  _jspx_th_html_text_1.setPageContext(pageContext); 
  _jspx_th_html_text_1.setParent(_jspx_th_html_form_2); 
  JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
  "maxlength","20",null,null, 
  false); 
  JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
  "property","username",null,null, 
  false); 
  JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
  "size","20",null,null, 
  false); 
  JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1, 
  "value","test",null,null, 
  false); 
  try 
  { 
  int _jspx_eval_html_text_1 = 
  _jspx_th_html_text_1.doStartTag(); 
  if (_jspx_eval_html_text_1 == 
  Tag.EVAL_BODY_INCLUDE) 
  throw new JspTagException("Since tag handler class 
  org.apache.struts.taglib.html.TextTag implements BodyTag, it can't return 
  Tag.EVAL_BODY_INCLUDE"); 
  if (_jspx_eval_html_text_1 != Tag.SKIP_BODY) 
  { 
  try 
  { 
  if (_jspx_eval_html_text_1 != Tag.EVAL_BODY_INCLUDE) {
  // the next nile sets out to 
  null 
  out = 
  pageContext.pushBody(); 
  _jspx_th_html_text_1.setBodyContent((BodyContent) 
  out); 
  } 
  _jspx_th_html_text_1.doInitBody(); 
  do 
  { 
  // 
  end 
  out.print(_jspx_html_data[5]); 
  // begin 
  [file="C:\\login.jsp";from=(25,0);to=(25,0)] 
  } while (_jspx_th_html_text_1.doAfterBody() == 
  BodyTag.EVAL_BODY_TAG); 
  } finally 
  { 
  if (_jspx_eval_html_text_1 != 
  Tag.EVAL_BODY_INCLUDE) 
  out = 
  pageContext.popBody(); 
  } 
  } 
  if (_jspx_th_html_text_1.doEndTag() == 
  Tag.SKIP_PAGE) 
  return; 
  } finally 
  { 
  _jspx_th_html_text_1.release(); 
  }
  
  
  The proplem 
  is pageContext.pushBody() returns null which then fails the next time 
  something is written to out.
  Any ideas. 
  
  
  R,
  Nick


Re: null pointer error

2001-06-27 Thread Bob Byron


Is your text element contained within an html:form
tag?

--- Nick Chalko [EMAIL PROTECTED] wrote:
 My jsp page with  the following tag
 html:text property=username size=20
 maxlength=20 value=test inside
 /html:txt
  
 generates the following java code (from VAJ 3.5.3)
  do {
 // end

 out.print(_jspx_html_data[4]);
 // begin
 [file=C:\\login.jsp;from=(16,0);to=(16,69)]
 /*   html:text 
 */

 org.apache.struts.taglib.html.TextTag
 _jspx_th_html_text_1 = new
 org.apache.struts.taglib.html.TextTag();
  
 _jspx_th_html_text_1.setPageContext(pageContext);
  

_jspx_th_html_text_1.setParent(_jspx_th_html_form_2);
  

JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 maxlength,20,null,null, false);
  

JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 property,username,null,null, false);
  

JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 size,20,null,null, false);
  

JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 value,test,null,null, false);
 try {
   int
 _jspx_eval_html_text_1 =
 _jspx_th_html_text_1.doStartTag();
   if
 (_jspx_eval_html_text_1 ==
 Tag.EVAL_BODY_INCLUDE)
   throw new
 JspTagException(Since tag handler
 class org.apache.struts.taglib.html.TextTag
 implements BodyTag, it can't
 return Tag.EVAL_BODY_INCLUDE);
   if (_jspx_eval_html_text_1
 != Tag.SKIP_BODY) {
   try {
   if
 (_jspx_eval_html_text_1 !=
 Tag.EVAL_BODY_INCLUDE) {
 // the next nile sets out to null
   out =
 pageContext.pushBody();
  
 _jspx_th_html_text_1.setBodyContent((BodyContent)
 out);
   }
  
 _jspx_th_html_text_1.doInitBody();
   do {
   // end
  
 out.print(_jspx_html_data[5]);
   // begin
 [file=C:\\login.jsp;from=(25,0);to=(25,0)]
   } while
 (_jspx_th_html_text_1.doAfterBody() ==
 BodyTag.EVAL_BODY_TAG);
   } finally {
   if (_jspx_eval_html_text_1
 !=
 Tag.EVAL_BODY_INCLUDE)
   out =
 pageContext.popBody();
   }
   }
   if
 (_jspx_th_html_text_1.doEndTag() == Tag.SKIP_PAGE)
   return;
   } finally {
   _jspx_th_html_text_1.release();
   }
  
  
 The proplem is  pageContext.pushBody() returns null
 which then fails the
 next time something is written to out.
 Any ideas.  
  
 R,
 Nick
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: null pointer error

2001-06-27 Thread Nick Chalko

Sorry,  yes it was in a html:htmlhtml:form  



-Original Message-
From: Bob Byron [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 2:14 PM
To: [EMAIL PROTECTED]
Subject: Re: null pointer error 



Is your text element contained within an html:form
tag?

--- Nick Chalko [EMAIL PROTECTED] wrote:
 My jsp page with  the following tag
 html:text property=username size=20
 maxlength=20 value=test inside
 /html:txt
  
 generates the following java code (from VAJ 3.5.3)
  do {
 // end

 out.print(_jspx_html_data[4]);
 // begin
 [file=C:\\login.jsp;from=(16,0);to=(16,69)]
 /*   html:text 
 */

 org.apache.struts.taglib.html.TextTag
 _jspx_th_html_text_1 = new
 org.apache.struts.taglib.html.TextTag();
  
 _jspx_th_html_text_1.setPageContext(pageContext);
  

_jspx_th_html_text_1.setParent(_jspx_th_html_form_2);
  

JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 maxlength,20,null,null, false);
  

JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 property,username,null,null, false);
  

JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 size,20,null,null, false);
  

JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 value,test,null,null, false);
 try {
   int
 _jspx_eval_html_text_1 =
 _jspx_th_html_text_1.doStartTag();
   if
 (_jspx_eval_html_text_1 ==
 Tag.EVAL_BODY_INCLUDE)
   throw new
 JspTagException(Since tag handler
 class org.apache.struts.taglib.html.TextTag
 implements BodyTag, it can't
 return Tag.EVAL_BODY_INCLUDE);
   if (_jspx_eval_html_text_1
 != Tag.SKIP_BODY) {
   try {
   if
 (_jspx_eval_html_text_1 !=
 Tag.EVAL_BODY_INCLUDE) {
 // the next nile sets out to null
   out =
 pageContext.pushBody();
  
 _jspx_th_html_text_1.setBodyContent((BodyContent)
 out);
   }
  
 _jspx_th_html_text_1.doInitBody();
   do {
   // end
  
 out.print(_jspx_html_data[5]);
   // begin
 [file=C:\\login.jsp;from=(25,0);to=(25,0)]
   } while
 (_jspx_th_html_text_1.doAfterBody() ==
 BodyTag.EVAL_BODY_TAG);
   } finally {
   if (_jspx_eval_html_text_1
 !=
 Tag.EVAL_BODY_INCLUDE)
   out =
 pageContext.popBody();
   }
   }
   if
 (_jspx_th_html_text_1.doEndTag() == Tag.SKIP_PAGE)
   return;
   } finally {
   _jspx_th_html_text_1.release();
   }
  
  
 The proplem is  pageContext.pushBody() returns null
 which then fails the
 next time something is written to out.
 Any ideas.  
  
 R,
 Nick
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: null pointer error

2001-06-27 Thread Martin Cooper

Silly question, perhaps, but you do have /html:text and not /html:txt,
don't you?

--
Martin Cooper


- Original Message -
From: Nick Chalko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2001 11:53 AM
Subject: null pointer error


 My jsp page with  the following tag
 html:text property=username size=20 maxlength=20 value=test
 inside
 /html:txt

 generates the following java code (from VAJ 3.5.3)
  do {
 // end
 out.print(_jspx_html_data[4]);
 // begin
 [file=C:\\login.jsp;from=(16,0);to=(16,69)]
 /*   html:text  */
 org.apache.struts.taglib.html.TextTag
 _jspx_th_html_text_1 = new org.apache.struts.taglib.html.TextTag();

 _jspx_th_html_text_1.setPageContext(pageContext);

 _jspx_th_html_text_1.setParent(_jspx_th_html_form_2);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 maxlength,20,null,null, false);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 property,username,null,null, false);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 size,20,null,null, false);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 value,test,null,null, false);
 try {
   int _jspx_eval_html_text_1 =
 _jspx_th_html_text_1.doStartTag();
   if (_jspx_eval_html_text_1 ==
 Tag.EVAL_BODY_INCLUDE)
   throw new JspTagException(Since tag
 handler class org.apache.struts.taglib.html.TextTag implements BodyTag,
 it can't return Tag.EVAL_BODY_INCLUDE);
   if (_jspx_eval_html_text_1 != Tag.SKIP_BODY) {
   try {
   if (_jspx_eval_html_text_1 !=
 Tag.EVAL_BODY_INCLUDE) {
 // the next nile sets out to null
   out = pageContext.pushBody();

 _jspx_th_html_text_1.setBodyContent((BodyContent) out);
   }
   _jspx_th_html_text_1.doInitBody();
   do {
   // end
   out.print(_jspx_html_data[5]);
   // begin
 [file=C:\\login.jsp;from=(25,0);to=(25,0)]
   } while (_jspx_th_html_text_1.doAfterBody() ==
 BodyTag.EVAL_BODY_TAG);
   } finally {
   if (_jspx_eval_html_text_1 !=
 Tag.EVAL_BODY_INCLUDE)
   out = pageContext.popBody();
   }
   }
   if (_jspx_th_html_text_1.doEndTag() == Tag.SKIP_PAGE)
   return;
   } finally {
   _jspx_th_html_text_1.release();
   }


 The proplem is  pageContext.pushBody() returns null which then fails the
 next time something is written to out.
 Any ideas.

 R,
 Nick






RE: null pointer error

2001-06-27 Thread Nick Chalko

Yes closing tags are there also.

I even tried 
html:text property=username size=20 maxlength=20 value=test/

and 
html:text property=username size=20 maxlength=20 value=test
test/html:txt

To see if having a body would matter,  no difference.

I think it is a problem with IBM.  

out = pageContext.pushBody();  
returns a null.  
put the JSP code is to convoluted for me to see why.

I am download WebLogic 6.0 and I will try it there.

R,
Nick




-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 2:58 PM
To: [EMAIL PROTECTED]
Subject: Re: null pointer error


Silly question, perhaps, but you do have /html:text and not /html:txt,
don't you?

--
Martin Cooper


- Original Message -
From: Nick Chalko [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2001 11:53 AM
Subject: null pointer error


 My jsp page with  the following tag
 html:text property=username size=20 maxlength=20 value=test
 inside
 /html:txt

 generates the following java code (from VAJ 3.5.3)
  do {
 // end
 out.print(_jspx_html_data[4]);
 // begin
 [file=C:\\login.jsp;from=(16,0);to=(16,69)]
 /*   html:text  */
 org.apache.struts.taglib.html.TextTag
 _jspx_th_html_text_1 = new org.apache.struts.taglib.html.TextTag();

 _jspx_th_html_text_1.setPageContext(pageContext);

 _jspx_th_html_text_1.setParent(_jspx_th_html_form_2);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 maxlength,20,null,null, false);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 property,username,null,null, false);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 size,20,null,null, false);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,
 value,test,null,null, false);
 try {
   int _jspx_eval_html_text_1 =
 _jspx_th_html_text_1.doStartTag();
   if (_jspx_eval_html_text_1 ==
 Tag.EVAL_BODY_INCLUDE)
   throw new JspTagException(Since tag
 handler class org.apache.struts.taglib.html.TextTag implements BodyTag,
 it can't return Tag.EVAL_BODY_INCLUDE);
   if (_jspx_eval_html_text_1 != Tag.SKIP_BODY) {
   try {
   if (_jspx_eval_html_text_1 !=
 Tag.EVAL_BODY_INCLUDE) {
 // the next nile sets out to null
   out = pageContext.pushBody();

 _jspx_th_html_text_1.setBodyContent((BodyContent) out);
   }
   _jspx_th_html_text_1.doInitBody();
   do {
   // end
   out.print(_jspx_html_data[5]);
   // begin
 [file=C:\\login.jsp;from=(25,0);to=(25,0)]
   } while (_jspx_th_html_text_1.doAfterBody() ==
 BodyTag.EVAL_BODY_TAG);
   } finally {
   if (_jspx_eval_html_text_1 !=
 Tag.EVAL_BODY_INCLUDE)
   out = pageContext.popBody();
   }
   }
   if (_jspx_th_html_text_1.doEndTag() == Tag.SKIP_PAGE)
   return;
   } finally {
   _jspx_th_html_text_1.release();
   }


 The proplem is  pageContext.pushBody() returns null which then fails the
 next time something is written to out.
 Any ideas.

 R,
 Nick





Re: null pointer error

2001-06-27 Thread Dmitri Colebatch

On Thu, 28 Jun 2001 07:22, Nick Chalko wrote:
 Sorry,  yes it was in a html:htmlhtml:form
you do mean html:html/html:form
   ^^^
dont you?




 -Original Message-
 From: Bob Byron [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 27, 2001 2:14 PM
 To: [EMAIL PROTECTED]
 Subject: Re: null pointer error



 Is your text element contained within an html:form
 tag?

 --- Nick Chalko [EMAIL PROTECTED] wrote:
  My jsp page with  the following tag
  html:text property=username size=20
  maxlength=20 value=test inside
  /html:txt
 
  generates the following java code (from VAJ 3.5.3)
   do {
  // end
 
  out.print(_jspx_html_data[4]);
  // begin
  [file=C:\\login.jsp;from=(16,0);to=(16,69)]
  /*   html:text 
  */
 
  org.apache.struts.taglib.html.TextTag
  _jspx_th_html_text_1 = new
  org.apache.struts.taglib.html.TextTag();
 
  _jspx_th_html_text_1.setPageContext(pageContext);

 _jspx_th_html_text_1.setParent(_jspx_th_html_form_2);


 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,

  maxlength,20,null,null, false);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,

  property,username,null,null, false);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,

  size,20,null,null, false);

 JspRuntimeLibrary.introspecthelper(_jspx_th_html_text_1,

  value,test,null,null, false);
  try {
int
  _jspx_eval_html_text_1 =
  _jspx_th_html_text_1.doStartTag();
if
  (_jspx_eval_html_text_1 ==
  Tag.EVAL_BODY_INCLUDE)
throw new
  JspTagException(Since tag handler
  class org.apache.struts.taglib.html.TextTag
  implements BodyTag, it can't
  return Tag.EVAL_BODY_INCLUDE);
if (_jspx_eval_html_text_1
  != Tag.SKIP_BODY) {
try {
if
  (_jspx_eval_html_text_1 !=
  Tag.EVAL_BODY_INCLUDE) {
  // the next nile sets out to null
out =
  pageContext.pushBody();
 
  _jspx_th_html_text_1.setBodyContent((BodyContent)
  out);
}
 
  _jspx_th_html_text_1.doInitBody();
do {
// end
 
  out.print(_jspx_html_data[5]);
// begin
  [file=C:\\login.jsp;from=(25,0);to=(25,0)]
} while
  (_jspx_th_html_text_1.doAfterBody() ==
  BodyTag.EVAL_BODY_TAG);
} finally {
if (_jspx_eval_html_text_1
  !=
  Tag.EVAL_BODY_INCLUDE)
out =
  pageContext.popBody();
}
}
if
  (_jspx_th_html_text_1.doEndTag() == Tag.SKIP_PAGE)
return;
} finally {
_jspx_th_html_text_1.release();
}
 
 
  The proplem is  pageContext.pushBody() returns null
  which then fails the
  next time something is written to out.
  Any ideas.
 
  R,
  Nick

 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/