Java-Application send a param value to a JSP
Hi All
I'd like to ask you if can possible to send a param value from Java-Application to JSP file, If yes please provide me with any example or notes. I know that there are a contribution for a communication with an applet to JSP, but with application i don't know.
Thank you
Check this out...
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets5.html#73895
Similar Messages
-
How to open a report without refreshing and sending some param value
we have a summary report which has links to the detail report.For example the summary report has data like
Countries EmployeeCount
UK 5
US 6
China 7
Total 18
When we click on China it must show the Employees whose country is China (detail report) When we click on Total it shows Employee of all countries UK,US,China...
Now when we run the summary report online say at 5:10 it shows the staus of countries at 5:10.Say the report is open while an employee of china is moved from China to Uk.But when we open the detail report it shows China count as 6 which should actually be 7 according to the summary report run time.
A similar problem exist when we schedule the report .When we schedule the summary report and detail report at same time..And then try to open the scheduled instance of detail report from summary scheduled instance ,It only works fine if no parameter is passed to openDocument url.
Say suppose I click China on summary report the Value China should be passed to detail report as Country.But whenever we try to open a scheduled instance of Detail Report along with a parameter using openDocument Url.It refreshes the whole data even though refresh is set to 'N'.So the scheduled data is lost..Even if we try for Drillfilters in detail Report we cannot set it at runtime using open document Url.Mihail - I detailed a couple of approaches here: Re: Application Link
Scott -
Calling a BSP application with MVC and send one start value
Hi,
I developed a BSP application with BSP. The application has a start page with one input field. The user gives a number and click the send button. The controller creates the modeler and gives the userinput as start parameter for the data search. After the data are read/found, the controller calls a view to show the data.
This is very easy and does work.
I have to call this simply application from another one: the caller application sends the start value.
I don't know, if is better to send the start value in the URL or not. I tried it, but the controller cannot read it.
How can I call the controller with a start value?
Thank you!
Bye
PatriziaHi ,
what you need to do is
1) for the "Send" button attach a java script.
<htmlb:button id="myButton" text="Submit ...." onClick="sendRequestWrapper()"/>
this javascript should take the inputfrom the field,
then in the javascript create the URL.
function sendReqeustWrapper(){
sendRequest(InputField);
function sendRequest(InputField)
var URL;
URL = window.location.protocol + "//" ;
URL += window.location.host ;
<b>Note: its only Example link,</b>
URL += "/sap/bc/bsp/sap/<BSPApplication>/controller.do";
URL +="?InputFieldName=";
URL +=InputFieldValue;
<b>then use</b>
Your URL will look like:
http://ld0507.wdf.sap.corp:50007/sap/bc/bsp/sap/<bsp appl>/controller.do?InputFieldName=XXXXX
window.open(URL,"_self","");
so once this URL is triggered you need to goto the respective controller and handle the input. You can see the reply from Mr. Akshaya Rao .
regards,
Vijaya Kumar M.
Message was edited by: Vijaya Kumar -
Error sending IDOC from external Java application to Sap ERP system
Hi Experts!
When I try to send Idoc from Java application to XI an error occurs : no service for system CLNTJAVA, client in Integration Server.
My question is: What value the setSenderPort() is excepting?The Java third party business system's logical name or the ERP business system's logical name where the JCO can be found?I tried both of them, but still have the problem.
Please help. I read all threads about this error, but non of those can help me.
My relevant java sourcecode:
doc.setSenderPort("CLNTJAVA");
The XI documentation says that:In the case of non-SAP senders, the entry in the SNDPOR field is interpreted as a logical system name, and the corresponding business system is searched for in the runtime cache.
Both case(third party business sytem and erp business system) I have configured the ID i think correctly. I made a business systems,I configured the adapter specific identifies,I made the IDX1 port,I made the RFC destination,I polled the IDOC type with IDX2 transaction, I have made full cache refresh,I configured the INTEGRATION_DIRECTORY_HMI rfc destination,but I do not made any communication channels, receiver determinations, receiver agreement.
My configurations if it can help for you.
Hostname:sapsp5
System name: NE2
Clients:
000 ERP
001 Integration Server
<b>SLD configurations:</b>
Third Party Technical system name: Java_sytem
Business System:CLNTJAVA
Logical system name: CLNTJAVA
<b>ID configurations:</b>
Business System:CLNTJAVA
adapter-specific identifiers:logical system:CLNTJAVA, <u>the rest is initial</u>,because I cant change it.
IDX1 port name: CLNTJAVA the client is 001. the rfc destination is client_001.
I think the IDX1 port and the adapter specific identifiers are wrong. is it?
my java source if the sender is the JCO
doc.setSenderPort("INTSERV");
My configurations if the sender is the JCO.
<b>SLD configurations:</b>
Technical system name: NE2
Business System:INTEGRATION_SERVER_NE2
Logical system name: INTSERV
<b>ID configurations:</b>
Business System:INTEGRATION_SERVER_NE2
adapter-specific identifiers:logical system:INTSERV,system NE2,client 001.
IDX1 port name: INTSERV the client is 001. the rfc destination is client_001.
Could this error be an autorization error?I tired to connect to the xi from the Java, with the user PIISUSER extended with PISUPER roles.
Thank very much.Hi!
My SNDPOR already set to my source business system's logical name if you check my configurations(JAVACLNT), so there is another problem unfortunately. I set SNDPRN to JAVA, but it still does not work.
Check this configuration please(posted here:
No service for system ... in Integration Directory)
doc.setMessageType("ACC_DOCUMENT");
doc.setRecipientPort("SAPSE1"); // get stuck in XI mapping if not set
doc.setRecipientPartnerType("LS");
doc.setRecipientPartnerNumber("SE1CLNT500");
<b>doc.setSenderPort("SAP3MA");</b>
doc.setSenderPartnerType("LS");
<b>doc.setSenderPartnerNumber("TREMACLNT");</b>
doc.setClient("100");
Inside XI configuration integration builder
<b>Business Service: Service: TREMACLNT</b>
Under the menu Service - Adapter specific identifiers
Idoc Adapter Logical system: TAPPMAN (This thing is important when sending idoc XI -> SAP and should match the logical sys in the receiving SAP system)
IDoc Adapter and RFC adapter R/3 Sysytem ID: 3MA
Client: 100
In IDX1 trans
<b>Port: SAP3MA</b> (Note that the 3MA here is matched against the IDoc Adapter and RFC adapter R/3 Sysytem ID: 3MA)
(a not so well documented feature)
Client: 100
RFC Destination: SE1 (A SAP test system from where IDOC def can be imported, rfc dests are setup in SM59)
I guess that your idx1 port name is the same as the SNDPOR value. I think it should be, because the XI is whatching the IDOC traffic in the idoc adapter port, so you should send the IDOC from external system to the adapter port. Is it right?
My idx1 port is the same as my SNDPOR value in Java,but still came the error. -
Send short message from Java application on mobile phone to server; http
Hello!
My question is: can I send short message from Java application on mobile phone to server - with the use of SMS (WMA) or http connection?
I found this topic http://forums.sun.com/thread.jspa?threadID=5405431 about: "how to send data from midlet to servlet using doPost method".
There is also such topic http://forums.sun.com/thread.jspa?threadID=5408046&tstart=0 about: "CLDC and MIDP - sending SMS to server -> Wireless Messaging API (WMA)".
Please, kindly help me.
Code from the topic mentioned above, edited by me so that it can be read easily:
//http://forums.sun.com/thread.jspa?threadID=5405431
//CLDC and MIDP - Re: how to send data from midlet to servlet using doPost method
I want to know how to pass the values .
for examples : this is what i wrote for doGet
String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="+loggedInUserId"&svComp="saveCompHex;
userId and svComp has the data which is very long so i wanted to use doPost.
Now i dont know how to do it.
This is what i have done in doGet (midlet)
public void saveCompanyProfile(String saveComp,int flag,String blankFieldNm)
System.out.println("flag===" flag);
if (flag==1)
displayAlert("Company Profile Edit",blankFieldNm+" field cannot be blank.",AlertType.ERROR, edCmpRecForm, true);
else
String saveCompHex = helper.encodeHexString(saveComp);
// String saveCompHex =saveComp;
HttpConnection httpConn = null;
serverSettings setting = new serverSettings();
System.out.println("saveCompHex===" saveCompHex);
String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="loggedInUserId"&svComp="saveCompHex;
System.out.println("url of save company profile:: "+url);
InputStream is = null;
OutputStream os = null;
try {
// Open an HTTP Connection object
httpConn = (HttpConnection) Connector.open(url);
System.out.println("urlMidlet1 save edited company data===::" url.length());
// Setup HTTP Request
httpConn.setRequestMethod(HttpConnection.POST);
httpConn.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
System.out.println("urlMidlet2===" url);
int respCode = httpConn.getResponseCode();
System.out.println("respCode edit company profile=====" respCode);
if (respCode == httpConn.HTTP_OK)
StringBuffer sb = new StringBuffer();
os = httpConn.openOutputStream();
is = httpConn.openDataInputStream();
int chr;
while ((chr = is.read()) != -1)
sb.append((char) chr);
String sResultSvCompanyProfile= sb.toString();
System.out.println("+++++++++++++Company sResult+++++++++++++==="sResultSvCompanyProfile);
if (resultViewCompanyProfile.trim().equals(""))
System.out.println("++++++++++++++If++++++++++++++SaveCompanyProfile===");
displayAlert("Login Incorrect","Username and Password incorrect", AlertType.ERROR, mainForm, true);
else
System.out.println("++++++++++++++Else++++++++++++++SaveCompanyProfile===");
//companyProfile();
displayAlert1("Information","Company Profile edited successfully", AlertType.INFO, profileMenuScreen, true);
else
System.out.println("Error in opening HTTP Connection. Error#" respCode);
//the line below divided into two lines because it was too long
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
catch(IOException e)
e.getMessage();
finally {
if(is!= null)
try
is.close();
catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
if(os != null)
try
os.close();
catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
if(httpConn != null)
try
httpConn.close();
catch (IOException e)
// TODO Auto-generated catch block
e.printStackTrace();
displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
AlertType.ERROR, mainForm, false);
} //end finally
} //end else (?)
} //end savecompanyhi,
SMS API(WMA) is an optional package. It is not a MIDP1.0 or MIDP2.0 api's.
There are phones which has WMA api with MIDP1.0 support .... Nokia 3650
Seimens has some phone with their own api's to send sms.Check out seimens site for more info
BTW, What do you mean buy sending SMS to Server????
If you want to send message to server you can do it with Http.
HTH
phani -
How to send attachments using java application and outlook
Hi ,
I created an application in java which is as
on the Conference Tab i can schedule a conference and with the send command on page it map all the scheduled data to outlook(with all conference details) and using outlook send option the mails are send to appropriate user.
but now i want to modify this application such as when i use the send command from my jsp page it should attach the file that is in .vcs or .ics format for auto updation of user calender.
can any one know how to send attachment using java application .Last time I checked, SMS was a service between carriers and doing SMS yourself was really tricky. Some services existed to let you do it but as I recall they wanted non-trivial money.
However, most phone carriers provide an email-to-SMS bridge of some kind.
So the easiest thing is just to send an email.
That's sending from a non-phone to a phone. There's a J2ME library to send/receive SMS from/to a phone.
However, this is from memory, and a little out of date, so I could be entirely wrong. Hope it helps anyway. -
Error in sending mail Using java application using SMTP.
Hi,
I have created a java application of self user registration which also sends email to the user.
I have also added two JAR files ie mail.jar and activation.jar under the PORTAL_INF/lib.
The code works well in other servers but its showing the error-
java.lang.NoSuchMethodError: com.sun.activation.registries.MailcapFile.getMailcapList(Ljava/lang/String;)Ljava/util/Map;
Thanks & Regards,
Amarys.Hi Amarys,
Please check if you have configure the mail server in SAP protal.
Refer to below documents:
[Send email, using SMTP on remote host|Send email, using SMTP on remote host]
[Mailing throw webdynpro for java|Mailing throw webdynpro for java]
Best Regards
Arun Jaiswal -
Java application to send an SMS via my DKU-5 serial cable.
Hi,
I'm not sure if this is the right forum but....
I'm doing a project for college which involves Learning Content Managemnt System.
I've developed a few features for this including chat, forums, etc.
I want to develop an SMS system to use in conjunction with the chat application
ie. If a user is not online then the chat message will be sent to their mobile in the form of an SMS.
Looking for help in creating a Java application to send an SMS via my DKU-5 serial cable.
Any ideas??
Thanks
Message was edited by:
kiwicashiii u can try.........javax.comm package.
its best for serial communication.
contect [email protected] if required
jigar -
Sending SMS Via my java Application
Hi all,
I want to develop a feature to send SMS from my java application by using mobile phone.
I am new to java.
tell me how to connect the mobile phone from my applicatio and how do i send the SMS.
Hoping your help sooner....
Thanks and regards,
Suresh Dhandauthapani.>
Hoping your help sooner....
Sorry I was too late. -
Sending public key to not java application
Hi,
I'm trying to send through a socket connection a public key encoded on X.509 standard, but the key.getEncoded() method returns a array of bytes,How can I convert this array of bytes to a sequence of characters that can be readable by any not java application???Is possible to make this public key readable for any not java application??How can I do that??
How can I send the public key to a not java application??
Thanks.Thanks for helping, but if I use Base64 encoding does the client have to use a base64 decoder before having to use the public key??
The major problem is that my client is a perl application that uses openSSL, I think it will not understand the key if I send it in Base64(the perl application uses a openSSL API to make the received public key in X.509 back to public key)... -
Can anybody tell me how to send/receive the sms from java application
Hi All,
Can any body tell me, how to send/receive the sms from java application to mobile phones.
I have installed the jsms engine and when i try to connect to the mobile device ,the jsms server is giving
the following error.
Cannot connect to GSM Device, error : -11Which jsms? Google finds several.
Try the website where you downloaded it. -
Can any body tell me, how to send/receive the sms from java application
Hi All,
Can any body tell me, how to send/receive the sms from java application to mobile phones.
I have installed the jsms engine and when i try to connect to the mobile device ,the jsms server is giving
the following error.
Cannot connect to GSM Device, error : -11The best place to ask your question is at the JSMS website, forum or mailing list since this is no error that directly comes from a class belonging to the core Java classes.
-
SENDING RINGTONES VIA JAVA APPLICATIONS
Greetings,
I am developing a Java application which would send ringtones to any mobile phone anywhere in the world. I composed the ringtones using an application called NokRing and have them stored in my hard disk in .wav format.
How do I go about the whole process? What all would I be needing for the whole sending process to work? Where can I get more info about this?
I am currently based in New Delhi- India and hold an Essar card (Essar is one of the mobile service providers in New Delhi).
By the way this second question might seem out of place here but I dont know of any other forum where this question would be appropriate. WHAT IS AN SMS SERVER? Would I be required to buy an SMS server for my aforementioned Java application?
If it helps I have a Windows 2000 professional edition and Apache and Cocoon (latest) installed and configured.
Eagerly waiting for an early response.
SNODX
[email protected]
NOTE: I first tried to locate a website that would send ringtones free of cost, to atleast get an experience on sending ringtones. But I couldnt find any site that offers free ringtones for New Delhi- IndiaOK then atleast tell me how do I send a ringtone to my own mobile (the ones which I have stored in my local hard disk in .wav format)?As far I knowt here is three ways to transfer ring tones to ur cell phone
*directly from a Cell phones related web sites,which is approved by your Service provider.
* from your friends cell phone to yours via SMS
*or you must be having a SIM card reader thru which you may be able to store ring tones in ur SIM card.
There is a SIM card reader available for $199.
For more details ,visit this link:
http://store.gemplus.com/dr/v2/ec_MAIN.Entry10?xid=33380&SP=10023&PN=1&V1=294129&DSP=&CUR=840&PGRP=0&CACHE_ID=0
Also I would like to know what exactly is an SMS server *Sorry I dont have any idea about SMS Server.
:) -
Sending java applications to clients
Hi
After developing and launching a java application from the command prompt with java classname, how do I deliver the application to end users etc so that they won't have to
a. install jre (i guess it would have to determine if they have a jre already installed)
b. launch it from the command prompt and see the dos window
stevHi Quick question if I may.
You said " So if they double-click the JAR file and its set to execute, "
Is there something that I as the programmer have to do to make it "set to execute" ?
Also I noticed on your web site you launch your programs with javaw -jar JEditor.jar
I'm guessing that's what the shortcuts should point to right.
Thanks in advance
stephen -
Help about opening a PHP page from a Java application
Hi,
I would have some elements to open a PHP page from a little Java application I'm doing. I would like to know the classes I had to use, how to implement them, ...
In fact, I dial into my application my login, my password, and when I click on by "Connect" button, I must show the PHP page corresponding ti my profile onto the database. Picking up information from the database is not a problem, I know how to use SQL Packages in Java. The problem is to open a new page (IE or Netscape) when clicking on the "Connect" button in my application.
Thanks a lot for advice me.
C�dricHi
This class is from JavaWorld Tip 66 and I've used it to open web pages and files in a browser.
import java.io.IOException;
import java.util.*;
* A simple, static class to display a URL in the system browser.
* Under Unix, the system browser is hard-coded to be 'netscape'.
* Netscape must be in your PATH for this to work. This has been
* tested with the following platforms: AIX, HP-UX and Solaris.
* Under Windows, this will bring up the default browser under windows,
* usually either Netscape or Microsoft IE. The default browser is
* determined by the OS. This has been tested under Windows 95/98/NT.
* Examples:
BrowserControl.displayURL("http://www.javaworld.com")
BrowserControl.displayURL("file://c:\\docs\\index.html")
BrowserContorl.displayURL("file:///user/joe/index.html");
* Note - you must include the url type -- either "http://" or
* "file://".
public class BrowserControl
* Display a file in the system browser. If you want to display a
* file, you must include the absolute path name.
* @param url the file's url (the url must start with either "http://"
or
* "file://").
public static void displayURL(String url) throws Exception
boolean windows = isWindowsPlatform();
String cmd = null;
try
if (windows)
// cmd = 'rundll32 url.dll,FileProtocolHandler http://...'
cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
Process p = Runtime.getRuntime().exec(cmd);
else
// Under Unix, Netscape has to be running for the "-remote"
// command to work. So, we try sending the command and
// check for an exit value. If the exit command is 0,
// it worked, otherwise we need to start the browser.
// cmd = 'netscape -remote openURL(http://www.javaworld.com)'
cmd = UNIX_PATH + " " + UNIX_FLAG + "(" + url + ")";
Process p = Runtime.getRuntime().exec(cmd);
try
// wait for exit code -- if it's 0, command worked,
// otherwise we need to start the browser up.
int exitCode = p.waitFor();
if (exitCode != 0)
// Command failed, start up the browser
// cmd = 'netscape http://www.javaworld.com'
cmd = UNIX_PATH + " " + url;
p = Runtime.getRuntime().exec(cmd);
catch(InterruptedException x)
System.err.println("Error bringing up browser, cmd='" +
cmd + "'");
System.err.println("Caught: " + x);
throw x;
catch(IOException x)
// couldn't exec browser
System.err.println("Could not invoke browser, command=" + cmd);
System.err.println("Caught: " + x);
throw x;
* Try to determine whether this application is running under Windows
* or some other platform by examing the "os.name" property.
* @return true if this application is running under a Windows OS
public static boolean isWindowsPlatform()
String os = System.getProperty("os.name");
if ( os != null && os.startsWith(WIN_ID))
return true;
else
return false;
* Simple example.
public static void main(String[] args)
try
// displayURL("file://c:\\Manual\\Amphibian Accounting Help Test 3.pdf");
// displayURL("http://www.pro7.co.za");
Properties prop = System.getProperties();
// Enumeration enum = prop.propertyNames();
Enumeration enum = prop.keys();
while(enum.hasMoreElements())
enum.nextElement();
catch(Exception e)
// Used to identify the windows platform.
private static final String WIN_ID = "Windows";
// The default system browser under windows.
private static final String WIN_PATH = "rundll32";
// The flag to display a url.
private static final String WIN_FLAG = "url.dll,FileProtocolHandler";
// The default browser under unix.
private static final String UNIX_PATH = "netscape";
// The flag to display a url.
private static final String UNIX_FLAG = "-remote openURL";
}If you find a better solution please let me know!
Regards
Michael Williams
Maybe you are looking for
-
Preview does not support PDF features
I have generated a number of PDF files in Adobe Acrobat that are questionnaires. The intent is to have the users fill out forms, click radio buttons and check boxes within the PDF and using buttons embedded on the questionnaire email them back to me.
-
Error after doing bdc recording with MIRO
hi everybody, iam using call transaction for MIRO. in that recording is not doing properly. problem is - after doing recording ,the process is not moving to another tabs(SUB SCREENS) like payments,details. it gives error. error is 'invfo-bktxt does n
-
IDES ECC 6.0 Service re: installation
Hi Expert on IDES server, I was trying to re: install my IDES server bcos the initial one crashed on the hard disk. fortunately, it was install from a VMware (external drive). After going through the installation video, I tried to re-instal, it asked
-
Selection group in MRP run MD01
Dear all, While running MD01, It displays the selection group 1,2,3,4,5,6,7,8 What is this selection group, what is the meaning , Sometime these numbers are in red, what does it indicate Please guide me Subbu.
-
How To upload a infotype via BDC recording
Hi , I am looking to do a BDC recording to upload a infotype which is 105 for communications My office head quarters are moving so they are changing the first 6 digits of the tlefone numbers but the extensions will remain the same so how is this poss