Design « Development « JSP-Servlet Q&A





1. What is the best way to migrate an existing messy webapp to elegant MVC?    stackoverflow.com

I joined a new company about a month ago. The company is rather small in size and has pretty strong "start-up" feel to it. I'm working as a Java developer on ...

2. JSP - Separate Design from Logics    stackoverflow.com

I am just starting with coding some JSP, which I find isn't all that different from asp.net or any other "real" web-language / web-gateway. I found this question; Structure JSP/Java ...

3. Design/Implementation Problem -- Java/JSP/Servlets    stackoverflow.com

Bear with me so I can explain the layout of my problem. I am working on a website/web application that involves customers searching for real estate information. One feature on the ...

4. Design/Implementation...most likely needs to be solved with AJAX    stackoverflow.com

I have a problem that is common, but I am not quite sure exactly how do go about solving it. My situation is I have a form that will have a drop ...

5. JSP dynamic web page generation    stackoverflow.com

I am trying to build an application for our users, we need a correct design and right technologies.Here is the requirement. Based on user template selection we need to generate dynamic ...

6. JSP MVC Model 2 Architecture Question    stackoverflow.com

I want to develop a web application and I have access this API. In the API there are methods that allow you to get the userId of the current user via ...

7. web page design     stackoverflow.com

These days I am building a web site,and I am crazing by the page design. For example: There is a page when can be spitted to two parts,the left and the right. The left ...

8. MVC Design - How many controllers?    stackoverflow.com

Overview I’m building a simple web application consisting of a canvas and elements on the canvas. The canvas supports the following operations: load, save The elements support the following operations: move, resize JavaScript on the ...

9. How to initialize an API in servlet environment    stackoverflow.com

Obviously I want to write decoupled components. One part is a form engine. I don't want it to be dependent on the servlet API, but I have to inialize it per-request ...





10. Java Webservice REST proper design best pracice    stackoverflow.com

I have developed a webservice in Java that runs as a servlet on a tomcat, parameters for the application are given to the servlet via the get request (e.g. servlet?method=search&query=searchterm123), the ...

11. Best design in using Servlets and JSPs?    stackoverflow.com

I built a Java web application with multiple servlets and jsps. I first had servlets only for shopping cart options such as adding products and deleting products etc. But then noticing ...

12. How to view design of JSP In eclipse    stackoverflow.com

I have configured a J2EE project into Eclipse . The source code is consisting of JSP as well as Java Files . Please tell me is there any way , so ...

13. Invoke main method in java class from jsp?    stackoverflow.com

I had a requirement to create a small file utility class to run off the command line from a windows desktop. The code got completed, however, after reviewing how to ...

14. help me design my login.jsp page    stackoverflow.com

I want user to provide login + password to login to my webapp. If he fails some times captcha comes to action.
I wonder what can I do, to remove java code ...

15. Proper Model 2 Design    stackoverflow.com

I understand there are a variety of ways to design web applications using java-ee, but the method that seems to make the most sense to me is model 2 or mvc ...

16. How to configure the Download file button in jsp page design?    bytes.com

leninbecse I am using the Database and get values from result set and stored it as string buffer..i am trying to access string buffer value in function(javascript) but displays the error..can ...





17. design question    coderanch.com

this is (probably) a "there is no right answer" question about design: when designing a site that will have a standard header, is it considered better form to have a Header object that will get instantiated on every page just so you can call a method that does some processing/database hits and then writes the header html, or is it better ...

18. Design issue in presentation tier    coderanch.com

It is common in web application to adopt helper classes to bridge presentation tier and business tier. I have some question about helper class strategy, though. According to Model-View-Controller architecture, the only bridge between View and Model should be controller. That brings a problem: assume that we have a web application whose layout uses jsp which imitate a framed web page ...

19. design issue...    coderanch.com

Hey, I have a search page where the user can provide search criteria. If the result is too large say 10,000 records, I wish to display only 20 records per page. When the usr clicks the next button, he gets the next 20. My question is is it better to connect to DB and retrive values every time user clicks next ...

20. how to design logout page?    coderanch.com

