How to use auto typing in pages
What is the key borad short cut for auto typing
Hello alawsal,
I am assuming you mean the ability to dictate and have OS X convert it to text for you? To enable this feature go to System Preferences > Dictation & Speech, make sure dictation is On. For this to work you need 10.8 Mountain Lion and of course a microphone. The default keyboard shortcut is the 'fn' key (all the way bottom left) but you can assign another key if you want.
Hope this helps.
Similar Messages
-
Tutorial Announcement :: How To Use Auto Complete Text Form Control ::
Hello Everyone...
Here in this tutorial we gonna to learn a new and amazing feature of (ADDT), we will learn how to use Adobe developer toolbox (ADDT) form controls.
Form controls help you to add a fantastic features to your forms, that helps you to expand the form abilities and functionality...
The Auto complete Text Field is an enhanced text field that dynamically completes what you type with matched values from a table. You can also select the values from a list.
You can use the Auto complete Text Field in user registration forms, such as allowing users to select their country or city easier, Also in other forms that needs the user to pick one of many choices without any difficulties.
Requirements
To complete this tutorial you will need to install the following software and files:
Adobe Dreamweaver Cs3
Adobe Developer Toolbox (ADDT)
Don't forget: to try out the Demo type the first three letters :A - B - C
:: Go To Tutorials ::
:: Go To Tutorials ::
Best Regards
Waleed Barakat
Developer-Online Creator and programmer
http://www.developer-online.comHeya Waleed,
I use spry to create an autocomplete form that works great across browsers that have javascript enabled. You can store info in a database and parse the info to xml for a dynamic approach. Take a look at the filter examples in spry.
http://labs.adobe.com/technologies/spry/samples/data_region/NonDestructiveFilterSample.htm l
http://labs.adobe.com/technologies/spry/samples/data_region/ZuggestSample.html -
How do you use auto select text for ipod touch??
When turned on when you start to type a word a box may show up with what the iPod thinks is the word you want. To accept the suggestion type a space. To reject the suggestion tap the x by the box. After a while it will learn not to make that suggestion.
-
How to disable auto-restore in Pages (Lion)
I'm sure this has been asked before but the search function can't find the answer.
It's the dreaded auto-restore when Pages is started -- "hey, here's the last document you were working on!!" Grrr! If I wanted it, I'd open it once I invoked the application.
How do you prevent this from happening? I have been to System Preferences:General and removed the check from "Restore windows when quitting" This has no impact on Pages.
I tried looking under $HOME/Library/Saved Application State to see if there was a file there I could tweak to turn off autorestore for Pages but there wasn't.
Thanks for any insight on how to get rid of this stupid "feature."Select "Close Windows when Quitting and Application" in System Prefrences, General, third panel.
Jerry -
How to use "Auto increment" in temp table Oracle
Pleas tell me yaar,
In MS Sql for Auto increment i am using like this "seqid int identity" for temp table
t_seq_tbl table(seqid int identity,EVENT_SEQ_NO varchar(30))
In oracle how to use....As far as I know there is not any auto increment data type in Oracle. Instead of this you should create a sequence and get the next value of the sequence while creating a row in your table.
CREATE SEQUENCE Test_Sequence ;
CREATE TABLE Test_Table ( Id NUMBER , Foo VARCHAR2(4) ) ;
ALTER TABLE Test_Table ADD CONSTRAINT Test_Table_PK_Id PRIMARY KEY ( Id ) ;
INSERT INTO Test_Table ( Id , Information ) VALUES ( Test_Sequence.NEXTVAL , 'FOO' ) ; -
How to use URL CHIPs in Page Builder?
Hi all,
I have encountered a problem of using URL CHIPs in CHIP Catalog.
I cannot find any documents on how to use the CHIPs in CHIPs Catalog of Page Builder. I just simply want to display a URL in NWBC. I suppose that there is an input in URL CHIPs for URL addresses and then the URL can display. However, it is not the case.
I have already looked at the template of URL CHIPs (WDR_TEST_PAGE_CHIP_PROV_2) and still I don't understand how to use the URL CHIP.
Please give me some hints on this one.
Regards,
DominicHi.,
Check this article : [Integrating goole maps in WDA using page builder|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0bca5ae-3c5c-2d10-938d-a81787f59ace?quicklink=index&overridelayout=true]
also this hlep docu : http://help.sap.com/saphelp_nw70ehp2/helpdata/en/20/361af8255f4a33a2e8441956cc8f63/content.htm
http://help.sap.com/saphelp_tm80/helpdata/en/b1/914b8c3fb648babc568967d430a9f8/content.htm
hope this helps u.,
Thanks & Regards,
Kiran -
How to use AUTO in Mapping name for EDIFACT
Hi
I have a source which will be posting 2 diff kinds of EDIFACT to XI.
I want to use just a single channel where i want to configure my .sda module.
I've seen that we can use 'AUTO' in MappingName parameter, so that the mapping is chosen dynamically.
However,when i tried to do so, i get an error saying that the adapter cannot find the mapping in the classpath.
Can anyone guide me as to how to use the AUTO parameter?
If possible, provide a link for some blog where they are using it.Hi Alok,
Reason behing not getting the EDI payload was missing of splitter configuration, you need to configure the splitter as
you need to use AUTO mappingName instead of specific mapping name
once you configure split parameter of bic to true, it will generate an attacments like KEY|MAPPINGNAME|ACCEPTED|MessageNo
then based on this configuration splitter will look for the same key in Seeburger workbench configuration and then generates a XI message (SXMB_MONI entry) ...
If you dont want acknowledgement of EDI and sure about the version of the mapping then you can configure the mappingName
directly instead of AUTO...in BIC paramter
HTH
Rajesh -
How to use Tamil typing in iPad and mac book
I like to use Tamil typing in iPad a and MacBook. I could read Tamil web pages but I am not able to type in Tamil. I have changed the settings for input method in the language options. Not successful. Please advise .
for Mac follow the steps here http://oorodi.com/downloads/%E0%AE%85%E0%AE%AA%E0%AF%8D%E0%AE%AA%E0%AE%BF%E0%AE% B3%E0%AF%8D-%E0%AE%95%E0%AE%A3%E0%AE%BF%E0%AE%A9%E0%AE%BF%E0%AE%95%E0%AF%8D%E0%A E%95%E0%AE%BE%E0%AE%A9-%E0%AE%AA%E0%AE%BE%E0%AE%AE%E0%AE%BF%E0%AE%A9.html
-
How to use Keynote tuxtures in Pages
Hi All,
In keynote graphs you have different textures than in Pages. Does anyone know how to use the Keynotes textures in Pages?
Doest anyone know if I can download more textures for iWork on the Web?The three components of iWork '09 (as the iWork '08 ones) share the same folder of textures.
So, If Pages doesn't use all of them, it's a design choice.
If I made no error, here is a table of used textures.
Some are news and unused ?
I found no change in the use of textures for Pages and Numbers.
The changes apply only to Keynote.
I entered the program's resources and bingo, I found the way to allow more textures in the menus.
<startupVolume>:Applications:iWork '09:Keynote.app:Contents:Resources:SFCChartFills.plist
<startupVolume>:Applications:iWork '09:Numbers.app:Contents:Resources:SFCChartFills.plist
<startupVolume>:Applications:iWork '09:Pages.app:Contents:Resources:SFCChartFills.plist
are the files storing the list of allowed textures.
Artistic.sfctex
Blue.sfctex
Bright.sfctex
Brown.sfctex
Brushed Metal.sfctex
Car Paint.sfctex
Classic Silk.sfctex
Concrete.sfctex
Corrugated Paper.sfctex
Denim.sfctex
Etched Metal.sfctex
Fun.sfctex
Granite.sfctex
Gray.sfctex
Green.sfctex
Hardcover.sfctex
Linen.sfctex
Marble.sfctex
Metal.sfctex
Notebook Paper.sfctex
Portfolio Paper.sfctex
Precious Metals.sfctex
Retro.sfctex
Rough Paper.sfctex
Scrapbook Paper.sfctex
Showroom.sfctex
Slate.sfctex
Speckled Paper.sfctex
Spectrum.sfctex
Stained Wood.sfctex
Stock Paper.sfctex
Watermark.sfctex
Wood.sfctex
is the list of available textures.
With a property list editor, add the ones which you want.
Yvan KOENIG (from FRANCE dimanche 18 janvier 2009 17:53:09) -
Hi All,
I'm trying to create a new ECO using the PL/SQL API "ENG_ECO_PUB.PROCESS_ECO". I want the ECO name to be automatically assigned by the system but when leaving the ECO_NAME empty (in paramter P_ECO_REC) I get the error message:
"You must enter an ECO name and organization because they are the primary identifiers of a business object. Please ensure that these values exist in all your records and re-run the import process."
I have set the profile option "ENG: Change Order Autonumbering - System Administrator access" to yes.
I have set following fields in P_ECO_REC:
p_eco_rec.organization_code := 'V1';
p_eco_rec.change_type_code := 'ECO';
p_eco_rec.description := 'Test';
p_eco_rec.transaction_type := 'CREATE';
p_eco_rec.plm_or_erp_change := 'ERP'; -- also tried with 'PLM'
p_eco_rec.approval_status_name := 'Approved';
Do I need to set anything else?
Thanks,
CarolinHi Helios,
thanks for reply.
I checked note 1242524.1, but there's no advice what to configure for using auto numbering.
I tried it again with adapted sample code and leaving the ECO_NAME empty:
DECLARE
-- API Input variables
l_eco_name VARCHAR2(9) := '';
l_org_code VARCHAR2(3) := 'V1';
l_rev_item_number VARCHAR2(20):= 'CS_Test_Assem_10';
l_eff_date DATE := '8-SEP-2011';
l_new_revised_item_revision VARCHAR2(2) := 'A';
l_eco_rec Eng_Eco_Pub.Eco_Rec_Type := Eng_Eco_Pub.g_miss_eco_rec;
l_eco_revision_tbl Eng_Eco_Pub.Eco_Revision_Tbl_Type := Eng_Eco_Pub.g_miss_eco_revision_tbl;
l_revised_item_tbl Eng_Eco_Pub.Revised_Item_Tbl_Type := Eng_Eco_Pub.g_miss_revised_item_tbl;
l_rev_component_tbl Bom_Bo_Pub.Rev_Component_Tbl_Type := Eng_Eco_Pub.g_miss_rev_component_tbl;
l_sub_component_tbl Bom_Bo_Pub.Sub_Component_Tbl_Type := Eng_Eco_Pub.g_miss_sub_component_tbl;
l_ref_designator_tbl Bom_Bo_Pub.Ref_Designator_Tbl_Type := Eng_Eco_Pub.g_miss_ref_designator_tbl;
l_rev_operation_tbl Bom_Rtg_Pub.Rev_Operation_Tbl_Type := Eng_Eco_Pub.g_miss_rev_operation_tbl;
l_rev_op_resource_tbl Bom_Rtg_Pub.Rev_Op_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_op_resource_tbl;
l_rev_sub_resource_tbl Bom_Rtg_Pub.Rev_Sub_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_sub_resource_tbl;
-- API output variables
x_eco_rec Eng_Eco_Pub.Eco_Rec_Type := Eng_Eco_Pub.g_miss_eco_rec;
x_eco_revision_tbl Eng_Eco_Pub.Eco_Revision_Tbl_Type := Eng_Eco_Pub.g_miss_eco_revision_tbl;
x_revised_item_tbl Eng_Eco_Pub.Revised_Item_Tbl_Type := Eng_Eco_Pub.g_miss_revised_item_tbl;
x_rev_component_tbl Bom_Bo_Pub.Rev_Component_Tbl_Type := Eng_Eco_Pub.g_miss_rev_component_tbl;
x_sub_component_tbl Bom_Bo_Pub.Sub_Component_Tbl_Type := Eng_Eco_Pub.g_miss_sub_component_tbl;
x_ref_designator_tbl Bom_Bo_Pub.Ref_Designator_Tbl_Type := Eng_Eco_Pub.g_miss_ref_designator_tbl;
x_rev_operation_tbl Bom_Rtg_Pub.Rev_Operation_Tbl_Type := Eng_Eco_Pub.g_miss_rev_operation_tbl;
x_rev_op_resource_tbl Bom_Rtg_Pub.Rev_Op_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_op_resource_tbl;
x_rev_sub_resource_tbl Bom_Rtg_Pub.Rev_Sub_Resource_Tbl_Type := Eng_Eco_Pub.g_miss_rev_sub_resource_tbl;
-- Other API variables for return status / error handling / debugging
l_error_table Error_Handler.Error_Tbl_Type;
l_return_status VARCHAR2(1) := NULL;
l_msg_count NUMBER := 0;
l_output_dir VARCHAR2(500) := 'C:\temp';
l_debug_filename VARCHAR2(60) := 'su_debug_10_15.dbg';
-- WHO columns
l_user_id NUMBER := -1;
l_resp_id NUMBER := -1;
l_application_id NUMBER := -1;
l_row_cnt NUMBER := 1;
l_user_name VARCHAR2(30) := 'MFG';
l_resp_name VARCHAR2(30) := 'MFG_AND_DIST_SUPER_USER_APS';
BEGIN
-- Get the user_id
SELECT user_id
INTO l_user_id
FROM fnd_user
WHERE user_name = l_user_name;
-- Get the application_id and responsibility_id
SELECT application_id, responsibility_id
INTO l_application_id, l_resp_id
FROM fnd_responsibility
WHERE responsibility_key = l_resp_name;
FND_GLOBAL.APPS_INITIALIZE(l_user_id, l_resp_id, l_application_id); -- Mfg / Mfg & Dist Mgr / INV
dbms_output.put_line('Initialized applications context: '|| l_user_id || ' '|| l_resp_id ||' '|| l_application_id );
Error_Handler.Initialize;
l_return_status := NULL;
l_eco_rec.eco_name := l_eco_name;
l_eco_rec.organization_code := l_org_code;
l_eco_rec.change_type_code := 'ECO';
l_eco_rec.eco_department_name := NULL;
l_eco_rec.priority_code := NULL; --'Medium';
l_eco_rec.approval_list_name := NULL; --'SU_ONLY';
l_eco_rec.reason_code := NULL;
l_eco_rec.Approval_Status_Name:= 'Approved'; -- will default to Not submitted for Approval
l_eco_rec.Status_Name := 'Open';
l_eco_rec.description := 'ECO - '||l_eco_rec.eco_name||' API Test';
l_eco_rec.transaction_type := 'CREATE';
l_eco_rec.plm_or_erp_change := 'ERP'; -- or 'PLM'
l_eco_rec.return_status := NULL;
dbms_output.put_line('Initialized ECO Header');
l_revised_item_tbl(l_row_cnt).eco_name := l_eco_name;
l_revised_item_tbl(l_row_cnt).organization_code := l_org_code;
l_revised_item_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_revised_item_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_revised_item_tbl(l_row_cnt).start_effective_date := l_eff_date;
l_revised_item_tbl(l_row_cnt).alternate_bom_code := NULL;
l_revised_item_tbl(l_row_cnt).status_type := 1; -- 'Open'
l_revised_item_tbl(l_row_cnt).change_description := 'Test';
l_revised_item_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
dbms_output.put_line('Initialized ECO revised items');
-- Add RS_BOM_C3, acd_type = 1
l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date;
l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_D'; -- Add RS_BOM_C3
l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
l_rev_component_tbl(l_row_cnt).acd_type := 1;
l_rev_component_tbl(l_row_cnt).item_sequence_number := 40; -- new item sequence number
l_rev_component_tbl(l_row_cnt).quantity_per_assembly := 5;
l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
-- Change RS_BOM_C1, acd_type = 2
l_row_cnt := l_row_cnt + 1;
l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date; -- effective date
l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_B'; -- Change qty for RS_BOM_C1
l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
l_rev_component_tbl(l_row_cnt).acd_type := 2;
l_rev_component_tbl(l_row_cnt).old_effectivity_date := to_date('29-APR-2011 10:09:38', 'dd-MON-yyyy hh24:mi:ss'); -- old effectivity date from bill
l_rev_component_tbl(l_row_cnt).old_operation_sequence_number := 1; -- old operation sequence number from bill
l_rev_component_tbl(l_row_cnt).item_sequence_number := 20;
l_rev_component_tbl(l_row_cnt).quantity_per_assembly := 5; -- existing comp qty on Bill = 2
l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
-- Disable RS_BOM_C2, acd_type = 3
l_row_cnt := l_row_cnt + 1;
l_rev_component_tbl(l_row_cnt).eco_name := l_eco_name;
l_rev_component_tbl(l_row_cnt).organization_code:= l_org_code;
l_rev_component_tbl(l_row_cnt).revised_item_name := l_rev_item_number;
l_rev_component_tbl(l_row_cnt).new_revised_item_revision := l_new_revised_item_revision;
l_rev_component_tbl(l_row_cnt).start_effective_date := l_eff_date;
l_rev_component_tbl(l_row_cnt).disable_date := l_eff_date + 2; -- disable date is 2 day from effective_date
l_rev_component_tbl(l_row_cnt).operation_sequence_number := 1;
l_rev_component_tbl(l_row_cnt).component_item_name := 'CS_Sub_Item_10_C'; -- disable RS_BOM_C2
l_rev_component_tbl(l_row_cnt).alternate_bom_code := NULL;
l_rev_component_tbl(l_row_cnt).acd_type := 3;
l_rev_component_tbl(l_row_cnt).old_effectivity_date := to_date('29-APR-2011 10:09:38', 'dd-MON-yyyy hh24:mi:ss'); -- old effectivity date from bill
l_rev_component_tbl(l_row_cnt).old_operation_sequence_number := 1; -- old operation sequence number from bill
l_rev_component_tbl(l_row_cnt).transaction_type := 'CREATE'; -- transaction type : CREATE / UPDATE
dbms_output.put_line('Initialized ECO revised components');
-- call API to create eco
DBMS_OUTPUT.PUT_LINE('=======================================================');
DBMS_OUTPUT.PUT_LINE('Calling Eng_Eco_PUB.Process_Eco API');
Eng_Eco_PUB.Process_Eco( p_api_version_number => 1.0
, p_init_msg_list => TRUE
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, p_bo_identifier => 'ECO'
, p_eco_rec => l_eco_rec
, p_eco_revision_tbl => l_eco_revision_tbl
, p_revised_item_tbl => l_revised_item_tbl
, p_rev_component_tbl => l_rev_component_tbl
, p_ref_designator_tbl => l_ref_designator_tbl
, p_sub_component_tbl => l_sub_component_tbl
, p_rev_operation_tbl => l_rev_operation_tbl
, p_rev_op_resource_tbl => l_rev_op_resource_tbl
, p_rev_sub_resource_tbl => l_rev_sub_resource_tbl
, x_eco_rec => x_eco_rec
, x_eco_revision_tbl => x_eco_revision_tbl
, x_revised_item_tbl => x_revised_item_tbl
, x_rev_component_tbl => x_rev_component_tbl
, x_ref_designator_tbl => x_ref_designator_tbl
, x_sub_component_tbl => x_sub_component_tbl
, x_rev_operation_tbl => x_rev_operation_tbl
, x_rev_op_resource_tbl => x_rev_op_resource_tbl
, x_rev_sub_resource_tbl => x_rev_sub_resource_tbl
, p_debug => 'Y'
, p_output_dir => l_output_dir
, p_debug_filename => l_debug_filename
dbms_output.put_line('x_eco_rec.eco_name:'|| x_eco_rec.eco_name );
dbms_output.put_line('x_eco_rec.org_code:'|| x_eco_rec.organization_code);
DBMS_OUTPUT.PUT_LINE('=======================================================');
DBMS_OUTPUT.PUT_LINE('Return Status: '||l_return_status);
IF (l_return_status <> FND_API.G_RET_STS_SUCCESS) THEN
dbms_output.put_line('x_msg_count:' || l_msg_count);
Error_Handler.GET_MESSAGE_LIST(x_message_list => l_error_table);
DBMS_OUTPUT.PUT_LINE('Error Message Count :'||l_error_table.COUNT);
FOR i IN 1..l_error_table.COUNT LOOP
DBMS_OUTPUT.PUT_LINE(to_char(i)||':'||l_error_table(i).entity_index||':'||l_error_table(i).table_name);
DBMS_OUTPUT.PUT_LINE(to_char(i)||':'||l_error_table(i).message_text);
END LOOP;
END IF;
DBMS_OUTPUT.PUT_LINE('=======================================================');
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Exception Occured :');
DBMS_OUTPUT.PUT_LINE(SQLCODE ||':'||SQLERRM);
DBMS_OUTPUT.PUT_LINE('=======================================================');
RAISE;
END;
But with this example I again get same error message...
Any idea?
Thanks,
Carolin -
How to use Auto layout in book module
Hi,
I got a MBP mid-2010 15" running OS X Lion.
I´m trying to get the auto layout to work with presets. I might be doing something wrong here though:
1. "Edit Auto layout preset"
2. Choose for instance "Wedding" layout
3. Save preset
If I then click on "Auto Layout" it creates the book, but only with "1 Photo" on each page
If I then click on edit "Auto layout presets" again and choose the preset I just created, the layout option says "1 Photo" (I chose wedding)
No matter how I try to save this it goes back to 1 Photo.
What am I doing wrong here? Is it some kind of bug?
Thanks,
Tor OlavYou cannot attach the LDB to the main program of the function group.
- So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
- Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
- Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
Regards -
Learn how to match re-recorded dialog perfectly, whether or not the re-recorded timing matches the original.
http://adobe.ly/LRFERQGreat video! You mention the use of Auto Speech Alignment for foreign language dubbing. Where can I find info on exactly how this would work?
-
How to use class in JSP page ? In java works in JSP not...
Hello developers,
I need check if URL exists.. i use this code in java.. it works fine..
import java.net.*;
import java.io.*;
public class Check {
public static void main(String s[]) {
System.out.println(exists("http://www.google.com"));
System.out.println(exists("http://www.thisURLdoesntexis.com"));
static boolean exists(String URLName){
try {
HttpURLConnection.setFollowRedirects(false);
// note : you may also need
// HttpURLConnection.setInstanceFollowRedirects(false)
HttpURLConnection con =
(HttpURLConnection) new URL(URLName).openConnection();
con.setRequestMethod("HEAD");
return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
catch (Exception e) {
e.printStackTrace();
return false;
}in java all works fine.. it shows
TRUE
FALSE
but i have no idea how can i implement this java code to my check.jsp page..
i tried something like this..
<%@ page import="java.io.*" %>
<%@ page import ="java.net.*" %>
<BODY>
<%
static boolean exists(String URLName){
try {
HttpURLConnection.setFollowRedirects(false);
// note : you may also need
// HttpURLConnection.setInstanceFollowRedirects(false)
HttpURLConnection con =
(HttpURLConnection) new URL(URLName).openConnection();
con.setRequestMethod("HEAD");
return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
catch (Exception e) {
e.printStackTrace();
return false;
String a="http://www.google.com";
%>
<%= exists(a)%>and i want to see in my jsp page the result.. it means that JSP page shows
TRUE
Thanks in advance,Hi there,
One solution is to use JavaBeans and call the methods for the JavaBean from the JSP page.
Suppose you have a JavaBean called TestConnectionBean as follows:
package test22;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.MalformedURLException;
import java.io.IOException;
Set the testUrl before checking if connection exists.
public class TestConnectionBean {
String testUrl;
boolean connectionExists;
public TestConnectionBean() {
public String getTestUrl() {
return testUrl;
public void setTestUrl(String testUrl) {
this.testUrl = testUrl;
public boolean getConnectionExists() throws IOException, MalformedURLException {
HttpURLConnection.setFollowRedirects(false);
// note : you may also need
// HttpURLConnection.setInstanceFollowRedirects(false)
HttpURLConnection con = null;
con = (HttpURLConnection) new URL(this.testUrl).openConnection();
con.setRequestMethod("HEAD");
return (con.getResponseCode() == HttpURLConnection.HTTP_OK);
public void setConnectionExists(boolean connectionExists) {
this.connectionExists = connectionExists;
}Then you can create a JSP page like this:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title></title></head>
<body>
<jsp:useBean id="testConnectionBean" class="test22.TestConnectionBean"/>
<jsp:setProperty name="testConnectionBean" property="testUrl" value="http://www.google.com" />
<br/><br/>
Does the connection exist for http://www.google.com : <jsp:getProperty name="testConnectionBean" property="connectionExists"/>
<br/><br/>
<jsp:setProperty name="testConnectionBean" property="testUrl" value="http://www.thisURLdoesntexis.com" />
<br/><br/>
<%-- The following will give an exception : java.net.UnknownHostException: www.thisURLdoesntexis.com since the URL doesn't exist.
--%>
<%--
Does the connection exist for http://www.thisURLdoesntexis.com : <jsp:getProperty name="testConnectionBean" property="connectionExists"/>
--%>
</body>
</html>The output you see looks like:
Does the connection exist for http://www.google.com : true
I think it is better to handle the exceptions in the JavaBean itself, so now yyou can change the method signature of getConnectionExists , remove all exceptions from method signature but handle them with a try/catch inside the method itself. -
How to use math symbols in Pages
How can I find math symbols in Pages?
Do I need additional Software or is there a possibility as in Microsoft Word?You can find some math symbols in Pages if you go to Special Characters. Open Pages, go to Edit menu (on the menu bar) > Special Characters, and choose math symbols in the sidebar, so you will be able to add a symbol double-clicking the symbol.
However, it may not include all symbols. In this case, you will have to use other third-party applications -
How to use auto incremented tabe to create a CMP Entity Bean
hi,
I want create a CMP entitybean with an auto incremented table in
Oracel. So I need to know
- how to create a table with an auto-incremented field in oracel and
- how to change the create() method according to that.
I am using Sun studio enterprise for EJB developing.
kaushalyaFor auto increment in Oracle you should use Sequence/Trigger combination.
And useful thread from EJB forum:
http://forum.java.sun.com/thread.jspa?forumID=13&threadID=478783
Maybe you are looking for
-
How to connect my ipod to a dvd receiver system
I am trying to connect my ipod touch to my dvd receiver but I cannot get any sound?? Do I need to change my settings on my ipod?
-
HP Envy 14 Beats Edition - Windows 7 Boots But Won't Function - Recovery Won't Work
Hello, I have been trying for two days now to recover this laptop. For some reason it will not fully boot Windows 7. I have tried using F11 recovery, HP Recovery Disks, and a Windows 7 Install Thumb drive. In each case I get past the "Starting Window
-
My dynamic script is not working
Hi SDN, I have written below code in Javascript to make subform invisible depending upon a checkbox but it not working please let me know where i am making a mistake. if (data.test.CheckBox1 == '') data.test.Subform1.presence = "hidden"; else
-
hi, when a user tries to login but enters serveral time a wrong password the account get locked. is it possible to change this behaviour (I mean beside entering the right password) so that the account will not be locked? kind regards Michael
-
Payment file formats supported by SAP in Europe-France, Belgium, Italy, Spa
Hi Friends, Any information on payment file formats preferably DME formats supported by SAP would be great, specially following Europe countries: France Belgium Italy Spain. If anyone has imeplemented following formats in SAP for the following countr