Dynamic images with JSP
Hello,
I am using NetBeans to make a WebApp. I have an image to display on Page3.jsp that is generated during the navigation from the previous page, Page2.jsp. This image is a png file, and is unique graph generated for each visitor. Is there a simple way to display dynamically created images? I have searched for tutorials and asked my good pal Google but to no avail.
(FYI: At present, I am saving the images in a folder I have created beneath the 'web' folder, called 'web/images'. Netbeans asks me if I want to reload the image only after the previous, old image has been sent out by the server. I am producing and creating the image with the button_action method of Page2.jsp that then sends the user to Page3.jsp, where the image is to be displayed. Once the image is reloaded, I can refresh the web page and the correct image appears.)
Any help would be greatly appreciated.
Thanks,
Taivo
Although I have never implemented this, I know it is possible and I can point you in the right direction. If you already have the code to create the .png image, it shouldn't be too difficult to modify the image code into a servlet to serve nothing but the image (and leave rest of the html in place). Just as the page is writen to an output stream from the request for page.jsp (by the servlet created by the jsp parser), a request for an image can be handled by a servlet.
//this is in page3.jsp as plain HTML
<img src="/servlet/graph?user=aUser" />This servlet (graph.class) draws ths image, but instead of writing it to a file, writes it to the response stream.
Hope this helps,
Bamkin
Similar Messages
-
Hi!
I would like to generate dynamic images in a JSP which I would like do an "include" in other JSPs across the site. The reason for this is we show many emails/ phone numbers on various pages and with the prevalence of spiders/ robots, it would be better to not have it as HTML text. I saw a couple of sites displaying them as images but they were PHP and ASP.Net sites. Any suggestions?
Thanks!!Well... You could simply create 1 image per letter/number (this is done within a few minutes) and then code a function, which seperates the given string into chars and then creates HTML-code with the pictures.
There is an easier way, sure. But I don't know him :P. You know "Captchas"? The Codes you have to enter all over the internet to verify yourself as human and not as bot? If you google about ths code uses to create Captchas, you should be happy :)
X--spYro--X -
I am developing a search page which should first bring the results sorted by some particular field & then the user should have the option of sorting the results by other field names which are provided in a form list.
For generating dynamic requests, ? is used in place of parameter. But for some reason it is not working with Order by. Other dynamic queries are working fine. Please let me know the right way to handle it.
And also if someone can advise a good reference book for dynamic SQL statements in accordance with JSP.
Thanks for your time.Never mind my previous solution. Some success was not perfect, therefore not acceptable. I used a scriplet and the problem is solved!
<!-- Dynamically build the query -->
<%
String sql = "select * from issue_list_view";
String where = null;
String param = null;
// Status
param = (String)pageContext.getAttribute("status");
if(param != null && param.compareTo("")!=0)
where = "status='"+param+"'";
else
where = "status not in ('Closed','Duplicate')";
// Assigned To
param = (String)pageContext.getAttribute("assign");
if(param != null && param.compareTo("")!=0)
if(where.length()>0) {where += " and ";}
where = "category='"+param+"'";
// Category
param = (String)pageContext.getAttribute("category");
if(param != null && param.compareTo("")!=0)
if(where.length()>0) {where += " and ";}
where = "category='"+param+"'";
// Type
param = (String)pageContext.getAttribute("type");
if(param != null && param.compareTo("")!=0)
if(where.length()>0) {where += " and ";}
where += "issue_type='"+param+"'";
// Id
param = (String)pageContext.getAttribute("id");
if(param != null && param.compareTo("")!=0)
if(where.length()>0) {where += " and ";}
where += "issue_id="+param;
// Add where clause if needed
if(where != null) { sql += " where " + where; }
%>
<!-- Do the query -->
<sql:query var="issues" sql="<%=sql%>"/> -
Dynamic imaging in jsp doesnt work
Hi,
The following piece of code works in tomcat but does not work in weblogic. can
anybody please help me with this.
<%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg.*,java.util.*"%>
<%
// Create image
int width=200, height=200;
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
// Get drawing context
Graphics g = image.getGraphics();
// Fill background
g.setColor(Color.white);
g.fillRect(0, 0, width, height);
// Create random polygon
Polygon poly = new Polygon();
Random random = new Random();
for (int i=0; i < 5; i++) {
poly.addPoint(random.nextInt(width),
random.nextInt(height));
// Fill polygon
g.setColor(Color.cyan);
g.fillPolygon(poly);
// Dispose context
g.dispose();
// Send back image
ServletOutputStream sos = response.getOutputStream();
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
encoder.encode(image);
%>
Thanx in advance.
regards,
Subramaniam
Thanx a lot.Just read your solution again. Didnt get it the first time .Its pretty
interesting.I think i will opt for the servlets solution.
Dimitri Rakitine <[email protected]> wrote:
>I thought I did. This version works (on 6.1 at least) :
>
>----------
><%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg.*,java.util.*"%><%
>
>// Create image
>int width=200, height=200;
>BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
>
>// Get drawing context
>Graphics g = image.getGraphics();
>
>// Fill background
>g.setColor(Color.white);
>g.fillRect(0, 0, width, height);
>
>// Create random polygon
>Polygon poly = new Polygon();
>Random random = new Random();
>for (int i=0; i < 5; i++) {
> poly.addPoint(random.nextInt(width),
> random.nextInt(height));
>}
>
>// Fill polygon
>g.setColor(Color.cyan);
>g.fillPolygon(poly);
>
>// Dispose context
>g.dispose();
>
>// Send back image
>ServletOutputStream sos = response.getOutputStream();
>JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
>encoder.encode(image);
>%>
>----------
>
>Subramaniam <[email protected]> wrote:
>
>> Hi,
>
>> There is out.println("\n")'s in the java file generated by weblogic.
>There is
>> out.write("\n")'s in the java file generated by tomcat. So does that
>make a difference
>> ?
>
>> You told me to make a change in the jsp - could you be more specific
>as to what
>> change needs to be made(if i dont want to use a servlet).
>
>> Thanx in advance,
>
>> Subramaniam
>
>> Dimitri Rakitine <[email protected]> wrote:
>>>Look at the generated .java file - WebLogic's JSP compiler adds
>>>'out.println("\n")'s at the beginning. Try to change your JSP (or,
>>>even better, use servlet to generate images) :
>>>
>>><%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg.*,java.util.*"%><%
>>>
>>>// Create image
>>>int width=200, height=200;
>>>BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
>>>
>>>// Get drawing context
>>>Graphics g = image.getGraphics();
>>>
>>>// Fill background
>>>g.setColor(Color.white);
>>>g.fillRect(0, 0, width, height);
>>>
>>>// Create random polygon
>>>Polygon poly = new Polygon();
>>>Random random = new Random();
>>>for (int i=0; i < 5; i++) {
>>> poly.addPoint(random.nextInt(width),
>>> random.nextInt(height));
>>>}
>>>
>>>// Fill polygon
>>>g.setColor(Color.cyan);
>>>g.fillPolygon(poly);
>>>
>>>// Dispose context
>>>g.dispose();
>>>
>>>// Send back image
>>>ServletOutputStream sos = response.getOutputStream();
>>>JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
>>>encoder.encode(image);
>>>%>
>>>
>>>Subramaniam <[email protected]> wrote:
>>>
>>>> Hi,
>>>
>>>> The following piece of code works in tomcat but does not work in
>weblogic.
>>>can
>>>> anybody please help me with this.
>>>
>>>
>>>
>>>> <%@ page contentType="image/jpeg" import="java.awt.*,java.awt.image.*,com.sun.image.codec.jpeg.*,java.util.*"%>
>>>
>>>> <%
>>>
>>>> // Create image
>>>> int width=200, height=200;
>>>> BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
>>>
>>>> // Get drawing context
>>>> Graphics g = image.getGraphics();
>>>
>>>> // Fill background
>>>> g.setColor(Color.white);
>>>> g.fillRect(0, 0, width, height);
>>>
>>>> // Create random polygon
>>>> Polygon poly = new Polygon();
>>>> Random random = new Random();
>>>> for (int i=0; i < 5; i++) {
>>>> poly.addPoint(random.nextInt(width),
>>>> random.nextInt(height));
>>>> }
>>>
>>>> // Fill polygon
>>>> g.setColor(Color.cyan);
>>>> g.fillPolygon(poly);
>>>
>>>> // Dispose context
>>>> g.dispose();
>>>
>>>> // Send back image
>>>> ServletOutputStream sos = response.getOutputStream();
>>>> JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(sos);
>>>> encoder.encode(image);
>>>> %>
>>>
>>>
>>>> Thanx in advance.
>>>> regards,
>>>> Subramaniam
>>>
>>>--
>>>Dimitri
>
>
>--
>Dimitri
-
Hi,
I need to create dynamic checkboxes in my jsp page from the values retrived from the database(oracle).help me with the code.My oracle queries are in my Java bean coding.pls its very very urgent.help me out.hi,
This is my bean coding.can u pls tell me how to store the resultset values in a arraylist.help me out.
package campaign;
//Imports
import java.io.*;
import javax.sql.DataSource;
import javax.naming.*;
import com.ibm.ws.sdo.mediator.jdbc.Create;
import java.sql.*;
* @author n48edf
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
public class AgentDao extends java.lang.Object implements UnsubscribeConstants
protected int indivID = 0;
protected Connection _conn;
protected DataSource ds = null;
protected ResultSet rs = null;
private String driver = null;
//need to code
public void agentLoad(IndvId) throws IOException
String driver = ORACLE_DRIVER;
String dataSource= ORACLE_DATA_SOURCE;
try
//Establish database connection
if (_conn == null)
try
Context context = new InitialContext();
// JDBC JNDI lookup
ds = (DataSource)context.lookup(dataSource);
context.close();
// Get a connection
_conn = ds.getConnection();
catch (Exception exp)
throw exp;
// Create a connection statement
Statement stmt = _conn.createStatement();
rs = stmt.executeQuery("SELECT DISTINCT busn_org_nm "+
"FROM BUSN_ORG bo,AGYLOCINDV_RESP_BUSORG ab "+
"WHERE ab.busn_org_cd=bo.busn_org_cd AND ab.indvid=p_IndvId");
String array[]=rs;
stmt.close();
cleanUp();
catch ( SQLException sqe )
System.out.println ("AgentDao.java - SQL Exception: " + sqe.toString());
sqe.printStackTrace();
catch ( Exception e )
System.out.println ("AgentDao.java - Exception: " + e.toString());
e.printStackTrace();
finally
if(_conn != null|| rs != null)
cleanUp();
public void cleanUp()
try
//close resultset
if (rs != null)
rs.close();
rs = null;
//close connection
if(_conn != null)
_conn.close();
_conn = null;
catch (SQLException sqe)
System.out.println("SQL Exception occurred in cleanUp() of AgentDAO");
sqe.printStackTrace();
catch (Exception e)
System.out.println("Error occurred in cleanUp() of AgentDAO");
e.printStackTrace();
} -
Uploading images with jsp-PLEASE HELP
Hi
I would like to allow users to upload images(photos) from the website im doing.
i was gonna use perl which seems quite easy. Since everything else i used was jsp i thought i might try to do uploader in jsp (though its seems more difficult)
id like to limit :
the maximum file size to be uploaded ,
the maximum width/height of the image file
the list of the acceptable mime-types (Content-Types) -jpg, gif
Any suggestions how to go about it PLEASE- ie. what packages, classes do i need- mimeparser, BufferedImage, FileFilter? cos im bit lost which classes to use.
THANKS LOTS
sabcarinaThis is the jsp File which helps me to upload the file
But for this Jakarta Commons fileupload is needed which is normally provided with Tomcat 5.5
The code is
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import="org.apache.commons.fileupload.DiskFileUpload"%>
<%@ page import="org.apache.commons.fileupload.FileItem"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.util.*"%>
<%@ page import="java.io.File"%>
<%@ page import="com.common.*"%>
<!--<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Process File Upload</title>
</head>-->
<%
DerivedLastNoEntity objLastNoEntity=new DerivedLastNoEntity();
DerivedLastNoObject objLastNo=(DerivedLastNoObject)objLastNoEntity.getData(new DerivedLastNoObject(10)).get(0);
int lastNo=objLastNo.getLastNo();
String forwardString=null;
StringBuffer parameters=new StringBuffer();
DiskFileUpload fu = new DiskFileUpload();
// If file size exceeds, a FileUploadException will be thrown
fu.setSizeMax(1000000);
List fileItems = fu.parseRequest(request);
Iterator itr = fileItems.iterator();
while(itr.hasNext()) {
FileItem fi = (FileItem)itr.next();
//Check if not form field so as to only handle the file inputs
//else condition handles the submit button input
if(!fi.isFormField()) {
String fileName=fi.getName();
if(fileName.length()>0)
fileName=(++lastNo)+fileName.substring(fileName.lastIndexOf("."));
File fNew= new File(application.getRealPath("/"), fileName);
parameters.append("&fileName=/struts-blank/"+fileName);
fi.write(fNew);
else
if(fi.getFieldName().equals("forwardString"))
forwardString=fi.getString();
else
parameters.append("&"+fi.getFieldName()+"="+fi.getString());
objLastNo.setLastNo(lastNo);
objLastNoEntity.edit(objLastNo);
System.out.println("before "+forwardString);
if(parameters.length()>0)
if(forwardString.indexOf("?")<0)
forwardString=forwardString.concat(parameters.toString().replaceFirst("&","?"));
else
forwardString=forwardString.concat(parameters.toString());
System.out.println("after "+forwardString);
response.sendRedirect(forwardString);
%>
<!--<body>
Upload Successful!!
</body>
</html>-->Bye for now
CSJakharia -
Hi,
can someone suggest me how to implement following concept in JSP (only through jsp)
i have one dropdown list box,which is holding source values, on selecting source the second dropdown list box should display destination values from database.
i have some sample code snippet, but not sure what to put in "onchange". can anyone tell me, pls let me know if there are any easy ways to do this.
Source <select name="source" onchange="">
<option value="">Select Source</option>
<option value="jfk">JFK</option>
<option value="heathrow">Heathrow</option>
<option value="cst">Mumbai</option>
<option value="chennai">Chennai</option>
</select>
Destination <select name="destination" >
<%
while(rs.next())
String destination = rs.getString("destination");
out.println("<option value="+destination+">"+destination+"</option>");
%>
</select>Here is my try which I done with [html tutorial|http://phpforms.net/tutorial/tutorial.html]. You can try to use it.
<html>
<head>
<script language="javascript" type="text/javascript" >
<!-- hide
function jumpto(x){
if (document.form1.jumpmenu.value != "null") {
document.location.href = x
// end hide -->
</script>
</head>
<body>
<select name="source" onchange="">
<option value="">Select Source</option>
<option value="jfk">JFK</option>
<option value="heathrow">Heathrow</option>
<option value="cst">Mumbai</option>
<option value="chennai">Chennai</option>
</select>
Destination <select name="destination" >
<%
while(rs.next())
String destination = rs.getString("destination");
out.println("<option value="+destination+">"+destination+"</option>");
%>
</select>
</body>
</html>This is just simple example. You can customize it as you like. -
Dynamic Labels with JSP/BC4J
Is it possible to have the labels on a JSP dynamically change as the input changes? IE. If country chosen is canada the label becomes postal code instead of zip code.
Thanks,
NatalieYou can setup control hints per locale. If you setup hints for both locales, the JSP runtime will automatically select the appropriate label based on the browser's language settings.
-
Can't create dynamic html elements with jsp????? important
Hi All,
I am having problem creating dynamic html elements with jsp tags, i have tried to use EL and java scriplet, both of them don't work.
i am trying to create dynamic menu in my "rightMenu.jspf", based on, if user has logged in or not.
some like this!
<jsp:if test ="${validUser == null}">
some simple text menu here
</jsp:if>
but it is not working. it simply loading all and images with in statement, regardless of whether user has logged in or not. i think some how if statement is not working properly.
"validUser" is a session bean, which is not creating at this point, it will created when user will log in successfully. and also this session bean does not exist at the page, where i am trying to check that .
Is there any way to create dynamic values in jsp. It is really important, is there any body who help me in this matter. i would be really grateful.
zamanhi jaspre,
thanks for replying me. you know what, is it not something wrong with web.xml file. i remember once, i deleted some from there, a property with "*.jsp". i can't remember what exactly was it though.
all if statements works on files ending with extension ".jsp" but don't work only on with extension ".jspf". there must be to do with this.
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>ValidateServlet</servlet-name>
<servlet-class>ValidateServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ValidateServlet</servlet-name>
<url-pattern>/ValidateServlet</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>dwr-invoker</servlet-name>
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>pollAndCometEnabled</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>dwr-invoker</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
main.jsp
</welcome-file>
</welcome-file-list>
</web-app>
if any one can figure it out. i would be grateful.
zaman -
Problem with displaying BLOB images on JSP page using a servlet
hi. I have a big problem with displaying BLOB images using JSP. I have a servlet that connects to the oracle database, gets a BLOB image , reads it, and then displays it using a BinaryStream. The problem is , this works only when i directly call that servlet, that is http://localhost:8080/ImageServlet. It doesn't work when i try to use that servlet to display my image on my JSP page (my JSP page displays only a broken-image icon ) I tried several coding approaches with my servlet (used both Blob and BLOB objects), and they work just fine as long as i display images explicitly using only the servlet.
Here's what i use : ORACLE 10g XE , Eclipse 3.1.2, Tomcat 5.5.16 , JDK 1.5
here is one of my image servlet's working versions (the essential part of it) :
BLOB blob=null;
rset=st.executeQuery("SELECT * FROM IMAGES WHERE ID=1");
while (rset.next())
blob=((OracleResultSet)rset).getBLOB(2);
response.reset();
response.setContentType("image/jpeg");
response.addHeader("Content-Disposition","filename=42.jpeg");
ServletOutputStream ostr=response.getOutputStream();
InputStream istr=blob.getBinaryStream(1L);
int size=blob.getBufferSize();
int len=-1;
byte[] buff = new byte[size];
while ((len=istr.read( buff ))!=-1 ) {
ostr.write(buff,0,len);
response.flushBuffer();
ostr.close(); and my JSP page code :
<img src="/ImageServlet" border="0" > If you could just tell me what i'm doing wrong here , or if you could show me your own solutions to that problem , i would be very greatful ,cos i'm realy stuck here , and i'm rather pressed for time too. Hope someone can help.I turns out that it wasn't that big of a problem after all. All i had to do was to take the above code and place it into another JSP page instead of into a servlet like i did before. Then i just used that page as a source for my IMG tag in my first JSP. It works perfectly well. Why this doesn't work for servlets i still don't know, but it's not a problem form me anymore . Ofcourse if someone knows the answer , go ahead and write. I would still appriceatte it.
here's the magic tag : <img src="ImageJSP.jsp" border="0" > enjoy : ) -
Displaying an Image in an Excel Spreadsheet with JSP - URGENT
Hi Peoples
I can transfer the table I am using in to excel with JSP by doing:
<%@ page contentType ="application/vnd.ms-excel" %>
this works fine, though I have an image that sits within the table that I want to be displayed as well.
Can this be done?? If so how???
ThanksTry to insert the image into sheet from it's URL not from it's local file path
Best regards -
Problem with placing dynamic images.
I have a 800x600 file. It is being used for a PhotoSlide
show.
The images are displayed dynamically, as external files.
Some of the photos will be taken 1 hour before the
presentation, so I have
it set up to display img001.jpg, img002.jpg, img003.jpg as
external files.
Once the photos are taken, they'll be renamed, and placed in
the appropriate
folder, so that they'll appear in the presentation, without
having to
republish the authorware file.
I have the display icons for the images set to display the
image at 400,300,
which will center the image on-screen.
The problem is that when i change the images out, from a
verticle to a
horizontal picture, then run the piece, but image's placement
on screen
changes.
So how can I set the linked external file to ALWAYS display
centered on
screen, no matter the orientation, or size of the picture.That doesn't change anything from when I had X = 400 and
Y=300.
The images are linked externally.
This is going to be a photo slideshow to be shown after a
wedding, during
the reception. I will NOT be there to administer this, or to
republish the
authorware files. So at the final segment of the slideshow,
we'll be showing
several photos taken earlier, at the wedding.
I have it set up to display 5 photos from the wedding. They
are grabbed
externally, but Authorware looking for img01.jpg - img05.jpg.
The problem is that the image's placement on-screen changes
when a different
size image is put in place.
For example, if i publish the authorware file, and i was
using a 720 x 480
image, everything works fine. But if i replace the external
image with a 480
x 720 image, the placement on screen is no longer set for the
center of the
image to appear at the dead center of the screen (400,300). I
need it to
work like this, since I don't know if the wedding photos
being added will be
set to portrait or landscape.
"Steve Howard **AdobeCommunityExpert**"
<steve@$NoSpam$tomorrows-key.com>
wrote in message news:e4t1rv$iv1$[email protected]..
>
>> So how can I set the linked external file to ALWAYS
display centered on
>> screen, no matter the orientation, or size of the
picture.
>
>
>
> Set the display icon Positioning property to On Screen.
Set the Initial X
> location to WindowWidth/2
> Set the Initial Y location to WindowHeight/2
>
>
> Steve
>
>
> --
> ACE - Adobe Community Expert, Authorware
> My blog -
http://stevehoward.blogspot.com/
> Authorware tips -
http://www.tomorrows-key.com -
Create dynamic image, dump on server someplace and reference in JSP?
I was thinking about creating dynamic images and referencing them on a JSP
(creating them is ok). I'm sure this is a pretty standard thing, but I
don't know how to do it. Any ideas? I tried doing a search on the BEA
support site (nice changes :>) but nothing very accurate came up.
Thanks.
Assign an ID (e.g. 1234) to the uploaded file. You should abstract the store
so that it will work on the file system or in the database.
The JSP will include an image ref to that ID, e.g.
http://www.myco.com/myapp/imageservlet?id=1234
The image servlet will retrieve and stream the image. It has to set content
type etc. You should also verify that the current user has access to the
requested image if security/privacy is an issue.
Peace,
Cameron Purdy
Tangosol, Inc.
http://www.tangosol.com/coherence.jsp
Tangosol Coherence: Clustered Replicated Cache for Weblogic
"PHenry" <[RemoveBeforeSending][email protected]> wrote in message
news:[email protected]...
> Howdy. I just thought of something. If the img is coming across via the
> stream, how do you reference it in the html/jsp file? I just thought
about
> that now as I was getting a cup of coffee. (I need to cut back! :>)
>
> Thanks.
>
>
>
>
> "Cameron Purdy" <[email protected]> wrote in message
> news:[email protected]...
> > If you write it to a file, you are writing it to an OutputStream, right?
> >
> > Instead, just write it to the OutputStream that comes from the
HttpRequest
> > object. For example:
> >
> > <img src="http://www.mysite.com/myapp/my.jsp?name=whatever">
> >
> > That would hit your JSP (it would be better to use a Servlet in this
case
> > though), and you would stream back the image.
> >
> > Peace,
> >
> > Cameron Purdy
> > Tangosol, Inc.
> > http://www.tangosol.com/coherence.jsp
> > Tangosol Coherence: Clustered Replicated Cache for Weblogic
> >
> >
> > "PHenry" <[RemoveBeforeSending][email protected]> wrote in message
> > news:[email protected]...
> > > Interesting. I'm still a bit new to this stuff. Do you have/know
where
> > to
> > > find some examples?
> >
> >
> >
>
>
-
How to create a menu in flex with dynamic images?
I am using mx.controls.Menu but can't seem to find a way to add dynamic images to it...is there a way fo doing this? should I me using another control?
place the images path in the xml file
when the swf is loaded pass the path of the xml file and
bind the source of menu images with the loaded xml
If this post answers your question or helps. please mark it as such -
Generate input text fields dynamically on clicking a image with adf??
Is it possible to generate input text fields dynamically on clicking a image with adf??
The functionality to add and remove text field from UI with ADF??Yes, you can dynamically add components to a page.
[url http://www.nearinfinity.com/blogs/michael_bevels/dynamic_forms_using_jsf.html]Here is an example - it demonstrates with ICE Faces components, but the concept is the same for any type of component, including ADF
John
Maybe you are looking for
-
ITunes could not connect to this iPhone. The device is no longer connected
A few days ago, my iPad 3 A1430 screen turned black. Siri was still there but very slow to respond. The following day, the screen display returned (the usual green background colour but a much smaller display and not a single icon present). Siri was
-
OBIEE: Criterias not appearing in Answers query
Hi All, I am trying to include two criterias based on date conditions in Oracle Answers but when I look at the query generated by BI server, I can't see the criterias included in where caluse.Please can u help! Criterias are something like this: CAST
-
Generate report with data from database package
Hi Is it possible to generate a report where the values come from an oracle database package instead of from an sql query declared in the report itself? If yes, how is it done? Appreciate any help. Thx.
-
How do I add Brushes to my Drop down box?
I know there is a way to add brushes to the brush drop down box. I use the brush tool drop box to add it in but when I exit out of the brush set it goes away then I have to load it again. I also noticed the the loaded brushes are separated from the o
-
Getting iLife on a open box mac.
I have a family member that just bought an open box comuter at a retailer and is unable to download iLife. I've read that it could have been registered by the previous owner yet when the product was returned the liscense stayed with him even though h