I'm posting the reply to my own question...I had asked about making logout page...Somebody told me that we can check the user action if he is clicking the back button of the browser and check the session object for particular userId..if it doesn't exist, then redirect to Login page...but please can anybody tell me how to check this user action that ...

21. a jsp design question...    coderanch.com

hi, Through jsp you will never connect to database,because they reside on client side, there won't be any security. The db connection takes place only through servlets or ejb's, it is just your assumption that through jsp's dbconnection is happening. Through jsp if you connect to database, then it won't be a MVC architecture. Lakshmi

22. JSP Design question    coderanch.com

Hi, I have to develop a website, where in i have to show a table with data, I want to show only 10 records per page, I got a taglib on www.jsptags.com for paging logic which works fine, I have a bean which calls a store procedure, and this bean has page scope so each time when i load the page, ...

23. jsp design question    coderanch.com

Hi, I hope this is an appropriate forum for this question. I have a project on the go where users upload images to my site and then a page is dynamically displayed for them with these images. Once it's built the page seldom changes. When the user uploads the images the file names are all stored in my database and the ...

24. A Design Question.    coderanch.com

I'm having difficulty understanding exactly what you want to do. You have a JSP which is generating some HTML and/or CSV data, which you can see in you browser, yes? And you need to save this output to disk? How is what you want different from just using "save as" from the browser "file" menu?

25. Design Question    coderanch.com

Originally posted by Dilipkumar Kalyankar: Andrew, I need to design a web page which retrieves (from Oracle database) Sales and other information at the department level. This page should provide option to choose different department and date. Along with data this page should show the charting. I'm planning to use JSP for presentation layer. I was wondering where should I keep ...

26. JSP template design advice    coderanch.com

27. design question    coderanch.com

