Phani Sajja

Greenhorn
+ Follow
since Mar 08, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Phani Sajja

Hi,
From my front controller I am executing the corresponding command based on the url. This command has to collect the data from the database and the data made available to the next view. Here The command has to get a transfer object from the database and update it. Transfer object can also be composite transfer object. Can I directly call the DAO code in command or apply a pattern here. How can I get and update these composite transfer objects using a pattern.

Thanks
Phani
I am currently developing a web application and trying to implement FrontController design pattern. FrontController delegates incoming requests to a RequestHelper, the helper intern creates a command based on the url-pattern. The command executes and returns the next view. My problem is When the command executes it gets a list of items for view, the client selects one of the items for further processing. When the user selects an item it generates a new command based on the url-pattern and the list is no more accessible. How to keep the list even after executing a new command. I dont want to use a "HttpSession" or "ServletContext". Is there any alternative or a pattern for preserving the list for feature. Please help me.
Hi, I am new here. I have to display the images dynamically reading from a database. I have no problem displaying images. When i try to reduce the width in img tag then it is slowly rendering it. How to overcome this.

<img src="image.jsp?imgID=112" width="150" heigth="130" border="0">

I am also giving the sample jsp to display

byte [] imgData = blob.getBytes(1,(int)blob.length());
response.setContentType("image/jpeg");
OutputStream o = response.getOutputStream();
o.write(imgData);

I want to display the image without any time taken. How could I solve this. Please Help me.

Thanks.
Phani.
15 years ago
JSP