hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
CTS,
2775Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
2354I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
2962My Question is that i am using
What methods do you use in servlet - applet communication?
What are the differences between servlet context vs servlet config?
What is cookies in servlet with example?
When should you prefer to use doget() over dopost()?
What is a web application and what is it’s directory structure?
What are Servlets?
How can an existing session be invalidated?
How many servlet objects are created?
What is the main purpose of java servlets?
Which exception is thrown if the servlet is not initialized properly?
What is the difference between the include() and forward() methods?
What is the type of method for sending request from http server?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?
How to make sure a servlet is loaded at the application startup?
How can a servlet be used to generate plain text instead of html?