I have the following code in my doPost method, how do a get a parameter
value from a file . Rather how do I read some value from my file into the
parameter value.


public void doPost (HttpServletRequest req, HttpServletResponse res)
        throws ServletException, IOException
    {
        try{
         // final String URLstr = HttpConnectionHelper.buildURL(req,
"/PSUser/pstoc.htm");

            StringBuffer pubXConnString = new StringBuffer( "http://" );
            pubXConnString.append( req.getHeader( "HOST" ) );
            pubXConnString.append( "/PSUser/pstoc.htm?" );
            pubXConnString.append("NS_adv_search=0");
            pubXConnString.append("&NS_search_type=boolean");

            //Make configurable read from a file
            pubXConnString.append("&NS_collection=?????.... read from a
file");
    ....
         .... and so forth

}

Any help in this regard will be highly appreciated. This is kind of urgent
so pelase reply ASAP.

Thanks in advance.
Rema

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to