sun jdk1.2.2 rc2 on linux,apache 1.3.9,jserv1.0,gunjsp1.0

2000-01-10 Thread Jim Huang

Anybody using sun jdk1.2.2 rc2 on linux with apache 1.3.9 and jserv1.0
and gunjsp1.0? I am able to run some pages but crashed on some other
pages.




Jim

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



JSP Load balancing with LVS?

2000-03-16 Thread Jim Huang

Hello Friends,

Anyone knows a way to distribute load to webservers running JSP?
I am setting up LVS ( linux virtual server) to balance load on my
webservers.
It works fine for static html pages but how do I distribute JSP(tomcat)
load?
Should I run multiple tomcat? If so how do I maintain user sessions?


Thanks for any input.


Jim

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



How to distribute tomcat load to multiple servers?

2000-03-24 Thread Jim Huang

Hi JSP interest list,
Anyone knows how to distribute tomcat load to multiple servers? If
this is impossible, how does JSP handle salability?




Thanks for any input.


Jim

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JPEG/GIF Width

2000-05-22 Thread Jim Huang

public class NetImg implements ImageObserver{
  boolean m_gotDim=false;
  int m_contentLength=0;
  Dimension   m_dim=new Dimension(-1,-1);
  public NetImg(String imgUrl){
Toolkit toolkit=Toolkit.getDefaultToolkit();
URL url=null;
try{
  url=new URL(imgUrl);
  URLConnection connection=url.openConnection();
  String contentType=connection.getContentType();
  m_contentLength=connection.getContentLength();
  if(contentType.startsWith("image")){
Image img=toolkit.getImage(url);
for(int i=0;i<1000;i++){
  int width=img.getWidth(this);
  int height=img.getHeight(this);
  if((width>0)&&(height>0)){
m_dim.width=width;
m_dim.height=height;
m_gotDim=true;
return;
  }
  Thread.sleep(20);
}
  }
  m_gotDim=true;
}catch(Exception e){System.out.println(e);System.out.println(imgUrl);};
  }
  public int getSize(){
return m_contentLength;
  }
  public Dimension getDim(){
return m_dim;
  }
  public boolean imageUpdate(Image img, int info, int x, int y, int width,
int height){
if((width>0)&&(height>0))
  return true;
else if(m_gotDim)
  return true;
else
  return false;
  }

}


I hope this help.

Jim



>Anyone knows how can I get the GIF or JPEG width ?
>
>thanks
>anderson
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets