Accessing a JSTL variable in a JSP Scriptlet (need to replace string )
I have
<c:set var="myVar" value="..." />
I need to replace single quotes and double quotes to be escaped because I pass them into javascript functions and set them as ID for div sections
... onclick ="func('${myVar}')" ..
<div id="${myVar}">
but if the string contains ' single quotes it messes up the javascript or double quotes messes up the ID portion of the HTML tag
I know there is the JSTL function fn but I can't figure out how to do it properly in JSTL
<c:set var="myVar"
value="${fn:replace(myVar, "'", "\"")"/>
But that gets tricky since the value portion is enclosed in quotes
So I was thinking of using a Scriptlet part instead.
escaping quotes within quotes within quotes.... ARGH!
Recipe for a headache if ever there was one.
However you must be strong and resist the temptations of the dark side (Scriptlet code)
My suggestion for cleaning this up - write your own static function for escaping javascript strings.
public static String escapeJavascriptString(String s){
return .......
}Then define the function in a tld:
<function>
<description>
Escapes a string for javascript purposes
</description>
<name>escapeJavascript</name>
<function-class>com.mypackage.ELFunctions</function-class>
<function-signature>java.lang.String escapeJavascript(java.lang.String)</function-signature>
<example>
<c:out value="${myfunc:escapeJavascript(name)}">
</example>
</function>Cheers,
evnafets
escaping quotes within quotes within quotes.... ARGH!
Recipe for a headache if ever there was one.
However you must be strong and resist the temptations of the dark side (Scriptlet code)
My suggestion for cleaning this up - write your own static function for escaping javascript strings.
public static String escapeJavascriptString(String s){
return .......
}Then define the function in a tld:
<function>
<description>
Escapes a string for javascript purposes
</description>
<name>escapeJavascript</name>
<function-class>com.mypackage.ELFunctions</function-class>
<function-signature>java.lang.String escapeJavascript(java.lang.String)</function-signature>
<example>
<c:out value="${myfunc:escapeJavascript(name)}">
</example>
</function>Cheers,
evnafets
Similar Messages
-
How to use jstl variable in a jsp page
Hi all,
I am new to JSTL and i want to access the value of jstl in jsp.
when i use the tag like below it is displaying the value ""
<c:out value="${ack}"/>
But as ack is string, i want to convert it into int. and i have written like
<c:set var="ackvalue" value="${ack}"/>
and int ack = Integer.parseInt(ackvalue);
But it is showing error like varialbe can not be resolved: ackvalue
can anybody please help me regarding this?
Waiting for your warm response.
Thanks in advanceHi,
Thanks for your immediate reply.
I am able to display the ackvalue when i am using
<c:set var="ackvalue" value="${ack}"/>
and <c:out value="${ackvalue}"/>
But my actual requirement is to use the ack value in
switch statement. if i can assign the value to a
String variable, then it si easy for me to proceed.
Please help me in this regard.
Thanks,You can use the c:choose, c:when and c:otherwise tags
<c:choose>
<c:when test = "${ackvalue == 1}">
//do stuff
</c:when>
<c:when test = "${ackvalue == 2}">
//do some other stuff
</c:when>
<c:otherwise>
//stuff
</c:otherwise>
</c:choose>ram. -
How to reach Struts variables in a JSP scriptlet?
hello!
First I would like to clarify, I know writing scriptlet code (eg database connect) in a JSP page is basicly wrong, but I have to make a project that way, because my Java teacher asked so.
My problem is the following: I have a struts-config.xml:
<?xml version="1.0" encoding="windows-1250" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="form-bean0" type="neptun.UserFormBean"/>
</form-beans>
<action-mappings>
<action path="/loginAction" input="/login.jsp" type="neptun.LoginAction"
name="form-bean0">
<forward name="success" path="/loggedIn.jsp"/>
</action>
</action-mappings>
<message-resources parameter="neptun.ApplicationResources"/>
</struts-config>It creates a form-bean0 object, using my UserFormBean class.
This class has two variables: login and password. Of course it has the accessors
When the user tries to log in, the variables are set through struts-html tags:
<html:text property="login" size="6"/>After the neccessary action called, and the user could be verified, it forwards to a page called loggedIn.jsp
Now my problem is that I would like to reach the login variable, containing the username of the user. When I insert ${param.login} to the jsp code, it works. But I would like to have a variable in my scriptlet code, which contains the user name. param object are not accessible, and session object contains only a reference to form-bean0. I think I dont have to write use-bean tag, because struts framework automatically does this.
Thank you for your help!
BalazsI may have used the term incorrectly. Basically I meant using the <jsp:include> tag to invoke a servlet directly. Then the servlet could send the output you need. That way you could keep things more modular.
So for example -- you say you have a servlet with these values. Maybe you could add some functionality to it so if it's invoked with a particular URL, it produces output displaying these values.
Then you could use <jsp:include> to invoke that new functionality via that URL.
Just an idea. -
Using JSTL variables in JSP or Javascript. Possible ?
Hi All,
Is it possible to share or use the variables which are declared are used by JSTL in JSP expression or scriplet code and in Java Script.
Example:
This Works:
<fmt:set var="test" value="JSTL" />
<fmt:out value="${test}" />
But, this gives error:
<% out.println(test) %>
And passing the value of variable 'test' to Java Script code also gives error.
How to use JSTL variables in JSP and in Javascript ?
Yours,
Sankar.BBy default, JSTL variables are kept in servlet
attributes. Default is to store it in the page
context. You can make it request/session/application
scope as required by an attribute of the set tag.Hi there,
Can anyone advise how to access JSP variables in JSTL?
Can it be done as the same method through request/session/application scope?
Thnks... -
Accessing variable from another JSP
Friends,
say, I have a Test1.jsp which has a variable "input". Is it possible to access this variable from other jsp "Test2.jsp"?
any ideas?
Thanks
Hari Vhi hari,
there are essentially 3 ways of doing it....
1).Usage of Hidden Values
2).Using Cookies
3).Storing attribute value within the scope of request/session/appln
The choice is all urs....???
Regards,
RAHUL -
Passing variables between data tag and JSP-scriptlets
Hi,
There were some questions about this issue. However, the answers were not satisfactory.
I would like to assign the value returned from data tag to a variable in JSP-scriptlets as follows:
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<br>
<jbo:ApplicationModule id="isae.OPKv1.OPKv1Module" configname="isae.OPKv1.OPKv1Module.OPKv1ModuleLocal" username="t1" password="t1"/>
<br>
<!-- a record is selected -->
<jbo:DataSource id="ds" appid="isae.OPKv1.OPKv1Module" viewobject="AePk100View" whereclause=" <%= ic %> " />
<br>
<jbo:Row id="privRow" action="CURRENT" datasource="ds">
<%
String privName = (String) privRow.getAttribute("ArBau325"); // this is the suggestion of William Dwight (Jan 21, 2001 this forum)
%>
</jbo:Row>
This code did not work. I have obtained an error :
java.lang.ClassCastExeption
Any help would be greatly appreciated.
ThanksThe value return by the getAtribute might not be of type String. If you want to return a String value you need to convert the value using the toString method as follow:
<jbo:Row id="privRow" action="CURRENT" datasource="ds"/>
<%
String privName = "";
Object obj = privRow.getAttribute("ArBau325");
if (obj != null)
privName = obj.toString();
%>
Also note that you do not need to put the scriplet code inside the body of the row tag.
Charles. -
How to access the hidden variable in jsp
hi all,
i need help to know how to access the hidden variable in the same jsp.
Following is the code snippet just have a look at that.
ArrayList arrRankingSummary = (java.util.ArrayList)session.getAttribute("arrRankingSummary");
<logic:iterate id="rankingSummary" name="arrRankingSummary">
<input type="hidden" name="allApplicantID" value='<bean:write name="rankingSummary" property="APPLICANTID"/>' />
<input type="hidden" name="allAdmissionRank" value='<bean:write name="rankingSummary" property="ADMISSIONRANK"/>' />
</logic:iterate>
<input type="hidden" name="applicantID" value='<bean:write name="rankingSummary" property="APPLICANTID"/>' />
<TD align=center><Input type=Text name="admissionRank" class=Textverysmall size=2 value='<bean:write name="rankingSummary" property="ADMISSIONRANK"/>' maxlength="10" /> </TD>
I want to remove the element from arraylist on these condition
if(allApplicantID.value ==applicantID.value){
arrRankingSummary .remove("admissionRank");
Now the pbm is i m not getting how to access the hidden variable in jsp or how to use the values of hidden variable for the condition.
Pls help me out.
Thanks in adv.
Regards,
Rituhi ram,
as i mentioned i m creating hidden variables & i m doing some validation on form submit.
The following is js code snippet for validation.
for (var i = 0; i < document.forms[0].admissionRank.length; i++)
admissionRank = document.forms[0].admissionRank.value;
for(var j = 0; j < document.forms[0].allAdmissionRank.length; j++)
//alert ("admissionRank : " + admissionRank + " document.forms[0].allAdmissionRank[" + j + "].value : " + document.forms[0].allAdmissionRank[j].value + "\ndocument.forms[0].allApplicantID[" + j + "].value : " + document.forms[0].allApplicantID[j].value + " document.forms[0].applicantID[" + i + "].value : " + document.forms[0].applicantID[i].value);
if(admissionRank == document.forms[0].allAdmissionRank[j].value && document.forms[0].allApplicantID[j].value != document.forms[0].applicantID[i].value && admissionRank != "" && document.forms[0].allAdmissionRank[j].value != "")
flag = false;
document.forms[0].admissionRank[i].focus();
document.forms[0].admissionRank[i].select();
break;
if (flag == false)
break;
In this validation i want admissionRank to be removed from the original arraylist if following condition gets satisfied
"(document.forms[0].allApplicantID[j].value == document.forms[0].applicantID[i].value )"
Thanks in adv
Ritu -
How to access a javascript variable from Java?
Here is my code:
function validateLoginForm() {
var username = document.getElementById('un');
setCookie('un', username, 3650);
//etc.
<%
HttpSession httpSession = request.getSession();
httpSession.setMaxInactiveInterval(30 * 60); //30 minutes
httpSession.setAttribute("un", username); //!prob here - cannot resolve 'username'
%>
}...but how do I access the javascript variable 'username' from the Java code?
Thanks,
JamesThe only way to pass values between JavaScript and JSP is through cookies. It sucks, I know, but right now that is the only option.
You already are creating a cookie in JavaScript. So go ahead and read it in Java:
Cookie[] cookies = request.getCookies();
for(int i = 0; i < cookies.length; i++) {
Cookie c = cookies;
if (c.getName().equals("un")) {
// Do what you need here. -
How to pass applet variable to a jsp
I just want to pass applet variable to a jsp page to access database. But how .
Help me please.you can use showDocument() to show a page which could have values in the query string.
you can use URLConnection to do GET or POST requests to a page. -
<jsp:scriptlet>
String l_string = "{0,number,000.00 $}";
</jsp:scriptlet>
I am getting the following error if I have the above code in a JSP; Looks like its a tag library issue.
-->String literal is not properly closed by a double-quotein addition I am using MyEclipse 5.0 editor, and its producing this compilation error with using following libraries,
10/31/2006 12:31 PM 188,671 commons-beanutils-1.7.0.jar
10/31/2006 12:31 PM 559,366 commons-collections-3.1.jar
10/31/2006 12:31 PM 207,723 commons-lang-2.1.jar
10/31/2006 12:31 PM 38,015 commons-logging-1.0.4.jar
10/31/2006 12:31 PM 210,432 displaytag-1.1.jar
10/31/2006 12:31 PM 12,590 displaytag-export-poi-1.1.jar
10/31/2006 12:31 PM 1,145,105 itext-1.3.jar
10/31/2006 12:31 PM 20,682 jstl-1.1.2.jar
10/31/2006 12:31 PM 358,085 log4j-1.2.12.jar
10/31/2006 12:31 PM 802,216 poi-2.5.1.jar
10/31/2006 12:31 PM 508,651 standard-1.0.6.jar -
Hi everybody
I wrote a class with following constructor method :
public Calculator(int pathCode, int year) throws InstantiationException, IllegalAccessException,
ClassNotFoundException,
SQLException, Throwable {
trans.connect();
double[][] rep= Report (pathCode,year);
trans.disconnect();
"how can i use from "rep" variable in my jsp page??In this example rep is a method variable, not a class variable. So you cannot access it outside the constructor. Make it a class variable and generate an accessor method for it.
Ronald -
How do I access the DCJMS* variables in my response SOAP:Header ?
Hi all,
I have set up a sync / async Integration Process in XI
This is initiated by a SAP R/3 transaction that calls a synchronous function to enter XI
Once in the Bridge, a JMS receiver adapter sends out an asynchronous request message from XI to MQ
A correlation allows the JMS sender adapter to return an asynchronous response message from MQ to XI back into my the Integration Process
I have set up the JMS sender adapter configuration to return the DC (dynamic configuration) variables in the <SOAP:Header> of the XI response message along with the payload
You can see that the DCJMS* variables are returned below
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--
Response
-->
- <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SAP="http://sap.com/xi/XI/Message/30">
- <SOAP:Header>
+ <SAP:Main xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" versionMajor="003" versionMinor="000" SOAP:mustUnderstand="1" wsu:Id="wsuid-main-92ABE13F5C59AB7FE10000000A1551F7">
+ <SAP:ReliableMessaging xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
+ <SAP:HopList xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
+ <SAP:RunTime xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
+ <SAP:PerformanceHeader xmlns:SAP="http://sap.com/xi/XI/Message/30">
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSCorreleationID">40D982A0-B19D-11DB-9508-0002A5D5916B</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSTimestamp">1170297456940</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSMessageID">ID:414d5120514d4430312020202020202045c12b962001dd02</SAP:Record>
</SAP:DynamicConfiguration>
- <SAP:Diagnostic xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:TraceLevel>Information
<b>Question</b>
I want to access the DCJMS* variables but am not sure how to go about it as the
variables exist in the <SOAP:Header>?
I followed the SAP documentation to access adapter-specific attributes (refer to link http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm )
I have used the following code to create a user-defined function for the accessing adapter specific attributes (similar to the link)
public String Get_Msgid(Container container){
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create
("http://sap.com/xi/XI/System/JMS","DCJMSMessageID");
String jmsMsgID = conf.get(key);
return jmsMsgID;
<b>Question</b>
Do I use message mapping to extract the DCJMS* variables?
<b>Question</b>
If so then which message is used for the source message so that I can access the <SOAP:Header>? Eg do I use the response message type or is there a trick to accessing the SOAP:Header?
<b>Question</b>
Do I use the user-defined function (like above)?
I performed the following steps
Opened the message mapping in edit mode
Created the user-defined function using the graphical editor
Saved the message mapping
I have not connected the user-defined function to any of the xml tags in either the source or target messages
When I go to test the message mapping I am getting the following error
Compilation process error : CreateProcess: null\bin\javac -J-Xmx256m @E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd79a7bf0b65611dbaf390002a5d5916b/O1170817003886.txt @E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd79a7bf0b65611dbaf390002a5d5916b/S1170817003886.txt error=2
STACKTRACE:
com.sap.aii.ib.core.mapping.exec.ExecuteException: Compilation process error : CreateProcess: null\bin\javac -J-Xmx256m @E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd79a7bf0b65611dbaf390002a5d5916b/O1170817003886.txt @E:/usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapd79a7bf0b65611dbaf390002a5d5916b/S1170817003886.txt error=2
at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compileSourceCode(ServiceUtil.java:207)
at com.sap.aii.ib.server.mapping.exec.ServiceUtil.compile(ServiceUtil.java:156)
at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCode(ServerMapService.java:361)
at com.sap.aii.ibrep.server.mapping.ServerMapService.compileSourceCodeWithoutAndWithArchives(ServerMapService.java:301)
at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:153)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
A thread in the SDN (Error while Activating Message Mapping, Posted: Jan 9, 2007 3:32 PM) suggests checking the java path on the XI machine
This is JAVA_HOME=C:\j2sdk1.4.2_08 and seems ok
<b>Question</b>
Do you know why I would get the compilation error?
Any assistance would be appreciated
Regards,
MikeJin,
My compilation issue has gone via a SAP recommendation to specify the JDK home directory in the instance profile
Back to the mapping - I can now run my scenario
<b>Source message</b>
The response message has the following <SOAP:Header> from which I want to extract the DCJMSCorreleationID (note that it's misspelt)
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Response
-->
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSCorreleationID">40D982A0-B19D-11DB-9508-0002A5D5916B</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSTimestamp">1170297456940</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/JMS" name="DCJMSMessageID">ID:414d5120514d4430312020202020202045c12b962001dd02</SAP:Record>
</SAP:DynamicConfiguration>
<b>Grahpical mapping</b>
LHS - Response message with occurrance 0..1 so it is not connected to my UDF
UDF Get_Corrid with no inputs
RHS - The UDF output is connected to the Acknowledgement msg tag <ACK>
<b>UDF</b>
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get
(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create
("http://sap.com/xi/XI/System/JMS","DCJMSCorreleationID");
String Corrid = conf.get(key);
return Corrid;
<b>Target message</b>
The idea is to copy the correlation id of the response message into the acknowledgement message. But as you can see the result is NULL
<?xml version="1.0" encoding="utf-8" ?>
- <ns2:AWB0020_MARKET_DATA_RESPONSE_ACK xmlns:ns2="http://awb.com.au/mq/tx/MarketData">
<ACK>null</ACK>
</ns2:AWB0020_MARKET_DATA_RESPONSE_ACK>
Please advise
Thanks Mike -
Looking up a EJB 3.0 Session Bean in JSP Scriptlet
Hello There,
Somebody please enlighten me. I have a bean named
a.b.MyBeanextending local interface
a.b.MyLocalNow I want to use this bean in a JSP (Maybe just for fun, but the point is I am not using resource injection).
So the question is, What is the default JNDI name of the session bean with only a local interface, which I can use to look-it-up in jsp scriptlet code.
Cheers. Am trying for last hour, nothings turned up
ByeIt's the classname under the initial context or a.b.MyLocal in your case.
<% MyLocal intf = null;
try {
InitialContext context = new InitialContext();
intf = (MyLocal) context.lookup(MyLocal.class.getName());
} catch (Exception ex) {
System.err.println("Error looking up MyLocal: " + ex.getMessage());
} %> -
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 -
Accessing a private variable from a public method of the same class
can anyone please tell me how to access a private variable, declared in a private method from a public method of the same class?
here is the code, i'm trying to get the variable int[][][] grids.
public static int[][] generateS(boolean[][] constraints)
private static int[][][] sudokuGrids()
int[][][] grids; // array of arrays!
grids = new int[][][]
{Are you sure that you want to have everything static here? You're possibly throwing away all the object-oriented goodness that java has to offer.
Anyway, it seems to me that you can't get to that variable because it is buried within a method -- think scoping rules. I think that if you want to get at that variable your program design may be under the weather and may benefit from a significant refactoring in an OOP-manner.
If you need more specific help, then ask away, but give us more information please about what you are trying to accomplish here and how you want to do this. Good luck.
Pete
Edited by: petes1234 on Nov 16, 2007 7:51 PM
Maybe you are looking for
-
This image shows what's wrong. iTunes says that I need 1.74 GB more to sync, but the display at the bottom clearly shows that this isn't the case; it's the breakdown of storage on my iPod after a sync. What can I do? iPod touch 4th gen running iOS 5.
-
hi! i have a very urgent problem, we implemented fax server for sending purchase order printout to the vendor. we used userexit vn00001 for receiving the fax number of the agent. we need to get also the country code and change it to the country code
-
FIREFIIGHTER Back Ground Job !
I am on FF 3.0 CC 4.0 On I run the FF Log, I am told that the File is not genereated as the Back Ground Job is not scheduled. Which is th e back ground Job needed to get these reports ? Thanks
-
Fade in and Fade out components from 3d modell onClick self-made buttons
Hi, in Acrobat Pro you can place your own 3D-model into the pdf. Than you can fade in and fade out components of your 3d-model on a acrobat-menü (see images) in the pdf-reader. Now I want to build a pdf with this functionality, but the tricky thing i
-
Storedge C2 autoloader - factory defaults
I have a Storedge C2 autoloader that I do not have the username and password for. Could someone please tell me how to reset back to factory defaults? Thanks in advance.