How to view web page in emulator/device using j2me
hi
i wanna view web page using j2me
i am using code ----instead of getting teh page i am getting source code of the page and i am not getting any thing in real device so do i need a browser??cant i view this page inside my application??
HttpConnection connection = null;
InputStream inputstream = null;
try
this.platformRequest("http://www.lntinfotech.com");
/* System.out.println("aaaaaaaaaaa11");
connection = (HttpConnection) Connector.open("http://www.lntinfotech.com");
System.out.println("aaaaaaaaaaa112");
//HTTP Request
connection.setRequestMethod(HttpConnection.GET);
System.out.println("aaaaaaaaaaa113");
connection.setRequestProperty("Content-Type","//text plain");
System.out.println("aaaaaaaaaaa1133");
connection.setRequestProperty("Connection", "close");
System.out.println("aaaaaaaaaaa11444");
// HTTP Response
System.out.println("Status Line Code: " + connection.getResponseCode());
System.out.println("Status Line Message: " + connection.getResponseMessage());
if (connection.getResponseCode() == HttpConnection.HTTP_OK)
this.platformRequest("http://www.google.com");
System.out.println("aaaaaaaaaaa11444555");
System.out.println(
connection.getHeaderField(0)+ " " + connection.getHeaderFieldKey(0));
System.out.println(
"Header Field Date: " + connection.getHeaderField("date"));
String str;
inputstream = connection.openInputStream();
int length = (int) connection.getLength();
if (length != -1)
byte incomingData[] = new byte[length];
inputstream.read(incomingData);
System.out.println("aaaaaaaaaaa1144555");
str = new String(incomingData);
else
ByteArrayOutputStream bytestream =
new ByteArrayOutputStream();
int ch;
while ((ch = inputstream.read()) != -1)
bytestream.write(ch);
str = new String(bytestream.toByteArray());
bytestream.close();
System.out.println(str);
}
instead of getting teh page i am getting source code of the page and i am not getting any thing in real device so do i need a browser??Yes.
cant i view this page inside my application??Not unless you can write a browser component to parse and display the HTML. (you can't, it's too big a job)
db
Similar Messages
-
How to view web pages off line
how do you save web pages so they can be viewed on line?
*Read It Later: https://addons.mozilla.org/firefox/addon/7661
*ScrapBook: https://addons.mozilla.org/firefox/addon/427 -
TV Out to View Web Pages?
Hi, I recently purchased an Apple AV Composite cable in order to view web pages (Powerpoint presentations, documents, etc) from my iPhone on a TV or digital projector. I'm a teacher and this would be INCREDIBLY USEFUL for both meetings and classes, especially if a laptop is not available (which is often the case). I'm having difficulty figuring out how to get the safari web page to display on a TV. Playing video clips or even photo slide shows seem to be able to be displayed on a TV, but not web pages or any other screen on the iPhone. Does anyone know of a way (other than jailbreaking or unlocking the iPhone) to view the iPhone display on a TV?
Is there an app or some trick to get it to work? Thanks.
Message was edited by: AguamanI just got my Iphone today and was hoping to get something on the TV, from the description here it sounds like pictures will display. Anyone know if a scanned presentation in .tif format will be read as a picture?
I'll have to try to load a couple to the phone or convert them to .jpg.
If that works I should be able to scan my presentations and then show them as pictures. I teach Scuba so this would be very handy to have for traveling. -
How to open web pages from japplet??
Hi
Does anybody know how to open web pages from java japplet??
Any help is apreciated!
zickthe getAppletContext() method of the Applet class will get you an AppletContext, with which you can call the ShowDocument(URL url) or ShowDocument(URL url, String target) method...
check it out at http://java.sun.com/j2se/1.4/docs/api/java/applet/AppletContext.html
have a good one :)
Jay -
How to view WEBI Report in NWBC ?
How to view WEBI Report in NWBC ?
Hi,
you can use the standard web based application called OpenDocument. You can find the details as part of the documentation for SAP BusinessObjects Enterprise available on help.sap.com
Each report can be opened using simply the browser URL - which you can integrate into NWBC.
regards
Ingo -
How to create web page same as Struts tiles in OPA?
Hi,
How to create web page containing consistent Header,Fotter,left right pannel which embed OPA screen?Web Determinations uses Velocity templates to configure the appearance of a paritcular page. You can configure these tempaltes to get the look and feel that you like.
For more information search for "Oracle Web Determinations Template Reference Guide" in the Oracle Policy Automation Developer's Guide (http://docs.oracle.com/html/E38272_01/toc.htm) -
Hi, hoping someone can help. Just got the blackberry pearl 8100. I can view web pages and see pictures but I cannot view web page videos or hear music. Shouldn't I be able to view videos and stream music? Do I need to enable different browser settings?
ThanksThanks, I just reinstalled the program but its still not
working.....any other suggestions? -
I open up Safari and expect it to go straight to my home page, but instead it seems to open any number of previously viewed web pages. I have recently installed Lion and I don't recall this happening with Snow Leopard. Any ideas...?
Hold down the shift key as you click the Dock icon. This will kill the automatic "resume" feature found in Lion.
Hold down the Option key when you use the Safari menu to quit the app. This will "discard windows". -
Downloaded JVM-still unable to view web page
Downloaded Java Virtual Machine; still unable to view web page. Directed to Microsoft Updates...updated...still not able to view page. Help. THX
dons magic helmet
Try this:
Tools > Internet Options > Advanced
Uncheck the box that says "Use Java 2 <version> for applet (requires restart)". Restart your browser.
HTH -
Web pages are black when using Safari 4.0.3 on Windows 7
Web pages are black when using Safari 4.0.3 on Windows 7. It does not matter what page I try to view, all page are black. Sometime I can see pictures and white text box.
Screen capture:
http://users.jyu.fi/~ksalone/virhe/Safari403_Problem_onWin7.PNGHi and welcome....
Try deleting the temporary internet files (cache)
How to Delete the Contents of the Temporary Internet Files Folder
Carolyn -
Printing web page to pdf file using Acrobat Standard 9
When I print a web page to a pdf file, the text in the file is mostly garbled. I have no problems in creating pdf files from MS office or other software. I have Windows 7 Home.
Any help will be appreciated.
ThanksI do have Internet Explorer 9 and I was able to print web pages correctly following your suggestions.
Thanks for your help.
Date: Sat, 12 Nov 2011 06:53:59 -0700
From: [email protected]
To: [email protected]
Subject: Printing web page to pdf file using Acrobat Standard 9
Re: Printing web page to pdf file using Acrobat Standard 9
created by Bill@VT in Acrobat Windows - View the full discussion
There were problems with IE9 on it's initial release and that may be what you are seeing if that is the browser (you did not indicate the browser and that may be a key). If you have a different browser you might try that one with the same pages to see if it browser related.
By saying garbled it sounds like the fonts did not make it or you have selected "Use Local Fonts" in Acrobat. Try checking the latter first. Then check if the fonts are embedded in the PDF by checking the document properties (ctrl-D). If they are not, go back to the browser and select the press or print job options before printing and see if they get embedded and if your problem is resolved.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4021509#4021509
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4021509#4021509. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Acrobat Windows by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Web pages posted to .Mac using iWeb do not render correctly on IE
Okay, let's face it - most people out there use Internet Explorer (IE) to view web pages. I just published my web page using iWeb onto my iMac account. The web site renders correctly on my Mac, but does not render correctly on my PC using IE at work. Several other people using IE saw similar problems. For example, IE does not show the links until you run your mouse over them. Also, the text renders as an image (you cannot select text individualy). What do I do to ensure that all the world views the site correctly? Thanks.
Welcome to the discussions, stoma.
You'll have to essentially dumb your site down to IE level. Get rid of the cool effects, the transparencies, the rotated images, basically everything that makes iWeb so impressive to use. Make a nice plain site with no frills and you're 90% of the way to near 100% IE compatibility.
Take all of your images and edit them outside of iWeb (like with other web applications) and that's another significant chunk. There will be a few bits left over, but some of those will be things you can't do anything about (like some of the page elements being created as .png's). You'll be as close to IE compatible as you can get with iWeb.
Post your URL to let other users post as to what your SPECIFIC site would need. -
What is an easy web-page creation program for use with MacBook Pro?
Can anyone suggest an easy web-page creation program for use with MacBook Pro? I have used FrontPage with my PC, but am changing to a MacBook Pro.
It largely depends on your skill level. Do you want to write web page code, or do you want to just design something and have it turn into a web page automatically?
If you are more of a designer, try these:
RapidWeaver
Freeway Pro
Muse
If you want to write web page code, try these:
Coda
BBEdit
Dreamweaver
If you really don't want to write the code and want the best experience for your viewers, and you want to spend the least amount of time on it, my recommendation is:
No program at all.
Instead, sign up with a web site company like:
WordPress.com (hosted by them) or WordPress.org (hosted on your server)
Squarespace
Wix
The reason is that these companies have fully operational, nicely designed web site templates that you just fill in with your words and pictures, and they are ready to go. They also give you these benefits:
Already designed to the latest web standards
Already designed to resist hackers
Already designed to work on all browsers
Already designed to automatically adjust the page for readability on desktop, laptop, tablet, and smartphone screen sizes
Already designed for accessibility
Already designed for Search Engine Optimization so that your page will be found on Google
Already designed with social media links built in if you want
It is not like the old days where you build a site in Front Page and you assume it will only be seen on a desktop computer. If you build it yourself with a web page program, do you have the knowledge to make a site that works on all of the different web browsers and mobile devices, and is friendly to search engines and social media? If you don't have those skills, working with a website company can be a lot better, faster, and more reliable than trying to hammer all of that out yourself using code in some app. -
How do I extract pages from a pdf using 'Adobe PDF Pack'?
How do I extract pages from a pdf using 'Adobe PDF Pack'?
I think you have to buy extractor for 1.99 a month to extract PDF. But I am having trouble activating it. Good luck.
-
How to create tab pages in Human task Using Wizard
hi,
how to create tab pages in Human task Using Wizard.i need to display the personal details and the offical details in the same page with different tabs for each.it is possible to do lika this.if yes,how can we do this.
RegardsStuart,
Within a SAP Portal Tabs are not used like you want them to
By default Tabs are used inside an iView and not to "tab" between iViews on a page...
The most straightforward solution would be creating a custom PageLayout that you can assign to your page.
I would sugest to implement this custom PageLayout with DIV layers and trigger "tabbing" via JavaScript eventing.
For more infor on how to create a custom PageLayout take a look at here:
[http://help.sap.com/saphelp_nw70/helpdata/en/42/efbac120711a71e10000000a422035/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/en/42/efbac120711a71e10000000a422035/frameset.htm]
Good Luck,
Benjamin Houttuin
Maybe you are looking for
-
Passing the same input parameter twise in execute sql task
Hi All, I want to insert some values to 3 different tables in sql server. Execute sql task is used to populate three tables. Here is the sql statement. DECLARE @Dt AS DATE SET @Dt = ? INSERT INTO TABLE1 SELECT ?, COL2, COL3 FROM TABLE_A INSERT INTO T
-
Hai all, After doing any fresh installation, what are all the patches to be applied for a better performance and with all the latest available and certified features?.. familypacks,maintenance packs.... For ex. After fresh installation of 11.5.10.2 ,
-
Add ability to see Lightroom ratings in Bridge
It would be nice to be able to see the ratings that have been created in Lightroom in Bridge. Since there is no way to open the RAW file in Photoshop via Lightroom, I spend a chunk of my time organizing in LR, and then using Bridge to find the files
-
Slow responce for MAX OS mail, safari and firefox
Hi, I have a puzzeling problem. I have a IMAC intel late 2007 nov with 4gb ram and a 1TB harddisk (850GB disk free space) With SnowLeopard and have run all software updates. My problem is that mail, safari and firefox are running slow. But as I also
-
Hi guys, I am new to Java and I am trying hard to build an executable jar. I have my class files in a package called Script. This, I have it in C:\jdk1.3\bin\Script. I made my Manifest.mf file and gave the command jar cfm ScriptGen.jar Manifest.mf c: