Combining jsp getProperty with HTML EMBED

Hi, Just a quick question, I have a couple of JSP/HTML books and I can't find a way of achieving this;
basically I have a webpage that embeds a VRML file like so
<EMBED SRC="/VRML/stair.WRL"
TYPE="model/vrml"
WIDTH="300"
HEIGHT="300"
VRML_SPLASHSCREEN="TRUE"
VRML_DASHBOARD="TRUE"
VRML_BACKGROUND_COLOR="#0066CC"
CONTEXTMENU="TRUE"
>
This works fine, the problem is that I now have a servlet that dynamically generates the VRML file to be displayed, so I need a way of inserting this variable into the EMBED header, how do I do this?
If it can't be done with JSP etc then how about a JavaScript solution?
Anyway, ive tried a few things and Im out of ideas
Cheers
PS, the current JSP property finder;
<jsp:useBean id="vrmlFileFinder"
     type="legato.VRMLBean"
     scope="request" />
<jsp:getProperty name="vrmlFileFinder" property="fileName" />

There are two issues here
1 - generating the WRL file (from your servlet)
2 - generating the EMBED tag in the HTML/JSP page
These are two different requests to the web server.
1- generating the WRL file:
You say you have a servlet which generates the VRML code?
Does it generate it to file, or output it directly?
If it outputs it directly, just point the src of the tag to be your servlet
ie
<EMBED SRC= "/servlet/VRMLServlet"...
This will invoke your servlet, and return the code to the browser. (ie as long as the servlet sends it a WRL text format, it can't tell the difference)
2 - generating the EMBED tag:
If you want to dynamically choose which file to include, then JSP would do it like this:
<jsp:useBean id="vrmlFileFinder" type="legato.VRMLBean" scope="request" />
<EMBED SRC="<jsp:getProperty name="vrmlFileFinder" property="fileName" />"...
Remember that the JSP code gets executed first, so if the property evaluates to "/VRML/stair.WRL" all the browser will see is
<EMBED SRC="/VRML/stair.WRL" - it doesn't see the JSP code at all.
Hope this helps.
Cheers,
evnafets

Similar Messages

  • How can I send email from an JSP page  with HTML format either using jsp

    hi,
    I have an jsp page with online application form,after compleating the form if i select submit it will send all the compleated data to the mail id we mentioned in the form tag,for this i am using javascript,but instead of receiving the data in the format of strings,my client want to receive the data in the same format as he's filling in the jsp page(html format) through e-mail.any help would be appreciated.the fallowing is the code right now i am using for email application.
    <code>
    function send()
    if(validatePersonalInfo(document.theform))
         document.theform.submit()
         location.href=location.reload()
    function validatePersonalInfo(form)
         var tmpStr ="";
         if (form.Name.value == "") {
              tmpStr = "Name";
              document.all.dName.style.visibility="visible";
              document.theform.Name.focus();
         else{
              document.all.dName.style.visibility="hidden";
         if (form.SSN.value == "") {
              tmpStr = tmpStr + ", Social Security Number";
         document.all.dSSN.style.visibility="visible";
         if(form.Name.value != "")
              {document.theform.SSN.focus();}
         else{
              document.all.dSSN.style.visibility="hidden";
    if (tmpStr == "") {
              return true;
         } else {
              alert("Please Fill the Following Fields: " + tmpStr);
              return false;
    <FORM NAME="theform" METHOD="post"
    ACTION="mailto:[email protected]?subject=Online Application Form for MinorityDealer." ENCTYPE="text/plain">
    <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="10" NOF="LY">
    <TH>
    <P>
         <FONT SIZE="3" FACE="Arial,Helvetica,Univers,Zurich BT">Online�Application</font></TH><BR>
    </TABLE>
    <table width="718" border="1" cellspacing="0" cellpadding="3" bgcolor="#CCCCFF" align="center">
         <tr>
    <td colspan="2"><font class="captionText">Name*�</font><br><input type="text" size="25" name="Name" class="bodyText">
    <div id="dName" name="dName" style="position:absolute;visibility:hidden"><font color="red">Name is Mandatory*</font></div>
    </td>
              <td colspan="2"><font class="captionText">Social Security Number*�</font><br><input type="text" size="9" name="SSN" class="bodyText">
              <div id="dSSN" name="dSSN" style="position:absolute;visibility:hidden"><font color="red">SSN is Mandatory*</font></div></td>
    </tr>
    <tr>
    <td colspan="2"><font class="captionText">Total Personal Assets</font><br><input type="text" size="10" name="TotPersAss3" class="bodyText"></td>
              <td colspan="2"><font class="captionText">Total Personal Liabilities & NetWorth</font><br><input type="text" size="10" name="TotPerLiab3" class="bodyText"></td>
    </tr>
         </tr>
    </TABLE>
    <IMG Valign="middle" name="imgSubmit" src="images/buttons/Submit.gif" width="66" height="29" border="0" alt="Submit">
    </code>

    Can any one do some help to solve this problem.
    Regards.

  • Display jsp files with .html extension

    my problem is very straight forward i want all my jsp pages to be shown with .html extension. like if i have a page test.jsp and I access it through a hyperlink Test then in the browser's address bar i want it test.html .. any ideas ..

    That's is one odd request. The source for the page still shows that they're loading a .jsp file. To do what you want, you'd have to write javascript for every such link that handled that type of request.
    However, if you actually want all files with .html extensions to be processed like jsps you can:
    1. you can remap the JSP servlet in your web.xml file to another extension (though i'm not sure if thats part of the spec)
    2. you can also use the <jsp-property-group> element in web.xml to specify other files as JSPs. (thats definitely in the spec)

  • Javascript problem with HTML embed

    I'm migrating a large existing site from Sitegrinder to Muse after converting several smaller sites without problem. Unfortunately this site has a javascript button that doesn't work at all. The button was created with the Object/Embed HTML feature, just as coding for several ads was placed in the same way. All the elements displayed properly in the Muse layout and in the browser preview, so I assumed that the code was being read correctly.
    Unfortunately when I click the button on the deployed site, the message "Run script "getPianoDeals()" appears at the bottom of the browser window but nothing else happens. A pop-up window with localized info is supposed to show up. This button appears at the top of every page on a website of hundreds of pages.
    I don't know Javascript, simply place the line of code provided to me. The button has always worked in the past. There's a lot going on in the pages so I don't know if there's a conflict or what to do about it. The site is at www.pianobuyer.com; the white button labeled "view local offers" in the top right corner is the problem. For reference I've reloaded the main pages of the old site at www.pianobuyer.com/Julie/ where the button functions correctly.
    Any suggestions are greatly appreciated.
    Thanks.

    I've tried several things to sort out the problem.
    I isolated the button on a separate layer (helpful with problems between drop-down menu bar and other HTML objects on a page) but it made no difference.
    I then edited the HTML file, moving the relative position of the Muse javascript entries and the problem button script. No matter where the lines were placed, when the button script follows the Muse scripts it works fine; when the button script precedes the Muse scripts it does nothing. Also when the Muse scripts follows the button script the normal actions on the site works fine (drop-down menu bar, slide show); when the Muse scripts precedes the button script none of them work. So the conflict definitely occurs between the scripts.
    I found two discussions on the forum about similar problems. Both refer to a "require.js" file being added to the page. Unfortunately I don't understand what's being discussed.

  • Combining PHP Pages With HTML Pages.

    Hi,
    I started building my site in Dreamweaver CS4 using HTML pages, not knowing until now that any pages with interactivity need to be php.
    If my site has seven pages, can four of them be HTML, and the rest PHP? If so, are there any special considerations I have to take into account? Is there anything special that would have to be done at any time during the process of creating the PHP pages, uploading to a web host, etc?
    If not, is there a way to convert the HTML pages directly to PHP, or do I have to basically start from scratch?
    Thank you.

    Better to be consistent.  You CAN have php,  htm, html and shtml pages in your site, but this could cause a server conflict if you accidentally upload more than one index page to the same folder.
    Simply rename your ***.htm pages to ***.php (F2).
    Remove ***.htm pages from testing and remote servers.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Jsp:include of html file not working

              Hi
              I wrote:
              <jsp:include page="include.html" />
              <% pageContext.include("include.html"); %>
              in my jsp, but there is no output and no error message.
              What could be the problem?
              If I include include.jsp it works.
              Does jsp:include only work with jsp, not with html???
              I am wondering whether our servlet registrations could be responsible. We have:
              weblogic.httpd.defaultServlet=*.jsp
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.register.*.htm=weblogic.servlet.FileServlet
              weblogic.httpd.register.*.html=weblogic.servlet.FileServlet
              so that the default servlet is the JSPServlet, not the ServletServlet. We don't
              want to use the ServletServlet because it can deliver source code.
              What we want to do is a dynamic including of a file, like so:
              <% String s = ...; %>
              <jsp:include page="<%= s %>" />
              Thanks for any help.
              Alex
              

              By changing the weblogic servlets that are registered, I can get it to work. The
              combination that works is:
              weblogic.httpd.defaultServlet=file
              weblogic.httpd.register.*.jsp=weblogic.servlet.JSPServlet
              weblogic.httpd.register.file=weblogic.servlet.FileServlet
              I am surprised that it doesn't work if *.html is mapped explicitly to the FileServlet
              (which would leave the defaultServlet unused). Why is that?
              And why can't I map defaultServlet to "weblogic.servlet.FileServlet" directly,
              without the intervening virtual name "file"?
              What are the security implications of having FileServlet as the default servlet?
              Thanks
              Alex
              

  • Help with JSP:GetProperty Tag

    Howdy all,
    I have a
    <jsp:getProperty name='input' property='code01'/>
    tag and would like to be able to put a variable in the property field so that I can increment from code01 to code02 to code 03 by concatenating strings
    Is this possible?

    Thanks for your input on the forum, but I tried with no sucess to put it into action:
    <% String colname="code02"; %>
    <jsp:getProperty name='Input' property='<%=colname%>' />
    Produced this:
    Internal Servlet Error:
    org.apache.jasper.JasperException: Cannot find any information on property '' in a bean of type 'com.infomed.InputBean'
         at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:616)
         at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:101)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:771)
         at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:220)
         at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:175)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Any Help you can give would be greatly appreciated, what I need to do is cycle through code01, code02....code15
    and use the string to do it, but use a counter integer to create the string, ie..'code0' + i and then use the sting to access
    on of the member properties in the been...(Code01, Code02) ertc.

  • Populating combobox in jsp page from javabean using jsp:getProperty tag

    hi,
    i am new to jsp, so i don;t know how to populate a combobox in jsp page with productid attribute from a javabean called Bid . i want to have a code to automatically populating combobox using the attribute value from javabean.
    please reply me.
    <jsp:useBean id="bidpageid" class="RFPSOFTWARE.Bid" scope="session" />
    <jsp:setProperty name="bidpageid" property="*"/>
      <table  width="50%" align="center" border="0">
       <tr>
        <td  width="30%" align="left"><h4><b><label>Date (dd/mm/yyyy) </label></b></h4> </td>
        <td><input type="text" name="date" size="11" maxlength="10" readonly="readonly" value="<jsp:getProperty name="bidpageid" property="date"/>"  > </td>
      </tr>
      <tr> <td > </td> </tr>
      <tr>
        <td  width="30%" align="left"><h4><b><label>ProductId </label></b></h4> </td>
        <td><select name="productid" tabindex="1" size="1" >
          <option  value="<jsp:getProperty name=bidpageid" />Sachin</option>
          <option value="Hello">Vishal</option>
        </select></td>
      </tr>  and the javabean for Bid is as follow :
    import java.util.Date;
    import RFPSOFTWARE.Product;
    public class Bid{
    private Product product;
    private Integer bid_id;
    private String description;
    private Date date= new Date();
    public Integer getBid_id() {
    return bid_id;
    public Date getDate() {
    return date;
    public String getDescription() {
    return description;
    public Product getProduct() {
    return product;
    public void setBid_id(Integer bid_id) {
    this.bid_id = bid_id;
    public void setDate(Date date) {
    this.date = date;
    public void setDescription(String description) {
    this.description = description;
    public void setProduct(Product product) {
    this.product = product;
    }

    No Sir,
    I think I did not explained clearly.what I try to say is I dont want to use JSTL.I am using only Scriptlets only.I can able to receive the values from the database to the resultset.But I could not populate it in Combobox.
    My code is :
    <tr>
    <td width="22%"><font color="#000000"><strong>Assign To Engineer</strong></font></td>          
    <td width="78%">
         <select NAME="Name" size="1">
    <option><%=Username%></option>
    </select> </td>
    </tr>
    in HTML
    and in Scriptlets:
    ps1 = con.prepareStatement
              ("SELECT Username FROM Users");
              rs2=ps1.executeQuery();
              System.out.println("SECOND Succesfully Executed");
              while(rs2.next())
                   System.out.println("Coming inside rs2.next loop to process");
                   Username=rs2.getString("Username");
                   System.out.println("Success");
                   System.out.println("The value retrieved from UsersTable Username is:"+Username);
    In the server(Jboss console) I can able to display the username but I could not populate it in the Combobox .
    Can you now suggest some changes in my code,Please..
    Thanks a lot
    With kind Regds
    Satheesh

  • Regarding jsp:getProperty

    hi
    i have a bean. I am setting the values of the bean and setting that bean as an attribute in the session.
    In another jsp i am able to access the bean using
    <jsp:getProperty name=".." property="..">
    Here the name is the same as the attribute name.
    But here i am not using <jsp:useBean /> tag.
    I have read some where that <jsp:getProperty> or <jsp:setProperty> should be used with the <jsp:useBean> tag.
    Please correct me where i am wrong?

    I too read the same.
    But i done an example on my local machine and i am able to access the <jsp:getProperty> without <jsp:useBean>
    Consider Testbean.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <LINK href="theme/Master.css" rel="stylesheet" type="text/css">
    <TITLE>TestBean.jsp</TITLE>
    </HEAD>
    <BODY>
    <%
    InfoBean infoBean = new InfoBean();
    infoBean.setFullname("Macro");
    infoBean.setAge("23");
    infoBean.setOccupation("employee");
    infoBean.setSex("F");
    infoBean.setQualification("B-Tech");
    session.setAttribute("InfoBeanObj",infoBean);
    %>
    <jsp:forward page = "TestBeanForward.jsp"/>
    </BODY>
    </HTML>
    The TestBeanForward.jsp is
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <LINK href="theme/Master.css" rel="stylesheet" type="text/css">
    <TITLE>TestBeanForward.jsp</TITLE>
    </HEAD>
    <BODY>
    <jsp:getProperty name="InfoBeanObj" property="fullname"/>
    <jsp:getProperty name="InfoBeanObj" property="age"/>
    <jsp:getProperty name="InfoBeanObj" property="occupation"/>
    <jsp:getProperty name="InfoBeanObj" property="sex"/>
    <jsp:getProperty name="InfoBeanObj" property="qualification"/>
    </BODY>
    </HTML>
    I ran TestBean.jsp on server and i am able to print all the values onthe browser

  • Formatting fonts within jsp:getProperty tag????

    I'd diplaying a piece of information on one of my pages using the jsp:getProperty tag.... there seems to be no way I can effect the display of the property with the font/color that I want - when I look at the resulting HTML code, I see that this tag has created a new HTML table specifying the class "inFieldSet" (a CSS class I presume, and which I also presume if overriding my desired font/color settings). Is there a way to make the page display the property using the font/color that I want without writing a custom tag?
    Scott

    All the JSP getProperty tag does, is get a string returning the value of a property. It would not apply any formatting to your page.
    I would take a look at the "getter" for this property to see what value it is returning.
    Most probably it is returning a chunk of preformatted html.

  • Help Implementing HTML OPTION with HTML

    Hi:
    I have a HTML page with the folowing code:
    </SELECT></TD>
    </TR>
    <TR>
    <TD width="156">Mode</TD>
    <TD width="86"></TD>
    <TD width="206"><SELECT name="mode">
    <OPTION value="regmode" selected>REG Mode</OPTION>
    <OPTION value="testmode">TEST Mode</OPTION>
    <OPTION value="devmode" selected>Dev Mode</OPTION>
    </SELECT></TD>
    I need help to implement the OPTION using JSP and JavaBean,
    For a simple text entry I am using the following code:
    <input size=20 type=text name=userID value=<jsp:getProperty name="_welcomeJSPBean" property="userID"/>>
    I am looking for a similar way to get all the posibles values for the HTML OPTION,
    Thank in Advance.
    Leonardo

    This is why many of the tag libraries and frameworks exist. I use Struts, and it has html taglib that includes tags for automating select/option to a very high degree.
    If the list is dynamic, you can use:
    <html:select property="commtypeno">
      <html:options collection="commtypeList" property="commtypeno" labelProperty="commtype" />
    </html:select>
    Or, if the list is static, you can use:
    <html:select property="commtypeno">
      <html:option value="1">Type 1</html:option>
      <html:option value="2">Type 2</html:option>
      <html:option value="3">Type 3</html:option>
    </html:select>
    Anthony

  • I have a number of pages with html extension in different files. Is it possible to merge them into one file? Is it possible to convert them into another file type such as PDF, MOBI, or EPUB? Thanks

    While downloading an eBook from internet, I found a book in a folder containing around 123 files, which is equivalent to the number of pages of the book.
    My interest is to bring them together in one file so that I can read it at a time. As the interface is not comfortable with html, I also like to convert it into another more suitable file format.

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • HELP: JSP + XML + XSLT = HTML?

    Hello, all.
    I am trying out Weblogic 6 and I am trying to get the JSP + XML + XSLT =>
    HTML chain working.
    I am coming from using Orion and SAXON.. and in that situation I had a JSP
    that contained XML tags... they were filled in at runtime and then using
    Servlet-Chaining was passed along to the SAXON XSLT Processer. SAXON checked
    for the inline XSL specified and then used that to transform the document
    into HTML.
    It worked well, but there were some other features missing/not documented
    that we now need.
    With Weblogic I am trying to use the XSLT Tag Library that comes with the
    distribution, but it seems to be very finicky. I followed the directions and
    I got it to do a sort of roundabout transformation. But it doesn't seem to
    work quite right.
    The best I can get is the following:
    I have an 'xslt' directory url-pattern-mapped to xslt.jsp (as instructed)...
    but can't figure out how to specify the xsl file on-the-fly... that is, if I
    don't hard-code the XSL file in the x:xslt element in the xslt.jsp it
    complains about some XML file not having a root element.
    Ideal situation:
    1. I have a JSP that includes XML elements.
    2. It is filled from a database at runtime and specifys (using a PI) what
    XSL stylesheet it is to be processed with.
    3. Somehow (fingers crossed) the XML is processed and transformed into HTML
    by the appropriate XSL file.
    I think I am mostly stuck moving between steps 2 and 3.
    Can anyone give me some hints? Are there some Weblogic specific
    elements/tags that I have to include in the XML file that Weblogic will
    catch and re-direct to the XSL Parser?
    Please, anyone, if you have some information, I would much appreciate it.
    Dylan Parker
    PS - I apologize for the cross-post, I hope it doesn't cause too much
    traffic.

    Craig,
    I've since discovered how to do it with the WL Taglibrary... and have
    moved on =)
    It has to do with the EXTREMELY BADLY documented x:xml tag that can
    appear within the x:xslt tag body...
    So the WL Tag Library allows something like the following.
    (Please note, angled brackets are omitted in this post to prevent html
    parsing)
    [x:xslt stylesheet="sheet.xsl"]
    [x:xml]
    Here is the XML to run the sheet on.
    This should have all relevant XML syntax: the PIs, the doctype,
    root elements etc...
    [x:xml]
    [x:xslt]
    And that DOES work. But not very well. WL, a little prematurely
    incorporated versions 1.2 of Xerces and Xalan in their product -- and
    these versions have some irritating bugs.
    Also -- There tag library doesn't copy the source XML across as UTF-8
    .. so a lot of the Japanese I have embedded there (from a DB) gets
    mangled somewhere in their code...
    AND -- If you hammer a little bit on an JSP/XML that uses the WL Tag
    Library (eg clicking refresh lots of times in IE)... I get huge
    amounts of irritating exceptions appearing in the log files.
    NullPointerExceptions
    XSL Parsing Exceptions
    XML Parsing Exceptions
    but completely unpredictably...
    In my eyes.. the WL XML/XSL Tag Library using the incorporated and
    untouchable Xalan and Xerces (v1.2) is virtually unusable.
    What a pain.
    BUT! Apache offers a similar OPEN SOURCE XSL Tag Library available
    here:
    http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html
    And it uses the standard, non-weblogic-incorporated, Xerces and Xalan
    (which means you can provide whatever version you want).. and it works
    impressively well.
    It has almost identical performance as the WL Taglib, and without all
    of the bizarre exceptions being thrown.
    And it does proper passing of the character encoding type!
    If only the taglib did caching though =(
    The performance hit over pure JSP is huge. Almost two orders of
    magnitude. On my desktop box I can get around 500Requests/Sec if I am
    returning HTML direct from a JSP... while if I produce XML that gets
    processed by XSL into HTML the Requests/Sec drops to 5!!!!
    Caching. Caching. And more Caching. A lot of DiskIO is going on with
    the XML/XSL/XHTML chain of events.
    I hope this helps!
    I'd be curious as to what you find out as well.
    Dylan Parker
    On 5 Mar 2001 07:20:00 -0800, "Craig Macha"
    <[email protected]> wrote:
    >
    Yep, I feel Dylan's pain.
    I am trying to accomplish the same thing. A JSP page generating
    dynamic XML content and then utilizing an XSLT stylesheet to transform
    all the content into XHTML.
    Does anyone have some examples that show exactly how to accomplish
    this? Can I do this with WLS and the XML taglib that comes with
    it? Or do I have to move on to something like Cocoon to get this
    capability?
    Any insight would be greatly appreciated.
    Thanks,
    Craig Macha
    "Dylan Parker" <[email protected]> wrote:
    Hello, all.
    I am trying out Weblogic 6 and I am trying to get the
    JSP + XML + XSLT =>
    HTML chain working.
    I am coming from using Orion and SAXON.. and in that situation
    I had a JSP
    that contained XML tags... they were filled in at runtime
    and then using
    Servlet-Chaining was passed along to the SAXON XSLT Processer.
    SAXON checked
    for the inline XSL specified and then used that to transform
    the document
    into HTML.
    It worked well, but there were some other features missing/not
    documented
    that we now need.
    With Weblogic I am trying to use the XSLT Tag Library
    that comes with the
    distribution, but it seems to be very finicky. I followed
    the directions and
    I got it to do a sort of roundabout transformation. But
    it doesn't seem to
    work quite right.
    The best I can get is the following:
    I have an 'xslt' directory url-pattern-mapped to xslt.jsp
    (as instructed)...
    but can't figure out how to specify the xsl file on-the-fly...
    that is, if I
    don't hard-code the XSL file in the x:xslt element in
    the xslt.jsp it
    complains about some XML file not having a root element.
    Ideal situation:
    1. I have a JSP that includes XML elements.
    2. It is filled from a database at runtime and specifys
    (using a PI) what
    XSL stylesheet it is to be processed with.
    3. Somehow (fingers crossed) the XML is processed and
    transformed into HTML
    by the appropriate XSL file.
    I think I am mostly stuck moving between steps 2 and 3.
    Can anyone give me some hints? Are there some Weblogic
    specific
    elements/tags that I have to include in the XML file that
    Weblogic will
    catch and re-direct to the XSL Parser?
    Please, anyone, if you have some information, I would
    much appreciate it.
    Dylan Parker
    PS - I apologize for the cross-post, I hope it doesn't
    cause too much
    traffic.

  • Web template with HTML framset not working after transport

    Hi,
    I've built a frameset which consists of two web-templates (role-menu and content area) those two are combined together using plain HTML which does not acontain any web items (uploaded via WAD). This works fine in development. After transporting to our QA environment all the templates have been transported with concode 0, but the frameset does not get loaded. I always get an "Error loading template ...". The two templates which contain web items work fine when used stand-alone.
    When looking in transport connection I see the following message:
    "Object ZWF_WEB_FRAMESET (Web Template Name) could not be collected for object ()"
    I also see the same behavior on another transport of a template. Nine out of ten ar fine, but one, all are exact copies - only the query used is different, does not work either. The query that is used has been transported and is working.
    Has anybody an idea what could cause this?
    Is there a way to regenerate templates (like RSRT for queries) ?
    Thanks in advance
    Bernd Dümmel
    KODAK Stuttgart
      using ve created a

    Did you upload the video?
    Did you provide the correct path to your HTML object?

  • Possible to use jsp:setProp with jsp:getProp in it?

    Background info:
    I have a bean that contains a variable dbid(with set and get methods). I can get the value of it by using the ordinary <jsp:getProperty.../>
    But I would like to set the value like this:
    <jsp:setProperty name=".." property ="dbid" value="<jsp:getProperty name=".." property="dbid"/>+1"/>
    That is to set the value of dbid to dbid++
    Is it possible to make this sort off call in a JSP file?
    I have tried, but cannot make it work. But my logic tells me it must be possible!!
    Hope you can help me!! I will not be cheap with the duke dollars! ;-)
    In advance, thanx!!

    Try this:
    <jsp:setProperty name="bean_name" property="property_name" param="request_param_name" />
    I think this will work...

Maybe you are looking for

  • INSTALL [for install] error

    Hi, I am currently writing my own cap uploader, but am currently getting in the INSTALL command. My current steps are: Authenticate Secure Channel // reply 90 00 80 E6 02 - Install for Load command // reply 90 00 80 E8 - Upload data block // all give

  • How do I reinstall Voiceover Utility?

    i tried my leopard disc but it's not in optional install and it wants to partition another hunk of my hard drive to reinstall the whole os again. i can't find it as a separate utility and there's no links for it on this site or anywhere else. the onl

  • TCP Tuneable Parameters

    Hi, I'd like to know if there are parameters in Solaris to control the following TCP options; I looked in the "Solaris Tunable Parameters Reference Manual" but didn't find the ones I need, perhaps they're undocumented. I'm mostly interested in parame

  • Has anybody seen this??

    My Samsung Continuum was stuck on a blank home screen and after 2 hrs I finally turned it off.  I turned the phone on and the first screen that popped up is a little triangle picture of the Android robot sweeping and it says "Downloading... do not tu

  • Action box for notification

    Hi, Can someone please explain to me the action box for notification in details and its corresponding spro settings. I am new into it.