How to use HTML and Java Script files in Portal
Hi,
I am trying to access a web application using iViews. My application contains JSP,HTML,Servlets,JS(java script), image files. I am using JSPDynPro to access the JSP files and I am putting servlets in the private/lib folder of the PORTAL-INF dir of Portal project. Now my problem is almost all the JSP files uses the HTML files, JS files and image files. Where can put these files in the portal project dir structure to give access to the JSP files when i am creating a iView for the JSPDynPro componenets in the irj.
thanks,
Ashok
Hi,
JSPDynpage is the controller, one JSPDynpage can call more than one jsp file according to the coding. Through the JSPDynpage's setJspName() function only you can display a jsp page.
EX:
public void doProcessBeforeOutput() throws PageException {
this.setJspName("logon.jsp");
if you put the JSPDynpage in the src.core then the JSPDynpage can be accessed only by this application.
if you put the JSPDynpage in the src.api then other applications can access this component.
You can put the jsp pages in the pagelet folder.
xml file
=========
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="SharingReference" value="com.sap.portal.htmlb"/>
</application-config>
<components>
<component name="jspdynpage name">
<component-config>
<property name="ClassName" value="package name.jspdynpagename"/>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
</component-profile>
</component>
</components>
<services/>
</application>
REWARD USEFUL ANSWERS
Similar Messages
-
How to use html codes in epub files?
In Ipad ibook application can i use html codes in that books..
Most of the html codes are working except the text box. any one can help me to fix this ?application-param tag in weblogic-application.xml may be used to define parameters:
webapp.encoding.default
webapp.encoding.usevmdefault
webapp.getrealpath.accept_context_path
http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
"Harshad Nanal" <[email protected]> wrote:
>
When we build an ear file , Weblogic-application.xml provides application-param
tag?
are they similar to env-entry in ejb-jar.xml.
Can I use application-param tag to define a configurable params
say myName and value as "Harshad"
How do i read it in the application say a simple java class that is included
in
a jar inside the ear file. -
I'm having a problem with firefox playing background music on some sites, it works with IE and other browsers but not with fire fox, what html or java script do I need to add to the pages so that they play the music?
I develop my pages in Front Page and I know that the music only works in IE, so if someone can tell me how to correct this problem as it is important as I use fire fox as my main browser.
I thank you in advanceIf a website uses BGSOUND then it will only work in IE.
BGSOUND is not compatible with other browsers like Firefox.
* http://kb.mozillazine.org/Background_music_does_not_play -
How to use HTML Tags in webdynpro java
Hi,
Can any body tell me how to use HTML Tags in webdynpro java.
If u provide me with sample code it will become more usefull.
Thanks & Regards,
SNHI,
Please find the steps:
Create a html file and store in your webdynpro project
Add the html contents in your file
& Create a IFRAME UI element and refer you html file
Now you able to see the html in webdynpro
Thanks & Regards,
Ram -
How to use perform and endperform in scripts
Can anybody cleaerly explains me how to use perform and endperform in scripts with an example to add something extra dynamically to the standard script (like rvorder01).
thanks in advance.
regards
anil.Check this example:
In form
PERFORM READ_TEXTS IN PROGRAM 'Z08M1_FORM_EKFORM1'
USING &EKKO-EKORG&
USING &EKPO-WERKS&
USING &EKKO-EKGRP&
USING &EKKO-BSTYP&
CHANGING &COMPNAME&
CHANGING &SENDADR&
CHANGING &INVCADR&
CHANGING &COMPADR&
CHANGING &COVERLTR&
CHANGING &SHIPADR&
CHANGING &REMINDER&
CHANGING &REJECTION&
CHANGING &POSTADR&
CHANGING &LOGO&
ENDPERFORM
In program
FORM READ_TEXTS TABLES IN_PAR STRUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA : L_EKORG TYPE EKORG,
L_WERKS TYPE WERKS_D,
L_BSTYP TYPE BSTYP,
L_EKGRP TYPE BKGRP.
READ TABLE IN_PAR WITH KEY 'EKKO-EKORG' .
CHECK SY-SUBRC = 0.
L_EKORG = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY 'EKPO-WERKS' .
CHECK SY-SUBRC = 0.
L_WERKS = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY 'EKKO-EKGRP' .
CHECK SY-SUBRC = 0.
L_EKGRP = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY 'EKKO-BSTYP' .
CHECK SY-SUBRC = 0.
L_BSTYP = IN_PAR-VALUE.
CLEAR Z08M1_ORG_TEXTS.
SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
AND WERKS = L_WERKS
AND EKGRP = L_EKGRP
AND BSTYP = L_BSTYP.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
AND WERKS = L_WERKS
AND EKGRP = L_EKGRP
AND BSTYP = SPACE.
ENDIF.
READ TABLE OUT_PAR WITH KEY 'COMPNAME'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COMP.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'SENDADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_ADRS.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'INVCADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_INVC.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'COMPADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_CPAD.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'COVERLTR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COVR.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'SHIPADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_SHIP.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'REMINDER'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RMDR.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'REJECTION'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RJCT.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'POSTADR'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_POST.
MODIFY OUT_PAR INDEX SY-TABIX.
READ TABLE OUT_PAR WITH KEY 'LOGO'.
OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_LOGO.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
Check and let me know if u face any problem.
Regards -
How can u insert and retrieve text files in any format using forms6i.
how can u insert and retrieve text files in any format using forms6i.
can u give me an example of an insert statement, let's assume the file is located in the a:drive.
and retrieving the files, i would give the user a list of all the files that are in the database, the user would select one, but what command(or piece of code) would open the file in its apppropriate editor.
e.g .pdf formatted file would open in acrobat.
any help would be appreciated.
Thanks
Hussein Saigerthe filereference class is for downloading and uploading files.
if you want to load xml, use the xml class.
and, if you want to write to an xml file and don't want to use server-side code, wait. -
I need to apply for a job but I'm told I need to enable cookies and java script, how do I do that? I can't find it in system preferences
I just updated to the new operating system which i'm starting to think was a bad idea, because it reset all my settings and I don't know how to fix them.so when I go to safari>preferences>security>uncheck box labled enable java script links on webpages don't work and pictures and links son't want to appear on websites. this made it so webpages don't want to work past loading the content in text format. I have to check enable java script to go the webpages to work right so images and links work again but when I try to apply for this job the error message pops up saying I need to enable cookies and java script.
SO I GUESS MY QUESTION IS IF JAVA SCRIPT IS ALREADY ENABLED HOW TO I ENABLE COOKIES? -
My daughter created a movie using iMovie 11, which she has worked on for a month. When trying to save it on a jump drive she was asked to "finalize" the movie, and while this was running (quoted 13 hours!) she received an error message. Now there is no record of it at all, I have looked in trash etc. Any ideas how I could try and retrieve the file?
The file cannot be reloaded in iMovie using File > Open Recent ??
There is no trace of the file in a Spotlight search?
The project files are not under <user>/Movies/iMovie Projects ??
Finalizing creates small, medium and large version of the finished video. It does take a long time, but it should not destroy your project files.
Oh, and you really MUST have a backup of your files. You can expect to lose files if you have no other copies of them. -
How to use portlet:namespace in flex files?
Hi,
Iam developing a portlet whose UI is flex. using MXML and action script.
Portlets require that their UI elements be unique to each portlet, so we use <portlet:namespace> for each ID, vars, functions etc..
My question is how should i use this tag in my UI?
Is this the right place to ask this question, if NO, the please direct me to the right forum.
Thank you,application-param tag in weblogic-application.xml may be used to define parameters:
webapp.encoding.default
webapp.encoding.usevmdefault
webapp.getrealpath.accept_context_path
http://e-docs.bea.com/wls/docs81/programming/app_xml.html#1034632
"Harshad Nanal" <[email protected]> wrote:
>
When we build an ear file , Weblogic-application.xml provides application-param
tag?
are they similar to env-entry in ejb-jar.xml.
Can I use application-param tag to define a configurable params
say myName and value as "Harshad"
How do i read it in the application say a simple java class that is included
in
a jar inside the ear file. -
Problem to include java script file in servlet
I couldnt use any functions included in java servlet file using servlet. I made a test in jsp and it work fine but in servlet not.
Here my code
out.println("<jsp:include page=\"C:/path/file.js\" flush=\"true\" />");
or
out.println("<script language=\"javascript\" src=\"c:/path/file.js\">");
Although was no error but using both didnt let me use any function inside the java script file. As I said using the same command in JSP works fine.
How I can include the file.js correctly ?[email protected] wrote:
server machineOK, imagine that I am the server and you are the client.
I have a file "c:/documents and settings/balusc/passwords.txt".
So now you have the path. Can you tell me the contents of the file? -
Simple XML to Text onversion using XSLT and Java?
Hi all!
I'm completly new to using XSLT and Java and are trying to convert a XML file into a ordinary Textfile that I am gonna import into another application.
I started up writing a ordinary XML parser in Java which interpreted the XML file, but realized later on that it was possible to do with a ordinary XSLT.
So far it is a 2-step process right now, I've tied my XSLT to the XML file and then just open the XML file up in a ordinary browser and then get the result.
I found an example (http://www.onjava.com/pub/a/onjava/excerpt/java_xslt_ch5/index.html?page=3) where u hook up a XML file and a XSL file separately and the process it, and dump it to Stdout. But do I need to hook up a XSL file like this when the XML file is tied to a XSL file internally?Just to give you an example to show you how easy it is: http://www.daniweb.com/forums/thread137587.html
-
How do I use notepad to open a java script file.
Encephalopathic wrote:
This reminds me of one of my favorite urban legends, the "too stupid to own a computer" legend:
http://www.snopes.com/humor/business/wordperfect.asp
it's a classic!That made me remember back in the day when I was convinced you had to power cycle your monitor when you rebooted your computer. :( Ah, to be young and ignorant again. -
Hello all
i am new to obi ee and i wanna know how can we use the codes of xml and java scripting in it and i am sitting on the client system...Do i need to change some files on server???
thanks in advance,
pankajYou mean like in this thread? Re: Creating a Popup Box / List of Values on a Dashboard
What's the idea behind it?
Why this and not a prompt?
Input mask for write-back?
Cheers,
C. -
How can I share a *.java source file across multiple projects in NetBeans?
I'm sure this simple and a pretty common operation but how can I share a *.java source file across multiple projects in NetBeans? Right now I keep cut, coping and pasting the same source file between multiple projects to re-use the same code. But I could I make this source file a library file or something like that so that I could access it from any project. I assume this would be a generic operation but I mentioned NetBeans for clarity. Thanks.
fiebigc wrote:
I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
Edited by: fiebigc on Jun 20, 2008 5:57 PM
>I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
Edited by: fiebigc on Jun 20, 2008 5:57 PM
Create a class library.
Write your code, compile it to .class files, put those class files in a .jar file and include the jar file in the classpath whenever you want to compile a project against it. -
How can I run a SQL script file...
How can I run a SQL script file from a location on my computer without providing the whole path?
Is there some way I can set a "Working folder" in SQL Plus??
Thanks!
TomYou can create an environment variable called "SQLPATH" which is a list of directories that SQL*Plus will search for your .SQL
scripts.
I would like to use another directory than the oracle/bin...
How can I do this ??
Hello,
U can do this by this way:
Save odm_script.sql file to the default Oracle
directory i.e. Oracle-Home/bin and Run following command
through SQL Plus.
SQL>@Script_Name
I hope this will resolve ur problem.
Regards,
Omer Saeed Khan.
Maybe you are looking for
-
EC-CS Cons Chart of Accounts & Financial Statment Version
Hi Experts, I need your valid input on this issue. We have 6 company codes and wanted to have a consolidation P&L and BS. I have implemented EC-CS and have done all the all necessary configuration and the data is flowing to EC-CS without any problems
-
FileNotFoundException Uploading image to database
Hello I'm trying to upload image to databases, in my server it works perfectly but when i run the application in the hosting appear FileNotFoundException. This is the part of html file than call to servlet. <FORM ACTION="http://hosting/servlet/lordcy
-
Render and Replace doesn't open Soundbooth
Mac / PP CS4 (production premium) Hi, I have a clip in the timeline and I'm right-clicking, choosing Edit in Adobe Soundbooth > Render and Replace but nothing happens.... Soundbooth doesn't open (at all) with the clip to edit. Any suggestion appreci
-
Unable to resolve location alias (1023066 error) during of BR execution
Hi, I'm using 11.1.1.3 planning classic application. Application has been migrated from EPMA 9.3.1. I try to use @XREF function to get data between plans of this application. BR has been validated successful. But I get "Unable to resolve location ali
-
Since upgrading to version 11 my itunes keeps duplicating ablums that I have had in my library for years. I do not have match and these are not downloaded tracks. I have spent hours deleting these duplicate tracks only to find more popping up every