Accessing another par file jsp pages
Hi
i need to access another par file JSP pages from my par file, what all i need.
any help is appreciated.
Thanks,
Damodhar.
Gandhi,
Well..there is a very good article on how to use resources(watever resources u mentioned) of one par inside any other par file on SDN:
Here is the document:<a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b3c1af90-0201-0010-c0ac-c8d802d264f0">JSPs, Resources...</a>
Xml files i worked were not property files of an iview.
They were application specific xml files.I read these xml files on a different par(or iview).For that matter, they don need not be of type xml,could be any type of resource.
Regards,
P.
Similar Messages
-
How to access another control in a page in another xaml file?
I have a XAML page name GameMainSP.xaml. Can I access a control in that page from a module in the project? I was only trying to change a text block controls Text property. Is this possible?
Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering
- Yoda. Blog - http://www.computerprofessions.co.nrI have a XAML page name GameMainSP.xaml. Can I access a control in that page from a module in the project? I was only trying to change a text block controls Text property. Is this possible?
Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering
- Yoda. Blog - http://www.computerprofessions.co.nr
Nevermind, I managed to figure out what was the problem. I needed to provide a reference to the page.
Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt. Fear leads to anger, anger leads to hate, hate leads to suffering
- Yoda. Blog - http://www.computerprofessions.co.nr -
Message bundles accessed from JSF and JSP pages
Hello, everybody!
I'm developing a localized JSF application. It is working pretty well until now.
These are my message files:
mensagens.properties
mensagens_en_US.propertiesThis is how they're configured in faces-config.xml:
<application>
<resource-bundle>
<base-name>br.urca.www.biblioteca.web.mensagens</base-name>
<var>msg</var>
</resource-bundle>
</application>And this is how I access the messages in a page:
<h:outputText value="#{msg.titulo}" />Nothing new until now. But now there was a need for me to have a raw jsp page in
my web application. This page is displaying ok but I also need to access the
message bundles as I'm able to access in the normal jsp with the JSF components.
As you should know I can't use something like the above code with an +<h:outputText>+
to access the messages because this is a JSF component and I'll not be able to use
JSF components with this raw jsp page.
So, my question is: how do I access my localized messages from a raw jsp page? I
suppose there should be a way to do this, but unfortunately I started programming
to the web world in Java with JSF, not JSP, so I don't know how to do this with
JSP.
Thank you very much.
MarcosBalusC wrote:
Just include [jstl-1.2.jar|https://maven-repository.dev.java.net/repository/jstl/jars/] in your classpath and define the fmt taglib in your JSP. Nothing more is needed.
Hello, BalusC. Thank you for your help. We're almost there. After I have included the jstl-1.2.jar you provided me I can use the fmt tag and access message bundles from my raw jsp page (even though I had to provide other message bundles instead of the ones that I use in the other jsf pages, but it's better than nothing).
Now there just on problem to be fixed. The jsp page is not aware when I change the locale of my application. I change this locale in a jsf page.
I have this component:
<h:selectOneMenu value="#{pesquisaAcervo.idiomaAplicacao}"
valueChangeListener="# {pesquisaAcervo.idiomaAplicacaoMudado}" onchange="submit();">
<f:selectItems value="#{pesquisaAcervo.idiomasAplicacao}" />
</h:selectOneMenu>that calls this event in my backing bean class:
public void idiomaAplicacaoMudado(ValueChangeEvent e)
fIdiomaAplicacao.liberarItens();
Idioma idioma = Idioma.deString(e.getNewValue().toString());
// This line is for JSF
FacesContext.getCurrentInstance().getViewRoot().setLocale(idioma.localidade());
// This line is for Tiles
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().
put(org.apache.tiles.locale.impl.DefaultLocaleResolver.LOCALE_KEY, idioma.localidade());
}So, do I have to include another line in the idiomaAplicacaoMudado event above in order for the jsp page load the correct resource bundle? Or what else do I have to do?
Thank you.
Marcos -
Accessing config object in jsp page
I have been trying to access the config (implicit) object in my jsp page. In my web.xml, for my application, I have specified an init-parameter. To get the value of this parameter, I have the following code being executed
<%
String protocol = config.getInitParameter("protocol");
out.println("Protocol = " +protocol);
%>
The output turns out to be Protocol = null.
If I specify the init-parameter in Tomcat's web.xml in conf directory, then I do get the value. But that does not serve my purpose. I am using jakarta-tomcat-4.0-b7.
Any suggestions!!!!!!!Try this link, http://archives2.real-time.com/rte-tomcat/2000/Apr/msg01124.html
-
Accessing the Par file or java methods in ABAP programming at ECC from EP
Hi experts,
Can we access par file or java methods in ABAP programming (ECC side)which are at Enterprise portal side .If it is possible please
let me know the procedure.Thanks for your help.
Thanks and Regards,
VenkatHi Das,
The mentioned wiki is for uploading the par file ,but my question is diffrent.This file or java method need to be used in ABAP side.
Thanks and Regards,
venkat -
Accessing Translets in a JSP Page
Hi,
I have a Translet[already compiled XSL file] named "pr.class" and I have a XML file named "pr.xml".
I want to transform the pr.xml to a HTML format using pr.class in a JSP page.But I am getting some errors.My code goes like this,
xml file="d:/translets/pr.xml"
class file="d:/translets/pr.class"
<%@ page
import="javax.xml.parsers.*,
org.w3c.dom.*,
javax.xml.transform.*,
javax.xml.transform.stream.*,
java.io.*,
java.io.OutputStreamWriter,
javax.xml.transform.Transformer,
javax.xml.transform.TransformerFactory,
javax.xml.transform.stream.StreamResult,
javax.xml.transform.stream.StreamSource,
javax.xml.transform.Templates;" %>
<% System.setProperty("javax.xml.transform.TransformerFactory","org.apache.xalan.xsltc.trax.TransformerFactoryImpl");
TransformerFactory tFactory = TransformerFactory.newInstance();%>
try {
StreamSource xsl = new StreamSource(new FileInputStream("D:/translets/pr.class"));
StreamSource xml = new StreamSource(new FileInputStream( "D:/translets/pr.xml"));
StreamResult htm = new StreamResult(new FileOutputStream( "D:/birds.htm"));
Transformer transformer =tFactory.newTransformer(xsl);
transformer.transform(xml,htm);}
catch(Exception e){out.println("Compilation problem");}
%>
My catch block is getting executed and giving the output as "Compilation problem".
Give me a solution.Very Urgent!!.You are missing <% before try :-
<%@ page
import="javax.xml.parsers.*,
org.w3c.dom.*,
javax.xml.transform.*,
javax.xml.transform.stream.*,
java.io.*,
java.io.OutputStreamWriter,
javax.xml.transform.Transformer,
javax.xml.transform.TransformerFactory,
javax.xml.transform.stream.StreamResult,
javax.xml.transform.stream.StreamSource,
javax.xml.transform.Templates;" %>
<% System.setProperty("javax.xml.transform.TransformerFactory","org.apache.xalan.xsltc.trax.TransformerFactoryImpl");
TransformerFactory tFactory = TransformerFactory.newInstance();%>
<%
try {
StreamSource xsl = new StreamSource(new FileInputStream("D:/translets/pr.class"));
StreamSource xml = new StreamSource(new FileInputStream( "D:/translets/pr.xml"));
StreamResult htm = new StreamResult(new FileOutputStream( "D:/birds.htm"));
Transformer transformer =tFactory.newTransformer(xsl);
transformer.transform(xml,htm);}
catch(Exception e){out.println("Compilation problem");}
%> -
Problem with access to SipFactory from jsp-pages in JBoss environment
Hello!
I have an installation of the OCMS 10.1.3.3. deployed into a JBoss (jboss-4.0.5.GA) environment. Unfortunately I have a problem with accessing the SipFactory from a jps-page. Encouraged by the "messagesender" example I tried to get an instance of SipFactory from my jsp-page simply by calling:
SipFactory sipFactory = (SipFactory) application.getAttribute(SipServlet.SIP_FACTORY);
But unfortunately there seems to be no attribute "SipServlet.SIP_FACTORY" and I only get a null pointer. I have also tried running that code in the orignal messagesender example but it didn't work either. So I wonder if this should definetely work in a JBoss environment or if this might be a known problem. Is there anything that I could check/do regarding this problem? I suppose there must be an oracle module which should take care of making the SipFactory availabe after it is deployed. Perhaps something went wrong during the deployment?!
Best regards,
TimHi
On JBoss, OCMS does not support converge applications.
I.e the SipFactory can be retrieved from the servlet context when running on OC4J.
Instead the SipFactory can be found in JNDI as described in the Developer's Guide:
"External Access to SIP Servlets
To enable convergent applications between SIP and HTTP, the OCMS Container allows you to get access to the javax.servlet.sip.SipFactory by looking it up through JNDI. The SIP Factory will be registered under the same name as the display name of your SIP servlet as illustrated in Example 2–12. The <display-name> in the sip.xml in this case must be "My sip app".
Example 2–12 Accessing the Data for a SIP Session through JNDI
InitialContext ic = new InitialContext();
SipFactory sipFactory = (SipFactory)ic.lookup("sip/My sip app");"
Cheers
Lucas Persson -
How to access class method in jsp page
hi ,
I am new to JSP . I want to access a method returning an arraylist
of a class.
this class i saved in WEB-INF>classes folder > where other classes like logonform , etc. are saved ....
import stmt is <%@ page import="java.io.*, java.util.*, readXml " %>
<% readXml rd= new readXml();
Arraylist list=rd.parseDoc();
%>
It is not recognizing readXml class......
Can any body help me in this regard......
plz help .... i m in urgent need
thanks in advance.......better to put class in a pkg inside webinf> classes folder ...
but in my case constructor was not public......
public readXml(){}
now it works fine...... :) -
hello
quick question again
i have the main java page that calls and child page . when the child pg is called and loads , a custom sequence from the EOImpl.java gets the next number which is a primary key. if i choose to update a record all the correct data is called but in the background the sequence gets the next number which isnt used. so i might have 11 12 (then i update 12) 14 15 16 (i updated 16 twice) then 19 the wasted number is 13 17 18. trying to get a continuous number
i would like to put this in the EOImpl.java .... if (pageContext.getParameter("save") != null ){ then call the sequence }
its like this right now
public void create(AttributeList attributeList)
super.create(attributeList);
setPbId(getOADBTransaction().getSequenceValue("Sequence_107_S"));
trying to get this
public void create(AttributeList attributeList)
super.create(attributeList);
if (pageContext.getParameter("save") != null )
{ setPbId(getOADBTransaction().getSequenceValue("Sequence_107_S"));
so when i put that bit of code in the EOImpl.java i get the error Error(79,11): variable pageContext not found in class ...
how do i extend the child page to the EOImpl.java (not sure if i used terms) or what seem to be the problem.
thanksYou cant have pagecontext value in the EO create method.
As far as my knowledge goes, such gaps are okay. Most of the times if a user navigates to the create screen, the data would be created. Only very few of those transactions would be lost.
Regards
Sumit -
Accessing PAR files though Portal
Hi All,
I want to access the PAR file through Portal itself. So I go to the foll path
System Administration --> Support --> Portal Runtime --> Browse Deployment --> portalapps.
I am able to find the com.sap.portal.navigation.masthead
But when I try to download this file then it is trying to download com.sap.portal.support.browse.zip and not com.sap.portal.navigation.masthead
My intention is to download the PAR file from Portal itself, do some customizations and then upload the same through Portal. I don't want to use NWDS for this purpose.
Please help
Regards
Nikhil BansalHi everybody,
just some additional remarks:
- download the PAR from /WEB-INF/deployment/temp as described by Daniel in the thread referred
- if you download it by using the "View" button, Praveen is right, you have just to rename the file; if you download it by using the "Download" button, the PAR is inside the ZIP
- if importing the PAR as a project into NWDS, be aware to add the JARs manually into the /lib and the /private/lib directories, respectively; NWDS does not import the JARs automatically, and if you don't import them, deploying the PAR on the portal will lead to massive problem as then the JARs are missing...
Hope it helps
Detlev -
Accessing session attribute in output jsp page
Hi i am not getting any output in jsp page...
i am getting just heading
i think some problem with Session attribute..
if so how to access session been in jsp page
my code is here
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tauvex Search Output</title>
</head>
<body>
Tauvex Search Output
<table>
<c:forEach items="${myDataList}" var="myData">
<tr>
<td>${myData.Fitsfilename}</td>
<td>${myData.RA_START}</td>
<td>${myData.RA_END}</td>
<td>${myData.DEC_START}</td>
<td>${myData.DEC_END}</td>
<td>${myData.telescope}</td>
<td>${myData.STARTOBS}</td>
<td>${myData.ENDOBS}</td>
<td>${myData.FILTER}</td>
</tr>
</c:forEach>
</table>
<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<%--
<c:if test="${param.sayHello}">
<!-- Let's welcome the user ${param.name} -->
Hello ${param.name}!
</c:if>
--%>
</body>
</html>
plz reply soon
thanks a lotthis is what i set in servlet
request.setAttribute("myDataList", myDataList);
request.getRequestDispatcher("someJspFile.jsp").forward(request, response);
how can i access that session attribute in jsp -
I installed Apache 2.0.47, JSDK 2.0, and JServ 1.1.2 and copied all my JSP files in the htdocs directory in the Apacche installed folder. When I accessed one of my JSP page using IE 6.0, the file contents are loading, not the page! what is wrong with me? where I have to copy the .class files?
On replying for this doubt, you are doing a great job. Thank you.You probably have to do something special to tell Apache to forward servlet/JSP requests to JServ.
I've done such a thing with Tomcat. Look at the docs for JServ to see what they expect you to do.
Why JServ? Why not Tomcat? It's free, and there's lots of on-line docs and books to help you get started.
It's obvious that you're just starting with servlets and JSPs, Sunil. Go download Tomcat, get a couple of good books, and start reading and programming. You're not going to get your project off the ground by posting ill-posed questions to these forums every time you run into difficulty. Just some advice. - MOD -
Changing par file link of an iView
Hi All,
I created an iview(MyiView) based on a par file,say SamplePar1
Now I want to use the same iview(MyiView) to link to other par file say SamplePar2.
i.e.,I want the output of second par file to be
shown in the iview(MyiView) instead of first par file.
I saw a property of an iview CodeLink,which is pointing
to the par file.But it is uneditable.How can I change
this property value.so that it points to another par
file.
Any help,
Thanks in Advance
SANTHOSHHi Santosh,
you cannot, at least not via UI. An iView is to be seen as an instance of a component (with a certain parameter set). So if you create an iView, it's somewhat analogous to <i>SamplePar1ComponentAiView MyiView = new SamplePar1ComponentAiView(myParameters)</i>. Now you want MyiView to be of type SamplePar2ComponentBiView. And this shall not be possible.
Maybe you can do it programatically via direct PCD access. But what's the reason for this? Wouldn't it be easier to create a new iView built on a component of SamplePar2?!
If you want at runtime redirect to another component, you can achieve this by redirecting from SamplePar1ComponentA to SamplePar2ComponentB.
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN, as others mentioned already! Thanks in advance! -
Setup mySQL and access the same from jsp
Hi,
I have installed the MySQL in local desktop in d: drive. As per the documentation, have created my.cnf file to point sql directory in d drive.
Now I dont know how to proceed further. I need to see if MySQL installation is fine, create table and access the data in jsp page. Please advice.
Thanks in advance.For MySQL help try a MySQL forum.
For connecting to the database, use JDBC. You can get the MySQL JDBC driver from www.mysql.com.
From there just follow standard java database connection setup.
http://java.sun.com/docs/books/tutorial/jdbc/index.html -
Error While deploy VC Application and Par file
Hi Experts,
The deployment of par or VC application worked fine, but last one week i am getting error while deploying par or VC application.
I am getting pop-up window while deploy VC Application. That pop-up window shows Portal Request Failed. (com/sap/netweaver/bc/uwl/UWLException).
I am getting Error like this, Please Check the user ID and password, while deploying par from NWDS.
I have checked my userid and password, it is correct. I checked with admin userid and password, it shows the same error. it is showing same for my team members userid also.
I have checked logs and traces in server, nothing is logging regarding this deployment error.
Where is the problem, please anybody help me. I am using EP7 SP9.
Thanks and Regards,
Chinnadurai RHi Detlev,
I checked all the permission in the SECURITY ZONES, all the setting are correct in the portal.
I informed to our BASIS Team, they found that problem is, one process always running in SDM. It didnt let to deploy another PAR file. They cann't able to open the SDM after gave the SDM username and password, its shows "still processing". So, how can we kill the process ? They restarted the SDM and also J2EE Engine, its still processing. After that they restarted the Machine also, still the process going on.
How can we rectify the problem ?..
Thanks & Regards
Chinnadurai R
Maybe you are looking for
-
Can the Genius Bar cable my 5S to their computer or separate keyboard to enter my passcode on a broken, non-responsive touchscreen? I need to get past the passcode to either transfer my data and pics to a new 5S or my PC computer (that the 5S has ne
-
Acrobat on Mac crashes on opening preferences
I've been trying to use Acrobat Pro on the Creative cloud on a Mac to put headers and footer on a large document. When I activate that choice, it would bring up a warning screen but never the following screen with the options for the header and foot
-
Can't install Elements 12 due to error in installing "shared technologies."
Is there a definitive solution to installation problem of Elements 12, which toward the end returns an error message of "failure to install shared technologies?" I tried the suggested solutions such such deleted the .PPA files in the "Common Files" f
-
My macbook pro order completely disappeared...?
I ordered my first ever apple product (15in macbook pro) yesterday. I checked my order history this morning and was told that I hadn't ordered anything from apple. I called customer support but the automated robot hung up on me due to an extremely h
-
OSTC Query Not Showing Correct Percent If Component is Changed
Hello gurus and experts...here is an interesting question: Question: Why does a query not report proper Sales Tax Code percentage from OSTC table when a component is updated? Sales Tax Code (STC) of CA-37B, with a rate of 10.25% is made up of three