Struts portlet Instance Label problem: Appending the html tags in jsp

I have created a struts portlet and given it a Instance Label. I have used struts-adapter-html.tld tld in my jsp which is referenced by my struts portlet. But the problem with using this taglib is that the portlet Instance Label is appended to all the html tags on the JSP as a result of which when the page is submitted, formbean will not pick any of the values as the name will not match. Has anyone has faced this kind of problem? How can I prevent the appending of the HTML tags with the portlet Instance Label?
Please help me overcome this problem..
Thanks in Advance ...

1. To begin with, I would not recommend NOT to append portlet instance label to html tags. This is very much required. Take atleast 2 scenarios. If you dropped 2 instances for Same Portlet like News/Articles portlet etc on same page, you need to identify the html fields uniquely for each portlet so that backend java code works properly. Also if you have 2 different portlets assuming you did not give any name to form tag, and if you have html tags with same name, you need to identify them. Remember when portal or desktop is rendered, it is one big html file with html fragmetns from all .portlets files. So I am not sure if there is any option at all, to avoid the appending of instance label value to html tags.
2. Coming to your usecase, I did had this problem once in 8.1 SPxx long back. All we did was, in the back end code, using BackingFile we could get the intance label value of the portlet. We can get this in pageflow also. Then pass this value and manually append this value to the html field of interest. In your case looks like you have Struts and tld tags. See somehow if you can get portlet instance label in jsp file and pass around to your tag lib code in request parameters etc. This is just one idea. I am not fully aware of your code, so try something along these lines.
HTH
Ravi Jegga

