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 Geis

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 Geis

Similar Messages

  • Jsp tag for blog attribute in a flex asset

    hi Experts,
    I am using FW7.6.1, I have a flex asset with a blob attribute, when I create that flex asset, I can upload an image in that attribute, but I did not find a jsp tag for rendering that attribute which has a image saved, another question is what jsp tag should be used in case of a word file is uploaded in that attribute, that's to say:
    1. for a image, I want to display it in browser.
    2. for a word file, I want to show popup window to ask user if he wants to download or open.
    By using assetset:getattributevalues and render:stream, it's just for string type of attribute, not for blog.
    Thanks in advance.
    Best regards

    hi all,
    I got the answer from dev guide, seems should use:
    <blobservice:gettablename varname="uTabname"/>
    <blobservice:getidcolumn varname="idColumn"/>
    <blobservice:geturlcolumn varname="uColumn"/>
    and render:satelliteblob
    some complicated then I expected.
    Best regards

  • Custom JSP Tags for Weblogic

    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
              > >
              > >
              >
              >
              

  • 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

  • JSP tag for reducing the html output

    Hello,
    I was wondering if there was a jsp tag that reduce the html output of the jsps. I have tried trimfilter the idea is great but at my project filters should be a subclass of one class that i cant edit.
    Thanks for all advices.

    Instead of this<html>
         <body>
              Hello World
              <!--Some html comment-->
         </body>
    </html>This would be better.<html><body>Hello World</body></html>Edited by: mehmetcadirci on Jul 17, 2010 1:19 PM

  • JSP tag for import

    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.

  • How html textfield use i jsp tag

    hi master
    sir see my php code i get input in name and fname text box and pass in php tag for insertion into database
    <html>
    <body>
    <form action="mfa.php" method="post">
    First Name<input type="text" name="fname">
    Second Name<input type="text" name="lname">
    <input type="submit" name"Insert">
    </form>
    <?php
    //Inserting records into database
    $firstname=$_POST['fname'];
    $lastname=$_POST['lname'];
    mysql_connect("localhost","root","") or die(mysql_error());
    mysql_select_db("test1");
    mysql_query("INSERT INTO persons (Firstname, Lastname) VALUES ('$firstname','$lastname')");
    echo "Data Inserted";
    ?>
    <?php
    //showing resutls in browser
    mysql_connect("localhost", "root", "") or die(mysql_error());
    mysql_select_db("test1") or die(mysql_error());
    $result = mysql_query("SELECT * FROM persons") or die(mysql_error());
    echo "<table border='1'>
    <tr>
    <th>First Name</th>
    <th>Last Name</th>
    </tr>";
    while($row = mysql_fetch_array( $result ))
    echo "<tr>";
    echo "<td>" . $row['Firstname'] . "</td>";
    echo "<td>" . $row['Lastname'] . "</td>";
    echo "</tr>";
    echo "</table>";
    ?>
    </body>
    </html>
    how i use html text box and pass to jsp tag for insertion data into database
    please give me sample code
    thank's
    aamir

    I have never had any problems mixing straight HTML (without the verbatim tag) and JSF tags. OTOH, I use facelets, not JSPs, so my experience may not be applicable.

  • Object passing to weblogic JSP tags

    Hello everyone
              I was wondering if I can pass a java object to a weblogic jsp tag
              for example if I select a content object with id "newsItem"
              <cm:selectbyid contenthome="com.beasys.commerce.axiom.document.Document"
              contentid="<%= contentId %>"
              id="newsItem" />
              can I pass newsItem as a variable to the next tag
              i.e. instead of writing it
              <cm:printdoc id="newsItem" />
              I write it
              <cm:printdoc Id="<%= newsItem %>" />
              This results in an compiler error if the object is passed to Id that is
              waiting for a content instance, while if it is passed to contentid (as in
              the first
              script) then it works fine, as this is waiting for a string.
              Is it possible to pass an object to the "id" in the jsp script, and if not,
              is there a work around it that enables the content selection logic to be
              seperated from the display.
              Thank you
              May
              

    Oh...i put quotes around the values and that fixed it.
              <%@ page language="java" session="false" %>
              Happy Holidays,
              Brian
              "Brian Williams" <[email protected]> wrote in message
              news:[email protected]..
              > Hello,
              >
              > I have a JSP that does something strange: When I look
              > at it under Explorer it looks fine but under Netscape
              > it has this at the top of the page:
              >
              > <%@ page language=java session=false %>
              >
              > Actually, with Explorer you can see it in the view
              > source. What's up with Weblogic? It seems that
              > it failed to parse this JSP tag.
              >
              > Thanks,
              > Brian
              >
              >
              >
              

  • Hot deploying jsp tags

    Hi does anybody out there no how to hot -deploy non ejb classes .Like jsp
              tags for example? It is extremely to code them without a hot deployment
              ability.
              Thanks in advance
              Jeff Anderson
              

    Cameron,
              In general, what kind of "interesting bugs" and "design flaws" do you mean?
              I would expect that using any kind of cache can allow for bugs due to developers
              confusion... but are there inherent "bugs" (or design flaws) that are built into
              WL's Cache tag?
              Jack Lin
              Cameron Purdy wrote:
              > Install the latest SP. They are (relatively speaking) resource intensive.
              > However, properly implemented/used, this relative cost is close to 0.
              > (Instantiating a Java class and calling a few empty methods uses a couple
              > hundred clock cycles on a good JVM.) BTW Pooling is considerably more
              > expensive for simple objects than instantiating new ones. Also, due to
              > design flaws in the custom tag API, pooling JSP tags could lead to some
              > interesting bugs related to the lack of re-initialization.
              >
              > --
              >
              > Cameron Purdy
              > [email protected]
              > http://www.tangosol.com
              > WebLogic Consulting Available
              >
              > "Anthony Raiti" <[email protected]> wrote in message
              > news:39d4a35f$[email protected]..
              > We are researching JSP Tags as a method of seperating our creative and
              > coding efforts. Our research is showing that JSP tags is a resource hog and
              > noticed that none of the JSP Tags are being pooled. Docs that we have looked
              > at suggest that pooling does occur, but we do not see it happening. Is
              > anyone using this technology and if so how is the performance?
              

  • Advice on Script Management/Combining Tag for JSF

    I was hoping to get a little bit of advice/help on a custom tag that I am about to write that I can see being useful for almost any JSF developer that is writing custom JavaScript in their web application. Basically, the tag would be a script manager that would allow the developer to add scripts to their page using the tag, which would then handle duplicate scripts, do dependency management for them, and optionally combine the scripts into one file and have the final page point to taht single script.
    I've specked out below how I see the tag being used and a little bit of how it would work. I was hoping to see what you guys think about this, if you have any specific advice, or could point me in any directions that you think would help, including if this has already been done and I'm wasting my time. I definitely see myself open-sourcing this tag for others to use and to contribute to once its done.
    Thanks in advance for any help.
    - Michael
    The script manager tag would allow developers to include all script dependencies they have in their own page without having to worry about scripts already being included. Basically, if a library, such as prototype or ext, has been included earlier in the page, it would not be included again.
    On your page, you would include scripts like so:
    <scriptManager:include name="external.prototype" version="1.6" />
    <scriptManager:include name="external.ext" version="2" />
    <scriptManager:include name="connect.client" />     
    <scriptManager:include name="external.prototype" version="1.6" />
    <scriptManager:include name="connect.goals.client" />
    <scriptManager:include name="connect.goals.widget" />          Somewhere in the system would be a script translation file that maps these script definitions to source javascript files:
         <scriptManagerConfig>
              <scripts>
                   <script name="external.prototype" version="1.6" url="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js" />
                   <script name="external.ext" version="2" file="include/js/ext/ext-all.js" />
                        <dependency name="external.prototype" version="1.6" />
                   </scirpt>
                   <script name="connect.client" file="/script/Garmin/services/Client.js" />
                   <script name="connect.goals.client" file="/script/Garmin/services/GoalsClient.js" />
                   <script name="connect.goals.widget" file="/script/Garmin/widget/GoalsWidget.js" />
              </scripts>
         </scriptManagerConfig>     The above scriptManager:includes would be parsed at request scope and would generate a hash table with all of the requested script on the page inside of it without any duplicates.
    During development, this would produce the following at the bottom of the html page:
         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js"></script>
         <script type="text/javascript" src="include/js/ext/ext-all.js"></script>
         <script type="text/javascript" src="/script/Garmin/services/Client.js"></script>
         <script type="text/javascript" src="/script/Garmin/services/GoalsClient.js"></script>
         <script type="text/javascript" src="/script/Garmin/widget/GoalsWidget.js"></script>     Notice that "external.prototype" was included twice but was only outputted once.
    On staging and production, before generating the script tags, the contents of all of the files would be included into one. This temporary javascript file would be outputted and a script tag would be written pointing to this new file.

    Google recently released an API, which has some overlap with what you are trying to achieve here, especially with respect to script and version management. You might want to check it out to get a better idea.
    http://code.google.com/apis/ajaxlibs/

  • Member variable for jsp tag

    Hi,
    is it safe to have member variables in jsp tag? every time service method will create new instance of tag?Thanks

    is it safe to have member variables in jsp tag? The answer is yes, but.
    every time service method will create new instance of tag?no, it will not necessarily create a new instance every time.
    For most tags I believe the spec allows for a 'pool' of tag handlers to be retained.
    Certainly I have seen this happen in tomcat.
    An exception is the JSP2.0 SimpleTagHandler which guaruntees that it will be used once and then thrown away.
    With other tags, you have ownership of the tag and its member variables, between doStartTag and doEndTag. Nothing else can interfere with the member variables.
    However if you include the tag twice in your page, one after another, it is quite possible, that you will be given the same tag object, and thus the member variables might have variables set from the previous use of the tag.
    It is fairly easy to work around though
    in the doStart: init any member variables that are not defined by attributes to be their default values
    in the doEnd method, clean up your member variables. Clear any attribute values that might be optional. Set things to null. That way you are guarunteed that if the tag is reused, it won't pick up any data from your run through here.
    But don't take my word for it :-) Try it out.
    Hope this helps,
    evnafets

  • Struggling on h:inputText tag for date type property

    I am struggling to display a simple form which is attached to a bean having a Date type property.
    I get the following exception each time I try to access the form, even it does not display as a blank form for the first time access.
    Exception:
    [#|2008-01-04T14:39:13.500+0530|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=httpWorkerThread-3031-1;_RequestID=676ba2b1-9b5e-4a96-adb5-b1a792507b40;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    javax.faces.FacesException: Error performing conversion of value ' of type class java.lang.String to type class java.util.Date for managed bean userBean.
    javax.servlet.ServletException: Error performing conversion of value ' of type class java.lang.String to type class java.util.Date for managed bean userBean.The JSP page contains the following tag for the inputText
                <h:inputText value="#{userBean.dob}" id="dob" required="true">
                    <f:convertDateTime pattern="MM/dd/yyyy" />
                </h:inputText>
                <h:message for="dob" />I want to display a blank form with all the text fields blank.
    Any help will be much appreciated.

    You should be able to do
       <h:inputText value="#{bean.lastDate}"/>Where 'bean' is the managed bean name containing
    the method getLastDate().
    When the view is rendered, the getter (getLastDate())
    will be called to display whatever value is returned.

  • JSP tag collaboration with BI Beans

    Hello!
    We need to reorganize a dimension hierarchy in runtime during presentation. It's merely a matter of formatting. We use a tag handler that reeds its body doing some operations and puts a new content for body in page.
    We tried this
    ====================
    <My:BodyReaderTag>
    <orabi:ListCombo renderAs="combo" autoSubmit="true" biList="${tagtest_dimMemList1_data}"/>
    </My:BodyReaderTag>
    ====================
    When doing this my tag grabs all content except the output from orabi:ListCombo. It seems like orabi:ListCombo does not push the JspWriter on the stack (by collaboration with orabi:BIBody tag). When, for testing purposes only, I removed the orabi:BIBody tag, I got the result I would like to get.
    How can I get the output from orabi:ListCombo tag? Or if that is not possible, where can I find detailed information so I can create my own customized tag handlers that collaborates with BI Beans,
    Thanks in advance,
    Mats

    The implementation of the <orabi:ListCombo> is based on UIX JSP tags technology. It uses an instance of oracle.cabo.ui.RenderingContext created earlier by the BIThinSession tag to do the actually rendering.
    May I ask what are you trying to do with the <my:reformatter> tag? The ListCombo tag has attributes like "styleClass" and "inlineStyle" that can be used customize the look and feel of the content it renders. Also, we provide a set of built-in styles. Have you looked into whether you can use "styleClass" or "inlineStyle" attributes to satisfy your formatting needs?
    Hope this helps,
    Keith
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Beans http://www.oracle.com/technology/products/bib/index.html
    Discoverer: http://www.oracle.com/technology/products/discoverer/
    BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples: http://www.oracle.com/technology/products/bi/samples/
    Blog: http://oraclebi.blogspot.com/

  • How can we add a control on our .jsp webpage for uploading several image fi

    How can we add a control on our .jsp webpage for uploading several image files as done in gmail attachment, Where a Remove button also appears if we wanna remove the particular attachment.

    The SCOM Management Server is in Domain A.  I've tried it already and it has failed.  
    So just to clarify the method I used was to go to Administration>Security>User Roles.  Then New User Role>Read-Only Operator.  In the Create User Role Wizard I then gave the User Role a name, Clicked "Add" under User Role Members.
     Then the Select Users or Groups window pops up and I changed the Locations from Domain A to Domain B and searched for the user, which it's able to find, then clicked "OK" to add it to the User Role members which it does just fine.  On
    the next page which is Group Scope I checked the one group I want this account to have access to and then click next.  This brings me to Dashboards and Views where I click the radio button for "Only the dashboards and views selected in each tab are
    approved" and chose the folder of dashboards I want this account to access and then click next.  This brings me to the Summary and I click "Create".  At this point it thinks for a moment then closes out the wizard but the new Read-Only
    Operator does not appear.  I then look in Event Viewer and see the Event I pasted above.
    Am I doing something wrong here?  Any guidance on how to get around this issue would be much appreciated.
    Thanks,
    Jake

  • Using scriplets in jsp-tag attribute

    I have a strange problem with a custom taglibrary that I'm trying to write.
    When I use the tag in a jsp like underneath the first outputs the right value (Welcome Hans), but the output of the second time shows: Welcome <%= test %>
    This is a part of the JSP:
    <% String test = "Hans"; %>
    <arto:hello name="Hans" />
    <arto:hello name="<%= test %>" />
    I realy don't know how to let the tag display the value of the string in my jsp.
    Can anyone give me some advice?
    Thanks,
    Hans
    The files are:
    import java.io.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class HelloTag extends TagSupport {
    private String name;
    public void setName(String name) {
    this.name = name;
    public int doStartTag() throws JspException {
    try {
    pageContext.getOut().print("Welcome " +name);
    } catch (IOException ioe) {
    throw new JspException("Error: IOException while writing to client");
    return SKIP_BODY;
    public int doEndTag() throws JspException {
    return SKIP_PAGE;
    The JSP:
    <%@ taglib uri="arto" prefix="arto" %>
    <%
    String test = "Hans";
    %>
    <arto:hello name="<%= test %>" />
    <arto:hello name="Hans" />
    The TLD:
    <?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></shortname>
    <uri></uri>
    <info></info>
    <tag>
    <name>hello</name>
    <tagclass>HelloTag</tagclass>
    <bodycontent>empty</bodycontent>
    <info>Tag with Parameter</info>
    <attribute>
    <name>name</name>
    <required>false</required>
    <rtexprvalue>false</rtexprvalue>
    </attribute>
    </tag>
    </taglib>

    In the tld for the name attribute, use
    <rtexprvalue>true</rtexprvalue>
    This specifies that the attribute value can be a run-time expression. Otherwise, the value is taken as a literal.

Maybe you are looking for

  • Calls to landlines in RUSSIA

    HelloI can not call on a landline phone in RUSSIA (Sochi). I paid subscription to unlimited. How do I solve this problem?

  • Re Download Music From iTunes (Broken Files)

    Hello, I just bought some songs from iTunes store. But I got a broken files (the last 20 seconds of the song is not working). How can I re download it? Thanks!

  • Client certificate based authentication

    We have a JAVA web start application that needs to connect to an apache server and use client certificate based authentication. When javaws initiates a connection with apache server, it tries to retrieve the certificate/key from the PKCS12 keystore t

  • Multi paper format support

    Hello Gurus I need to create adobe forms that should support North-America letter format as well as Europeen A4 format. Letter format is 8.5 inches X 11 Inches (215.9 mm X 279.4 mm) A4 format is 8.26 inhes X 11.69 Inches (210 mm X 297 m) 1. Is it pos

  • Incredible 2 screen saver

    My screen keeps going black after a few seconds.  Is there something to change that?