DavidHern
Mon Aug 06 02:18:02 CDT 2007
Ok, thank you very much.
We will consider another way of investigation
Greetings.
"David Wang" wrote:
> On Aug 3, 12:14 am, David.Hern <DavidH...@discussions.microsoft.com>
> wrote:
> > "David Wang" wrote:
> > > On Aug 2, 4:44 am, David.Hern <DavidH...@discussions.microsoft.com>
> > > wrote:
> > > > Hello,
> >
> > > > I'm trying to make a mobile web with an IBM Websphere Application Server 5.0
> > > > and an IIS 5.0 as the web server. But when I access to the site with a mobile
> > > > device the server don't return any content-type header for html. For css and
> > > > jpg the content-type is right but for the html generated from the jsp page
> > > > wich I tried to access there's no content-type returned. I have put on the
> > > > jsp the page directive, the response.setContentType and a meta-data.
> >
> > > > I try to put the header on custom headers configuration, but now, this
> > > > allways send back content-type="text/html" so the images will not be
> > > > displayed by de mobile device.
> >
> > > > Thanks. I apologized speaking a bad English but in the spanish section I
> > > > don't have any anwer.
> >
> > > This sounds like a bug within JSP and Websphere. IIS will send back
> > > properly configured content type for resources that it serves as
> > > static file. For dynamic content, it is the responsibility of the
> > > handler to send the correct content-type.
> >
> > > Thus, HTML generated from JSP page is not considered content served by
> > > IIS and is the responsibility of the JSP page processor -- so your
> > > question is really about JSP and not IIS. Why it does not send a
> > > content-type when you configure it -- that is a good question for
> > > Websphere support personel.
> >
> > > I can only say the problem has nothing to do with IIS at this point.
> >
> > > //David
> > >
http://w3-4u.blogspot.com
> > >
http://blogs.msdn.com/David.Wang
> > > //
> >
> > Thanks for the answer but I differ by two reasons:
> >
> > On the test server we have the shame arquitecture with an Apache server and
> > the responses headers are right. And when we connect directly to de
> > WebSpehere App. Server 5.0 the responses are right too.
> >
> > We are very confused about this. ?Any other idea?
> >
> > Thank you very much for your time.- Hide quoted text -
> >
> > - Show quoted text -
>
>
> Apache, IIS, and Webspehere interact with JSP via very different
> connectors that are basically different codebases. Thus, when you say
> you have a "problem with IIS 5.0 as the web server", you are really
> saying that the problem is either with the JSP connector for IIS or
> IIS.
>
> It is fine that you have the same architecture with Apache and it
> works with WebSphere, but that only suggets the problem is probably
> not within your JSP page because two different platforms do not have
> issues with it. But that hardly means the problem is with IIS because
> there is other connector code involved to make your JSP code execute.
> IIS only supports static HTML pages by default -- everything else
> requires a special handler to connect IIS to the appropriate dynamic
> script handler.
>
> I am clarifying your statement by saying that the problem cannot be
> with IIS. In the case of a non-static content like JSP handled by an
> external handler, the handler is responsible for setting the Content-
> Type. IIS literally has nothing to do with the response other than to
> send back what the handler sent.
>
> Thus, you really need to look for support for the JSP connector for
> IIS that you are using, which is not a Microsoft product nor supported
> on this newsgroup. My suspicion is that JSP vendors tend to have
> inadequate and buggy code for IIS simply to convince you to run their
> products on their preferred servers like Apache or WebSphere, so you
> may not find much support.
>
>
> //David
>
http://w3-4u.blogspot.com
>
http://blogs.msdn.com/David.Wang
> //
>
>