How can i Pass a parameter to JNLP ?
How to pass a prarmeter from HTML or JSP or PHP to JNLP ?
(Not JNLP to application <--- that's i knew)
Actually, i want to pass a parameter tfrom HTML to JNLP <parameter> field and execute JNLP from HTML
Similar Messages
-
How can i pass a parameter to the query to filter the result of this lookup
Hello,
i'm developping a web application with JDeveloper 10.1.2 and JHeadStart.
i realy need to know how can i filter the lookup (LOV) query result.
in other word, when i click on the lookup, it show all the row that exist in may data base table.
what i want is how can i pass a parameter to the query to filter the result of this lookup ?
Thank youHi,
have a look if this helps
http://oracle.com/technology/products/jdev/tips/fnimphius/restrictlovlist/restrictlov.html
Frank -
How can i pass the parameter for strored procedure from java
dear all,
I am very new for stored procedure
1. I want to write the strored procedure for insert.
2. How can i pass the parameter for that procedure from java.
if any material available in internet create procedure and call procedure from java , and passing parameter to procedure from javaHi Ram,
To call the callable statement use the below sample.
stmt = conn.prepareCall("{call <procedure name>(?,?)}");
stmt.setString(1,value);//Input parameter
stmt.registerOutParameter(2,Types.BIGINT);//Output parameter
stmt.execute();
seq = (int)stmt.getLong(2);//Getting the result from the procedure. -
How can i pass a parameter into paintComponent()?
public void paintComponent(Graphics g)
Graphics2D g2 = (Graphics2D) g;
for(int i = 150;i<=250;i+=20)
for(int a = 50;a<=200;a+=50)
Rectangle box = new Rectangle(i, a, 15, 15);
g2.draw(box);
this is my paintComponent method. as far as i'm concerned, all our codings for drawing must be inside this method rite? My assignment is to create something like a cinema ticket system where we will display all the seats then user enters a position then we mark it. when i prompt the user for the position..how do i pass it into this method? pls help me. obviously the coding to prompt is in another .java file.//this is my main
public class AirAsia extends JComponent {
static JLabel input, input2;
private static void test(){
JFrame frame = new JFrame("Aeroplane Seating");
frame.setSize(500,500);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
String prompt = JOptionPane.showInputDialog("Enter x");
input = new JLabel("You have entered " +prompt);
String prompt 2= JOptionPane.showInputDialog("Enter x");
input 2= new JLabel("You have entered " +prompt2);
RectangleComponent component = new RectangleComponent();
frame.add(component);
frame.setVisible(true);
private static void createAndShowGUI()
JFrame.setDefaultLookAndFeelDecorated(true);
test();
public static void main(String[] args)
createAndShowGUI();
//now this is my paint component in another file
public class RectangleComponent extends JComponent
public void paintComponent(Graphics g)
Graphics2D g2 = (Graphics2D) g;
for(int i = 150;i<=250;i+=20)
for(int a = 50;a<=200;a+=50)
Rectangle box = new Rectangle(i, a, 15, 15);
g2.draw(box);}
for(int i = 60;i<=160;i+=20)
for(int a = 240;a<=820;a+=15)
Rectangle box = new Rectangle(i, a, 15, 15);
g2.draw(box);
first of all, i ask the user to enter 2 inputs which are x and y. so now how do i pass in the x and y into paint component method so i can mark/draw the box? -
How can I pass URL parameter value to text field?
Dear Masters,
I have a text field. I want it to have a value based on the URL parameter, for example:
http://myapplication.net:7777/pls/apex/f?p=102:1:::::P1_RTNUM:9448,P1_EMAILADD:email.add.here
I want the value of the text field = P1_EMAILADD after the form was loaded. Also, please have it read-only.
Thanks a lot.
Edited by: user6368519 on Sep 16, 2009 11:39 PMThanks Saad,
Can I email you(I would need your email) for any concerns or just create a new thread for you to look?
This is ok now. I'm sorry but I just marked this one as an "answered" one last time.
Thanks for all the help again I appreciate it. ;)
Thanks,
Aaron
[email protected] -
How can i pass token parameters
Dear all
i have wrote this code for side tab bar
OAStaticStyledTextBean bulletTextOne =
(OAStaticStyledTextBean)createWebBean(pageContext, STATIC_STYLED_TEXT_BEAN, null, "textOne");
bulletTextOne.setText(pageContext, yahooText);
bulletTextOne.setCSSClass("OraLinkText");
bulletTextOne.setDestination(yahooUrl);
bulletList.addIndexedChild(bulletTextOne);
String x="OA.jsp?page=/crm/oracle/apps/xxcrm/crmmgmt/quotationmgmt/webui/xxcrmquotationsearchPG";
OAStaticStyledTextBean bulletTextOne =
(OAStaticStyledTextBean)createWebBean(pageContext, STATIC_STYLED_TEXT_BEAN, null, "textOne");
bulletTextOne.setText(pageContext, yahooText);
bulletTextOne.setCSSClass("OraLinkText");
//bulletTextOne.setDestination(yahooUrl);
bulletTextOne.setDestination(x);
bulletList.addIndexedChild(bulletTextOne);
Here i am navigating from one page to another page when i click on link
her at that same time how can i pass token parameter to this link
like ${oa.xxcrmCostsheetVO1.OpcsOpportunityid}
Regards
SreekanthHi,
First grab the value of OpcsOpportunityid from View Object and store it in variable
say
String id = (String)row.getAttribute("OpcsOpportunityid").toString();
You can pass parameters like
String x="OA.jsp?page=/crm/oracle/apps/xxcrm/crmmgmt/quotationmgmt/webui/xxcrmquotationsearchPG¶m1="+id;
and then set the destination of link
bulletTextOne.setDestination(x);
Thanks,
Gaurav -
How can I pass an empty array to a parameter of type PLSQLAssociativeArray
How can I pass an empty array to a parameter of type PLSQLAssociativeArray in VB? I defined the parameter like this
Dim myArray() as String = new String() {}
Dim myPara as new Oracle.DataAccess.Client.OracleCollectionType.PLSQLAssociativeArray
myPara = 0
myPara.Value = myArray
When I execute my stored procedure giving the above parameter, I got error saying OracleParameter.Value is invalid.
I have tried to give it the DBNull.Value, but it doesn't work either.
Note: everything works fine as long as myArray has some item in there. I just wonder how I can make it works in case I have nothing.
Thank you,How can I pass an empty array to a parameter of type PLSQLAssociativeArray in VB? I defined the parameter like this
Dim myArray() as String = new String() {}
Dim myPara as new Oracle.DataAccess.Client.OracleCollectionType.PLSQLAssociativeArray
myPara = 0
myPara.Value = myArray
When I execute my stored procedure giving the above parameter, I got error saying OracleParameter.Value is invalid.
I have tried to give it the DBNull.Value, but it doesn't work either.
Note: everything works fine as long as myArray has some item in there. I just wonder how I can make it works in case I have nothing.
Thank you, -
How can i pass parameter values from html to a shell script
Hi Guys...
I had a requirement where i need to execute a sql statement and print the output in HTML page. This report has parameters to enter. So i created a HTML form which accepts parameters. When the submit button is pressed, the action tag in the form invokes unix shell script file. It will open sqlplus and run the sql script file .sql and print the output in the HTML page.
sql script contains the query and some set options which prints the output in HTML page. Like "SET MARKUP HTML ON"... The query has some parameters like "select * from emp where empno = &&empnumber. I will use the same name "empnumber" while created the HTML parameter form like " <input type = "text" name="empnumber" size="10" align="left">.
user sees this parameter form and enters some value in to that empno text box.
My question is how can i catch these parameter values in a shell script and pass it to the sql script to execute it.
Help Appreciated
ThanxThis is a A Bad Idea (tm). This type of CGI processing is old and were (and still is) full of security holes. Very easy to inject stuff (Unix commands and SQL) into it.. To get those parameters into SQL*Plus requires using Unix shell commands to process it - and something like a backquote allows all kinds of nasty stuff to be injected. The Unix shell was never designed to be used as a secure CGI environment.
There are far better and far superior alternatives. Perl (with Perl_DBI) and PHP (using Zend Core for Oracle) come to mind as web scripting languages.
Even easier is using HTMLDB. Very few moving parts. Is free. Supports Oracle 9.2 and 10G. -
How can I pass dynamic value as a user input parameter in discoverer?
Hi,
I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
The sample code as:
SELECT s.segment1 vendor_number
,s.vendor_name
,flv1.meaning classification
,pca.certificate_number
,pca.certifying_agency
,pca.expiration_date
,flv2.meaning status
FROM ap_suppliers s
,pos_bus_class_attr pca
,fnd_lookup_values flv1
,fnd_lookup_values flv2
WHERE pca.vendor_id = s.vendor_id
AND flv1.lookup_code = pca.lookup_code
AND flv1.lookup_type = pca.lookup_type
AND flv2.lookup_code = pca.class_status
AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
order by pca.expiration_date asc
Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
Please help.Hi,
All you need to do is to create the condition in the discoverer instead of in the query.
Create a custom folder containing the following sq (note that i removed the condition)l:
SELECT s.segment1 vendor_number
,s.vendor_name
,flv1.meaning classification
,pca.certificate_number
,pca.certifying_agency
,pca.expiration_date
,flv2.meaning status
FROM ap_suppliers s
,pos_bus_class_attr pca
,fnd_lookup_values flv1
,fnd_lookup_values flv2
WHERE pca.vendor_id = s.vendor_id
AND flv1.lookup_code = pca.lookup_code
AND flv1.lookup_type = pca.lookup_type
AND flv2.lookup_code = pca.class_status
AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
Then create a discoverer report using this folder using all fields.
Create a new calculation as (use this exact syntax):
Sysdate + :No_of_Days_in_the_Future
Create a new condition:
pca.expiration_date <= <your calculation>
To complete it add a sort as you did in the SQL.
That's it.
Tamir -
How can I pass empty value in URL Parameter
Hi,
I am passing different URL parameters to one page, to filter
the recordset on that page. How can I pass an empty value in the
URL parameter so that the recordset in unfiltered?
The URL parameter is based on one field of the database:
ContentType. So, the link would be to
default.asp?ContentType=Event
and then all records that have the ContentType field in the
DB as Event are displayed. Is it possible to use this system to
pass an empty parameter so that all records are displayed?
Thanks
Ian?ContentType=All
<% if (ContentType == "All")
Build recordset w/o filtering
ASP is rusty, but those are the basics.
"iandobie" <[email protected]> wrote in
message
news:e8im80$q7m$[email protected]..
> Hi,
> I am passing different URL parameters to one page, to
filter the recordset
> on
> that page. How can I pass an empty value in the URL
parameter so that the
> recordset in unfiltered?
> The URL parameter is based on one field of the database:
ContentType. So,
> the
> link would be to
> default.asp?ContentType=Event
> and then all records that have the ContentType field in
the DB as Event
> are
> displayed. Is it possible to use this system to pass an
empty parameter so
> that
> all records are displayed?
> Thanks
> Ian
> -
How can I pass parameter from report to form?
Hi :)
Now I try to build conference room like this by using form
and report. And i design that when users click at group report
then i'll show page that contain questions report and add
question form. And question form and report must receive the
same parameter from group report.
First Problem: is I don't know how group report send the
same parameter to question report and add question report at the
same time. And is it possible??? If not please suggest me what
should I do???
Second Problem: is I don't know how can I pass parameter from
report to form. I don't know the way to do it.
Please tell me!!! Please...
I look forward to hearing from all of you.
Thank You.One way is to create a link based on that form and attach that
link with the report. Through links you can pass parameters -
How can I pass more than one parameters in PDK-URL services?
Hi all,
How can I pass more than one parameters in PDK-URL service? All samples on Portal Center shows just one parameter passing.
<inputParameter class="oracle.portal.provider.v1.URLPortletParameter">
<name>csz</name>
<isMandatory>false</isMandatory>
<displayName>What location do you want a map for (City, State or Zip)?</displayName>
</inputParameter>
How can I write the privider.xml file for passing multiple parameters?I answer to my question. I've got the answer.
I repeatly write down the <inputParameter> tags, and it works. -
How can I pass arguments from one MIDlet to another MIDlet
Hi everybody !
Can anybody help me in knowing that how can I pass the parameters from one
MIDlets to another one in same application.
I am devloping a application in which I am using more than two MIDlet and I
want to transfer Parameter from one MIDlet to another one.
I just explain what I have done....
I made a MIDlet "A" and "B" in the same project using NetBeans IDE.
In MIDlet "A" I create the Object of MIDlet "B" so that the constructor of
MIDlet "B" is called and parameter can be transferred.
But when I run the program it shows me two MIDlet on the screen, that I
doesn't need.
Suggestion are most welcome....
Thanks in advance
Regards
BhagwatIf you create two MIDlet in a midlet suite, it will display as you mentioned means you can't change the display style.
-
How can I pass a value to the command prompt?
I was wondering how can I pass a value to the command prompt with Windows and Linux? I'm more interested in Linux's system than Windows though. Is there a way to return info from the command prompt?
Here is a snippet from http://mindprod.com/jglossexec.html that explains how in detail.
Runtime.getRuntime().exec("myprog.exe") will spawn an external process that runs in parallel with the Java execution. In Windows 95/98/ME/NT/2000/XP, you must use an explicit *.exe or *.com extension on the parameter. It is also best to fully qualify those names so that the system executable search path is irrelevant, and so you don't pick up some stray program off the path with the same name.
To run a *.BAT, *.CMD, *.html *.BTM or URL you must invoke the command processor with these as a parameter. These extensions are not first class executables in Windows. They are input data for the command processor. You must also invoke the command processor when you want to use the < > | piping options, Here's how, presuming you are not interested in looking at the output:
Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat" );
Runtime.getRuntime( ).exec ("cmd.exe /E:1900 /C MyCmd.cmd" );
Runtime.getRuntime( ).exec ("C:\\4DOS601\\4DOS.COM /E:1900 /C MyBtm.btm" );
Runtime.getRuntime( ).exec ("D:\\4NT301\\4NT.EXE /E:1900 /C MyBtm.btm" );
There are also overloaded forms of exec(),
Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null);
Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null, "C:\\SomeDirectory");
The second argument can be a String [], and can be used to set environment variables. In the second case, "C:\\SomeDirectory" specifies a directory for the process to start in. If, for instance, your process saves files to disk, then this form allows you to specify which directory they will be saved in.
Windows and NT will let you feed a URL string to the command processor and it will find a browser, launch the browser, and render the page, e.g.
Runtime.getRuntime( ).exec ("command.com http://mindprod.com/projects.html" );
Another lower level approach that does not require extension associations to be quite as well set up is:
Runtime.getRuntime( ).exec ("rundll32 url.dll,FileProtocolHandler http://mindprod.com/projects.html" );
Note that a URL is not the same thing as a file name. You can point your browser at a local file with something like this: file://localhost/E:/mindprod/jgloss.html or file:///E|/mindprod/jgloss.html.
Composing just the right platform-specific command to launch browser and feed it a URL to display can be frustrating. You can use the BrowserLauncher package to do that for you.
Note that
rundll32.exe url.dll,FileProtocolHandler file:///E|/mindprod/jgloss.html
won't work on the command line because | is reserved as the piping operator, though it will work as an exec parameter passed directly to the rundll32.exe executable.
With explicit extensions and appropriately set up associations in Windows 95/98/ME/NT/2000/XP you can often bypass the command processor and invoke the file directly, even *.bat.
Similarly, for Unix/Linux you must spawn the program that can process the script, e.g. bash. However, you can run scripts directly with exec if you do two things:
Start the script with #!bash or whatever the interpreter's name is.
Mark the script file itself with the executable attribute.
Alternatively start the script interpreter, e.g.
Runtime.getRuntime( ).exec (new String[]{"/bin/sh", "-c", "echo $SHELL"}"; -
Omniportler HTML Layout - How do I pass a parameter to another page?
How do I pass a parameter to another page from an HTML Layout like I can with the Tabular layout?
If I have a parameter I can pass it from one page to another, i.e. if I have a list of customers and I want data for that particular customer alone, I can create a page parameter form or an omniportlet where I would then pass the value of that portlet to the page. I would use a string like the following: https://test.test.com/test/page?_pageid=536,7483646&_dad=portal&_schema=test&customer=##CUSTOMER_NAME##
Maybe you are looking for
-
After I browsed a page in a websit, I could not close that page by using the X in the rt. hand top corner as when I did this Firefox told me that it would close all tabs. It was the only way out so I closed them and started from scratch.
-
How to listen to internet radio?
HI, I am new to Macs. I used to listen to several radio station using windows madia player in wxp. I love my new Mac. I would like to be able to listen to some internet radio stations in itunes. Unfortunatelly, they all only audio in wmp or real play
-
Are there real clear instructions somewhere to create an iDVD project using a Final Cut Express movie with chapter markers? I is easy with iMovie, but not sure how to do it with a Final Cut Express. I think I need the instructions to start from how t
-
How to Parse Characters?
Hi Folks, Can anyone help me out on how to parse the characters in data services. Here is the example: Rule: Parse first three characters MU_1000008 to 1000008 What is the function I can use? Any help is appreciated. Thank you
-
Adobe Update Manager Disabled using Packager
Hi, I installed CC Apps by use of a package created with Creative Cloud Packager. I had the "Adobe Update Manager" set to Disabled. Also, "Disable Adobe Creative Cloud Desktop Application" was checked. Now that the apps are installed, is it possible