Similar Messages

  • Sorting values by escaping the html tags

    Hi Friends,
    My problem is described below...
    I am facing an issue where I need to sort (main title/ alternate title) by escaping the html tags.
    eg 'Amex' should always be before 'Singer'
    Amex in DB is like Amex.
    Syngo in DB is like <i>Singer</i&gt
    something can be --- <i>hello<i>
      sql.append("SELECT DISTINCT NVL(ItemDocMeta.xMainTitle, ItemDocMeta.xAlternateTitle) AS generatedPageTitle,");
    other conditions
    // order by
                sql.append(" ORDER BY LOWER(generatedPageTitle) ASC");
    Is there any SQL function that can make it easier?
    I tried using regex in the ith order by clause, but it doesnt work until i keep it in the select part. And I am unable to use regex in the select part with distinct.
    Thanks

    For example :
    SQL> set scan off
    SQL>
    SQL>
    SQL> with sample_data as (
      2      select 'again sort a column' str from dual union all
      3      select '<i>sort</i> a column' from dual union all
      4      select '&lt;i&gt;resort&lt;i&gt;' from dual
      5  )
      6  select str
      7  from sample_data
      8  order by regexp_replace(
      9             utl_i18n.unescape_reference(str)
    10           , '</?[^>]+>'
    11           )
    12  ;
    STR
    again sort a column
    &lt;i&gt;resort&lt;i&gt;
    <i>sort</i> a column

  • BC won't allow me to insert code (scripts) between the /body and the /html tags.

    Hi guys,
    So I have this weird problem. I'm trying to insert some codes between the </body> and the </html> tags in the page templates. It's saving it. But if you check the page, the code is showing before the </body>, not after. Here's the code that I'm trying to insert.
    <script src="http://i.simpli.fi/dpx.js?cid=1534&action=100&segment=198566&m=1"></script>
    I have also tried adding this code by downloading the templates through ftp, adding the code, then uploading it to the server. Same thing. I even added type="text/javascript" in the code. Still no go. BC wouldn't insert it between </body> and </html>. Any ideas guys?
    - Jeff

    So an update.
    I was told by Adobe chat support to try adding the script after the body via javascript.
    So I added this before </head>
    <script type="text/javascript">
    var script = document.createElement('script');
    script.src = '//i.simpli.fi/dpx.js?cid=1534&action=100&segment=198566&m=1';
    script.type = 'text/javascript';
    $("html").append(script);
    </script>
    Still not working. Any ideas guys?

  • How to use the HTML tags in the reports.

    hi.
    can any one tell me how to use the HTML tags in the reports.
    i m using the forms 10 g rel 2 and reports 10 g rel 2 and application server 10g rel 2.

    Set the Contains HTML Tags property of an object to Yes, then the tags in the object's text (if any) will be used to format the object.

  • Using the HTML tags in Oracle Alerts

    Hi all,
    Can we use the HTML Tags in Oracle Alerts at Alert Details window in Text(D) Column?
    Please Provide solution to format the data which is sending to Mail from Oracle Alerts.

    What version of ebusiness are you running? You should be able to utilise html tags without an issue in 11i.

  • How to append the declaration tags to generated xml using Xquery

    Hi,
      How to append the declaration tags to generated xml using Xquery.generated XML is like
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Here I want to append the <?xml version="1.0" encoding="ISO-8859-1"?> and the result xml should be
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Can anybody help to do this.
    Thanks
    Mani

    First assign this element to a temp variable
    <ROOT>
      <CHILD1></CHILD1>
      <CHILD2></CHILD2>
    </ROOT>
    Now in XQuery expression create a new variable
    <?xml version="1.0" encoding="ISO-8859-1"?>
    $temp

  • A little problem getting the style tag of a html file seperate from rest

    I'm making a program that will take in a URL and then search through that URL for all a, link, embed, frame, and img tags, find their sources, and download them. I also want to search through the style and find anything that uses a URL (ex. background-image:url('somepic.jpg')) and download that file. In the end, you should be able to go to the directory you saved it all in, open index.html, and see an exact replica of the original site. Now, my problem is that my program isn't getting the style tag's contents. Here's my code: import java.io.*;
    import java.util.*;
    import java.net.*;
    public class Test
         //-->>>> MAIN <<<<--//
         public static void main(String...a)
              try{
                   System.out.print("Enter URL: ");
                   String target = new Scanner(System.in).next();
                   URL url = null;
                   try{
                        url = new URL(target);
                   }catch(MalformedURLException x){
                        url = new URL("http://" + target);
                   Scanner scan = new Scanner(url.openStream());
                   scan.useDelimiter("<");
                   ArrayList<String> tokens = new ArrayList<String>();
                   while(scan.hasNext())
                        String str = scan.next();
                        str = str.trim();
                        Scanner tags = new Scanner(str);
                        if(tags.hasNext())
                             String tag = tags.next();
                             if(tag.equalsIgnoreCase("a") || tag.equalsIgnoreCase("img") || tag.equalsIgnoreCase("link") || tag.equalsIgnoreCase("embed") || tag.equalsIgnoreCase("frame"))
                                  tokens.add(str);
                             else if(tag.equalsIgnoreCase("style"))
                                  tokens.add(str);// This isn't adding anything
                   for(String str : tokens)
                        System.out.println(str);
              }catch(UnknownHostException x){
                   System.err.println("Host not found.");
              }catch(Exception x){
                   x.printStackTrace();
         //-->>>> FindURLAttributes <<<<--// <--- Under construction
         private static ArrayList<String> findURLAttributes(String tag)
              ArrayList<String> tokens = new ArrayList<String>();
              tokens.add(tag);
              return tokens;
    }

    I've never tried it, but it seems like using an existing html parser would be a lot easier. I've worked with xml dom parsers, and it's not really that hard. I don't imagine working with an html dom would be too difficult either, at least it wouldn't be as hard as doing it by hand. Google for java html parser and see if any of them suit your needs.

  • Problems with the html custon page

    Hi, i add the parameter connectionDisallowedURL ( connectionDisallowedURL = /custom_page/custom_page.htm) to my formsweb.cfg. This one, have the name of the folder where i put the html custom page and all the images (.gif). This folder is located in /ORACLE_HOME/Apache/Apache/htdocs. When i disabled the new user connections (     allowNewConnections=false) the Application Server redirect to my custom page, but not display the images.
    Anyone can help me?

    Ok!!!... I resolved the problem. I moved the images to /Apache/Apache/hdocs/ohs_images
    thx,

  • Problems accessing the HTML UI Guidelines Course Material

    When I attempt to access the "HTML UI Guidelines Course Material" on http://otn.oracle.com/tech/blaf/education/gettingstarted.html, I get a blank page.
    I am a member of OTN and am logged in. Any ideas?

    This is an error on OTN. I've forwarded this to the content owner to fix.
    - Robert (OTN)

  • Problem with the HTML Preview

    Hello,
    when i try to run the HTML Preview, i get this error message:
    " Failed to connect to "localhost".Error returned from windows sockets API:0.Please check the name of the RAS server"
    If i logged on the BOE, I get the HTML Preview, but without a login I get this error message.
    Does somebody know what kind of configuration we can do to solve this and use in this case the RAS-Server?
    This is my config:
    Web Server Name: [servername]:8080
    Plattform: Java
    URL: http://[servername]:8080/CrystalReports/crystalreportviewers/preview.jsp
    RAS Server Name: [servername] ???
    Thanks in advance!
    Regards
    David

    Hello Henry,
    Thanks for your answer!
    BUT in the options from Crystal Reports I can configure to "Enable the HTML preview when not logged on the BusinessObjects Enterprise" (original text from CR).
    In this tab you can do some configuration like Web Server Name, Plattform, URL and the main reason the RAS Server Name.
    My questions is, what kind of configuration I need to do, when I'm NOT LOGGED on the BOE to view the HTML Preview?
    Regards,
    David

  • Problem in parsing HTML tag

    Hello,
    I want to parse the text in div ..like :<div id="title">Action Result</div>
    My code is :
    public void handleSimpleTag(HTML.Tag t, MutableAttributeSet a, int pos){
    if (t == HTML.Tag.DIV){
      String page_title = (String)a.getAttribute(HTML.Attribute.ID);
      if (page_title != null){
         System.out.println("Title : " + page_title);
      public static void main(String argv[]) {
        try {
          Reader r = new FileReader("C://test1.html");
          ParserDelegator parser = new ParserDelegator();
          HTMLEditorKit.ParserCallback callback = new ParseTest();
          parser.parse(r, callback, false);
        } catch (IOException e) {
          e.printStackTrace();
      }But it does not work. Please advise how to do this.
    Thanks in advance.

    I also want to extract the html text from the tag like-
    <div id="title">Action Result</div>
    I want to take the "Action Result" as my programs output.
    Please help me to solve this problem.

  • Problem using XSLT & HTML Tags

    Hi all,
    I'm newbie using XML and XSL and i'm facing a problem that i would need some help.
    I wrote a XML using servlet that use a XSL and transform it in a HTML output. So everything seems to work fine but when i try to use HTML tags inside my XSL it is not executed. it looks like below viewing by the browser IE6.0.
    - <html>
    - <body>
    <b>Sun Sep 14 12:27:09 BRT 2003</b>
    <i>Hello World</i>
    </body>
    </html>
    The fact is that i want my HTML tags to be executed by the XSl file and do not simple show the tags. Can someone help me? I would appreciate any help since i've been spending long time with that without any answer.
    Thanks and Regards
    Fabio

    following below the code that generate the XML. I still need help.
    I hope someone can help me in this issue
    The servlet that generate the XML.
    response.setContentType("text/xml");
    String Xml = "";
    Xml = Xml + "<?xml version=\"1.0\"?>";
    Xml = Xml + "<?xml-stylesheet href=\"/XslGravaCrit.xsl\" type=\"text/xsl\"?>";
    Xml = Xml + "<!-- Here is a sample XML file -->";
    Xml = Xml + "<page>";
    Xml = Xml + "<title>Test Page</title>";
    Xml = Xml + "<content>";
    Xml = Xml + "<paragraph>What you see is what you get!</paragraph>";
    Xml = Xml + "</content>";
    Xml = Xml + "</page>";
    try{
    TransformerFactory tFactory = TransformerFactory.newInstance();
    byte[] arr=Xml.getBytes();
    ByteArrayInputStream bytes=new ByteArrayInputStream(arr);
    Source xsl=new StreamSource("../XslGravaCrit.xsl");
    Templates template=tFactory.newTemplates(xsl);
    Transformer transformer = template.newTransformer();
    transformer.transform(new StreamSource(bytes), new StreamResult(response.getWriter()));
    }catch(Exception e){
    System.out.println("Excecao 100: " + e.getMessage() + e.getLocalizedMessage());
    The XSL XslGravaCrit.xsl
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java"
    version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:output method="html" indent="yes" version="4.0"/>
    <xsl:template match="page">
    <html>
    <body><b>
    <xsl:value-of select="java:java.util.Date.new()"/>
         </b>
    <xsl:for-each select="/page">
    <xsl:sort select="paragraph"/>
    <xsl:value-of select="paragraph"/>
    </xsl:for-each>
    <i>Hello World</i>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

  • Having problems integrating the Treasure Tag WS-2 ...

    Hi,
        I am attempting to integrate Treasure Tag WS-2 into my mobile application and cannot find information on GATT Service (90008800-0000-1000-8000-0002ee000001) and its characteristics.  I believe this service is associated with multi-function key, etc...  Can anyone help or point me in the right direction?
    Regards,
    Godzilla1234

    I experienced a similar thing. But in my scenario I had two Lumia 920. The tag connects with the first Lumia, but the sensor cannot be found on my second Lumia phone.
    I did some experimentation with my two 920s. Below are my findings:
    It seems like if the tag is connected to one phone, or if the tag thinks its connected to a phone, it will not connect to another phone until it has said properly goodbye to the first phone. In order for the tag and Phone to break up:
    1) On the first phone: select "Remove sensor" in the Treasure Tag app. The app might start searching for a tag.
    2) To prevent the phone from hooking up with the tag again, hit the windows button and go into settings and disable bluetooth.
    3) Afterwards press the button on the tag for a sec. In this way the tag knows for sure that the connection with the first phone is over for good.
    4) On the second phone perform a seach
    5) If the second phone doesn't find the tag you could try to hold down the "back button" on the phone for a couple of seconds and close the Treasure Tag app. I am not sure, but assuming that if you performed a seach on the second phone while the tag was hooked up with the first phone, the app might add the tag to an ignore list in memory.
    6) Afterwards perform a search again.
    In step #1 you could be tempted to just turn off the bluetooth on the first phone and leave out the disconnect from in the app, but in my testing that didnt work. Without a proper goodbuy the tag will have a hard time hooking up with another phone.
    Edit:
    Refitting the battery while holding down the button on the tag also solves the problem. Restore factory settings described here: http://www.nokia.com/us-en/support/product/ws-2/userguidance/?action=singleTopic&topic=GUID-34393F1F...

  • Problem when importing HTML code to JSP

    When I copy HTML code to JSP strange thing happens - "It's" became "It?s". But that's not all. I changed "It?s" to "It's", but when I run the JSP output on the screen is still "It?s".
    Why does this happens?
    What to do?

    Pls state the server, browser and complete code snippet

  • Contructing HTML tags in JSP files

    Hi,
    I am new oracle portal development and using version 10.1.4. version for my development. Our requirement is develop a portlet using JSR compliance API so we could deploy our portal applications across all vendors like IBM,ORacle,Vignette,weblogic,etc...
    As of now have written a portlet application where all html tags are constructed in Portlet Action class not in JSP file.
    Please help me to develop JSP file to put html contents and examples.
    Note: it should be JSR 168 compliance.
    thanks in advance
    thanks
    Suren

    That was an attempt to just change the outputText tag, not my actual CSS.
    Below is my "source" which i don't find particularly helpful, since its JSP/JSF doesn't it just use scripting to load new pages onto the original address?
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <link rel="stylesheet" href="../../theme/Master.css" type="text/css">
    <title>Product Catalog</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta name="GENERATOR" content="Rational Application Developer">
    </head>
    <SCRIPT type="text/javascript">
    window.onbeforeunload = function(){
         window.location.href = "/forms/faces/jsp/searchforms/Logout.jsp";
         unloadPage();
    function unloadPage()
         var now = new Date();
         var exitTime = now.getTime() + 500;
         while (true) {
              now = new Date();
              if (now.getTime() > exitTime)
              break;
    </SCRIPT>
    <FRAMESET cols="100%">
    <FRAME name="main" src="faces/jsp/searchforms/SearchForms.jsp">
    <NOFRAMES>Your browser doesn´t support frames!</NOFRAMES>
    </FRAMESET>
    </html>

Maybe you are looking for

  • Mac Pro Original - Kernel Panics after 10.6.8 update

    I hope these things get solved when I update to Lion today but yet.. these are driving me crazy. Can anyone translate this?: Interval Since Last Panic Report:  270879 sec Panics Since Last Report:          1 Anonymous UUID:                    78079C1

  • How To Set Up An It Company, How To Set Up An Offshore Company

    Even though design video provides Ultra-violet security, it can be designed to end up being creatively desirable at the same time. Autos aren't the top parent receiving motion picture because home and How To Set Up An Offshore Company office propriet

  • Outlook 2013/Adobe Acrobat XI (both have the latest updates): Adobe Acrobat Toolbar Tab disappears after I close Outlook.

    Environment: Outlook 2013/Adobe Acrobat XI (both have the latest updates)/Windows 7 x64 SP1 (latest updates) Every time I close Outlook 2013, the Adobe Acrobat addin disappears. When I open Outlook,I have to enable the add-in again. I have tried the

  • Query based on Dates

    Hi, There are two :p1_start and :p2_end bind variable If the above two bind variables are null it must show all the data. if two bind variables are not null then it will show the dates between two date pickers. select actual_end,status from schedule

  • Duplicate fields on a second page

    Hello, I have question that I'm hoping someone might be able to answer. I would like to create a 3 page form that would be used to collect information and printed out. Only pages 2 and 3 would print and a copy given to the relevant department. Ideall