Include PHP and/or JAVA code in any BC site.
I am thinking about including some PHP and/or JAVA code into my BC site and I was wondering if I am allowed to do this. Just Curious. Thanks.
That's a shame, because I was thinking about implementing a business search api for my real estate website that was created using business catalyst that allows the collection of all real estate agents in Australia by searching and collecting their information from the Yellow Pages and White Pages directories, and include these information in a database that allows users to search for the real estate agent they want and comment on that agent. This can only be done by integrating some PHP or JAVA code into my BC website.
So that means that the only way that I can do this is to create a web app that allows users to search for the real estate agent they want to see and comment on that agent, just by entering real estate agents' information into the web app's database and using various BC modules and plugins. Are there other easier ways to do this? Thanks.
Similar Messages
-
Business connector and BAPI ,java code
Guy's
we are having development project based on <b>Business
connector and bapi</b> for sales order creation,we are
going for function module /TECCOM/SALESORDER_SIMULATE
for Availability request ,i am not aware of using business
connector and bapi before,they are going for some java code,now i have to create java code and use this particualr BAPI,pls if somebody already worked on such issue,then help me with some material which will guide
me and help me in finishing this task easily,
<b>mail me at [email protected]</b>This is a very usefull link:
http://www.henrikfrank.dk/abapexamples/Java/ -
SQL Fails when a division is included in query (in Java Code)
Not sure this is the correct Forum to as this:
Running Oracle 10g R2 on XP/Vista
I have a query that contains a division operation (y.value as x.value/z.value) runs in SQLPlus and The NetBeans 6.5.1 Query Editor OK but when I insert it into Java (1.6) code (abc.java) it fails.
I tried to escape the "\" operator <whatever> (\/) and that dows not work either.
Can someone help me with this
Thanks
J.Thanks ... You got me on that one... should havr provided the query upfront..
However, I thought it was more likely that there was something one always has to do to get "functions" to run inside a query inside Java code
Here's the query plus some code
Pls note the: round(((x.VALUE/226672)*100),2) as Percentage
r_dayEBOMDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{Page1.r_dayEBOMRowSet}"));
r_dayEBOMRowSet.setDataSourceName("java:comp/env/jdbc/ABC_Oracle");
r_dayEBOMRowSet.setCommand("WITH vals AS (SELECT date_day, value, site_datatype_id FROM r_day WHERE site_datatype_id = '1234' AND date_day > date_day - 367) SELECT x.date_day,x.VALUE,y.date_day,y.VALUE AS valuem1w,z.date_day,z.VALUE AS valuem1y,round(((x.VALUE/226672)*100),2) as Percentage FROM vals x, vals y, vals z WHERE y.date_day(+) = x.date_day - 7 AND z.date_day(+) = ADD_MONTHS (x.date_day,-12) AND y.site_datatype_id(+) = x.site_datatype_id AND z.site_datatype_id(+) = x.site_datatype_id AND x.date_day = TO_DATE('16-Feb-2010','DD-MON-YYYY')");
r_dayEBOMRowSet.setTableName("R_DAY");
Again, this works fine inside of SqlPlus and NetBeans Query Editor
not in Java code thought.
Thanks
J. -
If any one has java code for any video compression algorithm
i need a complete java code for video compression step by step
i need a complete java code for video compression step by step
-
To find the error in java code if any
i was learnig java.net package and this is the code i wrote to read the contents directly from a given url using openStream() method of URL class and got the message 'error' from
java.io.IOException which i had given in the catch block. please tell me what is happening & how
could i read the content from an url with url class method.
import java.io.*;
import java.net.*;
public class url
public static void main(String[] args)
throws java.io.IOException,java.java.MalformedURLException
try{
URL yahoo = new URL("http://www.yahoo.com");
BufferedReader read_io = new BufferedReader(new InputStreamReader(yahoo.openStream()));
String line;
while((line =read_io.readLine())!= null)
System.out.println(line);
line.close();}
catch(MalformedURLException e)
System.out.println("error");
catch(IOException e)
System.out.println("error"):
after execution at the terminal
bash-3.00#javac url.java
bash-3.00#java url
errorPlease use [code] tags when posting code.
Are you sure String has a close method? I'm not sure your code compiles.
Exceptions have a getMessage method, which can be useful (and a printStackTrace method that can be even more useful.) -
Calling a javascript function from java code and getting tha value in Java
Hi,
I would like to call a Java script function confirmRemove() from Java code upon meeting a condition..
for example the code snippet is:
if(true){
// I want to call js confirmRemove() over here. And get the value of variable "answer" in this if block.
<html>
<head>
<script type="text/javascript">
function confirmRemove() {
var answer = confirm("Are you sure you want to Delete?")
</script>
</head>
<body>
<form>...Hi,
Back in 2003 I have used an Applet which contain java code and this java code was calling the java scripts ( different methods, DHTML etc..)
There was a component developed by NetScape called JSObject I am not sure it there is other third party component other then the JSObject
look at this article which shows how (based on JSObject)
[http://java.sun.com/products/plugin/1.3/docs/jsobject.html|http://java.sun.com/products/plugin/1.3/docs/jsobject.html]
Regards,
Alan Meio
London,UK -
[SOLVED] Apache + PHP + XDEBUG profiler refuses to write any files
I'm trying to track down some performance problems and the xdebug profiler seems like the tool to use. Unfortunately no matter what I try xdebug simply will not write an output file.
I've searched these forums, and stackoverflow, and tried all suggestions. Nothing helps. No errors in log file.
I've made a directory, /tmp/xdebug, owned by user http and with proper permissions.
I've configured PHP with xdebug profiling enabled. When I browse phpinfo via the web server, I see these settings for xdebug:
xdebug.profiler_aggregate Off Off
xdebug.profiler_append Off Off
xdebug.profiler_enable On On
xdebug.profiler_enable_trigger Off Off
xdebug.profiler_output_dir /tmp/xdebug /tmp/xdebug
xdebug.profiler_output_name xdebug_profile.out.%t-%R xdebug_profile.out.%t-%R
Other features of xdebug work fine. For example, using emacs and geben I can place breakpoints, step through code, etc...
When I run php from the command line, I get the profile files written as expected. For example:
dave@apollo ~ % sudo -u http php -r "echo 1;"
1%
dave@apollo ~ % ls -lthr /tmp/xdebug
total 4.0K
-rw-r--r-- 1 http http 146 Nov 25 17:49 xdebug_profile.out.1385430597-
That shows that user http can write to the directory. And shows that PHP is configured to dump the files. However no matter how I request a page from apache, nothing is written. I'm completely at a loss. Any help is appreciated.
Last edited by Dave Cohen (2014-02-23 18:20:10)Hello.
Just encountered the same problem. After long research it turned out that here in Arch https is launched with PrivateTmp=True. This means that when such process (including any its child, and including PHP and its library XDebug) tries to open "/tmp/*", it gets redirected to "/tmp/systemd-private-??????/tmp/*", also "/var/tmp/*" redirects to "/var/tmp/systemd-private-??????/tmp/*". So any directory you create in /tmp/ will not be used.
So the solution to this problem will be to use some path outside of /tmp, e.g. /srv/xdebug, or /var/log/xdebug, or anything. Make sure to create that directory and make it writeable for http user.
Also check your php.ini and ensure that you either have open_basedir disabled or that it includes your profiler_output_dir.
Last edited by MarSoft (2014-02-23 15:36:15) -
Setting permission using java code
hi all i am writing a code to upload file from the users to the server. i can write the files to the server but after that i cannot change it's permission to read and execute by all. only the server can read and execute it. i talked about this problem with the systems admin and he suggested i include some sort of java code to set the permission to everyone. can any one suggest me what sort of code is helpful in this regard? i am absolutely helpless about this. any help will be appreciated.
Depends on what you mean. If you want to programatically include/exclude a folder in a, say, File Open dialog that your program displays, then yes, absolutely. If you're asking whether can set an operating system security flag on a folder, then the answer is probably not (at least not without resorting to native code), and it will almost certainly not be portable across different operating systems.
-
Exp/Imp Java Code from 8.1.5 to 8.1.6/7
We ran a dump (exp) on an 8.1.5. This dump throws an error while imported in the 8.1.6 and the JAVA code is apparently not imported into the 8.1.6. We tried the 8.1.7 as well, similar result. Any incompatibilities between 8.1.5 exp's and 8.1.6 imp's?
The document Oracle8i Release 2 New Features Summary - November, 1999 states:
"Release 2 includes the Oracle XML Parser for Java, where the Java XML parser classes (DOM/SAX APIs) are pre-loaded into Oracle JServer."
Is this not true for early versions of
8.1.6 ?
Answer please
Franz -
Tips on how to write efficient java code for java mapping
hi
I do not have much knowledge in Java
Can anybody tell me some tips on how to write efficient and optimised java code to be used in java mapping
Thanks,
Loveenahi D'za,
JAVA in xi
A very important place where you will use JAVA in XI is while doing your Mapping. There will be cases when JAVA MAPPING is the best solution to go for. There are 2 types of Parsers available for JAVA Mapping. DOM Parser and SAX parser. Just got through the following links to understand more on Java Mapping and the APIs available.http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/package-summary.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii
JAVA mapping -
/people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-ii /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-iii /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping /people/amol.joshi2/blog/2006/03/10/think-objects-when-creating-java-mappings /people/sameer.shadab/blog/2005/09/29/testing-abap-mapping
sample code for java mapping
Re: Example code DOM PARSER API -
http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html DOM --- /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs tutorial sax and dom
For a tutorial on the methods of SAX and DOM http://java.sun.com/webservices/docs/1.1/tutorial/doc/
SAX AND dom PARSER ( BY thorsten) -
example /people/thorsten.nordholmsbirk/blog/2006/08/10/using-jaxp-to-both-parse-and-emit-xml-in-xi-java-mapping-programs java mapping example ( testing and debugging) /people/stefan.grube/blog/2006/10/23/testing-and-debugging-java-mapping-in-developer-studio
regards
biplab
Use a Good Subject Line, One Question Per Posting - Award Points -
How Can I execute a java program using java code?
{color:#000000}Hello,
i am in great trouble someone please help me. i want to execute java program through java code i have compiled the java class using Compiler API now i want to execute this Class file through java code please help me, thanks in advance
{color}Thanks Manko.
i think my question was not clear enough.. actually i want to run this class using some java code . like any IDE would do i am making a text editor for java, as my term project i have been able to complie the code usign compiler api and it genertaes the class file but now i want to run this class file "THROUGH JAVA CODE" instead of using Java command. I want to achive it programatically. do you have any idea about it.. thanks in advance -
Executing system commands like cd on Linux from Java Code
Hi,
I need to execute a few system commands (like cd, ls, tar, etc.,) on RedHat Linux 7.1 from Java code. Any ideas plz.
best wishes,
IssacSince this thread mentioned using the DOS START command
from an exec(), I was wondering whether anyone else is
seeing the odd behavior I am.
Most of the examples showing how to read stdout and stderr
while the process is running show simple loops that use
getInputStream and getErrorStream and do read's until they
get back -1. Most of these examples are insensitive to the
state of the Process.waitFor that happens elsewhere and sort
of rely on the -1 and the waitFor happening roughly together.
Whenever I use this technique to launch an arbitrary DOS
command (e.g. Runtime.exec("dir")), it works fine, and
everything seems to terminate as expected.
However, when my command is something like:
Runtime.exec("cmd /c start my.bat")
where I deliberately use the START command to fork off
a different process, something odd happens.
Those simple read loops get an initial burst of stdout/stderr
bytes from the "start" part of the command. But then eventually,
these loops do a "read" which blocks on those InputStreams. Now,
even if my Process.waitFor returns (because the start returned
immediately), those read loops stay blocked **until that script
started by 'start' runs to completion**. It is like the child
of the child is holding those streams open somehow.
I found that by doing something like an InputStream.available() or
a BufferedReader.ready( ) check before dropping into the read,
and allowing the Process.waitFor completion to exit those read loops,
them I get what I expect -- namely immediate return from the START,
but apparently complete copies of stdout and stderr.
Curiously, in the case where the reads block until the child process
started by START terminates, they still don't get the child's/child's
stdout and stderr. It is just a long duration thread block that
yields no data.
Can anyone explain what is happening to a
Process.getInputStream( ).read()
when the process immediately does a START and returns? Why would
the read( ) stay blocked when the START finished launching a new child
process?
... ron cain -
Running the .class file from java code
I'm doing a kind of providing service like compiling and running Java code on server side and giving output to the end user.
Please suggest me an approach with code to run .class file from the Java code.
import java.io.*;
public class demo {
public static void main(String args[]) throws IOException, InterruptedException {
int result;
try {
System.out.println("command output:");
Process proc = Runtime.getRuntime().exec("java -cp . demoh");
InputStream in = proc.getInputStream();
result = proc.waitFor();
BufferedInputStream buffer = new BufferedInputStream(proc.getInputStream());
BufferedReader commandOutput = new BufferedReader(new InputStreamReader(buffer));
String line = null;
System.out.print(commandOutput);
try {
while ((line = commandOutput.readLine()) != null) {
System.out.print(line);
System.out.println("command output: " + line);
}//end while
commandOutput.close();
} catch (IOException e) {
//log and/or handle it
}//end catc
} catch (IOException e) {
System.err.println("IOException raised: " + e.getMessage());
}What happened when you tried what you have there?
-
How to set schedule task in windows using java code
Hi,
i want to set the schedule task in windows os using the java code can any one help me on that
can any one thinks i need to wright a dll file for that which set the schedule task for me which dll i can use in my java code.
thanks in advance.Maybe this will help you?
-
OIM should send spmlv2 requests via java code to service provider
Hi,
We have the situation in which OIM acts as Requesting authority,Spml provider acts as service provider.
Oim should send spml requests from custom java code.Spml2Client is used.We are not using genericc technology connector.
Require sample java code for Search operation.
I had done for modify request.
The request and response is as follows
PSO ID returned after searching: org.openspml.v2.msg.spml.PSOIdentifier@5c32a864
<deleteRequest xmlns='urn:oasis:names:tc:SPML:2:0' recursive='false'/>
<deleteResponse xmlns='urn:oasis:names:tc:SPML:2:0' status='success'/>
<modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
<psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
<modification modificationMode='replace'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
<dsml:value>999999</dsml:value>
</dsml:modification>
</data>
</modification>
<modification modificationMode='delete'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
</dsml:modification>
</data>
</modification>
<modification modificationMode='add'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
<dsml:value>Barbara</dsml:value>
</dsml:modification>
</data>
</modification>
</modifyRequest>
SpmlClient: sending to http://10.101.151.209/ARServerSPML/SPMLProvider.asmx
<modifyRequest xmlns='urn:oasis:names:tc:SPML:2:0' returnData='identifier'>
<psoID ID='cn=TPS User8,ou=TPS,dc=fosterstechodc,dc=com'/>
<modification modificationMode='replace'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='otherHomePhone' operation='replace'>
<dsml:value>999999</dsml:value>
</dsml:modification>
</data>
</modification>
<modification modificationMode='delete'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='description' operation='delete'>
</dsml:modification>
</data>
</modification>
<modification modificationMode='add'>
<data>
<dsml:modification xmlns:dsml='urn:oasis:names:tc:DSML:2:0:core' name='firstname' operation='add'>
<dsml:value>Barbara</dsml:value>
</dsml:modification>
</data>
</modification>
</modifyRequest>
SpmlClient: received
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one <modification> element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><modifyResponse status="failure" xmlns="urn:oasis:names:tc:SPML:2:0"><error>malformedRequest</error><errorMessage>At least one <modification> element must be specified.</errorMessage></modifyResponse></soap:Body></soap:Envelope>
org.openspml.v2.util.Spml2ExceptionWithResponse: At least one <modification
The response says the modifaction tag is not present.
The code for this request is
Modification[] modifications =
{ newModWithDSMLMod("otherHomePhone", "999999", ModificationMode.REPLACE),
newModWithDSMLMod("description", null, ModificationMode.DELETE),
newModWithDSMLMod("cn", "Barbara", ModificationMode.REPLACE)};
modifyResp = customSPMLClient.modifyUser(client,searchPSOId,modifications);
method:
public ModifyResponse modifyUser(Spml2Client client,PSOIdentifier psoId,Modification[] modifications) throws Exception {
client.setTrace(true);
ReflectiveXMLMarshaller marshaller = new ReflectiveXMLMarshaller();
ModifyRequest modReq = new ModifyRequest(null, // String requestId,
null, // ExecutionMode executionMode,
psoId, // PSOIdentifier psoID
modifications, // Modification[] modifications
ReturnData.IDENTIFIER // ReturnData returnData
System.out.println(modReq.toXML(marshaller));
ModifyResponse modResp = (ModifyResponse) client.send(modReq);
System.out.println(modResp.toXML(marshaller));
return modResp;
private static Modification newModWithDSMLMod(String modName, String modValue, ModificationMode modMode)
throws DSMLProfileException
/*DSMLModification dsmlMod = null;
dsmlMod = new DSMLModification(modName, modValue, modMode);
Extensible data = new Extensible();
data.addOpenContentElement(dsmlMod);
Selection component = null;
return new Modification(component, data, null, modMode);
Please help me out.
I need sample java code for search operation tooo.
regards,
Sindhu.Mthe sample JAVA codes are provided for sending SPML requests, HTTPClient and one more (i dont remember rite now) within the OIM installation folders itself. It's in the 'SampleHttpClient' folder. Check it once. WSDL, sample XML's and the JAVA codes all are there. You just need to set the classpath and run it.
- oidm.
Maybe you are looking for
-
Post Author: lala CA Forum: General Hi, I am creating a report and want to view it in Print Preview but I am getting the following error: "Group #1:?-O This group section cannot be printed because its condition field is nonexistent or invalid. Format
-
Selective Polling in the Sender File Adapter
Hi, I have the following requirement 1) File X is placed in the directory which is the source file for the sender adapter to poll 2) File X is appended regulary with data until it is polled. During this appending the sender adapter should not poll th
-
Error-LOAD_COMMON_PART
Hi I am using ldb_info to display all the tables in a logical database. i run into the exception above. copied is the log. When i test the function in se37, it works fine, when i use it in the program only for one particular logical database it throw
-
ADOBE ACROBAT PRO. WILL NOT OPEN. DEACTIVATED - NOW WHAT? HAVE WINDOWS 8.1
-
Getting video into Premiere Pro 6
Why doesn't video from my jump drive load into Premiere Pro 6 on my computer?