JSP Tag example pagehits.jsp NumberFormatException
I just upgraded my WLS 5.1 to SP4, but when I run the pagehits.jsp
example, I got the following NumberFormatException. It was fine w/o
SP4. I am very appreciated if anyone can help me to clarify that.
Sat Jul 29 12:44:18 PDT 2000:<E> <ServletContext-General> Servlet failed
with Ex
ception
java.lang.NumberFormatException: error=3
at java.lang.Integer.parseInt(Integer.java, Compiled Code)
at java.lang.Integer.parseInt(Integer.java:458)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java,
Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:187)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:118)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:744)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:692)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:363)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled Code)
I just upgraded my WLS 5.1 to SP4, but when I run the pagehits.jsp
example, I got the following NumberFormatException. It was fine w/o
SP4. I am very appreciated if anyone can help me to clarify that.
Sat Jul 29 12:44:18 PDT 2000:<E> <ServletContext-General> Servlet failed
with Ex
ception
java.lang.NumberFormatException: error=3
at java.lang.Integer.parseInt(Integer.java, Compiled Code)
at java.lang.Integer.parseInt(Integer.java:458)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java,
Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:187)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:118)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:744)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:692)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:251)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:363)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java,
Compiled Code)
Similar Messages
-
JSP Tag -- Including a JSP fragment in a Java Tag file
Hi all,
I have a query regarding JSP Tag file authoring by extending the TagSupport class. I would like to know if it is possible to include a JSP file fragment inside a Java file somehow.
Specifically, I have created a simple template tag, which adds a header and footer template to the resulting HTML page.
<bc:template>
Hello World!
</bc:template>produces for example
<html><body>
Hello World!
</body></html>Now I have two JSP fragment files (head.jspf and foot.jspf), and I want to do do something like
public class HtmlTemplateTag extends TagSupport implements TryCatchFinally {
public int doStartTag() {
// somehow include head.jspf
return EVAL_BODY_INCLUDE;
public void doFinally() {
// somehow include foot.jspf
}Which means, I want to execute had.jspf and foot.jspf from the Java class file. I am not sure if it is even possible. If anyone can help me with this, it would be greatly appreciated.
thanks
nileshYour intention is to put a header/footer on pages in your web application?
There is another way to do it - specify prelude/coda jsp fragments in web.xml
Something like the following:
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<include-prelude>/WEB-INF/jspf/head.jspf</include-prelude>
<include-coda>/WEB-INF/jspf/foot.jspf</include-coda>
</jsp-property-group>
<jsp-config> -
Why does people use JSP Tag for their JSP page? (Urgent)
I don't know what benifit if I am using JSP Tag.
If anyone knows, pls give me an idea and the advantage of using JSP Tag in JSP Page!
Thanks in advance!You have to read a little about JSP, JSP stands for JavaServer Pages, you can use jsp tags and you can use java code. If you dont want to use jsp tags then you should just write html file, if you just want to use java, then write java class or a servlet.
The need for jsp arised because people were inserting html code inside a servlet class..a big no no..and a headache. JSP separate model from the view...read a little about MVC-2 model view controller pattern.
Also read some tutorial on this website...good luck
K -
Custom tag in included JSP page cause exception (WLS 5.1 SP 9)
An application use custom tags (JSP Tag extensions) in JSP page
included into another JSP page by means <jsp:include> instruction.
After we had installed Service Pack 9 for Weblogic 5.1
browser's call of including JSP began show an error.
When I remove Weblogic510sp9.jar and Weblogic510sp9boot.jar
references from startWebLogic.cmd, the error diagnostic disappear.
Is Service Pack Number 9 wrong?
==========================
Web browser diagnostic:
Error 500--Internal Server Error
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling
the request.
==========================
Console diagnostic:
Tue Jun 05 17:40:14 MSD 2001:<I> <WebAppServletContext-dscat> looking for taglib
uri /exttags.tld as resource /WEB-INF/e
xttags.tld in Web Application root:
Tue Jun 05 17:40:15 MSD 2001:<I> <WebAppServletContext-dscat> Generated java file:
C:\weblogic\dscat\WEB-INF\_tmp_war_ds
cat\jsp_servlet\_jsp\_opos\_catalog.java
Tue Jun 05 17:40:25 MSD 2001:<E> <WebAppServletContext-dscat> Servlet failed with
Exception
java.lang.VerifyError: (class: jsp_servlet/_jsp/_opos/_catalog, method: _jspService
signature: (Ljavax/servlet/http/Http
ServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Register 12 contains
wrong type
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:469)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java,
Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:228)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
==========================
Including JSP file:
<%@ include file="catalog_real.jsp" %>
==========================
Included JSP file:
<%@ taglib uri="/exttags.tld" prefix="dscat" %>
<dscat:pageheader>Catalog header</dscat:pageheader>
==========================
Tag extansions library (WEB-INF/exttags.tld file):
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>dscat</shortname>
<tag>
<name>pageheader</name>
<tagclass>ru.ibs.xbcat.view.tag.PageHeader</tagclass>
</tag>
</taglib>
==========================
Class PageHeader:
package ru.ibs.xbcat.view.tag;
import java.io.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;
public class PageHeader extends BodyTagSupport {
public int doStartTag() throws javax.servlet.jsp.JspException {
return BodyTag.EVAL_BODY_TAG;
public int doAfterBody() throws javax.servlet.jsp.JspException {
return(SKIP_BODY);
Are you using Jikes? See if this helps ...
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=6287&utag=
Mike
"Radik Usmanov" <[email protected]> wrote:
>
>An application use custom tags (JSP Tag extensions) in JSP page
>included into another JSP page by means <jsp:include> instruction.
>
>After we had installed Service Pack 9 for Weblogic 5.1
>browser's call of including JSP began show an error.
>When I remove Weblogic510sp9.jar and Weblogic510sp9boot.jar
>references from startWebLogic.cmd, the error diagnostic disappear.
>
>Is Service Pack Number 9 wrong?
>==========================
>Web browser diagnostic:
>
>Error 500--Internal Server Error
>From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
>10.5.1 500 Internal Server Error
>The server encountered an unexpected condition which prevented it from
>fulfilling
>the request.
>
>==========================
>Console diagnostic:
>
>Tue Jun 05 17:40:14 MSD 2001:<I> <WebAppServletContext-dscat> looking
>for taglib
>uri /exttags.tld as resource /WEB-INF/e
>xttags.tld in Web Application root:
>Tue Jun 05 17:40:15 MSD 2001:<I> <WebAppServletContext-dscat> Generated
>java file:
>C:\weblogic\dscat\WEB-INF\_tmp_war_ds
>cat\jsp_servlet\_jsp\_opos\_catalog.java
>Tue Jun 05 17:40:25 MSD 2001:<E> <WebAppServletContext-dscat> Servlet
>failed with
>Exception
>java.lang.VerifyError: (class: jsp_servlet/_jsp/_opos/_catalog, method:
>_jspService
>signature: (Ljavax/servlet/http/Http
>ServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Register 12
>contains
>wrong type
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Unknown Source)
> at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:469)
> at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java,
>Compiled Code)
> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:228)
> at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:138)
> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:915)
> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:879)
> at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
> at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
>Code)
>
>==========================
>Including JSP file:
>...
> <%@ include file="catalog_real.jsp" %>
>...
>
>==========================
>Included JSP file:
>...
> <%@ taglib uri="/exttags.tld" prefix="dscat" %>
>...
><dscat:pageheader>Catalog header</dscat:pageheader>
>...
>==========================
>Tag extansions library (WEB-INF/exttags.tld file):
>
><?xml version="1.0" encoding="ISO-8859-1" ?>
><!DOCTYPE taglib
> PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
> "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
>
><taglib>
> <tlibversion>1.0</tlibversion>
> <jspversion>1.1</jspversion>
> <shortname>dscat</shortname>
>
> <tag>
> <name>pageheader</name>
> <tagclass>ru.ibs.xbcat.view.tag.PageHeader</tagclass>
> </tag>
>
></taglib>
>==========================
>Class PageHeader:
>
>package ru.ibs.xbcat.view.tag;
>
>import java.io.*;
>import javax.servlet.jsp.*;
>import javax.servlet.jsp.tagext.*;
>
>public class PageHeader extends BodyTagSupport {
>
> public int doStartTag() throws javax.servlet.jsp.JspException {
> return BodyTag.EVAL_BODY_TAG;
> }
>
> public int doAfterBody() throws javax.servlet.jsp.JspException {
> ...
> return(SKIP_BODY);
> }
>}
>
-
Register 12 VerifyError exception when compiling jsp with that jsp tag!
Hi everybody,
We implemented a tag which is charged with a simple task like just "out.println"s,
on production with WL5.1 SP11,jdk1.2.
Then we got java.lang.VerifyError exception which is also denoted at Giuseppe Madonna's
mail on ( http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=6834&utag=
) that "java.lang.VerifyError: Register 12 contains wrong type"
To be able to find the inconsistency in class files denoted at VerifyError exception,
we delete the tmp dir. of web app resides in a war.
Also the related java beans used in jsp tag and related jsp, are in a jar on our
classpath and .tld file resides in the .war file of our web application.
But also, I must define that it is our first tag implemented after we migrate to
the .war file after the web application directory structure of same application(that
old dir. also deleted), I know it is silly but, is it possible that WL can now refer
to something related our previous directory structure of our app. like that old .tld
file or classes?
Or may it be related with the difference between jdk versions on the test and the
production server?
Any help will be really appreciated..
Many thanks,
Banu
Start up weblogic with -
java -noverify ....
Mike
"banu" <[email protected]> wrote:
>
>Hi everybody,
>We implemented a tag which is charged with a simple task like just "out.println"s,
>on production with WL5.1 SP11,jdk1.2.
>
>Then we got java.lang.VerifyError exception which is also denoted at Giuseppe
>Madonna's
>mail on ( http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=6834&utag=
>) that "java.lang.VerifyError: Register 12 contains wrong type"
>
>To be able to find the inconsistency in class files denoted at VerifyError
>exception,
>we delete the tmp dir. of web app resides in a war.
>
>Also the related java beans used in jsp tag and related jsp, are in a jar
>on our
>classpath and .tld file resides in the .war file of our web application.
>
>But also, I must define that it is our first tag implemented after we migrate
>to
>the .war file after the web application directory structure of same application(that
>old dir. also deleted), I know it is silly but, is it possible that WL can
>now refer
>to something related our previous directory structure of our app. like that
>old .tld
>file or classes?
>
>Or may it be related with the difference between jdk versions on the test
>and the
>production server?
>
>
>Any help will be really appreciated..
>Many thanks,
>Banu
>
-
Is a JSP Tag Library providing Oracle Financial look and feel available
We are going to use Oracle Financial as part of our future application.
That is why other parts of it (which we plan to develop using JDeveloper)
have to have the same Look and Feel.
Is a JSP Tag Library that provides Oracle Financial Look and Feel available?Oracle Applications use BC4J, UIX, and JDeveloper.
The UIX framework implements the Oracle "Browser Look And Feel" (BLAF) that our Oracle Applications self-service applications use.
The UIX JSP tag library lets JSP developers do the same. -
Urgent-how to access custom tag from jsp tag
I have a problem accessing a custom tag from a jsp expression.
Details: I have a custom tag that returns a string variable. I need to access that variable from jsp expression <%%>.
Can any body help me?Tags don't "return" values as in the normal sense.
They can only support TEI (Tag Extra Information) that just stuffs a declared variable into the page's state.
For example, if the tag class had a public method called getValue(), you could do the following:
<xmp:mytag id="foo"/>
<%
out.println("value is " + foo.getValue());
%> -
Problems in developing custom JSP tags
I have problems in debugging custom JSP tags. Sometimes the doStartTag is not called on tags but the doEndTag is called. I don't know why.
Thanks.Fahr--
A word of caution -- NetUI did not ship a JSP tag SDK in 8.x, and
we're making no compatibility guarantees for custom JSP tags written on
the 8.x release and future releases.
You can accomplish the same sort of functionality with a combination
of the <netui-data:getData> tag and JSTL 1.0. This solution would
probably provide similar functionality and be more future-proof relative
to JSTL and the NetUI tags currently being developed in Beehive.
Hope that helps.
Eddie
Fahr Vegnugen wrote:
We are in the midst of creating our own JSP tags to work with datasources.
In an example where you would need to compare two different datasources how would you do this?
ie.
<prefix:isGreater dataSource="{pageflow.column1}" dataSourceToCompare="{pageFlow.column2}" />
How would I evaluate what column2 is since the tag will only resolve one data source
this.evaluateDataSource();
Any pointers you can provide would be appreciated, or if there is a library of jsp tags that evaluate objects using datasources already created, that would even be better. -
How to use GX tags in a JSP?
Hi, everybody!
Our company have got a NAS 2.1 application (with AppLogic's and HTML templates) that it needs to be migrated to J2EE model. In this moment, we can't cover a complete migration from AppLogic to a J2EE, and furthermore, we have to maintain all the presentation layout and keep GX tag's in our templates.
From my point of view, AppLogic's must be translated into Servlets and HTML-template files could be renamed in JSP files, keeping GX tags.
Nowadays we are making this partial migration, but we've realized that JSP engine doesn't evaluate correctly JSPs with GX tag's.
Example
Servlet:
TemplateMapBasic tmpMap = (TemplateMapBasic) GX.CreateTemplateMapBasic();
tmpMap.putString("nombre","Alberto");
req.setAttribute("GX_MAP",tmpMap);
// Call JSP
getServletContext().getRequestDispatcher("/example.jsp").forward(req,res);
JSP:
%gx type=cell id=nombre%
%/gx%
Result:
%gx type=cell id=nombre%
%/gx%
Insteof of appearing Alberto, it shows the tag.
Does anybody know what it is happening?
Do I need to include some tag library into the JSP?
Thanks in advance.
Alberto
PD: We are using iPlanet Application Server 6.0 SP4.Hello again,
Just tried this and got the same problem, copy the file into your actual web application so the link becomes
continue
Or put in a sub directory as you see fit.
I have never tried to open files on the pc in this way, only files under my web site, but it seems as though the browser will not allow the execution of files on your computer.
Thinking about it, javascript is not able to execute such processes either, it is a security constraint.
Would you want websites to be able to execute jobs on your local PC??
I think not!! -
Sp9 / pre-release / problem with jsp tags
WLS 5.1, sp9 pre-release, solaris 2.7, WLCS 3.2
JSP compile fails with the exception...
weblogic.servlet.jsp.JspException: (line -1): Error in tag library
at: 'wl':
The Tag class 'weblogicx.jsp.tags.CacheTag' has no setter method
corresponding to
TLD declared attribute 'async', (JSP 1.1 spec, 5.4.1)
at weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:138)
at weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:264)
at weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:146)
at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:95)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3873)
at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3623)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3484)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1817)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1658)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1548)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:888)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:125)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:109)
at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242
It could just be me - I an un-jarred a version of weblogic-tags-510.jar where WLS
could find it.
mike
Kumar Allamraju <[email protected]> wrote:
>Yes, my JSP is referring the tag libs. I 'm using counter example given
>in
>examples/jsp/tagext/counter directory
>
><NT Performance Pack> NATIVE: created IoCompletionPort successfully.
>I
>oPort=0x000001d4
>Sun Apr 01 12:44:00 PDT 2001:<I> <WebLogicServer> WebLogic Server star
>ted
>Sun Apr 01 12:44:40 PDT 2001:<I> <NT Performance Pack> Allocating: '2'
> NT reader threads
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: init
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: param
> verbose initialized to: true
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: param
> packagePrefix initialized to: jsp_servlet
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: param
> compileCommand initialized to: c:/java/java122/bin/javac.exe
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: param
> srcCompiler initialized to weblogic.jspc
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: param
> superclass initialized to null
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: param
> workingDir initialized to: D:\releases\510\myserver\classfiles
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: param
> pageCheckSeconds initialized to: 1
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: Using
> Encoding : ISO-8859-1 when constructing PrintWriter instead of Servle
>tOutputStream
>Sun Apr 01 12:44:41 PDT 2001:<I> <ServletContext-General> *.jsp: initi
>alization complete
>Sun Apr 01 12:44:42 PDT 2001:<I> <ServletContext-General> looking for
>taglib uri /counter.tld as resource /WEB-INF/counter.tld in Web Applic
>ation root:
>Sun Apr 01 12:44:43 PDT 2001:<I> <ServletContext-General> Generated ja
>va file: D:\releases\510\myserver\classfiles\jsp_servlet\_pagehits.jav
>a
>Sun Apr 01 12:44:45 PDT 2001:<I> <ServletContext-General> file: init
>
>
>what's the change number you get from weblogic.Admin VERSION?
>
>
>--
>Kumar
>
>Mike Reiche wrote:
>
>> From the zip file.
>>
>> It has to be a jsp that references those tag libraries.
>> Other than that it works like a charm.
>>
>> Mike
>>
>> Kumar Allamraju <[email protected]> wrote:
>> >Did you extracted the SP9 zip or exe?
>> >I do not see the following errors when accessing a jsp with SP9? Could
>> >you tell us how to
>> >reproduce it?
>> >
>> >BTW, i will ask our docs folks to correct the startup scripts..
>> >
>> >--
>> >Kumar
>> >
>> >Mike Reiche wrote:
>> >
>> >> I had to remove the 'async' attribute from taglib.tld
>> >>
>> >> And when I use WLCS I have to remove it from weblogic.tld
>> >>
>> >> And the startup scripts provided do not include weblogic-tags-510.jar
>> >> in the classpath.
>> >>
>> >> Mike
>> >>
>> >> "Mike Reiche" <[email protected]> wrote:
>> >> >
>> >> >WLS 5.1, sp9 pre-release, solaris 2.7, WLCS 3.2
>> >> >
>> >> >JSP compile fails with the exception...
>> >> >
>> >> >weblogic.servlet.jsp.JspException: (line -1): Error in
>> >> >tag library
>> >> >at: 'wl':
>> >> >The Tag class 'weblogicx.jsp.tags.CacheTag' has no setter
>> >> >method
>> >> > corresponding to
>> >> >TLD declared attribute 'async', (JSP 1.1 spec, 5.4.1)
>> >> > at weblogic.servlet.jsp.StandardTagLib.jspException(StandardTagLib.java:138)
>> >> > at weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:264)
>> >> > at weblogic.servlet.jsp.StandardTagLib.processTagElements(StandardTagLib.java:146)
>> >> > at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:125)
>> >> > at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:95)
>> >> > at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:3873)
>> >> > at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:3623)
>> >> > at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3484)
>> >> > at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1817)
>> >> > at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1658)
>> >> > at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1548)
>> >> > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:888)
>> >> > at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
>> >> > at weblogic.servlet.jsp.JspParser.parse(JspParser.java:125)
>> >> > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:109)
>> >> > at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:242
>> >
>
-
Hi,
I have several questions regarding this topic:
1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any known
problems ?
2) Does Weblogic come with any tag libraries (for loops, if, etc) and where
can I get them ?
3) Are there any tag libraries out there (JRun, for example) that have been
successfully run on Weblogic ?
Any help would be much appreciated.
Thanks,
Jamie
As there seems to be general interest, a link would probably be a great
help.
Regards
Daniel Hoppe
-----Original Message-----
From: Michael Girdley [mailto:[email protected]]
Posted At: Friday, August 25, 2000 8:03 AM
Posted To: jsp
Conversation: Custom JSP Tags for Weblogic
Subject: Re: Custom JSP Tags for Weblogic
Please see the documentation:
http://www.weblogic.com/docs51/resources.html
Michael Girdley
BEA Systems Inc
"Jamie" <[email protected]> wrote in message
news:[email protected]...
> Update
> =======
>
> Weblogic Portal has some Tag libraries. I've downloaded the trial
version
> of
> the Weblogic Commerce Server. How do I get the tag libraries and use
them
> on WL 5.1 ?
>
> Answers to original post still wanted
>
> Thanks,
>
> Jamie
>
> Jamie <[email protected]> wrote in message
> news:[email protected]...
> > Hi,
> >
> > I have several questions regarding this topic:
> >
> > 1) Does Weblogic 5.1 supports Custom Tags ? If so, are there any
known
> > problems ?
> >
> > 2) Does Weblogic come with any tag libraries (for loops, if, etc)
and
> where
> > can I get them ?
> >
> > 3) Are there any tag libraries out there (JRun, for example) that
have
> been
> > successfully run on Weblogic ?
> >
> >
> > Any help would be much appreciated.
> >
> > Thanks,
> >
> > Jamie
> >
> >
>
>
-
Using ViewObject with a foreach tag in a jsp
Hi guys I have the following scenario:
1- I call a certain .jsp page
2- a controller class (extends servlet) is called, this class: takes a view object, executes it's query, forwards the result to the jsp page.
3- jsp page has a foreach tag that iterates over the query result.
My problem is that foreach tag only takes list or array in its "items" attribute.
Now is there a way to put the view object result in an array/list? in other words in my servlet what should I put in the request so that the foreach tag can iterate over the rows of the query. Thank you in advance for the reply.Thank you for the reply.
But my application is not a web based one.
I am developing a framework (as swf) in which some other swf files (target files) are played as movie clip. Since the framework swf should be considered as a general one, no direct linking to the other swfs preferred. I follow some (my own) rules to get things worked. For example, I need to show a simple movie cilp as the title in the framework. This movie clip will be different in different target swfs, and they will be stored inside the target swfs itself. I was thinking about giving them a unique id (eg. title_id) and after loading the target swfs, show their titles (movie clips) in one of the framework's empty movie clip (using attachMovie).
Could please suggest me any idea to get things work? -
Jsp tags in .html pages
Hi
Is possible to put jsp tags in pages .html?
I try this example:
<html>
<head>
<title></title>
</head>
<%
out.print("teste");
%>
<body>
</body>
</html>
and the result in the page is the jsp code. Tomcat don't print "teste", print out.print("teste");.
Is possible to do this.
Thanks in advance.
Lu�s MatosWhat do you expect to happen? Who would you expect to print anything? Your browser is the only instance that reads HTML, and it's not a servlet container. JSPs have to be compiled and executed by such a container like Tomcat.
-
uix:table using JSP tags
I cannot figure out how to bind a dataobject list using the <uix:table> tag. Could someone please help me with this.
Jeff DriskellDo you mean that you already have a DataObjectList which you want to set as the <uix:table>'s tableData attribute? If so, I believe you have two choices:
1. You can use a scriptable variable for the table and call setTableData() explicitly on the TableBean.
2. You can use a scriptable variable for a dataScope and register a DataProvider which provides access to your DataObjectList. Then, you can use the tableDataBinding attribute of the <uix:table> tag to bind to your DataProvider.
Examples of both of these techniques are provided in the "Scriptable variables" section of the "UIX JSP Tag Libraries" section of the UIX Developer's Guide. -
Are not interpreted JSTL tags in a JSP page including in a servlet.
Hi people,
I have a project where una page (index.jsp) includes a servlet (MyServlet), that consult a persistence class and get a List of objects (Users),
then the servlet passes the List to a Request object and includes another JSP page (showUsers.jsp). And this is conceptually correct, but don´t works, the JSTL tags are not interpreted in showUsers.jsp.
This is my code...
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<c:out value="Show me some things index.jsp"/>
<div style="border-color:red; border:solid; padding-left:60px">
<jsp:include flush="true" page="pepe/MyServlet"/>
</div>
</body>
</html>...and the Servlet...
public class MyServlet extends HttpServlet
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
UserManager um = new UserManager();
List users = um.getUsers(); //This use Hibernate to return a Users List
request.setAttribute("users", (ArrayList) um.getUsers());
request.getRequestDispatcher("/showUsers.jsp").forward(request, response);
}...Finally, we have the showUsers.jsp file....
<c:out value="Show me some thing showUsers.jsp"/>
<table>
<tr>
<th>ID</th>
<th>Name</th>
<th>e-Mail</th>
<th>Type</th>
</tr>
<tr>
<c:foreach items="${requestScope.users}" var="user">
<td><c:out value="${user.id}" /></td>
<td><c:out value="${user.name}" /></td>
<td><c:out value="${user.email}" /></td>
<td><c:out value="${user.type}" /></td>
</c:foreach>
</tr>
</table>This i get as result page...
ID Name e-Mail TypeFinally, this is the code of showUsers.jsp...
<c:out value="Show me some thing showUsers.jsp"/>
<table>
<tr>
<th>ID</th>
<th>Name</th>
<th>e-Mail</th>
<th>Type</th>
</tr>
<tr>
<c:foreach items="[src.User@18f729c, src.User@ad97f5, src.User@d38976, src.User@1e5c339, src.User@17414c8, src.User@7a17]" var="user">
<td><c:out value="" /></td>
<td><c:out value="" /></td>
<td><c:out value="" /></td>
<td><c:out value="" /></td>
</c:foreach>
</tr>
</table>Somebody can help me?
Many thanks,
GonzaloThanks you all guys,
I appreciate very much your help. In response to everyone ...
BalusC wrote:
Is JSTL taglib declared in top of that JSP page? I don't see it back in the posted code snippet. In this example I stuck...
request.getRequestDispatcher("/showUsers.jsp").forward(request, response);By mistake, but this is just a test, the original line of my servlet is...
request.getRequestDispatcher("/showUsers.jsp").include(request, response);As you can see, both (the servlet and the showUser.jsp file) are included in the index.jsp file. So the header...
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>...in the index.jsp file should works (I hope so).
njb7ty wrote:
I assume in your web.xml, you have ''pepe/MyServlet' defined as a servlet tag and servlet map tag? Without that, I don't think your JSP will find the servlet. I'm >not sure you need it in web.xml since I never call a servlet from a JSP page.
I suggest putting System.out.println() throughout your servlet code and out.println() in your JSP pages to see exactly what is called and when.
As a general rule, JSP files are to display data only, and submit back to a servlet. The servlet does all the business logic and dispatches to the appropriate >JSP page. The JSP shouldn't have any business logic. Including the servlet looks kinda like including business logic. Actually, in a MVC design, your >presentation, control, busines, and database layers have their own isolated responsibilities.
I suggest the servlet put data as one java bean in request scope via request.setAttribute() and dispatch to the JSP page. The JSP page gets the data via ><useBean> tag. The JSTL gets the variables from the useBean tag and uses the data from there to display it. Really, this is my web.xml file...
<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">
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>src.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/pepe/MyServlet/*</url-pattern>
</servlet-mapping>
</web-app>Regarding putting System.out.println() and out.println(), i did it and thats works.
Respect of your last comment, I am not a expert in MVC, but I understand that the view layer can make calls to the Controller layer, I am wrong?
evnafets wrote:
It's not. However thats not code, but the generated HTML.
As Balusc pointed out it's the result of running this JSP page without importing the tag library at the top.
Because the tag library is not declared, it treats the <c:forEach> and other tags as template text, and basically ignores them.
It then evaluates the ${items} attribute as an expression in template text, calling toString() on it.
Cheers,
evnafets The file showUsers.jsp are included into the index.jsp page, that's have the header taglib. Could this works?
BalusC wrote:
njb7ty wrote:
By the way, I dont think this is the correct format for the foreach tag:
<c:foreach items="[src.User@18f729c, src.User@ad97f5, src.User@d38976, src.User@1e5c339, src.User@17414c8, src.User@7a17]" var="user">You're right friend.
And that's my problem. Any ideas?
Thanks everyone,
Gonzalo
Maybe you are looking for
-
How to Use - BAPI_ACTIVITYCRM_CHANGEMULTI
Hi All, Can anyone help me with the following BAPI. I have used it as follows:- CALL FUNCTION 'BAPI_ACTIVITYCRM_CHANGEMULTI' TABLES header = it_header headerx = it_headerx PARTNER = PARTNERX
-
Weird iTunes 10.6.3 missing album artwork issue
I upgraded to iTunes 10.6.3 yesterday, and I had to restart my Mac for an unrelated issue. This afternoon, I noticed something really weird- all my "Documentary" movies that I purchased through iTunes Store have lost their artwork previews; meaning,
-
Error while opening the PDF attachment
HI SDN's I have to send order confirmation thru mail as a pdf attachment as soon as order has been saved. I have written the code and assigned to output type. Here I am getting an error opening a converted pdf file with Adobe Reader The error message
-
Problem in one of the field in xk02
Dear MM guruz, i have a problem. The problem is : i am trying to change a vendor details in xk02. now while maintaining the edit /change in xk02 system ask for general, purc org data and company code data. I selected purchasing data from purc org dat
-
Hi, S_ALR_87012357 / S_ALR_87012356 Tax amount for tax codes V9, VP and VT are calculated and displayed correctly in FI reporting but they are reported at a higher amount in the tax reports run by transactions S_ALR_87012357 / S_ALR_87012356. Since i