Registering a new TAG handler

I need to parse a META tag from HTML document and I cannot do it with standard tag handlers. I think I need to set up a new tag handler.
Please can anybody tell me how to do it??
I'll be graetful for any information.

If you click on the APIs link on the left, and then click on HTML.Tag in the bottom-left frame, it gives you the documentation for HTML.Tag. Now click on Uses at the top and it tells you everywhere in the standard API which uses HTML.Tag. Of these, HTMLDocument.HTMLReader.registerTag(HTML.Tag t, HTMLDocument.HTMLReader.TagAction a) looks the most promising, although it's protected so you'll have to subclass HTMLReader.

Similar Messages

  • Can not register a new machine with Updatemanager

    Hi,
    I just install a new machine with Solaris 10 using a Flash image and Live Upgrade. The original machine from we create the Flash image was registered succesfull using Update Manager.
    Now, when I try to register the new machine, the applications ask me the user and password, but do not makes anything. The dialog freeze. The only way to stop the Update Manager is killing them (at the end is the full java error stack).
    I try with sconadm,
    sconadm register -a -r /var/tmp/registration.profile
    Unsuccessfull too, with the same stack error (Caused by: javax.management.InstanceNotFoundException: ).
    I'm bored with the Solaris patch system: all the weekend was saying error 500 for all my other registered machines, and now I can not register a new machine....
    This system fails all the time.. Is runing under W2K3 server???
    Any Idea?
    Thanks in advance.
    H.
    P.S: Error stack output:
    Exception occurred during event dispatching:
    java.lang.reflect.UndeclaredThrowableException
            at $Proxy1.getInstanceName(Unknown Source)
            at com.sun.scn.client.SCNClientSession.login(SCNClientSession.java:371)
            at com.sun.cns.basicreg.cacao.ClientLoginCacaoAdapter.loginAccount(ClientLoginCacaoAdapter.java:209)
            at com.sun.cns.basicreg.wizard.cli.CmdLineWizard.outCall(CmdLineWizard.java:1109)
            at com.sun.cns.basicreg.wizard.cli.CmdLineWizard.output(CmdLineWizard.java:773)
            at com.sun.cns.basicreg.wizard.swing.WizardPanel.isNavigationAllowed(WizardPanel.java:1337)
            at com.sun.cns.basicreg.wizard.swing.WizardDialog.okByNavigationListener(WizardDialog.java:583)
            at com.sun.cns.basicreg.wizard.swing.WizardDialog.access$100(WizardDialog.java:64)
            at com.sun.cns.basicreg.wizard.swing.WizardDialog$NextButtonActionListener.actionPerformed(WizardDialog.java:404)
            at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
            at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
            at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
            at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
            at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
            at java.awt.Component.processMouseEvent(Component.java:5517)
            at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
            at java.awt.Component.processEvent(Component.java:5282)
            at java.awt.Container.processEvent(Container.java:1966)
            at java.awt.Component.dispatchEventImpl(Component.java:3984)
            at java.awt.Container.dispatchEventImpl(Container.java:2024)
            at java.awt.Component.dispatchEvent(Component.java:3819)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
            at java.awt.Container.dispatchEventImpl(Container.java:2010)
            at java.awt.Window.dispatchEventImpl(Window.java:1791)
            at java.awt.Component.dispatchEvent(Component.java:3819)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
            at java.awt.Dialog$1.run(Dialog.java:535)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Caused by: javax.management.InstanceNotFoundException: com.sun.scn:name=SCNBaseServiceFactory,assetSubProfile=Factory,host=alcaudon.tsc.uc3m.es,assetProfile=Factory,scnType=ServiceFactory,Vendor=Sun Microsystems Inc
            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
            at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(DefaultMBeanServerInterceptor.java:1349)
            at com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(JmxMBeanServer.java:1300)
            at com.sun.jdmk.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(DefaultMBeanServerInterceptor.java:285)
            at com.sun.cacao.agent.DispatchInterceptor.getClassLoaderFor(DispatchInterceptor.java:548)
            at com.sun.cacao.agent.auth.impl.AccessControlInterceptor.getClassLoaderFor(AccessControlInterceptor.java:427)
            at com.sun.jdmk.JdmkMBeanServerImpl.getClassLoaderFor(JdmkMBeanServerImpl.java:1130)
            at com.sun.cacao.common.instrum.impl.InstrumDefaultForwarder.getClassLoaderFor(InstrumDefaultForwarder.java:153)
            at javax.management.remote.rmi.RMIConnectionImpl$4.run(RMIConnectionImpl.java:1308)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.management.remote.rmi.RMIConnectionImpl.getClassLoaderFor(RMIConnectionImpl.java:1305)
            at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:768)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
            at sun.rmi.transport.Transport$1.run(Transport.java:153)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
            at java.lang.Thread.run(Thread.java:595)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
            at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
            at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
            at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)
            at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:972)
            at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
            ... 39 more

    Well,
    The problem was a Memory problem: The swap file was misconfigured. Once the system reboots with the correct swap configuration I was able to register the machine.
    Anyway, the problem to connect with SunSolve is continous, but it is other point of discussion.
    I hope this solution can help people with similar problems.
    H.

  • OIM 11g: Adding a new tag to notification template

    Hi:
    OIM 11g comes with some pre-defined notification templates, like 'Generated Password Template', 'Reset Password Template'.
    You can see those thru the admin console, System Management, Notifications.
    I would like to add a new Tag to one of those notifications, like 'Generated Password'. It currently includes the User Login and Password. I would like to include the User Name to the notification Body.
    Can I do this?? How can I accomplish this??
    I try to edit the template, and in the documentation, they mention the Event Name and Available variables. I don't see this 'Available Variables' to select from when I edit the notification template.
    I am using OIM 11g 11.1.1.5.
    Thank you for your help..

    Modify the OOTB notification Template for including a few extra attributes
    -Identify the template and the event type which you want to modify. For example let’s assume we will modify the OOTB ‘Request Creation’, the corresponding xml for this event type is in the following MDS path:
    \metadata\iam-features-request\notification\RequestCreationEvent.xml
    Note: The path as specified in the OIM11G documentation might be incorrect
    -Modify this xml to point to a custom resolver class as follows:
    <?xml version='1.0' encoding='UTF-8'?>
    <Events xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../notification/metadata/NotificationEvent.xsd">
    <EventType name="RequestCreation">
    <Resolver class="com.iam.notification.CustomNotificationResolver">
    <Param Name="Request" DataType="X2-Entity" EntityName="Request"/>
    </Resolver>
    </EventType>
    </Events>-Import the xml back to the MDS database
    -Create a jar (custom resolver class) and a plugin.xml, bundle them up as a zip and register the plug-in using ‘ant/API’s’ as you want
    -Modify the OOTB notification templates as required
    -Send email to verify if your changes are being reflected
    You can create your own customized templates based on the OOTB one but the ‘Resolver Class’ would not be able to pick up this new template because the only purpose of the resolver class is to override a couple of methods (‘getAvailableData’ & ‘getReplacedData’), so that you can add some extra attributes to be read in your template, but the ‘Template Name’ remains the same as it is hard-coded.
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import oracle.iam.notification.impl.NotificationEventResolver;
    import oracle.iam.notification.vo.NotificationAttribute;
    public class CustomNotificationResolver implements NotificationEventResolver {
         public List<NotificationAttribute> getAvailableData(String eventType, Map<String, Object> params) throws Exception {
              return null;
         public HashMap<String, Object> getReplacedData(String eventType, Map<String, Object> params) throws Exception {
              HashMap<String, Object> resolvedData = new HashMap<String, Object>();
             resolvedData.put("requestId", params.get("RequestId"));
             resolvedData.put("requestType", params.get("RequestType"));
             resolvedData.put("userId", params.get("UserId"));
             resolvedData.put("userName", params.get("Name"));
             resolvedData.put("baseUrl", params.get("BaseURL"));
             resolvedData.put("myCustomField1", "myCustomField1");
             resolvedData.put("myCustomField2", "myCustomField2");
             resolvedData.put("myCustomField3", "myCustomField3");
              return resolvedData;
    }Credits to Sunny for coming up with the solution. Since he seems busy, I took the liberty of posting his solution here.
    HTH,
    BB

  • JSF 1.2 tag handler classes in JSF 1.1 environment

    Hi,
    I’m developing a JSF 1.2 application with RSA 7.5.1. When I run it in the WAS 6.1 I get the following exception:
    javax.servlet.ServletException:
    Unable to convert string '#{onebean.onestring}' to class
    javax.el.ValueExpression for attribute title:
    java.lang.IllegalArgumentException:
    Property Editor not registered with the PropertyEditorManager
    at org.apache.jasper.runtime.PageContextImpl.handlePageException
    (PageContextImpl.java:660)etc...
    I think my WAS 6.1 running environment doesn’t admit Tag Handler classes in JSF 1.2 style (you know: Extending UIComponentELTag, with all attributes in the tag class of type valueExpression along with setter methods...).
    In case this suspect is true, is there any tricky way to run this JSF 1.2 components in a JSF 1.1 environment?
    Do you have any ideas to solve this problem without downgrading my JSF tag handler classes from 1.2 to 1.1?
    Thanks a lot!

    Hi BalusC,
    This is the full history:
    I started coding the tag handler classes of my JSF components in the JSF 1.2 way.
    But know, I’am being forced to run the web app that uses those JSF 1.2 components in a WAS 6.1 (servlet 2.4 & jsp 2.0, I suppose).
    Not very elegant solution, I put a ‘servlet2.5-jsp2.1-api.jar’ file in my ‘WebContent\WEB-INF\lib’ directory, and configured a ‘PARENT-LAST’ class loader policy in the server configuration.
    This is my web.xml:
    <?xml version="1.0"?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
            http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         version="2.5">
       <servlet>
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
       </servlet>
       <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>*.faces</url-pattern>
       </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              <welcome-file>index.htm</welcome-file>
              <welcome-file>index.jsp</welcome-file>
              <welcome-file>default.html</welcome-file>
              <welcome-file>default.htm</welcome-file>
              <welcome-file>default.jsp</welcome-file>
         </welcome-file-list>
    </web-app>When I launch the JSF example page, I get no logs, no messages, ONLY a blank page (¿?)
    Thank you very much for your skilled help!

  • Accessing JSP Variables in Custom Tag Handler.

    Hi,
    I am creating a custom tag which builds a list view. I have certain String array in my JSP and I need to pass the same into my Tag Handler class. I tried following ways :
    1. In doStartTag() implementation I used
       public int doStartTag() {
             String[] myArray = (String[])pageContext.getAttribute("mystringarray", PageContext.PAGE_SCOPE;
       }This is not recognizing the String array variable defined in my JSP.
    2. I used separate attribute which is passed from the JSP to the custom tag as parameter having "rtexprvalue" as true. But I cann't pass a Sting array into my tag handler class. I can pass only String.
    How can I access variables which are defined in the JSP using declaration block. i.e.
    <%!
    String[] myArray = new String[100];
    %>
    Thanks for the time.

    You should be able to pass any type you like as an attribute to the tag.
    You just have to define its type as String[] in your tld:
    <attribute>
    <name>stringArray</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <type>java.lang.String[]</type>
    </attribute>
    Alternatively, If you declare your array like:
    <%!
    String[] myArray = new String[100];
    %>You can do this:
    pageContext.setAttribute("mystringarray", myArray);
    which will put it into the page context for you to pick up in your custom tag.
    Hope this helps,
    evnafets

  • Evaluate customtag inside tag handler.

    How to make a custom tag to be evaluated in another custom tag handler?
    Sample Code:
    public class MyTag extends ELTextTag {
    public int doStartTag() throws JspException {
         StringBuffer js = new StringBuffer(800);
         // This is evaluated
         js.append(�<tr></td>this plain html is evaluated</td></tr>�);
         // This custom tag doest not evaluate, just prints as it is
         js.append(�<myTag:divTag class=\�tagClass\� />�);
    TagUtils.getInstance().write(this.pageContext, js.toString());
    How to force this custom tags to be evaluated ?
    Rgds
    Ramya

    I guess you are referring to post #3 in the other thread where somebody had suggested that the way to do it would be to replicate the container implementation of the nested tag inside the main one.
    I think that's exactly what the cold tags link that I posted does. Its a hack and if it works, then I dont see why you shouldnt use it.
    However a word of caution. Tags, like servlets are container managed objects and every container does several optimizations on tag instances. For example some containers pool tag objects per page. By hijacking the lifecycle methods of the tag, you may be opening yourself to some potentially serious discrepancies when the tag is used by itself (ie the container invokes it) and you use it from within another tag.
    If you arent impressed, think about this - is it proper to call a Servlet from another Servlet just by invoking the init(), service() and destroy() method of the second servlet from within the first? It would work, but God only knows what problems you would face in future to such hacks :)
    Anyways all the best.
    cheers,
    ram :)

  • Error while registering a new repository on Data Services 4.0

    Hi all,
    I've a BO Enterprise Platform 4.0 + Data Services 4.0 installation, and I'm trying to register a new local repository in addition to the installation default one. I followed these steps:
    1) Create a new database schema for the repository
    2) Created the local repository with repository manager
    3) Created a new job server associated with the new repository through the server manager
    4) Tried to register the new repository in the CMC
    I wasn't able to complete the step 4 since i got the following error "unable to connect to profile server".
    Any clue?
    Thank you very much
    Pietro
    Edited by: Pietro Castelli on Jan 30, 2012 12:03 PM

    what is the complete version of DS 4.0 ? also check the REPO_TYPE in AL_VERSION table, for local repo this will be NULL

  • ITunes asks me to register my new iPad every time I open it

    I just bought a new iPad a few weeks a go and registered it on my mac the very day. But ever since iTunes keeps asking me to register my new iPad. I checked, My Support Profile, and Apple has the New iPad's serial number registered with my account. Any one come across this problem?

    Don't know if this brings you any comfort, but I just got mine today, and am getting the same problem. Also, when I run diagnostics, it says it can't find the IPod - but the thing did sync and does work. I also checked to see if it was registered on the Apple site, and it is.

  • Need help on how to help my sister register her new nano and add music to it on my computer. I have my on nano already on my computer registered and set up but she and I don't listen to the same music so how would I go about doing this?

    I'm trying to find out information on how to go about helping my sister to register her new nano and load on CD's and such. I have a nano and already know how to do this but she is from CA and we want to load it here on my computer. She will be going home in 2 weeks and wants to use it in the car for the ride home.We don't listen to the same kind of music so I don't want to use my library but do one of her own for her. Also she will want to add this library on to her computer at home. I'm 60 and my sister is 70 I have enough knowledge to do some things on the computer but am not real computer smart. My sister is just learning about everything but has no idea what to do with that knowledge. Can anyone give me and idea on how to do this that I can get a grasp of what needs to be done to do this? My nephew says it's easy but he's in Az and I'm here. He also helps people with computers so he is more knowledgeable than I am. Would appreciate any help on this. thx

    See the procedures below for removing a device from Find My iPhone when you can't do it on the device itself.
    iCloud: Remove your device from Find My iPhone

  • I just changed my residence to the US and now I cant register my new US credit card on itunes cause the state list doesnt match to the US states, what should I do?

    I just changed my residence to the US and now I cant register my new US credit card on itunes cause the state list doesnt match to the US states, what should I do?

    Your credit card info, billing address must be the same country as the iTunes store country you registering.
    For example, you can’t have a credit card from a U.S. bank with  a U.S. billing address registered in the iTunes store for China.
    I tried to change my payment information too, but it happened the same, I can change the information but when I get to the state part, it only shows the other country states
    Remove all payment info and save it.
    Then change the iTunes store country to U.S., add a U.S. credit card with a U.S. billing address.
    As previously suggested, if this does not work, contact iTunes store support.
    -> http://www.apple.com/support/itunes/contact/

  • How do i register a new apple id on my iphone?

    I had to diasble my old apple id, so now I need to register my new one in order to download apps, etc. Help!

    Tap iTunes app
    Tap either Music or Videos from menu
    scroll to bottom
    Sign in
    tap Create new apple id
    OR
    go to appleid.apple.com on your computer and create new apple id
    then
    do all of the above except create new. Tap Use existing instead.

  • How can I register my new ipad air?

    How do I register my new ipad air?

    You can register its serial number to your iTunes account via : https://supportprofile.apple.com/
    Is that what you mean ?

  • I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this.

    I registered my new iPhone 5s to my usual Apple ID, however it isn't showing in my devices when I log in. I tried to register it by adding a new device, but it tells me it's already registered to a different Apple ID. I'm really not sure how to fix this. I only have the one Apple ID and the phone is brand new, purchased directly from Apple.
    When I check on the phone itself (iCloud and App Store settings) the Apple ID is correct. I'm not sure where else to check.
    Whilst setting up the phone, it prompted me to register, which I did. Then when connecting to my laptop through iTunes it prompted me again so I registered again. I even got a confirmation email to the email address associated with my Apple ID that the registration was successful.
    How can I add my iPhone 5s to the list of devices on the correct Apple ID?
    Thanks in advance for any advice.

    Found the answer to my question after posting (in related discussions)
    https://discussions.apple.com/message/12331666#12331666
    Will call Apple Care as soon as I can.

  • How to Add a New CGI-Handler to Web Server?

    I need to setup a website that will have pages coded in "LiveCode" (http://livecode.com/), an English-like scripting language, that can be used as an 'easier-to-program' replacement for PHP. It has its own interpreter ("livecode-server"), which is supposed to work under Apache as a cgi script. The idea is that the programmer writes web pages in LiveCode, composed of HTML with embedded LiveCode scripting, and these pages are saved using their own extension (".lc"). When a ".lc" page is requested, Apache should send the page for processing by the 'livecode-server' cgi.
    The installation instructions for 'livecode-server' are quite simple. They state that it should be able to be easily installed via an '.htaccess' file, like this:
    1) in the website's root directory, add a ".htaccess" file with the following directives:
    Options ExecCGI
    AddHandler livecode-script .lc
    Action livecode-script /cgi-bin/livecode-server
    2) put the 'livecode-server' executable inside your 'cgi-bin' folder
    These instructions are obviously for users in a shared host environment, but I thought I should be able to do the same with OS X Web Server. But... where can I find a site's "cgi-bin" folder?
    Any guidance is truly appreciated.

    I tried using a custom httpd_livecode.conf file, and storing it in /Library/Server/Web/Config/apache2/other, but without success. To be totally honest, I'm not certain as to whether the configuration is not loading, or whether there is just something wrong with my syntax, and right now I just don't have the time to troubleshoot.
    I did manage to get it working with the .htaccess file, which was quite easy, once I knew where to put the executable - which, as you mentioned, had to be in /Library/Server/Web/Data/CGI-Executables.
    So, for future reference, the 'recipe' for adding a new cgi handler via .htaccess is:
    place the cgi executable (usually a language parser or interpreter) into
    /Library/Server/Web/Data/CGI-Executables
    make sure the parser/interpreter (and any accompanying files or directories) are readable and executable (usually permissions should be set to '755')
    in your site folder, add a .htaccess file with the following contents:
    Options ExecCGI
    AddHandler script-type .extensionType
    Action script-type /cgi-bin/script-interpreter
    In the case of LiveCode, my .htaccess file looks like this:
    Options ExecCGI
    AddHandler livecode-script .lc
    Action livecode-script /cgi-bin/livecode-server
    And the 'livecode-server' executable, as well as its accompanying files, were downloaded directly from the LiveCode website, and placed in /Library/Server/Web/Data/CGI-Executables.
    last of all in Server.app, in the Advanced settings for your site, make sure you have enabled "Allow overrides using '.htaccess' files"

  • I can't register a new card to my itunes account.

    I can't register a new card to my itunes account.
    It just tells me to contact support.

    You will need to do what it says, contact iTunes Support. These are user-to-user support forums, if you thought you were contacting Apple by posting here. Go here:
    http://www.apple.com/emea/support/itunes/contact.html
    to contact the iTunes Store.
    Regards.

Maybe you are looking for