Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image Processing Using JSP

 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to know weather an image can be processed only using JSP. I dont want to use servlets.

Regards,

Ujjwal B Soni

Baroda

Gujarat
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A general answer is yes, you can do what you need in your JPS page without depending on a servlet.
But in order to get a more complete answer it is better that you explain more about your issue and the solution that you have in mind, this way when another member reads your post s/he can have a better understanding of your problem.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, image processing is a huge field, and it's hard to advise on it without knowing what you're trying to do.

You should not do anything like this right in the JSP, though - use backing beans that you call from the JSP. JSPs should not contain Java code.
 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The requirements are like i want image resize, crop & other image related tasks to be performed without using servlet in my jsp page.

Regards,

Ujjwal B Soni

(Baroda)
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you will need to write a lot of scriptlet code inside your jsp pages in order to perform image editing tasks. Another solution could be writing some custom tags to do the job.

btw, why you do not want to use servlets?

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ujjwal,
Not wanting to use servlets is not a requirement. Someone telling you that you are not allowed to use servlets is a requirement. In which case, I would question the requirement.

I second the above poster - why don't you want to use a servlet/Java code?
 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The requirement is like there should be not any kind of java code in jsp & also there must not be any use of servlets. I simply want to extract image from the database & display it in the jsp page.

Regards,

Ujjwal
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ujjwal soni:
The requirement is like there should be not any kind of java code in jsp

That's good. Java code in JSPs (scriptlets) are nasty, especially for something as involved as what you're doing. The principal ways to avoid them are custom tags, backing beans and servlets.

there must not be any use of servlets.
As was pointed out above, that's the questionable part. WHY should there not be any servlets? They are better suited for this than either custom tags or backing beans.
 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you tell me names of taglibs for image processing ?

Regards,

Ujjwal Soni

Baroda
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not aware of any existing ones.
 
Nar pulukuri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to do the similar thing. My requirement is to display images on jsp and let the user mark an area on the image and store the marked image. If any one of you have done it or have an Idea how to do it, Plese let me know. Any help is greatly appreciated
 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had solved this problem using applets, I found a way in jsp but it was too buggy & many times the browser got stuck. Now after tranforming it to applet, it works fine.

 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strange this thread was discussed in EJB forum. The question is more about Image processing, where it gets done (jsp/servlet or applet) is not the real question. So moving this to Other Java API forum.
 
Nar pulukuri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post some sample code

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic