I Need Idea about parametrizing a Statik web Page

Hello EveryBody;
I wanted to design JSP pages to change our static web site into dynamic one.Dynamic refers only the images and some menu links menus. Actualy there are 3 menus top,sub and left.So what I did, I wrote a class that creates the menuObjects and builds the sturcture (which one is root ,childs of root and sub_childs etc etc).Than I put the root into the session and whener you click a link it sends a parametere and JSP pages refreshing with this new parametre and root itself....
BUT
I realy don't know if the works going on like this.And I have no idea if I am on the right way or not. If you read this thread and have any idea about it Can you share it with me???
Thanks For Your Consideration

You should take a look at the MVC design pattern. MVC stands for Model View Controller and it is a design pattern which tells you how to build a web application in a way it is easily scalable.
This way, you should work with JSP's (View) who only show the data, java beans (model) who contain the data and servlets (controller) who controls the flow of the application.
The Java Beans correspond to the concepts the user knows like Client, Product, Order, Invoice.
To get back to your dynamic web application, you could build a database (take a look at MySQL) which contains the menustructure. With DAO's or Data Access Objects you can retrieve the data from your database and put in into Java Beans. The Java Beans would contain your menu structure and show it on your JSP's.
I've made a brief description of the MVC. If you want to know more, let me know.

