aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Image Processing Using JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Image Processing Using JSP " Watch "Image Processing Using JSP " New topic
Author

Image Processing Using JSP

ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
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


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Masoud Kalali
Author
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

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.


Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42634
    
  65
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.


Ping & DNS - my free Android networking tools app
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
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

Joined: Jul 08, 2004
Posts: 531

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

Joined: May 26, 2003
Posts: 30955
    
158

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
ujjwal soni
Ranch Hand

Joined: Mar 28, 2007
Posts: 403
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
Marshal

Joined: Mar 22, 2005
Posts: 42634
    
  65
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

Joined: Mar 28, 2007
Posts: 403
Can you tell me names of taglibs for image processing ?

Regards,

Ujjwal Soni

Baroda
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42634
    
  65
I'm not aware of any existing ones.
Nar pulukuri
Greenhorn

Joined: Mar 12, 2009
Posts: 2
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

Joined: Mar 28, 2007
Posts: 403
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

Joined: Jul 20, 2005
Posts: 10266
    
168

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.


[My Blog] [JavaRanch Journal]
Nar pulukuri
Greenhorn

Joined: Mar 12, 2009
Posts: 2
Can you post some sample code

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image Processing Using JSP