RE: XBrowser Hide And Show Problem

2001-05-16 Thread GU,JAMES (HP-Corvallis,ex1)

in netscape it is document.layers that contains all the div tags. And it it
also helpful to realize that in netscape every layer itself is a DOM. You
can probably find details in a not-out-of-date Javascript book.

Good luck!

-Original Message-
From: Dinesh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 2:43 AM
To: [EMAIL PROTECTED]
Subject: XBrowser Hide And Show Problem 


Hello Everybody


I am using a div tag in my html page and trying to hide
and show a text field at run time this works fine while using IE but
when i am using Netscape 4.x.it gives me problem accessing
document.forms[0].divName i have found that in netscape div is not a
part of from abject and used document.divName also but still it is
creating a problemdo anybody of you have a
suggestion.or can anybody tell me where to
consult..

Thanks  Regards

Dinesh 



RE: POST and GET method

2001-03-01 Thread GU,JAMES (HP-Corvallis,ex1)



There 
is a method in HttpServletRequest class called getMethod() that returns either 
post or get or 

James 
Gu

  -Original Message-From: Spencer Smith 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 01, 2001 6:35 
  AMTo: [EMAIL PROTECTED]Subject: Re: POST 
  and GET method
  That's a good question. If you guys find 
  out let me know and I will do the same. I actually have to deal with 
  that today in a multi-part form. I am not sure, but I think the answer 
  is by adding struts hidden form fields. I'll let you know later 
  today.
  
- Original Message - 
From: 
kiatkin 

To: [EMAIL PROTECTED] 

Sent: Thursday, March 01, 2001 12:05 
AM
Subject: POST and GET method

Hi,

Anyone know how to setan action class to 
process the POST request only. So that when user try toaccess www.abc.com/action.do?action=doGET. 
It can redirect user toerror page.Or put in this way, how do 
action classreact differently for each doGet and doPost 
request?

regards,
Kiat 
Kin


how to compose and handle an http PUT request

2001-02-01 Thread GU,JAMES (HP-Corvallis,ex1)

I should have made it clear that I am using POCKET PC IE which doesn't support
MultipartRequest (i.e., the input type="file" ... ).  I try to URLConnection
class to simulate an HTTP PUT request to upload a file to the server. But I
couldn't find out how the PUT protocol should be handled in URLConnection class
and in HttpServlet's doPut() method.

Any ideas?

-james



 -Original Message-----
 From: GU,JAMES (HP-Corvallis,ex1) [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 31, 2001 7:39 PM
 To: '[EMAIL PROTECTED]'
 Subject: how to compose and handle an http put request
 
 
 
 I have a case where I want to use http "put" rather than ftp 
 to upload a file to
 the server, so I don't have to expose the actual directory 
 structure. I want to
 use HttpURLConnection to send the request, but I couldn't 
 find any examples
 about how to compose a put request using the URLConnection 
 object and how to
 handle the put request in my servlet. 
 
 In my servlet doPut(), getReader() from httpservletrequest 
 can only print out
 the querystring, not the content I have sent to the server 
 using URLConnection
 class's getOutputStream(). 
 
 Any ideas or pointers to any web pages? 
 
 Thank a lot!!!
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]