Hope this makes sense. my app is running on Jrun 3.1, and MS SQL Server 2000. i have a jsp page that lists all queries saved in a table. When one of these queries is selected, I pass through the query string the unique query id. The next page takes the id and searches the db for the query details (sql ...

28. MVC Design Isssue    coderanch.com

Ideal way in MVC is to carry to interactions with legacy application or Databases in beans rather than servlets. When an application scales, the complexity of it also increases as new design strategies are required. Scaling requires clustering of servers, load balancing, and sharing of resources, which in turn, create new issues if you have them in the servlets i think ...

29. application design question    coderanch.com

Hi I am building a classifieds type application. Users will be able to add adverts which other users can then search. My question is would it be a bad idea to load all the adverts in to the application object from the database once when the application is initalised? I dont envisage many adverts being added due to the nature of ...

30. Tips on java architecture design    coderanch.com

31. Design Issue(Urgent)    coderanch.com

32. Java JSP Design Issue    coderanch.com

33. A good design? Opinions please...    coderanch.com

Hello All, Assume you have a list of employees stored in a Bean as an ArrayList. Now, a user will have the option of searching this list, navigating forward and backward, and selecting a given employee. Employees are displayed in a normal HTML table, 7 employees at a time. If I were to navigate through the ArrayList, I would have to ...

34. web-site design issue    coderanch.com

The menu appears, but I am not too fond of the bg in that menu, does not flow with the background on the rest of the site. I personally am not into using a Java Based menu on a website when you can use a JavaScript one that does not require loading, but then again I do not use Java. People ...

36. design isssues    coderanch.com

we are tryin to develop a new web app but this one could be used from another web app so we are trying to decide on a design. Lets just forget abt the authetication part. we came up with 2 designs 1. create jsp include pages and have a wrapper page. so in this case both the web apps will share ...

37. Re: MVC Design    coderanch.com

MVC stands for Model - View - Controller, and is a design pattern independent of Servlet/JSP technology. It represents a way of building systems with three types of demarcated component: the Model, the View and the Controller. A Model is typically data, in the servlet/JSP world it could be a JavaBean which represents a row in a database table for example. ...

38. Design issue in JSP    coderanch.com

39. Jsp - servlet design    coderanch.com

40. Design and include    coderanch.com

Well, I'm developing a website where the content is dynamically included.It's my first jsp project so I've got some - probably basic -questions. A jsp page is divided in some areas like content, navigation etc. Content -as an example - is dynamically included and should display some - I call them - blocks. A block is for example an image, a ...

41. please help with jsp design    coderanch.com

I did this with a servlet and now I'm trying to figure out how to do this with a jsp. I have a screen that displays data If there is no data you get a message saying no data So I think that would be 2 jsps. If you hit the edit or save button you get a new screen that ...

42. Java Site Design    coderanch.com

43. how to design a remote file viewer in jsp    coderanch.com

hi all, im designing a network management application..in which i need to design a jsp file ( i call it browser.jsp). so when i log in, in the home page i see those system which are connected to the server. when i click on any of the remote system, i need to invoke the jsp file (browser.jsp) as result of which ...

44. jsp - design suggestion    coderanch.com

45. design issue    coderanch.com

Hi everyone, Please guide me whats the best way to do this in jsp/servlets. I have a page1.jsp I have a submit button on this page. Onclick of that button, I need to call page2.jsp Within page2.jsp, I am doing some processing say insert and give a "task complete" message on page2.jsp. This works fine. Now the problem is if the ...

46. Page-centric design vs Servlet-centric design    coderanch.com

I've recently been reading 'Web Development with Java Server Pages' by Fields, Kolb, and Bayern from Manning press. They describe in great detail in Ch. 10 Servlet-centric design and provide a sample program in Ch. 11. I'm researching re-writing a JSP application, which follows a page-centric design. I'm trying to evaluate the servlet-centric design to see if applying it makes sense ...

47. one jsp design question    coderanch.com

48. jsp/servlet design problem    coderanch.com

49. JSP Design -- looking for best approach    coderanch.com

50. ResourceBundle design problem    coderanch.com

51. how to design this app . JSP include problem    coderanch.com

Hi Ranchers. I have 3 jsp files, they are not full page to view,but they are use to included into other jsp files. I call them chips. The 3 chips all have to access the database. Here the question is ,I have many jsp files wants to include the 3 chips.And I don't want to write database accessing code in the ...

52. JSP design    coderanch.com

53. design issue    coderanch.com

hi everyone I need to alter the table thru the GUI itself & get the results displayed in the page. simultaneously another textbox shud appear as i add a column in the table in the insert page. in the view page the data shud arrange itself in the correct order. How do i get the resultset as the count of the ...

54. Help for a Good Design program    coderanch.com

55. Product Design JMS question    coderanch.com

56. Design Issue: One Servlet Or Many Servlets    coderanch.com

This is one of the recurring questions in the Servlet world. I'm afraid there is no clear-cut answer. Bear in mind, though that it's not just a choice between lots-o-servlets or big-if-else; there are other options. The main problem with the lots-o-servlets approach is the management of them. If you're not extremely careful you end up having to hard-code the name ...

58. JSP Design - Basics    coderanch.com

Hey, got some basic doubt on JSP... Thought I could explain my doubt with this big example -- pardon the size. Say I have a series of 4 screens for a user to get registered & start an order. First screen gets the user-name, email, password. Second gets his zip-code. If delivery is being available to the entered zip-code, pick up ...

60. Guidelines for Servlet Design?    coderanch.com

61. XML and JSP design    coderanch.com

Hai Laloo, If you just want to produce an XML out put using your JSP it very simple Set the content type of your JSP page as text/xml and your JSP page can begin like this <%@ page contentType="text/xml" %> //here write any of your jsp code which can contain your own tags

62. How can we call a java bean from a servlets in a MVC Design structure?    coderanch.com

Actually, you can be "MVS-like", but as I've been occasionally known to explain, TRUE MVC isn't possible under the restrictions of HTTP. Actually, the bean property tags in JSPs do little more than resolve to the same set/get methods you invoke in servlets. And after all, that's the defining characteristic of a JavaBean - a component object whose properties are accessed ...

63. Servlets JSP and Design FAQS    coderanch.com

Which statement will insert static text from the tip.jsp file into a JSP page? Choose One <% include file='tip.jsp' %> <%! include file='tip.jsp' %> <%@ include file='tip.jsp' %> ------- <%= include file='tip.jsp' %> In which class are the methods sendError and setStatus used to cause an HTTP error to be returned? Choose One HttpSessionEvent HttpServletResponse ------ HttpSessionBindingEvent HttpServletRequestWrapper Assuming that the ...

65. tell me to design servlet    coderanch.com

66. Servlet Design Question    coderanch.com

Hi Folks, I'm working on project and have a design question I was hoping I could get help with. Basically, I have created a small application that about 200 users will be using to input work log information. The main page allows the users to submit information and the information is then displayed back to the user on the same screen ...

67. Servlet design    coderanch.com

well, so far I have 16 servlets, each is usually named "SomethingManager", where something is a class name. So far, in 5 or 6 of those servlets, I have codes for handling both adding and editing of that class objects. Also, because adding or editing may have different required form fields, I usually have required fields checking and getting of form ...

68. Design issue in jsp    coderanch.com

Hi I have a few static data which at present i have kept in an array. This data is a set of server names which have a tendency to be changed bimonthly. i am trying to connect to these server names using the for loop. Now since these data may be changed,i dont want to compile the whole java class. i ...

69. [Portlet 1] Design considerations compared to plain servlet/jsp    coderanch.com

There are lots of things need to be consider before you start a new "big" application. 1. The first thing is to set the boundary of your application. What you will do, what you will not do. Do not try to add everything at the first time when you build your application. Otherwise it will take forever. Create what is needed ...

70. JMS Design questions    coderanch.com

71. Design implementation Doubt Please tell me the best approach    coderanch.com

Hi Ranchers, I have to persist the CRUD operations ,so for this i am using Hibernate and SessionBeans 3.0 Now my doubt is that I have a DAO layer in form of Hibernate DAO Layer , where all these methods are implemented by the SessioBean 3.0 , Now whether this SessionBean should do the operations itself , or it should call ...

75. Design sugession needed    coderanch.com

76. Design a servlet that gets values from a file and update itself as soon as file is modified    coderanch.com

Hi Bill, I think, your solution is nice. But in some way can we make some event handler, which could modify an attribute representing the change in the servlet context. It is just a wild though, as it would give us following benefit.. 1- We would not have to do the file processing to identify the change and would reuqire less ...

77. Help in Application Architecture design    coderanch.com

Hi Vikash, It is a bit hard to answer your question since I don't know your requirements, but I will try. If you are planing to use JSF (a good choice if you have a lot of CRUD operations) with a lot of Ajax i think RichFaces is a good choice. Also if you are using JSF, you should you a ...

78. design problem    coderanch.com

79. Recommendation on design approach    coderanch.com

Hello All, In our project, the existing design is as follows : 1) When an Entity bean is created, we are assigning the primary key of that entity as "0" like, someHome.create(0,........); 2) But there is a database trigger defined, which would assign a primary key for NEW or UPDATE operation. This design worked fine, because the calling application is not ...

