Help on jsp tag
Hi, tag experts,
I had a tag that returns a list of users and presented as dropdown list. now I
would like to only present the user with certain status, is easy job? I didn't
wrote the tag before, so have no idea how diificult it is. Thanks
Hi ,
It 'll be helpful if u could give me more details .
Thanks
R.Thilak babu & KSK
"Hope" <[email protected]> wrote:
>
>Thanks, yes, I was thinking to use attribute, but I don't know how can
>I skip the
>rows that has certain status. I get the list and set a counter in doStartBody(),
> in doAfterBody:
>
>if (counter < length) {
> setOutputVariable();
> counter++;
> return EVAL_BODY_TAG;
>} else {
> BodyContent body = getBodyContent();
> body.writeOut(getPreviousOut());
> return SKIP_BODY;
>}
>
>I can test the user status in doAfterBody, how can i make it skip the
>row? Thanks
>
>"Siptech Community" <[email protected]> wrote:
>>
>>"Hope" <[email protected]> wrote:
>>>
>>>Hi, tag experts,
>>>
>>>I had a tag that returns a list of users and presented as dropdown
>list.
>>>now I
>>>would like to only present the user with certain status, is easy job?
>>>I didn't
>>>wrote the tag before, so have no idea how diificult it is. Thanks
>>
>>Hi Hope,
>> Addition of this functionality is simple. Just declare an attribute
>>for the
>>status for that particular taglib and perform action in the taglib
>>class as
>>per the value passed in the status.
>>
>>Regards
>>Thilak & KSK
>>
>
Similar Messages
-
Could someone please help me with the setup process of tag libraries? I've looked on the Internet and found some instructions, but they are all for Tomcat. I'm using Jserv, and I'm not sure how to setup my environment to work with custom/tag libraries. Could someone help me by giving me some instructions or sending me to an article that could help me?
Thanks in advance!
-PVHi pvongboupha
The best source for getting to know how to set up tag libraries is the JSP specification. You can download this from :
http://java.sun.com/products/jsp/download.html
See the chapter on Tag libraries. Any J2EE compliant server will conform to these rules.
You can also see a chapter from Core Servlets & JSP by Marty Hall. This chapter is on Tag Libraries
http://developer.java.sun.com/developer/Books/javaserverpages/cservletsjsp/
Keep me posted on your progress.
Good Luck!
Eshwar R
Developer Technical Support
Sun microsystems
http://www.sun.com/developers/support -
Need help on Flex JSP tag library
I am new to Flex and currently developing portlets where I
need to integrate Flex into JSP pages. According to various
documents from Adobe and other online discussions, this can be done
with Flex JSP tag library. It appears that the taglib used to be a
separate package that you could download but no longer available (I
was only able to find a few broken links). Instead, the library is
now part of the LiveCycle DS product according to Adobe. However, I
have downloaded LiveCycle DS and couldn't find the necessary taglib
in the package. Your help will be highly appreciated.I'm trying to do the same thing you are. Its mentioned that
the library is part of LifeCycle DS but I couldn't find it in there
either.
Here's a site I found where you can download
FlexModule_j2ee.zip It includes some instructions too.
http://opensource.adobe.com/wiki/display/flexsdk/Downloads
Here are some other links which may be helpful.
http://livedocs.adobe.com/flex/3/html/help.html?content=apache_2.html
http://labs.adobe.com/wiki/index.php/LiveCycle_Data_Services:Setting_up_an_SDK,_Compilers, _and_Flex_Builder
http://download.macromedia.com/pub/labs/flex_mod_apache/flex_mod_apache.pdf -
Help! writing japanese using jsp tag extension
Hello Group !
I'm having problems implementing a simple jsp tag extension.
I've written a written a short code that is invoked in my tag (see below).
The code goal is to write two japanese letters. However, all I get are two
single-byte letters which my browser displays as '?'.
What should I do to make Weblogic write japanese and not Latin ?
Should I dynamically mess with the Locale ??
Any help would be highly appriciated.
Here's my piece of code:
public class myBlock extends javax.servlet.jsp.tagext.BodyTagSupport {
private void parseTagBody() throws IOException, JspException
ServletResponse response = (ServletResponse) pageContext.getResponse();
response.setContentType("text/html;charset=EUC_JP");
pageContext.getOut().write(38498);
pageContext.getOut().write(39745);
pageContext.getOut().flush();
Best,
Tal MoshaiovdataTable might help.
[example 1|http://www.javabeat.net/tips/46-hdatatable-java-server-faces-jsf.html]
[example 2|http://www.jsftoolbox.com/documentation/help/12-TagReference/html/h_dataTable.html] -
How to get the values of an Array using JSP Tags
Hey guys,
I need some help. I've splited a String using
fn:split(String, delim) where String = "1,2,3,4" and delim is ,
This method returns an Array of splited Strings. how do i get the values from this array using jsp tags. I don't wanna put java code to achive that.
Any help would be highly appreciated
ThanksThe JSTL forEach tag.
In fact if all you want to do is iterate over the comma separated list, the forEach tag supports that without having to use the split function.
<c:set var="list" value="1,2,3,4"/>
<c:forEach var="num" items="${list}">
<c:out value="${num}"/>
</c:forEach>The c:forTokens method will let you do this with delimiters other than a comma, but the forEach tag works well just with the comma-delimited string. -
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. -
JSP tags for managing MBeans??
Hi,
I'm trying to build a GUI for managing a custom MBean. The MBean implementation is a wrapper for a singleton class (specifically, a Configuration class for a web app). I've tried using WebJMX, but the problem there is that it relies heavily on MX4J, and has not kept up with JMX advances in the last two years (MX4J is a bit ahead of weblogic 8.1).
Just as there is a set of console extension jsp tags, I suspect that a set of JSP tags exists for the developers of the Weblogic console to write their JSP pages to manage the weblogic MBeans. I coud just try to figure out the pattern of the INPUT and FORM tags in the html, but that leaves me with a possibly-inaccurate, version-dependent, non-dynamically-generated page to manage one MBean.
Does such a set exist? Could someone point me to any information about how to use such a set of tags?
I would like to be able to have the JSP I use for my console extension display an interface for modifying MBean configurable fields and executing MBean operations. What would the best way be to do this? I do not want to embed the Sun JMX RI in my web-app and launch a separate HtmlAdaptor listening on a different port. I would like the admin to the MBean be accessible through (and only through) the weblogic console.
Thanks in advance for the help,
Matt GeisHi,
I'm trying to build a GUI for managing a custom MBean. The MBean implementation is a wrapper for a singleton class (specifically, a Configuration class for a web app). I've tried using WebJMX, but the problem there is that it relies heavily on MX4J, and has not kept up with JMX advances in the last two years (MX4J is a bit ahead of weblogic 8.1).
Just as there is a set of console extension jsp tags, I suspect that a set of JSP tags exists for the developers of the Weblogic console to write their JSP pages to manage the weblogic MBeans. I coud just try to figure out the pattern of the INPUT and FORM tags in the html, but that leaves me with a possibly-inaccurate, version-dependent, non-dynamically-generated page to manage one MBean.
Does such a set exist? Could someone point me to any information about how to use such a set of tags?
I would like to be able to have the JSP I use for my console extension display an interface for modifying MBean configurable fields and executing MBean operations. What would the best way be to do this? I do not want to embed the Sun JMX RI in my web-app and launch a separate HtmlAdaptor listening on a different port. I would like the admin to the MBean be accessible through (and only through) the weblogic console.
Thanks in advance for the help,
Matt Geis -
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 Javascript attributes in a JSP-Tag
Hi!
I want to submit a Javascript attribute to an embedded jsp Tag:
<script language="JavaScript">
function test()
var jscriptvar= document.myform.myselection.selectedIndex;
result = <%= jspobj.doit(jscriptvar) %>;
</script>
The exception is : Undefined variable: jscriptvar
Is that possible?
It works, if the doit-method doesn't have a parameter.
I hope, someone can help me.
Thanks
TorstenJavaScript is executed on the client-side by the browser. The JSP code is executed on the server-side by the server and has no knowledge of JavaScript variables. You can not mix them in this manner.
-
Hi,
I have a problem while trying to import java classes using
<jsp:directive.page import....... tag.
though the <%@page import = ....... tag works fine...
any help would be appreciated..I can just tell you that this is not working.
Some of the XML JSP tags are simply not implemented by all servlet engines. -
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. -
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
>
-
Urgent - DocumentManager,Configurations and JSP Tags
I am using Vignette as the content repository.I am able to fetch data and display
on the jsp when a single VignetteDocumentProvider is being used and data coming
from a single content table.
Problem is - If I have multiple classes for the VignetteDocumentProvider that
are to be used to display data from several tables on the jsp.
Q 1) How to configure multiple DocumentManager and DocumentConnectionPool nodes
in meta-inf\application-config.xml for those multiple VignetteDocumentProvider
classes.
Q 2) On the same JSP - How would the jsp tags reference multiple VignetteDocumentProvider
classes.
Could someone PLEASE help.
Thanks a LOT in advance.
Regards,
shikhaYou may be better off asking the question to Vignette.
.raja
"shikha" <[email protected]> wrote in message
news:3caa2bf7$[email protected]..
>
I am using Vignette as the content repository.I am able to fetch data anddisplay
on the jsp when a single VignetteDocumentProvider is being used and datacoming
from a single content table.
Problem is - If I have multiple classes for the VignetteDocumentProviderthat
are to be used to display data from several tables on the jsp.
Q 1) How to configure multiple DocumentManager and DocumentConnectionPoolnodes
in meta-inf\application-config.xml for those multipleVignetteDocumentProvider
classes.
Q 2) On the same JSP - How would the jsp tags reference multipleVignetteDocumentProvider
classes.
Could someone PLEASE help.
Thanks a LOT in advance.
Regards,
shikha -
I can't use JSP tags lib in IWS6
I was trying to use JSP tags lib but the web server doesn't find the *.tld file. Some messages are shown:
25/Jun/2002:19:40:28] info ( 5604): JSP: JSP1x compiler threw exception
org.apache.jasper.compiler.CompileException: /local/iplanet/docs/menu_principal.jsp(1,0) Unable to open taglibrary http://apache.org/taglibs/dbtags : Could not locate TLD http://apache.org/taglibs/dbtags
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:707)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:110)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
[25/Jun/2002:19:40:28] warning ( 5604): Internal error: Failed to get GenericServlet. (uri=/menu_principal.jsp,SCRIPT_NAME=/menu_principal.jsp)
I have some doubts about how to work with JSP Tags in iws6. What should I do to get this work?
The tag lib is gotten from jakarta project and I'd like to know which steps i have to follow.
Thank you very muchHi,
What you have to do is this:
- Include the jar file in the WEB-INF/lib
- Include the tld file in a directory under WEB-INF, for example tlds
- Create a mapping in the deployment descriptor (web.xml), to make the taglib available, something like this:
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/io</taglib-uri>
<taglib-location>/WEB-INF/tlds/io.tld</taglib-location>
</taglib>
Then in the jsp, you have to invoke it like this:
<%@ taglib uri="http://jakarta.apache.org/taglibs/io" prefix="io" %>
<io:http url="http://mustang:4004/NASApp/fortune/fortune" action="GET"/>
Hope this helps
Juan
Maybe you are looking for
-
How can I delete the null in list
hi all when I make any list always in the list null after all the value how can I delete this null value thanks
-
Does this help your "user did not respond" problem?
Here’s what was going on. If I call a buddy #1 > I get the “user did not respond”. If I call buddy #2 > I get “user did not respond”. However, If I call buddy #3 it works right away, no problems what so ever. This was a constant problem, the same res
-
Error FZ-358 - Overlap with payment run
Hello. We have a client SAP 40B that experienced an issue while running a new payment run throught T-code F110. The payment was: Run Date: 12.30.2008 Identification: F0719 The user got the following message: "FZ 358 - Overlap with payment run 02.03.2
-
i tried upgrading to iTunes 6.2. it said it'd download automatically, but it didnt, and there was no link to the file in case of it not download automatically... anyone be able ot help me out here?
-
Authentication on web directory
Good day. I must to write a file in a web directory from servlet. I should want to restrict to a specific user the read/write/execute permission. In this mode my servlet not write a file from a servlet (permission denied). FileOutputStream fos = new