Using Java for dynamic web page content

I've currently got a Perl program that I'd like to convert to Java. It merges two files that are stored on a web server and generates a "dynamic" HTML response.
For example, if I have the following files on the server:
File1:
<Comment1>This stuff</Comment1>
<Comment2>That stuff</Comment2>
File2:
<HTML>
<Comment1><br><Comment2>
</HTML>
When I go to the URL
www.mysite.com\cgibin\merge.pl?file1&file2
the Perl program will produce a web page saying:
This stuff
That stuff
The major obstical for the rewrite: NO JSP ALLOWED. It's not allowed by the ISP.
Now for the questions:
- Could this be done using Java?
- How could I initiate the Java app and pass it the parameters? (applet tag, access Java inside Perl, use Java Script somehow)
- Will an applet tag even work for this since the final page is generated completely from other files?
Thank you very much for your help.

If your ISP don't support JSP / Servlets,
1.use any server side technolgy, something like ASP.
2.Read the files and transform them as Strings (or StringBuffers).
3.Pass these Strings as parameters to the applet (if you are forced to use java technology, otherwise you can do it using ASP itself).
4.Construct the required format (content) in your applet.
Don't forget that the stuff will be in applet but not a complete web page. The ideal solution is asking your ISP to provide JSP engine.

Similar Messages

  • I want to use Java for dynamic web programming...

    And don't know what to learn, JSP or servlets or both. I'm guessing it would be best to learn both, but I don't want to buy two books. Are there any books that teach both fairly well?

    I don't know how it covers them I am not learning them at the moment.
    Why don't you try searching for JSP and/or Servlets at Amazon.co.uk, Doesn't the JSP and Servlet section of the java.sun.com also have recommended books?, I have just done that search at amazon.co.uk and found these three instantly...the top two have reviews and ratings from other people. There are MANY book websites out there, try searching on this as well.
    JSP, Servlets and MYSQL; Paperback ~ David Harms
    Java Servlet Programming (The Java Series); Paperback ~ Jason Hunter
    Java Servlet and JSP Cookbook; Paperback ~ Bruce W. Perry

  • Why use Dreamweaver for create web pages

    Hi I am new in Dreamweaver and I want to know why use Dreamweaver for create web pages?

    Twitter
    http://twitter.com/altweb
    Blog
    http://alt-web.blogspot.com/
    Site
    http://alt-web.com/

  • My Yahoo like Dynamic web page content creation

    Are there any methodologies/best practices available for creation of pages like My Yahoo.
    Basically, display of page depends on sections chosen by the user for display and inside those sections content is also what is chosen by the user. Page is different for different users based on their options.
    Are there any methodologies/best practices available for this kind of work using JSP.

    If your ISP don't support JSP / Servlets,
    1.use any server side technolgy, something like ASP.
    2.Read the files and transform them as Strings (or StringBuffers).
    3.Pass these Strings as parameters to the applet (if you are forced to use java technology, otherwise you can do it using ASP itself).
    4.Construct the required format (content) in your applet.
    Don't forget that the stuff will be in applet but not a complete web page. The ideal solution is asking your ISP to provide JSP engine.

  • Using java for the web at large

    Hello,
    i have built a interface for my client that requires the Java2 browser
    plugin to work. Its not the front page or anything...but non the less
    it is a page that my client payed good money for. My question is this..
    due to the lack of support from MS in regardes to a current
    java plugin for IE, did I as a devolper fail my client?
    I feel somewhat guilty, I can code perl just fine ,And in
    this situation perl whould have worked.
    Thanks for the help,
    jd

    I'd have to agree with JElliot, generally the benefits of running web-enabled applications server-side outway the use of client-side applets. There are several factors to consider, but most notably...
    * Code Security
    It is not difficult to decompile Java bytecode back into something which closely resembles the original source. There are a host of decompilers out there, some even include deobfuscation algorithms to make short work of any obfuscation. If your client-side applets contain valuable intellectual property which is worth an investment in trying to reverse-engineer, which they probably do considering your comments, then you can pretty much kiss your market edge good bye.
    Running apps server-side through something like a web interface are inherently more secure you are providing the applications services, but not the app itself (barring any attempts to hack your server or physically break in and steal its HD :)
    * Ease of maintanence
    Due to the centralised nature of a server-side app, installation and maintanence of your app is alot easier. (Im currently designing a web-based app that is going to service some pretty large engineering firms, the thought of attempting to install and upgrade every app on every computer within such firms is a little scary).
    * Ease of access
    If designed to support exsisting browser technology, there is no need for installation of propietry software. This is a big selling point for companies who really dont want to spend thousands of dollars and many hours installing software onto hundreds of machines. It also means that the software can be accessed over LANs, WAN, VPN, or the Internet. (Like roaming profiles, only it works). One client asked us about a particular peice of software "Is it web-based". When we answered yes the response was a definate "we'll take it".
    Mind you there is a couple of downsides to server-side stuff, namely the complexity jumps up a few notches due to the need of multiple tiers within the app just to have some sort of abstraction and workability in it all. Your often limited in interfaces as well, but in most cases people just want something that works, not something neccessarily pretty. One of the hardest concepts I've found is the idea of application state. Bassicly with web-based stuff you don't have any, and youve got to build it yourself. You can often strike a middle line, with all sorts of business logic performed server side, and only rudimentry GUI stuff in applets.
    I wouldn't feel too guilty about it all. Like all things, there is a learning curve, and just getting your head around this conceptual stuff is half the battle. Once you've worked that out, then the easy stuff is coding it. The most annoying thing is when you look back in six months time and kick yourself for not realising half the stuff you know then now.

  • How to use a formula for dynamic New Page After?

    There is a formula for dynamic New Page After.
    How do I get value of formula?
    I am using RAS and the ReportClientDocument.

    There is a section object.  Off that there is a format property that is of type sectionformat.  From there there is a ConditionFormulas property which I believe is a collection of all the formulas you can set for a section.

  • I am running 10.6.8 and using iweb for my web site. After several SEO analysis they all indicate I need H1-6 header tags. After looking at the source code I see there are none in iweb. Is it necessary to add? If so, how do I add H Tags to iweb.

    I am running 10.6.8 and using iweb for my web site. After several SEO analysis they all indicate I need H1-6 header tags. After looking at the source code I see there are none in iweb. Are they necessary to add?  Why would one add these tags and how do I add H Tags to iweb? And are there examples to look at? I am slowly learning about simple web design and assumed that iweb was stand alone without having to write code. Is this one of the reasons iweb is no longer supported? Thanks for looking at this!

    A simple text page like this:
    Heading
        sub heading
              text paragraph ....
    Is traditionally represented by html tags like:
    <h1>Heading</h1>
         <h2>sub heading</h2>
              <p>text paragraph ... </p>
    I would guess that the use of h1-h6 tags helps search engines to understand the structure of a page as the tags imply a certain structure.
    This can be compared to more generic tags like <div> that could represent any kind of content - and may be what iWeb uses (you'll have to check yourself).
    I would generally recommend that you use some kind of up to date blog/site building tool, perhaps Wordpress or Squarespace (I haven't used either one myself) that support current web technologies - this should reduce your SEO issues and make it easier to properly support mobile/tablet users.

  • How do I get Started with Dynamic Web Pages?

    I am presently following Janine Warner's Dreamweaver CS3  video series.  I noted that the Advanced part of this tutorial series focuses on Dynamic Web Pages, but only uses Cold Fusion.  From what I can gather, CF costs around $1000, while PHP is free!  My question is really this: in going from static to dynamic web design I'M A COMPLETE NEWBIE, so what do I need?   I am doing some planning here -- I know it won't happen overnight.
    (BTW:  I was surprised to discover that CF is NOT included in my CS3 Master Collection).  It might appear then that support for PHP is better than for CF?
    Apparently, I need a server -- well, OK I have PCs to spare.  Fast internet, I also have: Comcast standard -- 12MP
    Now, I think I also need Apache -- which apparently runs on the server and does something.
    So then I DL PHP, figure out how it works, and it will integrate with DW CS3 in some way.
    Now, what have I missed?  Is there some really basic, first-time-with-using-a-server place or tut I should go to or read?  Before you ask: No, I'm doing all this myself on a shoestring budget.
    Are there expensive hosting fees for dynamic web sites or other items I will run into?  Can I just use a PC over my Comcast cable as the server run from my home?  (Really high traffic is not anticipated)
    All recommendations appreciated, thanks.
    Thom

    Many of these questions have already been answered in your thread in the Dreamweaver General Discussion forum, so I'll just stick to a few basics.
    You need a server whichever server-side technology you choose, but "server" is not a physical machine, but a piece of software that you install on your development computer. You'll find details of how to install a PHP environment in the following article: http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html.
    Similar instructions are available for setting up a ColdFusion server at http://www.adobe.com/devnet/dreamweaver/articles/setting_up_coldfusion.html. The article is for ColdFusion 8, but ColdFusion 9 is installed in exactly the same way.
    Hosting for PHP/MySQL is plentiful and relatively cheap. However, make sure the hosting company offers a minimum of PHP 5.2 and MySQL 5.1. Hosting for CF is harder to find and tends to be a bit more expensive, but not prohibitively so.

  • Background image for BPF web page

    Hi all,
    I'm building a web page that shows a BPF. I would like to set an image as backgroung for this web page.
    In the BPC help I have read that the image should be located in /webfolders/<appset>AppSetPublications\BPFBackground folder on the server.
    Does anyone know how to upload there the image? The only way I see is using BPC for excel, but it only allows to upload excel files, no images.
    Thanks and regards,
    Ana

    Hi Ana,
    You will have to add a new webpage in BPC Web content library.
    Using the BPF object in the webpage, you can select your BPF and can also add the respective background image to it.
    Hope this helps you.
    Regards,
    Nithya

  • Downloading web page content

    I want to take radio programme listings from a web page, such that I can parse the data and select certain programmes details only.
    Firstly how do I actually get the web page content out? Does it go into a text file? The actual content includes programme times, which might be a means of picking out selected text. Does anyone know where I could find some code that will do that. My intention is to pass this information into a database which connects to my own web site.
    This is for a dissertation and I am starting to run out of time, so I would be hugely grateful for any assistance.
    Thanks
    Rob

    Looks like you need to...
    a. Read Javadoc for java.net.URL
    b. Read about JDBC(if what I understood is right, which is output of your program goes to database) See http://java.sun.com/products/jdbc/index.html
    c. Read about XML parsing and transformations. See http://java.sun.com/xml/xml_jaxp.html

  • Read web page content via Sockets

    Hey,
    I have to write a program that will read web page content, using sockets.
    I got that piece of code and it works for most pages:
    Socket socket = new Socket(address, 80);
              BufferedReader input =
                   new BufferedReader(
                        new InputStreamReader(socket.getInputStream()));
              PrintWriter output =
                   new PrintWriter(socket.getOutputStream(), true);
              output.println("GET " + pageName);
              String response = "";
              String curline  = input.readLine();
              int i=1;
              while(curline != null){
                 response += "\n" + curline;
                   curline   = input.readLine();
                   System.out.println(i + curline);
                   ++i;
              output.close();
              input.close();but not for the one it is supposed to work:
    http://portalwiedzy.onet.pl/tlumacz.html
    I could get it to work using this:
    URL url = new URL(host + query);
    URLConnection uc = url.openConnection();but I really have to use sockets.
    Any advice, people? :-)

    There's an RFC that goes over the HTTP protocol (or rather, several RFCs for the several versions of the protocol). You probably want to google for that and use it as a reference for this project.

  • Printing web page content from android tablet

    When I attempt to eprint a web page, the web address line prints just fine (with a lower line that reads:"sent from Samsung tablet"), but none of the content, even though the print preview showed everything on the page that I needed. PLEASE HELP!   Is the web page content considered an attachment and if so, how do I get the attachment to print?
    This question was solved.
    View Solution.

    Hi TurboLady,
    Thank you for the update.  I appreciate it.  You read the document correctly.
    The best way to print the web content is to print the web page using the browser found in the HP ePrint app.  Please download and install the HP ePrint Mobile app from the Google Play store. For reference I’ve included the HP ePrint Mobile App FAQ document.
    Please let me know how that works for you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How do I lock my default language to English for all web pages?

    I have discovered that my language keeps reverting back to French for my web pages. Not for the sites per se, but for anything that I manually enter into a field or form. And since I have my work and home computers set to sync, it keeps reverting back on both systems. It's not necessarily noticeable until I type a word that isn't in the French dictionary, and then everything gets the red underline to indicate the misspelling. I change it *every single day,* but it doesn't stick. Any suggestions?
    For the record... the language does not go to French on my Yahoo Mail, but it does on Facebook and random web pages. I initially thought it was a Facebook problem, but when I tried Chrome, MSIE, and Opera (yes, Opera), there was no French issue, I narrowed it down to Firefox. Sorry.

    You appear to have installed an additional French dictionary that shows as four French dictionaries in the right-click context menu under languages.
    This has nothing to do with installed languages in "Tools > Options > Content > Languages" that are language choices send to the server via the HTTP request headers.
    If you do not want to use those dictionaries then you can uninstall (or disable) the extension that added them.
    *French spelling dictionaries: https://addons.mozilla.org/firefox/addon/dictionnaires-fran%C3%A7ais/
    See:
    *https://support.mozilla.org/kb/Uninstalling+add-ons
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    If you do not keep changes after a restart or otherwise then see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Restful sample with Java for getting WebI report info in 4.1

    Hi All
    Can anyone give me a sample code in JAVA for getting WebI  report information using Restful services in 4.1 SP1 Version
    Thanks In Advance

    Hi All
    Im unable to execute the below URLs and getting error
    /documents/{documentId}/reports/{reportId}/elements/{elementId}/properties
    /documents/{documentId}/reports/{reportId}/elements/{elementId}/datapaths
    /documents/{documentId}/reports/{reportId}/elements/{elementId}/dataset
    /documents/{documentId}/reports/{reportId}/elements/{elementId}/axes/
    /documents/{documentId}/reports/{reportId}/pages
    /documents/{documentId}/reports/{reportId}/inputcontrols
    /documents/{documentId}/reports/{reportId}/
    Errors:
    Not found. (RWS 00056)
    Not acceptable, (RWS 00058)
    Any Suggestion Please.

  • Use html code in web page composer 7.3

    Hi all,
    I have a question about the standard editors of web page composer in 7.3.
    I want to create my own HTML code for the design of the portal page..
    Is it possible to use the code through one of the standard editors?
    At the moment I have created some html pages and store them in the KM content of the portal. Then I make this pages available with the KM Document iViews to use them in the Web Page Composer. The problem now is, that the links to other portal pages doesn't work..
    So is there maybe a possibility to use the html code directly in one of the editors? Or do you know, how you have to define the links to navigate to other portal pages? I tried a href="TBN://..." like the links you get with the Link List Editor, but it doesn't work..
    Thanks in advance for your help!
    Regards,
    Lydia

    Hi,
    now we have the tinyMCE editor, where you can insert and edit html-code. It works fine now for the layout,
    but there are still a few problems with the links..
    In the edit mode there are displayed all km images out of the km. But the images aren't displayed under the portal role, when i publish the page. And all the links like one to a wiki or the TBN links doesn't work, too.
    Can anybody help me further?
    Thanks in advance,
    Lydia

Maybe you are looking for

  • Can I use two iPods on one iTunes?

    I have a iPod video and I just bought a Touch. Can I synch them both on my iMac with the same iTunes files??

  • Error when starting

    Hi I keep getting the following error when I start Itunes. I have reinstalled many times and keep getting the same error everytime I start ITunes. "Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are m

  • T520i Sound problem (real-time audio)

    I`m using my Lenovo T520i i7-2630QM with 8GB Ram for my DJ needs.But i have  pops, hisses, crackles and pauses. I disabled the wireless adapter in order to get better results and it`s working but in every 15 min or 30min there is crackles and pops.I`

  • Weblogic portal 10.3.4 Domain creation issue

    Hi All, I have created the weblogic portal 10.3.4 domain with Oracle Data Base for the following connection pools (cgDataSource-jdbc.xml, cgDataSource-nonXA-jdbc.xml, p13nDataSource-jdbc.xml, p13nProfileDataSource-jdbc.xml, portalDataSourceAlwaysXA-j

  • What power line adapters work with the Simpler Net...

    I currently use the provided Simpler Networks power line adapters, one plugged into my HH3 and the other for my BT Vision box. I want to also connect my desktop PC to the HH suing a power line adapter. Which ones will work with the ones I already hav