80. Servlet thread safety and effiecient design    coderanch.com

As Bear said, there'll be a single instance of the servlet class. The servlet container will generally keep a pool of threads that handle requests, probably somewhere between dozens and hundreds of threads. If there are more simultaneous requests, they either have to wait, or are turned down. And, as I said, you won't be handling 40000 simultaneous requests with a ...

81. A Design Problem    coderanch.com

82. looking for feedback on servlet design    coderanch.com

83. JSP Design Question about paging data    coderanch.com

I'M new to JAVA & JAVAEE, if I should post this in a diffrent forum please let me know. I have a design Question ( part JSP). I want to read a Database and display the data in a JSP. The JSP has a previous and next Button that can page thru the resultset if theres mutiple rows. My 1st approach ...

84. Design Friend community    coderanch.com

85. Suggestion on J2EE design - looking for DataSource.    coderanch.com

Good morning guys, I need your needful suggestions about a software design question. With EJB 3.1, it's now possible to use inheritance even with EJBs, so one may reuse code as used to do with POJO classes. Great. Now, I'm wondering if I may safely use inheritance even to centralize the task of looking for resources in a single base EJB ...

86. Design web application technology stack    coderanch.com

Hi, i'm interested in developing a web app which can use web services and database access. I would like to see the technologies available at each section of the technology stack, for excample spring/struts, glassfish/apache, gwt/jsf. The purpose of this is looking at the options and not always doing the same since giving my experience i always tend to use the ...

87. ideas for a servlet design problem    coderanch.com

88. design a tree structuure    java-forums.org