Similar Messages

  • Fireworks CS4 to CS6 - is there a setting that needs to be adjusted so that web pages look right in

    Fireworks CS4 to CS6 - is there a setting that needs to be adjusted so that web pages look right in Internet Explorer?  I was in the middle of creating pages with Fireworks CS4 and exporting them to Dreamweaver CS4 and publishing them to the website. Those pages looked fine. Then I upgraded to CS6 and the pages  look fine in  Fireworks, Dreamweaver and when I preview them "live" in Chrome but not Internet Explorer. Anyone know why?  Also, with upgrading the software I upgraded to a new computer.  Any and all suggestions are welcomed.  Thanks!

    Most likely caused by a missing document type declaration (DTD).  Truth is, the HTML code generated by graphics apps is not web worthy.  It's really only intended for quick mock-ups to show a client before you rebuild everything with CSS & HTML code in Dreamweaver. 
    This 3-part tutorial describes how to take your Design from Fireworks or Photoshop to a CSS Layout in Dreamweaver.
    Part 1 - Initial Design
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    Part 2 - Markup preparation
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt2.html
    Part 3 - Layout and CSS
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt3.html
    Nancy O.

  • All current versions of firefox (4-6) only open about 70% of the web pages I go to some are sites that I know work but firefox 4-6 will not open it. How Come?

    when I try to open certain pages like newegg.com or the like it will hang and the entire page will go black. then when I go to close the browser I can't close it in the normal fashion I have to end the task in windows task manager. This only happens when I have installed Firefox Versions 4,5 and 6. I am still using Mozilla Firefox 3.6.20 due to the web page instability that I have experienced with the newest versions. Also this will happen when I visit the Mozilla Main page as well.

    I have had to go back to 3.6 because 4 - 6 will not work on half the web sites I go to. I also have the same problem with newer versions of IE. There is some thing missing in newer versions or needs to be turned on.

  • Need to grab the data from Web Page and send it to SAP using PI

    Hello Experts,
    I need to grab the exchanges rates from the below link.
    http://www.cbr.ru/scripts/XML_daily.asp?date_req=09-06-2011.
    This link returns an XML . I need to get the data from this XML page and post it to SAP ECC using PI.
    My requirement is that, process should start from the ECC and grabs the data from the web page which gives you the XML and post this data into ECC using PI. We have a RFC written in ECC side to post the data in ECC.
    Please help me to identify the adaptor's needed and what should I need to do to initiate the process from ECC.
    Would it be a Async or Sync process ?
    I would really appreciate the inputs.
    Thanks.
    Gaurav.

    Hi,
         Any particular reason that you want to go for a sync process as then you would need to either use a BPM (RFC to BPM where you use sync/async bridge to get the xml file from the specified link and then send the response back to ECC) or go for a synchronous Java proxy on the receiver side which will grab the exchange rates and then map back to the RFC response structure. In this case, you can avoid the BPM.
    Else, as mentioned in Michal's blog, you can break it up into 2 seperate scenarios. RFC/Proxy to File and then File to IDoc/RFC/Proxy which will get the exchange rates into ECC.
    Another option can be Proxy --> PI --> ECC(IDoc/Proxy/RFC). Here you can grab the exchange rates from the link in your message mapping through a UDF.
    Regards

  • About word doc as web pages

    hi !
    I accidentally saved a Word document as a web page !! It opens in Safari, with my students names etc…
    I don't want that at all !
    how do I cancel this page ? (destroy it, annihilate it ?)
    thanks for any help !

    Dimaxum wrote:
    Open the word document again in Word and save it again as .doc
    select the word.file ones and right click "Open with: choose Word.
    Hi Dimaxum
    If you mean the doc which became a web page, it doesn't exist anymore: I canceled it from the Temporary items file in the User/Library/cache… The doc I now have is the original word.doc and that one is fine.
    And: I don't have a mouse with right and left clic !!
    That you see the document NOW in Safari is because you saved it like that as a web document. This doesn't mean that every one can see it. Only when you upload the file to a webpage or your webpage "when you got one"
    Thank you for this information ! I didn't know that. I feel better. I really don't want anybody to look at my students results (not that ist can be of great interest ! )
    Plus, now I know how to do if I want to upload a file to my blog !
    thanks again

  • How detect objets with an Ip camera?Need ideas about my project.

    Hello,
    I work on an project of an camera IP fixed on a robot. The camera come on a fixed way. When an object is placed on this way the camera detect him and stopped the robot. 
    I wonder me because that try to define that I need to do. That we need is to calculate the distance between the camera and the object and when this distance become very little = 2 cm for example, the robot stopped. But with an camera I don't think that is possible to calculate the distance.
    An second option is to use an detection of objects. On this solution, when the robot come on may be it recognized as an object because if the camera detect an movement when the robot come on there is all times an movement.
    Have you ideas of the problem, What sort of way can I Take.
    Thanks  
    Attachments:
    Project.JPG ‏26 KB

    How about stereo vision?

  • Need idea about table index

    Hi all,
    could someone please advise me tool for definition of needed index? In other words, I got query with "table access full", because one of tables doesn't have any indexes, so I should know what index would be the best to create. I don't say that "table access full" is always evil, but I guess index can possibly improve performance.

    best indexes include the most frequently used columns in the ON (Join) and WHERE clauses. With no index, it can only do a FTS.
    create an index in a test environment
    set autotrace traceonly explain;
    select.... from table where <indexed col> etc..
    set autotrace off -- to turn it off...
    --REPEAT this sequence until you have the plan you expect
    Using this autotrace does not actually execute the query (no rows retrieved). Review the output looking for ACCESS method vs. FILTER method

  • Need a way to print a web page once weekly

    I have a page with a schedule on it that I'd like to have automatically print once a week. I've toyed around in automator but can't seem to piece together a solution; this seems like it should be simple!
    Basically need to grab http://192.168.xxx.xxx (it's in PHP) -> print using a preset (if possible, would like 4/page in b&w fast draft)
    Ideas?

    One good way is to prepare a subVI with the data you want to be printed, no code, and the original waveform data being entered. Put it as a subVI and execute it when you want to print. Be sure you check the Print Panel when Finished option, and so, when you execute it, data will be passed, and automatically printed as you want.
    Good luck

  • Why does Verizon find the need to change the look of web pages and divert you to other pages?

    Why is it that verizon can't leave well enough alone! It seems everytime I log in I can't, because verizon wants me to go to another page or change my info, I just want my email, I don't want to learn about new products and new offers, If there is a time I feel te need, I will come looking, don't shove it down my throat! Another big problem is when they force you to change something before they will let you accesss your email, reminds me of a trick the Russians pull! (If you know what I mean!) If I wanted my page to look like microsofts page ,I would have their service. If you feel the need to change so often, maybe you are in the wrong business!

    It can be annoying, but I think their motivation is good.  They are trying to make things better for their customers and I think they have, even though sometimes it is annoying.  I think it would be nice if they would advise us when the pages are going to be down for maintenance,  In the mean time, you could have another E mail account so you can always get access to your E mail.

  • I need a nice menu on a web page

    I have 5 links on my page. I need the java/class files to make a pretty menu, without images. Can be singles like-bottons java based menu. Say me where can dowonload. I visit javaboutique.com, but only found complex examples. My email: [email protected]

    Try http://www.photo.net (or a million other websites)- then look in your browser cache (e.g., Windows / Temporary Internet files for Windows Me - in general, just do a search for newly created files) for junk like menu.js
    You might also look at http://www.jspsmart.com/scripts/pub/tpl/ShowTplADV_01.asp?P=330&L=EN
    JavaScript (versus Java) is the best way to go; see:
    http://www.pageresource.com/jscript/index4.htm

  • Need help creating multiple albums on web page

    I have created a website using the about me template which comes with 3 albums on on the template. It seems that only the first album is hyperlinked to another page but the other two are not. Am I correct or am I doing something wrong. Is there a way to have 3 albums on my about me page that will send the viewer to the album page when they click on it. Any help would be much appreciated.

    The problem with the iWeb albums page is that if you put more than about 6 albums with a dozen or so photos in each, it will take forever to download and will have no chance of downloading in IE.
    Unless all your viewers use Macs with Safari, forget the Photos and Albums templates and use flash.
    A lot of iWeb users seem to be unaware of how dysfunctional an iWeb built site is for PC users.

  • Best technology to navigate through a very large XML file in a web page

    Hi!
    I have a very large XML file that needs to be displayed in my web page, may be as a tree structure. Visitors should be able to go to any level depth nodes and access the children elements or text element of those nodes.
    I thought about using DOM parser with Java but dropped that idea as DOM would be stored in memory and hence its space consuming. Neither SAX works for me as every time there is a click on any of the nodes, my SAX parser parses the whole document for the node and its time consuming.
    Could anyone please tell me the best technology and best parser to be used for very large XML files?

    Thank you for your suggestion. I have a question,
    though. If I use a relational database and try to
    access it for EACH and EVERY click the user makes,
    wouldn't that take much time to populate the page with
    data?
    Isn't XML store more efficient here? Please reply me.You have the choice of reading a small number of records (10 children per element?) from a database, or parsing multiple megabytes. Reading 10 records from a database should take maybe 100 milliseconds (1/10 of a second). I have written a web application that reads several hundred records and returns them with acceptable response time, and I am no expert. To parse an XML file of many megabytes... you have already tried this, so you know how long it takes, right? If you haven't tried it then you should. It's possible to waste a lot of time considering alternatives -- the term is "analysis paralysis". Speculating on how fast something might be doesn't get you very far.

  • Indesign pdf on web page

    Evening Forum
    am i wrong in thinking i can use an indesign pdf on a web page like i do a normal pdf or jpg?
    i have had an indesign pdf created by someone, [sorry i dont know what the actual created pdf is called or whether it has a proper name?] and i need to reference it into a web page, and it wont appear. any one any ideas? do i need to write in some special HTML? [can only manage HTML and nothing more spectacular but it works for normal pdfs]
    Andi

    hi all
    i had this working well on one computer, my machine at work that has IE6 on it. I use the Embed tag and put in a little line about not showing the borders:
    this worked beautifully first time.
    not i am back on my laptop, mac [Firefox, Safari & Opera] , and my mates as well, PC laptop [Firefox and IE7], but now the HTML page i set up with the embedded pdf in it doesn't work now. oddly enough the self help page i used:
    http://blogs.adobe.com/pdfdevjunkie/2007/08/using_the_html_embed_tag_to_di.html
    Also doesn't show the embedded pdf which i did see earlier. very confused now. is it my machine? Firefox? all new browsers?
    any further help is massively appreciated. I know this can work and have had it working...
    Andi

  • Web page in Java

    So I am brand new to Java but I have developed in C++. I dont have alot of experience building websites or webpages. I am starting an individual graduate project for my degree. It involves building a web page that will be hosted by my teacher. My question to you is, Can i use java to do this? Basically I would use java instead of html, if it is possible. If it is, how do I get started. If not, what do you recommend? I figured since I know C++ already, its time for me to learn Java. What better way to do it than with a project. All advice is appreciated. Thank You.

    Basically I would use java instead of htmlBrowsers only understand html. You need to know html to create web pages. What java can help you do is respond to information that users enter into forms on html pages. You can also use java to create an html page to send back to the browser as a response, which the browser will display to the user.
    An html page (HelloWorld.html) is typically a static web page to display a document with no dynamic
    abilty such as submitting a textfield (that a user entered information into such as a password) to the
    server (although you can probably force it to be). Html pages frequently contain forms which users fill out and then submit. Html pages that contain forms were around long before java servlets + jsp's were invented. If you want the user to enter some info, then you have to send an html page with a form on it to the browser. How you create the html page is up to you. It can be a static file on the server which your java code just relays to the browser, or you can use servlets + jsp to retrieve some data from a database and then create an html page on the fly that contains the data, and then send that "dynamically created" html page back to the browser. But no matter how the page is created, the browser receives an html page, which the browser then displays. And the html page will look exatcly the same to the browser no matter how the page was created.
    I am starting an individual graduate project for my degree. It involves building a web page that
    will be hosted by my teacher. My question to you is, Can i use java to do this?Yes, but you are a thousand miles away from being able to do that in java. First, you have to learn the java language, just like you learned C++. You could read a short beginners book on java to get a cursory grasp of the basics. But after you learn some basic java, then you have to learn about a software application written in java called "servlets + jsp". The application "servlets + jsp" gives you the means to do web programming. You will speak to that application using the java programming language. But in order to learn how the application "servlets + jsp" works, you will have to read another book, and servlets + jsp is not an easy application to figure out. You might need a couple of months of studying to achieve your goal, which is a big time comittment for a student, so that is pretty unrealistic. You might be able to read a bunch of tutorials and throw something together, but you won't have any idea what's going on, and you'll probably need a lot of help.
    If you want to get your project done in a reasonable amount of time, you should probably learn php. A beginning php book will teach you the basics of html and forms, as well as teach you how to use databases to store information that users submit, e.g. login names and passwords. In my experience, some php books get you up to speed very quickly in 3 or 4 chapters and teach you to do some neat stuff immediately.
    Another thing you need to consider is: what type of software does your "host" have? If your host doesn't have Tomcat installed, then you can't use servlets + jsp. If you decide to use php as your "server side web programming language", then your host needs to have php installed.

  • Can I use iPhoto to make videos for Web Page?

    Hi,
    I really don't know where to ask this question, so I'll give it a whirl here.
    I now have Tiger and am thinking about getting Leopard. However,
    I would like to know what I might have to do, or if it is possible, to
    make a video using my iMac to record and then upload to a web page.
    I may ask this elsewhere, but I also need some input on creating a
    web page with an iMac. I used an old version of FrontPage to create
    some websites, but now that I have an iMac not sure which way to
    go.
    I'll figure out where to ask my other related questions, LOL!
    Thanks much,
    Lee

    A follow up question.
    I guess I can record a video using the iSight camera and mic in my iMac?
    In other words, I would use iSight with my iMovie application, correct?
    So that brings up something else...
    If I were to upgrade to Leopard, could I use iSight to record a video and use one of the backgrounds provided in Leopard to block out the normal background that might be seen through iSight? I guess I can do that with iChat in Leopard but I have no idea if that means I can create the video with that background.
    And then, of course, I would like to create the video and post it online: that would be the ultimate goal. Or, I guess, even post it on YouTube if needed.
    Thoughts or ideas?
    Thanks again,
    Lee

Maybe you are looking for