JSP without JSP Dynpage

Hi experts,
I have one pretty straight forward question. Is it possible to create portal component using JSP but without JSP Dynpage and HTMLB tags? I know I can avoid HTMLB tags but is it possible to avoid JSP Dynpage also?
Regards,
Martin

try using abstract portal component.
As always you can use JSP dynpage and use simple jsp without HTMLB. try creating simple jsp file and use it.
Cheers
Yusuf

Similar Messages

  • Use classes in JSP without jsp:useBean

    hi
    i want to instantiate my own classes within a jsp.
    the classes are in web-inf/classes/chat/
    there is one main class which is used all over the app, so i use it with the jsp:useBean and scope on application.
    The messages are saved in objects of the class Message. now i want to use this class in my JSP without useBean.
    Is this possible without extra setting the classpath?!
    I get the error because the interpreter searchs in a package from tomcat itself..
    Thanks a lot and rgds
    Ruven

    I think you can use any class in your jsp file without the <jsp:useBean>, this implies that you have to declare your class in the ordinary way i.e
    <% MyClass c = new MyClass() ;
    //other code
    %>
    the important thing is to use the page directive's import attribute i.e include this line in your jsp page
    <%@ page import="mypackage.inner.MyClass" %> the web containers when sees this line will assume that you have the following directory structure in your web application ( /mywebapps/web-inf/classes/mypackage.inner/* )
    I hope this helps
    Regards

  • How to call a class file in a jsp without deploying anything in j2ee

    Hi,
    I am new in J2EE. I have some jsps, which I configured using web.properties(documentroot=c:/jsp/). I am able to get
    those pages by the web browser. I have some import statements in some jsps, now I
    am trying to access those page but it is failing, it says
    org.apache.jasper.JasperException: Unable to compile class for
    JSPD:\j2sdkee1.3\repository\pradip\web\_0002fLogin_0002ejspLogin_jsp_0.java:1:
    Class com.gui.UPMGuiGlobalConstants not found in import.
    import com.gui.UPMGuiGlobalConstants;
    Actually I have not deployed any class file or jsps.. Now my question is can I access
    these jsps without deploying anything, like can I put my .jar file in any j2ee
    directory(like lib or anywhere else, I already tried after putting in /lib) and restart the
    j2ee and use it. So how can I call a class file from a jsp without any kind of
    deployment?
    Please send me the reply as soon as possible.
    Regds,
    Pradip

    After you put the jar containing the class to import into the WEB-INF/lib directory, you still need to include it in the jsp.
    Putting the jar into the lib dir, will make it available to the vm, but as in any other java class, you still need to import it into the class, that the jsp will be compiled into.
    And you do that by putting
    <%@page import="com.gui.UPMGuiGlobalConstants" %>somewhere near the top of your jsp. (well you don't need to put it there, but it good style ;)
    That should do it.

  • Passing javascript values to jsp without refreshing the page

    Hi,
    How do u pass a value of a javascript variable to the jsp without refreshing the page ?
    For example, a file called test.jsp in which a javascript variable x contains value 254. I need to pass the value of x to a method declared in test.jsp(same page).

    Hi Mona,
    when i say refresh i do mean a blink of the browser.
    This is a small example i wrote to show you how you can pass javascript varables to JSP variables. If you don't want the refresh to be seen by the user just include this code in a hidden frame on a page and instead of refreshing the entire page, refresh the hidden frame.
    i have to say, i didn't test the code so i don't guarantee it's flawless.
    if you need an more detailed example just tell me, i'll create one, but it won't be for today :)
    <html>
    <head>
         <title>Log in to the system</title>
    </head>
    <body>
    <script>
    //we retrieve the parameter 'user' from the URL
    <%
      String username = request.getParameter("user");
    %>
    var user = "<%= username%>";
    //check if there is a username in the URL
    if(user=="null")
      //there is no username so we log the person in as a guest
      user="guest";
      //we refresh the page and set the user parameter to 'guest'
      //the parameter now contains the javascript variable 'user'.
      //The parameter can be read by the JSP (see the top op this script).
      //This way we gave the javascript variabele to the JSP variable
      location="login.jsp?user="+user;
    else if(user=="guest")
    {  alert("Welcome "+user+", I hope you like this site"); }
    else
    {  alert("Welcome "+user+", I'm glad to see you again"); }
    </script>
    </body>
    </html>

  • How can I add more than one submit button in a jsp without use of javascrip

    I want to add more than one submit button in a jsp without use of javascript

    you can do add multiple submit button with this way
    <input type="submit" value="Previous" />
    <input type="submit" value="Next" />
    <input type="submit" value="Finish" />

  • Get site id in WCS jsp without using ics.SQL

    Hi,
    Is there a way i can get siteId of my current site in JSP without using ics.SQL tags and getting it from publication table
    We are trying to implemet a lucene search for loading assets present in current site only.
    Thanks in advance for your help.

    Use the below code to get it.
    <publication:load name="thisPub" field="name" value='<%=ics.GetVar("site") %>'/>
    <publication:get name="thisPub" field="id" output="thisPubID"/>
    Dont forget to import publication.tld
    Regards,
    Ravi G

  • How to execute a .exe file in java(Jsp) without using a process ???

    Hi All ,
    How to execute a .exe file in Jsp without using a process ??? ...
    Is it Possiable ????

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • Can i cal a javascript function from a jsp without occurance of any event??

    Hi,
    Below is the problem that i am facing:
    Problem:
    I want to open a new url from a java class.
    I have a java class. I am calling a jsp from this java class. JSP does some validations and after these validations, opens a url in new window. But I want to append some runtime parameters in the url and pass it through post method in jsp so that end user cannot see these parameters. Can any one tell me how to code for this schenario?
    Class A calls X.jsp
    X.jsp
    1. do some validations
    2. call some javascript function
    3. append the parameters in the url using dopost method
    One more thing to mention, when calling this jsp, i need to show this jsp to user, therefore there would not be any event in this jsp. I need soluions for following points:
    1. Without occurance of any event, my javascript function must be called
    2. desired parameters must be appended in the url
    3. New url should be opened and the parameters should not be visible to end user.(ie parameters need to be passed via post method in jsp)
    Appreciate your help.
    Thanks,
    Rajeev

    You are all mixed up. Here's how it works: a JSP is a program that executes on your server. It generates HTML (which may include Javascript) and sends that to the client, most likely a browser. When it has finished generating and sending all that HTML, the browser accepts it and renders it. The browser may execute Javascript as it renders the HTML, or it may execute Javascript later upon a click or mouse action or whatever.
    So your idea that the JSP will execute some Javascript is a non-starter. And that business about the JSP appending parameters and using the POST method is all backwards, unless perhaps you meant that the JSP would generate HTML containing a form that does that.
    Anyway you need to clarify your thought based on how things actually work. Confounding the two phases (generating HTML on the server, rendering it on the client) will make it very difficult for you to get anywhere.

  • How do I update JSPs without having to restart WebLogic?

    How do I update JSPs without having to restart WebLogic? I have tried setting pageCheckSeconds to 0 in my weblogic.xml file. I have also tried setting Reload Period to 0 in the console. Please advise.
              

              Just bring up the Weblogic Console. Drill down to your webapp. De-select the Deploy
              option. Click on apply. Select the Deploy option and Click apply. Basically, Un-deploy
              and re-deploy your webapp.
              Later...
              - Wayne
              "cleve" <[email protected]> wrote:
              >which is here:
              >
              >http://e-docs.bea.com/wls/docs61////javadocs/weblogic/management/tools/WebAp
              >pComponentRefreshTool.html
              >
              >"Michael Young" <[email protected]> wrote in message
              >news:[email protected]..
              >> Try using the weblogic.refresh tool.
              >>
              >> regards,
              >> Michael
              >>
              >> Tony Nguyen wrote:
              >>
              >> > How do I update JSPs without having to restart WebLogic? I have tried
              >setting pageCheckSeconds to 0 in my weblogic.xml file. I have also tried
              >setting Reload Period to 0 in the console. Please advise.
              >>
              >> --
              >> Michael Young
              >> Developer Relations Engineer
              >> BEA Support
              >>
              >>
              >
              >
              

  • How to send information from HTML page to JSP without reloading HTML page?

    Hello,
    Is it possible to send information(row number selected by user) from HTML page to JSP without reloading HTML page?
    Thanks.
    Oleg.

    Yes, you can do this with framesets and a hidden frame.
    You need a bit of JavaScritp in the "visible" frame that
    sets the location of the hidden frame to the JSP.
    Add the user's choice as a parameter to the JSP URL.

  • Including JSP without repeating code

    My webproject has multiple processes, which use JSP files which are included into the index.jsp by a view ID. For example index.jsp?id=4 includes the work_4.jsp file which has speficic code for that proces.
    The problem is that I use a javabean which handles my select queries. Index.jsp uses this bean for displaying some buttons which are stored inside a MySQL database.
    In the work_4.jsp which is included, I have to use the bean to get data. The problem is that i need to define the bean again, as well as the import of the class itself.
    Is there a way to use the bean from the index.jsp inside the included work_4.jsp without redefining the javabean?
    <%@
       // index.jsp
       import "queryhandler"
    %>
       <jsp:useBean id="queryBean" class="queryhandler" scope="session">
         <jsp:setProperty name="queryBean" property="SQLString"/>
         <jsp:setProperty name="queryBean" property="SQLLabelMax"/>
       </jsp:useBean>
       <jsp:include page="work_4.jsp" flush="true" />
    <%@
       // work_4.jsp
       import "queryhandler"
    %>
       <jsp:useBean id="queryBean" class="queryhandler" scope="session">
         <jsp:setProperty name="queryBean" property="SQLString"/>
         <jsp:setProperty name="queryBean" property="SQLLabelMax"/>
       </jsp:useBean>
       ... some code ...Now I want work_4.jsp to look something like this.
    <%
       // work_4.jsp
    %>
       <jsp:setProperty name="queryBean" property="SQLString"/>
       <jsp:setProperty name="queryBean" property="SQLLabelMax"/>
       ... some code ...

    I'm not sure if this is quite what you want but I tried the following and it works for me without the full jsp:useBean declaration in the included file. You don't need the import statement as long as the full package statement is in the "class" param of the useBean tag. I just stuck my bean in the WEB-INF/classes, so there's no package.
    jengi
    test.jsp:
    <html>
    <body>
    <jsp:useBean id="testBean" class="TestBean" scope="session">
    <jsp:setProperty name="testBean" property="*" />
    <jsp:setProperty name="testBean" property="*" />
    </jsp:useBean>
    <jsp:include page="testinclude.jsp" flush="true" />
    </body>
    </html>
    testinclude.jsp:
    <jsp:useBean id="testBean" class="TestBean" scope="session" />
    <jsp:getProperty name="testBean" property="firstName"/>
    <jsp:getProperty name="testBean" property="lastName"/>
    TestBean.java:
    public class TestBean {
    private String first = "";
    private String last = "";
    public void setFirstName(String first) {
    this.first = first;
    public void setLastName(String last) {
    this.last = last;
    public String getFirstName() {
    return this.first;
    public String getLastName() {
    return this.last;

  • UTF-8: JSP to JSP: okay, JSP to servlet to JSP: fail

    Hello,
    Yes, another guy having problems with UTF-8. I have searched this forum a lot for day, but cannot find a solution that works for me... here it is:
    Requests from JSP to JSP work with UTF-8, but only after adding an old-style <% request.setCharacterEncoding("UTF-8"); %> scripting element. Of course, the page has content type text/html with UTF-8 set.
    Thus, the result JSP correctly shows UTF-8, e.g. umlauts work then etc.
    However, as soon as a servlet is involved, i get data garbage that has nothing to do with wrong fonts etc., per character i get two bytes for special chars.
    I tried to set System.setProperty("file.encoding", "UTF-8"), but that does not work also.
    The strange thing is that this works on my home Debian GNU/Linux system but not at work on WinNT.
    Any ideas?
    Here the setup:
    J2SE SDK 1.4.1_02
    Tomcat 4.1.24
    Windows NT 4.0 German
    IE 5.0 + Mozilla Firebird 0.7
    FYI: the servlet is an inherited Struts class.
    Thank you, Timo

    Hello MamtzGroove!
    You are my hero! I tried all that getBytes() stuff and formatting the sources to UTF-8 etc. and nothing worked. Only when insterting your two statements as is into my servlet, the in works.
    The funny thing is that i had used both statements before, but one in the JSP and one in the servlet and vice versa.
    THANKS! THANKS! THANKS! Can i give you duke dollars without having created this question with this option?!?!
    Greetings + Thanks, Timo
    P.S. but why did this work in GNU/Linux? Does it have to do with other System settings????? An idea?

  • File Not found error when calling Form Post Method to a JSP from JSP Portlet

    I have built a set of JSP forms using post method to call other JSPs. Normally, the code looks like
    <form name="MyForm" action="MyJsp.jsp" method="post">
    I migrated the calling form containing this code to a portlet, but not the MyJsp.jsp. When I submit the form, I get a file not found in Jserv.log
    Exception:javax.servlet.ServletException: java.io.FileNotFoundException: D:\servlet\RegisterCompany.jsp (The system cannot find the file specified)
    [14/06/2001 13:59:59:679 PDT] JspServlet: unable to dispatch to requested page: Exception:javax.servlet.ServletException: java.io.FileNotFoundException: d:\oracle\isuites\apache\apache\MyJsp.jsp (The system cannot find the file specified)
    I notice that launching the calling jsp from a portlet, my opriginal context that uses ../Apache/Apache/htdocs is not being searched for the JSp. Why is this? Moreover, I try to set up an Alias in httpd.conf file to the this director and use it with the jsp in the action tag, but still get an error that my jsp servlets/Myjsp can't be found. Why is it insiting on looking at servlets context instead of htdocs.
    I have none of these issues outside of Portal30 using IAS.
    regard

    Initially, I couldn't do this unless I moved tghe jsp's up to the root directory of IAS, i.e ../Apache/Apache. Nomrally, htdocs is my doc directory for IAS. I could not do http:\\myUrl\htdocs\myJsp. If I tgried this, I got an error in Apache error logg that said can't find file ..\htdocs\htdocs\MyJsp.jsp.
    If I just tried the the URL http:\\myUrl\MyJsp.jsp with Jsp file in htdocs, I would get an error in the Jserve log that file d:\oracle\isuites\apache\apache\MyJsp.jsp could not be found. Once I moved the file MyJsp to Apache/Apache directory, it could be found using http:\\myUrl\MyJsp.jsp. Later, I delted these files and kept the ones in htdocs and they continued to work.
    I'm confused why launching pages through portal isn't consistant with Apache Standards. Where is the documentation that tells me how to configure context and aliases for pages launched from portal pages?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sue Vickers ([email protected]):
    David,
    Passing information using Portal is different than just using Apache/Jserv. Does it work in portal if you use the absolute path?
    <form name="MyForm" action="http://host.domain/MyJSP.jsp" method="post">
    Portal will not be on the same relative path as your Apache, so you may need to adjust your action somehow.
    Thanks,
    Sue<HR></BLOCKQUOTE>
    null

  • Jsp-descriptor jsp-param jspCheckSeconds weblogic.xml?

    For some reason I can't get weblogic to recompile my jsp's when I change
              them. I am using Weblogic 6sp1 on NT4. I place my weblogic.xml in the
              d:\weblogic6.0sp1\wlserver6.0sp1\config\mydomain\applications\cam\Web-inf
              directory.
              When I change one of the jsps I copy it into the
              d:\weblogic6.0sp1\wlserver6.0sp1\config\mydomain\applications\cam directory
              and expect weblgoic to notice it changed. I use ant to copy the jsp's and I
              confirmed that it is actually copying correctly.
              The jsp's use custom tags, but I tried a simple jsp, not using custom tags,
              that doesn't get recompiled either. What could I be doing wrong? Has
              anybody else run into this problem? Restarting weblogic on every change to
              a jsp takes way too long.
              please help.
              -Scot
              <-------here is my weblogic.xml--------------------------->
              <?xml version="1.0" encoding="ISO-8859-1"?>
              <!DOCTYPE weblogic-web-app
              PUBLIC "-//BEASystems, Inc.//DTD Web Application 6.0//EN"
              "http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd">
              <weblogic-web-app>
              <description>
              CAM - Customer Account Management
              </description>
              <session-descriptor>
              <session-param>
              <param-name>
              TimeoutSecs
              </param-name>
              <param-value>
              900
              </param-value>
              </session-param>
              <session-param>
              <param-name>
              URLRewritingEnabled
              </param-name>
              <param-value>
              false
              </param-value>
              </session-param>
              </session-descriptor>
              <jsp-descriptor>
              <jsp-param>
              <param-name>
              pageCheckSeconds
              </param-name>
              <param-value>
              1
              </param-value>
              </jsp-param>
              <jsp-param>
              <param-name>
              verbose
              </param-name>
              <param-value>
              true
              </param-value>
              </jsp-param>
              <jsp-param>
              <param-name>
              keepgenerated
              </param-name>
              <param-value>
              true
              </param-value>
              </jsp-param>
              </jsp-descriptor>
              </weblogic-web-app>
              

    This is correct. I started my web-app under a new directory which was not
              the default web-app originally and was not able to refresh the jsp's upon a
              change to the jsp. Next I tried it as the default web-app and I was able to
              refresh the jsp's as described in the weblogic.xml. Thank you for your
              help.
              Is this a known bug? Or should you not be able to use the weblogic.xml
              properites in a web application that is not the default application?
              "cheenle" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Are you start a new server for you own application?
              > I met the same problem, but I found it only appear under a new server
              >
              > "Scot Hale" <[email protected]> wrote:
              > >For some reason I can't get weblogic to recompile my jsp's when I change
              > >them. I am using Weblogic 6sp1 on NT4. I place my weblogic.xml in the
              > >d:\weblogic6.0sp1\wlserver6.0sp1\config\mydomain\applications\cam\Web-inf
              > >directory.
              > >
              > >When I change one of the jsps I copy it into the
              > >d:\weblogic6.0sp1\wlserver6.0sp1\config\mydomain\applications\cam
              directory
              > >and expect weblgoic to notice it changed. I use ant to copy the jsp's
              > >and I
              > >confirmed that it is actually copying correctly.
              > >
              > >The jsp's use custom tags, but I tried a simple jsp, not using custom
              > >tags,
              > >that doesn't get recompiled either. What could I be doing wrong? Has
              > >anybody else run into this problem? Restarting weblogic on every change
              > >to
              > >a jsp takes way too long.
              > >
              > >please help.
              > >
              > >-Scot
              > >
              > >
              > ><-------here is my weblogic.xml--------------------------->
              > >
              > ><?xml version="1.0" encoding="ISO-8859-1"?>
              > >
              > ><!DOCTYPE weblogic-web-app
              > > PUBLIC "-//BEASystems, Inc.//DTD Web Application 6.0//EN"
              > > "http://www.bea.com/servers/wls600/dtd/weblogic-web-jar.dtd">
              > >
              > ><weblogic-web-app>
              > > <description>
              > > CAM - Customer Account Management
              > > </description>
              > >
              > > <session-descriptor>
              > > <session-param>
              > > <param-name>
              > > TimeoutSecs
              > > </param-name>
              > > <param-value>
              > > 900
              > > </param-value>
              > > </session-param>
              > > <session-param>
              > > <param-name>
              > > URLRewritingEnabled
              > > </param-name>
              > > <param-value>
              > > false
              > > </param-value>
              > > </session-param>
              > > </session-descriptor>
              > >
              > > <jsp-descriptor>
              > > <jsp-param>
              > > <param-name>
              > > pageCheckSeconds
              > > </param-name>
              > > <param-value>
              > > 1
              > > </param-value>
              > > </jsp-param>
              > >
              > > <jsp-param>
              > > <param-name>
              > > verbose
              > > </param-name>
              > > <param-value>
              > > true
              > > </param-value>
              > > </jsp-param>
              > >
              > > <jsp-param>
              > > <param-name>
              > > keepgenerated
              > > </param-name>
              > > <param-value>
              > > true
              > > </param-value>
              > > </jsp-param>
              > > </jsp-descriptor>
              > >
              > ></weblogic-web-app>
              > >
              > >
              >
              

  • Extension data not showing in order.jsp & order_change.jsp

    Hi Experts,
    My requirement is to display the gross weight of the order in Order.jsp,Order_change.jsp. I have implemented the BADI CRM_ISA_BASKET_HEAD and method GETHEAD_GET_DATA to get the gross weight.
    In the BADI I am using CRM_ORDER_READ to get the value gross weight of the order.
    Here is the code to get the extension data in Order.jsp
    <input class="textInput" 
                type="text"
                name="ZGRWT"
                value="<%= JspUtil.encodeHtml(ui.header.getExtensionData("ZGRWT")) %>"/>
    Not sure after doing this both order.jsp & order_change.jsp simply not displying any thing in the page.
    To get the extension data should I write any custom action? Not sure about the issue.

    Hello sirivaram!
    I think you should use custom action.
    You can do it like this:
    1) create custom action class extended BaseAction
    2) in this class you should pass values from ExtensionData to request.
    3) use request attributes instead extensionData() on the jsp page
    4) do not forget register your action before standart ShowBasketAction in config.xml
    My last message Re: Display String Variable on ISA JSP page, that gets value from Z java class. can help you with points 2 and 3.
    For point 4 you have to replace this code in file config.xml:
    <action path="/b2b/showbasket" type="com.sap.isa.isacore.action.order.ShowBasketAction">
    <forward name="showbasket" path="/b2b/order.jsp"/>
    </action>
    with this code:
    <action path="/b2b/showbasket" type="foo.bar.Z_ShowBasketAction">
    <forward name="success" path="/b2b/z_showbasket.do"/>
    </action>
    <action path="/b2b/z_showbasket" type="ru.sng.isa.isacore.action.order.Z_ExtShowBasketAction">
    <forward name="showbasket" path="/b2b/order.jsp"/>
    </action>
    About your issue - I suppose that ui.header can't have to access to ExtensionData or ui.header.getExtensionData("ZGRWT") return null. Anyway you will be able to debug your application and check value of ExtensionData only if you will take your own action.
    Hope this helps.
    Regards, Lev

Maybe you are looking for

  • After-market Mini DVI to HDMI adaptor

    Has anyone tried an after market MINI-DVI to HDMI adaptors to run a video signal from the iMac to a TV? http://www.monoprice.com/products/product.asp?cid=104&cp_id=10419&cs_id=1041912&pid=4852&seq=1&format=6#faq I know Apple wants us to purchase thei

  • Retrieve data from a list in SharePoint 2013 provider hosted App using CSOM

    I have developed a provider hosted app in SharePoint 2013. As you already know, Visual Studio creates web application and SharePoint app. The web application gets hosted inside IIS and the SharePoint App in SharePoint site collection. I'm trying to g

  • My Macbook Pro is not charging eventhough the battery is 95%, Is it not working ?

    My Macbook Pro is not charged even  though the battery is at 95%. This is my first Macbook therefore I dont have any knowledges about it. When I replug the Adapter, only green light appeared, no matter how many tme I try. I bought it last year theref

  • Problems using finder 10.8.2

    I have some problems with my finder, i use a macbook pro retina with mountain lion 10.8.2. Just installed normal apps such as chrome, firefox, adobe suite and so on. But the following issues occur. - When using spotlight and click on "show all in fin

  • How to manipulate instances?

    Hi, I am having trouble manipulating instances of xml loaded pictures. I want to change their x and y position and tween them etc. I have loaded them onto the stage from an xml file, and given them all individual names but the most I can do now is ei