How to use jsp:scriptlet in site template

hi all,
I want to use <jsp:scriptlet> in site template, but jdev showed me an error msg when I put <jsp:scriptlet> in site template:
scriptlet can not work properly with OJSP, I checked the forums, one possible solution is to encapsulate java code in jsp taglib, but I dislike this solution.
Is there a way to disable OJSP? or any solution to use java code in site template?
Best regards

I believe the official word is if you are trying to use java code in a scriptlet in your site template then you are doing something wrong.
The goal is to keep java code separate from the template and pages. Any logic should go to your supporting serviece objects and all of your front-end work should be accomplished using available or custom tags.
Can you describe what you are trying to accomplish with this java code in your template?

Similar Messages

  • How to use jsp:plugin type="applet" in jsp

    Hi ,
    I have a JSP File.
    How to use jsp:plugin tag in that.
    When I specify the file name in code="applet.class" Then it is giving an error saying that It could not find the class.
    What is the solution for this.

    its not working.. it shows exception class not found exception.
    i have placed the jsp and applet class in the same folder. but its not working.
    jsp file path : OracleSpatial\mypackage\webmap.jsp
    applet class : OracleSpatial\mypackage\demoApplet.class
    demoApplet class inside package "mypackage".
    code inside JSP is :
    <jsp:plugin type="applet"
    code="mypackage.demoApplet.class" width = "100%" height = "100%" >
    </jsp:plugin>

  • How to use JSP in apache web server

    hi all,
    can anybody tell me how to use JSPs in Apache Web Server.
    Thanks
    sir

    You would need a servlet container to run Servlets and JSPs. And Apache's Tomcat is one such free container available. Download Tomcat from http://jakarta.apache.org and integrate with Apache WS
    HTH

  • How can I obtain the web site template of the ''Imvelo Safari Lodges'' that appears on the Site of the day web page?

    How can I obtain the web site template of the ''Imvelo Safari Lodges'' that appears on the Site of the day web page?

    Hi Ginette,
    The site that you are referring to does not appear to be a template that you can get your hands on, however, I will suggest that you contact the owner via their contact us page and see what can be done.
    - Abhishek Maurya

  • I was wondering how to use Dreamweaver to create joomla template? Any ideas or useful resources.

    I am embarking on a new project to create a joomla template. I need your ideas on how to use Dreamweaver to create the template. TQ

    It's pretty much the same procedure with all your open source CMSs (WordPress, Drupal, Joomla!...)
    Start with this 4 Part Tutorial:
    http://www.adobe.com/devnet/dreamweaver/articles/dw_wordpress_pt1.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • I have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?

    i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke the EJB's method?
    thanks!

    You'd do something like:
    <%
    //vvv this part can potentially be done in initialization
    Context ctx = getInitialContext();
    BeanHome home =
    (BeanHome)PortableRemoteObject.narrow(ctx.lookup("the.jndi.name"),
    BeanHome.class);
    Bean b = home.create();
    //^^^
    Result r = b.invokeMethod();
    %>
    "toxin" <[email protected]> wrote in message
    news:3d2e95e5$[email protected]..
    >
    i have deploy an EJB in weblogic 6.1,but how to use jsp to invoke theEJB's method?
    thanks!

  • How to Create a Custom Project Site Template Using Visual Studio

    I know how to make changes and save a site as a template but I need to be able to create a new project site template during deployment to different environments. Trying to have this not be a manual process.

    Hello,
    This article might help:
    http://blogs.msdn.com/b/sambetts/archive/2013/10/17/creating-a-clean-visual-studio-solution-from-a-sharepoint-2013-site-template.aspx
    Start with a default Project Site (create a new site from the Project site template) and save out the WSP then import into VS.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Error while using jsp scriptlet or expression with JSPDynpage default jsp

    Hi everyone,
    I am getting the following error while trying to use any kind of jsp scriptlet or expression within the default jsp page that is created with JSPDynpage application:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : Navroz_JSPDynPage_JCo_BAPI_FLCUST.FlightCustJSP
    Component Name : Navroz_JSPDynPage_JCo_BAPI_FLCUST.FlightCustJSP
    Error occurs during the rendering of jsp component.
    Exception id: 08:50_05/10/06_0032_17543050
    See the details for the exception ID in the log file
    For example if I try to use even simple syntax like:
    <% if(true) { %>
    display htmlb tableviewcomponent
    <% } %>
    or
    <hbj:tableView
         id="myTableView"
         model="flightCustomer.model"
         design="ALTERNATING"
         headerVisible="true"
         footerVisible="true"
         fillUpEmptyRows="true"
         navigationMode="BYLINE"
         selectionMode="SINGLESELECT"
         headerText="Flight Customer List"
         onNavigate="Navigate"
         visibleFirstRow="<%=flightCustomer.getVisibleFirstRow()%>"
         visibleRowCount="5"
         rowCount="16"
         width="500 px"
         />
    here also the <%=flightCustomer.getVisibleFirstRow()%> line gives the above mentioned error. If I remove such scriptlets or expression then it works fine.
    What could be the problem. Are jsp scriptlets or expressions incompatible with portal applications?

    hi Navroz,
    check this
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9
    Re: Defining HTMLB tags in jsp file of JspDynPage component
    Re: JSPDynPage does not work in EP6.0
    bit more
    JspDynPage with Client Side Eventing and Database
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3c1af90-0201-0010-c0ac-c8d802d264f0
    let me know u need any further info
    bvr

  • How to use JSP custom tag lib in PAR file?

    Hi All,
    I am trying to customize mastheaderpar file. For that I have downloaded relevant par file and making the changes accordingly.
    As part of the changes I would require to use JSP custom tag library in my par file.
    I have the TLD file and relevant classes in the jar file. I would like to know where and what kind of modifications have to be done to use the jsp custom tag library.
    I tried modifying some things in portalapp.xml but was not successful.
    Please help me on how to proceed with this? It would be great if you can provide the xml entry to use this tag library
    Thanks
    Santhosh

    Hi Johny,
    Thanks for the reply. Actually I am able to change colors etc. with out any problem.
    My requirement is to use XMLTaglib in mastheader par file. This tag lib is from apache tomcat. I have the relevant TLD and class files. I copied TLD file into taglib dir of portal-inf and class file in src api.
    And I have added the following line in portalapp.xml under component-profile section of default
    <property name="tlxtag" value="/SERVICE/Newmastheader/taglib/taglibs-xtags.tld">
    Is this the right way to use tag lib? Actually before adding this line I used to get the error saying "Error parsing taglib", but now the error does not occur and I am getting new error. This is an exception in one of the taglib classes.
    Could any one provide me some inputs on how to check this error?
    Thanks
    Santhosh

  • How to use JSP in Web Dynpro

    Hi
         I want to use JSP and servlet pages in my web dynpro application
    how can we add the JSP pages in web dynpro aaplication or how can I achive this functionality?
    Thanks
    Ninad

    Hi,
    Have a look at this thread,
    Re: web dynpro jsp
    Regards,
    Saravanan K

  • How to use jsp in weblogic 5.1

    Hi all,
    We have PeopleSoft application running on
    Weblogic 5.1 SP12.
    How do we use JSP files in this weblogic version ?
    We are trying to use a custom jsp file.
    Quick help is much appreciated..
    Thanks
    Maddy

    WebLogic 8.1 supports JSP 1.2, which doesn't natively implement the JSTL or the expression language. If you download the Jakarta Taglibs implementation of the JSTL (for JSP 1.2, not JSP 2.0), then you can use the JSTL taglib as a normal taglib. Note that this doesn't give you the ability to use the other JSP 2.0 tag features, like using the expression language in body content.
              Make sure that you use the uri value specified in the tld that you're using. I believe the values are different between the JSP 1.2 and JSP 2.0 versions.

  • How to use ColumnList MOde in Query Template

    Hi,
    I am working on SAP MII 11.5 and having trouble with SQL Query Template with Column List mode.
    It is throughing an error "Enter a table Name.
    Please help me in this regard

    You will need to use the Group parameter with the table name.
    <PARAM NAME="Group" VALUE="Employees">
    You can also set it with javascript for interactive use that would emulate the Template Editor:
    document.APPLET.getQueryObject().setGroup("Employees");

  • How to use custom aspx page as template for custom content type

    Hi,
    I have created custom content type and custom aspx page. I want to use aspx page as template for custom content type.
    Can anybody please let me know how to accomplish this?
    Any help would be appreciated.
    Thank you,
    AA.

    Check if you are looking for the below
    http://www.sharepointpals.com/post/How-to-Create-a-Page-Layout-(PageLayout)-with-ContentType-in-SharePoint-2013
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • How to use a query in Web template

    Hello i have really a very silly question.
    How can i use a Query that is already defined by BEX into a Web template so that i can set up simple properties like changing colours of Row as well as avoid Tab pages.
    I logged into a Web template.
    Can any provide step by steps.
    Please help

    No questions is silly, doubt is always a doubt and clarifying the same is the best way to deal with that.
    Anyway philosophy apart and coming to business.
    1) created the query in Query designer, say Zquery1
    2) logon to WAD.
    3) for assigning Zquery1 to WAD template, you haev to decide how you are going to use Zquery1 in WAD.
    4) for ex: you want to display the query result and also a graph based on that result.
    5) So we have to drag drop Chart and table in WAD.
    6) create dataprovider and assign zquery1 to this dataprovider.
    7) save and execute.
    For chanding the colors, under properties, we will have many stylesheets delivered by SAP. Yiou can choose anyone on this which suits to your requirement. If not, then edit the stylesheet and code it as per your need.
    Hope this helps. If yes, please assgin points.
    Regards
    Pankaj

  • How to use JSP files in virtual directory in WL 5.1

              Using WL 5.1 sp9 on Win 2000 sp3
              Following a previous post I've got this far setting up a virtual directory -
              weblogic.httpd.register.tempstuff=weblogic.servlet.FileServlet
              weblogic.httpd.initArgs.tempstuff=docHome=c:/tempstuff
              From the browser http://p1900:7001/tempstuff/test.html
              displays the html page but how do I set it up so I can access a .JSP page in there?
              I've tried changing the line to
              weblogic.httpd.register.tempstuff=weblogic.servlet.JSPServlet
              but keeps giving errors
              any ideas
              thanks
              harry
              

    You should be able to just bring the files into DreamWeaver. It should edit the HTML part of the JSP just fine.

Maybe you are looking for

  • GR/IR migr. within system

    we want to migrate one company code GR/IR to another company code within the same SAP client, can any expert show the steps to do GR/IR migration within the same SAP client, I already migrate vendor open item.

  • Global system settings for Firefox 5 on Ubuntu 11.04

    I need to set the default home page for all users on Ubuntu 11.04 systems running Firefox 5, but it doesn't seem to work like it did in previous versions.

  • BCS Balance carryforwrd

    When I execute the balance carryforward in the first period of new year, it executes the function and shows the log for executed data. When I check it in list cube for the period in which it the balance carry data is available, the period cell is bla

  • SAP-PM nd Meridium

    Hi All, plz give some inputs on SAP-PM nd Meridium integration .... for wht purpose meridium is used for and its advantages .... regrds pushpa

  • Trying to run a .jar file but CAN'T!!!!

    I have a .jar file. If I click on it, a Java Virtual Machine Launcher error box comes up that says "Could not find the main class. Program will exit." I've tried to run it from the DOS prompt two ways. If I type "java -jar Plist" (Plist is the .jar f