You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Abhijeet Mahalkar <Ab...@indussoft.com> on 2003/11/19 09:09:56 UTC

One JAVA Question?

hi All
Sorry for this out of forum question. But i want to check thru http protocol
whether the a.txt file exists on the specified Location or not...

e.g. http://1.1.1.1/test/poll/SimpleHTML.html

i want to check whether "SimpleHTML.html" file  exist at the
1.1.1.1/test/coll  location or not ?

I tried URL URLClassloader, File etc URL classes but i am not able to find
the solution for this.
Is there anybody who had such requirement previously and can GUIDE me for
the same.

thankx in advance..

abhijeet


----- Original Message -----
From: "Mohd Fadhly" <fa...@xybase.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, November 19, 2003 1:01 PM
Subject: Re: Typical edit page


> hi again,
>
> lets say im going to use JSTL, how to change this into JSTL?
> <input type="radio" name="name" value="<bean:write name="mpd"
> property="name" />">
>
> so izzit like this?
> <html:radio property="name" value="${mpd.name}" />
>
> & do i need to include the tlds (c.tld etc) libraries (jstl.jar &
> standard.jar)
> please help im a JSTL newbie. im trying my best not to use ant
> scriptlets inside the app.
>
> thanks
>
> Richard Yee wrote:
>
> > Mohd,
> > No. Struts does not do anything with any of the static parts of your
> > page. Why can't you use the html:text tag? You can put a JSP or JSTL
> > expression as the value of the 'value' attribute too.
> >
> >
> >
> > -Richard
> >
> >
> > At 01:37 AM 11/15/2003, you wrote:
> >
> >> Thanks for your help
> >>
> >> there is a situation where i cant use <html:text> to render a text
> >> input, i use normal html tag <input>, is struts will know to display
> >> the values inside a normal <input> tag?
> >>
> >> Richard Yee wrote:
> >>
> >>> Mohd,
> >>> You need to retrieve the user's current settings and set the
> >>> appropriate fields in your ActionForm from your Action class. If you
> >>> do that, the fields will be populated when you display the form. Are
> >>> you using  html:select  with html:options ? You might want to look
> >>> at the html:optionsCollection tag too.
> >>>
> >>> -Richard
> >>>
> >>> At 06:56 PM 11/14/2003, you wrote:
> >>>
> >>>> hi
> >>>>
> >>>> is there any automatic way that i can polulate all the fields
> >>>> (including html:select with html:options) in a typical edit/update
> >>>> page? coz right now im doing it manually. & im basically stuck when
> >>>> try to select the option saved previously. im using html:options
> >>>> with the labelValueBean
> >>>>
> >>>> any help is greatly appreciated
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: One JAVA Question?

Posted by Kwok Peng Tuck <pe...@makmal.net>.
Ah, forgot to mention that there is a simple tutorial there, so 
hopefully you wont' be lost. :D

Abhijeet Mahalkar wrote:

>oohh great
>
>thankx
>----- Original Message -----
>From: "Kwok Peng Tuck" <pe...@makmal.net>
>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>Sent: Wednesday, November 19, 2003 2:01 PM
>Subject: Re: One JAVA Question?
>
>
>  
>
>>Under the commons project.
>>jakarta.apache.org
>>
>>Abhijeet Mahalkar wrote:
>>
>>    
>>
>>>Thankx dear for ur imme. reply
>>>
>>>will you pls tell me where will i find this commons-httpclient in which
>>>      
>>>
>jar
>  
>
>>>etc... ?
>>>
>>>thankx again
>>>abhijeet
>>>----- Original Message -----
>>>From: "Kwok Peng Tuck" <pe...@makmal.net>
>>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>Sent: Wednesday, November 19, 2003 1:45 PM
>>>Subject: Re: One JAVA Question?
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>Maybe you can use commons-httpclient to connect to the url, see if you
>>>>get a 404 or 200 for the response ?
>>>>If you get a 200, you are good to go, 404, means file not found.
>>>>
>>>>
>>>>Abhijeet Mahalkar wrote:
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>hi All
>>>>>Sorry for this out of forum question. But i want to check thru http
>>>>>
>>>>>
>>>>>          
>>>>>
>>>protocol
>>>
>>>
>>>      
>>>
>>>>>whether the a.txt file exists on the specified Location or not...
>>>>>
>>>>>e.g. http://1.1.1.1/test/poll/SimpleHTML.html
>>>>>
>>>>>i want to check whether "SimpleHTML.html" file  exist at the
>>>>>1.1.1.1/test/coll  location or not ?
>>>>>
>>>>>I tried URL URLClassloader, File etc URL classes but i am not able to
>>>>>
>>>>>
>>>>>          
>>>>>
>>>find
>>>
>>>
>>>      
>>>
>>>>>the solution for this.
>>>>>Is there anybody who had such requirement previously and can GUIDE me
>>>>>          
>>>>>
>for
>  
>
>>>>>the same.
>>>>>
>>>>>thankx in advance..
>>>>>
>>>>>abhijeet
>>>>>
>>>>>
>>>>>----- Original Message -----
>>>>>From: "Mohd Fadhly" <fa...@xybase.com>
>>>>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>>>Sent: Wednesday, November 19, 2003 1:01 PM
>>>>>Subject: Re: Typical edit page
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>hi again,
>>>>>>
>>>>>>lets say im going to use JSTL, how to change this into JSTL?
>>>>>><input type="radio" name="name" value="<bean:write name="mpd"
>>>>>>property="name" />">
>>>>>>
>>>>>>so izzit like this?
>>>>>><html:radio property="name" value="${mpd.name}" />
>>>>>>
>>>>>>& do i need to include the tlds (c.tld etc) libraries (jstl.jar &
>>>>>>standard.jar)
>>>>>>please help im a JSTL newbie. im trying my best not to use ant
>>>>>>scriptlets inside the app.
>>>>>>
>>>>>>thanks
>>>>>>
>>>>>>Richard Yee wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>Mohd,
>>>>>>>No. Struts does not do anything with any of the static parts of your
>>>>>>>page. Why can't you use the html:text tag? You can put a JSP or JSTL
>>>>>>>expression as the value of the 'value' attribute too.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>-Richard
>>>>>>>
>>>>>>>
>>>>>>>At 01:37 AM 11/15/2003, you wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>Thanks for your help
>>>>>>>>
>>>>>>>>there is a situation where i cant use <html:text> to render a text
>>>>>>>>input, i use normal html tag <input>, is struts will know to display
>>>>>>>>the values inside a normal <input> tag?
>>>>>>>>
>>>>>>>>Richard Yee wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>>>>>Mohd,
>>>>>>>>>You need to retrieve the user's current settings and set the
>>>>>>>>>appropriate fields in your ActionForm from your Action class. If
>>>>>>>>>                  
>>>>>>>>>
>you
>  
>
>>>>>>>>>do that, the fields will be populated when you display the form.
>>>>>>>>>                  
>>>>>>>>>
>Are
>  
>
>>>>>>>>>you using  html:select  with html:options ? You might want to look
>>>>>>>>>at the html:optionsCollection tag too.
>>>>>>>>>
>>>>>>>>>-Richard
>>>>>>>>>
>>>>>>>>>At 06:56 PM 11/14/2003, you wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>>>>>hi
>>>>>>>>>>
>>>>>>>>>>is there any automatic way that i can polulate all the fields
>>>>>>>>>>(including html:select with html:options) in a typical edit/update
>>>>>>>>>>page? coz right now im doing it manually. & im basically stuck
>>>>>>>>>>                    
>>>>>>>>>>
>when
>  
>
>>>>>>>>>>try to select the option saved previously. im using html:options
>>>>>>>>>>with the labelValueBean
>>>>>>>>>>
>>>>>>>>>>any help is greatly appreciated
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>>>>---------------------------------------------------------------------
>>>>>>>>                
>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>>                    
>>>>>>>>>>
>struts-user-help@jakarta.apache.org
>  
>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>>>>---------------------------------------------------------------------
>>>>>>>>                
>>>>>>>>
>>>>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>                  
>>>>>>>>>
>struts-user-help@jakarta.apache.org
>  
>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>              
>>>>>>>
>>>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: One JAVA Question?

Posted by Abhijeet Mahalkar <Ab...@indussoft.com>.
oohh great

thankx
----- Original Message -----
From: "Kwok Peng Tuck" <pe...@makmal.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, November 19, 2003 2:01 PM
Subject: Re: One JAVA Question?


> Under the commons project.
> jakarta.apache.org
>
> Abhijeet Mahalkar wrote:
>
> >Thankx dear for ur imme. reply
> >
> >will you pls tell me where will i find this commons-httpclient in which
jar
> >etc... ?
> >
> >thankx again
> >abhijeet
> >----- Original Message -----
> >From: "Kwok Peng Tuck" <pe...@makmal.net>
> >To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> >Sent: Wednesday, November 19, 2003 1:45 PM
> >Subject: Re: One JAVA Question?
> >
> >
> >
> >
> >>Maybe you can use commons-httpclient to connect to the url, see if you
> >>get a 404 or 200 for the response ?
> >>If you get a 200, you are good to go, 404, means file not found.
> >>
> >>
> >>Abhijeet Mahalkar wrote:
> >>
> >>
> >>
> >>>hi All
> >>>Sorry for this out of forum question. But i want to check thru http
> >>>
> >>>
> >protocol
> >
> >
> >>>whether the a.txt file exists on the specified Location or not...
> >>>
> >>>e.g. http://1.1.1.1/test/poll/SimpleHTML.html
> >>>
> >>>i want to check whether "SimpleHTML.html" file  exist at the
> >>>1.1.1.1/test/coll  location or not ?
> >>>
> >>>I tried URL URLClassloader, File etc URL classes but i am not able to
> >>>
> >>>
> >find
> >
> >
> >>>the solution for this.
> >>>Is there anybody who had such requirement previously and can GUIDE me
for
> >>>the same.
> >>>
> >>>thankx in advance..
> >>>
> >>>abhijeet
> >>>
> >>>
> >>>----- Original Message -----
> >>>From: "Mohd Fadhly" <fa...@xybase.com>
> >>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> >>>Sent: Wednesday, November 19, 2003 1:01 PM
> >>>Subject: Re: Typical edit page
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>hi again,
> >>>>
> >>>>lets say im going to use JSTL, how to change this into JSTL?
> >>>><input type="radio" name="name" value="<bean:write name="mpd"
> >>>>property="name" />">
> >>>>
> >>>>so izzit like this?
> >>>><html:radio property="name" value="${mpd.name}" />
> >>>>
> >>>>& do i need to include the tlds (c.tld etc) libraries (jstl.jar &
> >>>>standard.jar)
> >>>>please help im a JSTL newbie. im trying my best not to use ant
> >>>>scriptlets inside the app.
> >>>>
> >>>>thanks
> >>>>
> >>>>Richard Yee wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Mohd,
> >>>>>No. Struts does not do anything with any of the static parts of your
> >>>>>page. Why can't you use the html:text tag? You can put a JSP or JSTL
> >>>>>expression as the value of the 'value' attribute too.
> >>>>>
> >>>>>
> >>>>>
> >>>>>-Richard
> >>>>>
> >>>>>
> >>>>>At 01:37 AM 11/15/2003, you wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Thanks for your help
> >>>>>>
> >>>>>>there is a situation where i cant use <html:text> to render a text
> >>>>>>input, i use normal html tag <input>, is struts will know to display
> >>>>>>the values inside a normal <input> tag?
> >>>>>>
> >>>>>>Richard Yee wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Mohd,
> >>>>>>>You need to retrieve the user's current settings and set the
> >>>>>>>appropriate fields in your ActionForm from your Action class. If
you
> >>>>>>>do that, the fields will be populated when you display the form.
Are
> >>>>>>>you using  html:select  with html:options ? You might want to look
> >>>>>>>at the html:optionsCollection tag too.
> >>>>>>>
> >>>>>>>-Richard
> >>>>>>>
> >>>>>>>At 06:56 PM 11/14/2003, you wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>hi
> >>>>>>>>
> >>>>>>>>is there any automatic way that i can polulate all the fields
> >>>>>>>>(including html:select with html:options) in a typical edit/update
> >>>>>>>>page? coz right now im doing it manually. & im basically stuck
when
> >>>>>>>>try to select the option saved previously. im using html:options
> >>>>>>>>with the labelValueBean
> >>>>>>>>
> >>>>>>>>any help is greatly appreciated
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
>
>>>>>>>---------------------------------------------------------------------
> >>>>>>>
> >>>>>>>
> >>>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>>>>>>For additional commands, e-mail:
struts-user-help@jakarta.apache.org
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
>
>>>>>>>---------------------------------------------------------------------
> >>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>>>>>For additional commands, e-mail:
struts-user-help@jakarta.apache.org
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
>
>>>>>>---------------------------------------------------------------------
> >>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>---------------------------------------------------------------------
> >>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: One JAVA Question?

Posted by Kwok Peng Tuck <pe...@makmal.net>.
Under the commons project.
jakarta.apache.org

Abhijeet Mahalkar wrote:

>Thankx dear for ur imme. reply
>
>will you pls tell me where will i find this commons-httpclient in which jar
>etc... ?
>
>thankx again
>abhijeet
>----- Original Message -----
>From: "Kwok Peng Tuck" <pe...@makmal.net>
>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>Sent: Wednesday, November 19, 2003 1:45 PM
>Subject: Re: One JAVA Question?
>
>
>  
>
>>Maybe you can use commons-httpclient to connect to the url, see if you
>>get a 404 or 200 for the response ?
>>If you get a 200, you are good to go, 404, means file not found.
>>
>>
>>Abhijeet Mahalkar wrote:
>>
>>    
>>
>>>hi All
>>>Sorry for this out of forum question. But i want to check thru http
>>>      
>>>
>protocol
>  
>
>>>whether the a.txt file exists on the specified Location or not...
>>>
>>>e.g. http://1.1.1.1/test/poll/SimpleHTML.html
>>>
>>>i want to check whether "SimpleHTML.html" file  exist at the
>>>1.1.1.1/test/coll  location or not ?
>>>
>>>I tried URL URLClassloader, File etc URL classes but i am not able to
>>>      
>>>
>find
>  
>
>>>the solution for this.
>>>Is there anybody who had such requirement previously and can GUIDE me for
>>>the same.
>>>
>>>thankx in advance..
>>>
>>>abhijeet
>>>
>>>
>>>----- Original Message -----
>>>From: "Mohd Fadhly" <fa...@xybase.com>
>>>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>>>Sent: Wednesday, November 19, 2003 1:01 PM
>>>Subject: Re: Typical edit page
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>hi again,
>>>>
>>>>lets say im going to use JSTL, how to change this into JSTL?
>>>><input type="radio" name="name" value="<bean:write name="mpd"
>>>>property="name" />">
>>>>
>>>>so izzit like this?
>>>><html:radio property="name" value="${mpd.name}" />
>>>>
>>>>& do i need to include the tlds (c.tld etc) libraries (jstl.jar &
>>>>standard.jar)
>>>>please help im a JSTL newbie. im trying my best not to use ant
>>>>scriptlets inside the app.
>>>>
>>>>thanks
>>>>
>>>>Richard Yee wrote:
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>Mohd,
>>>>>No. Struts does not do anything with any of the static parts of your
>>>>>page. Why can't you use the html:text tag? You can put a JSP or JSTL
>>>>>expression as the value of the 'value' attribute too.
>>>>>
>>>>>
>>>>>
>>>>>-Richard
>>>>>
>>>>>
>>>>>At 01:37 AM 11/15/2003, you wrote:
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>Thanks for your help
>>>>>>
>>>>>>there is a situation where i cant use <html:text> to render a text
>>>>>>input, i use normal html tag <input>, is struts will know to display
>>>>>>the values inside a normal <input> tag?
>>>>>>
>>>>>>Richard Yee wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>Mohd,
>>>>>>>You need to retrieve the user's current settings and set the
>>>>>>>appropriate fields in your ActionForm from your Action class. If you
>>>>>>>do that, the fields will be populated when you display the form. Are
>>>>>>>you using  html:select  with html:options ? You might want to look
>>>>>>>at the html:optionsCollection tag too.
>>>>>>>
>>>>>>>-Richard
>>>>>>>
>>>>>>>At 06:56 PM 11/14/2003, you wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>hi
>>>>>>>>
>>>>>>>>is there any automatic way that i can polulate all the fields
>>>>>>>>(including html:select with html:options) in a typical edit/update
>>>>>>>>page? coz right now im doing it manually. & im basically stuck when
>>>>>>>>try to select the option saved previously. im using html:options
>>>>>>>>with the labelValueBean
>>>>>>>>
>>>>>>>>any help is greatly appreciated
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>              
>>>>>>>
>>>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: One JAVA Question?

Posted by Abhijeet Mahalkar <Ab...@indussoft.com>.
Thankx dear for ur imme. reply

will you pls tell me where will i find this commons-httpclient in which jar
etc... ?

thankx again
abhijeet
----- Original Message -----
From: "Kwok Peng Tuck" <pe...@makmal.net>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, November 19, 2003 1:45 PM
Subject: Re: One JAVA Question?


> Maybe you can use commons-httpclient to connect to the url, see if you
> get a 404 or 200 for the response ?
> If you get a 200, you are good to go, 404, means file not found.
>
>
> Abhijeet Mahalkar wrote:
>
> >hi All
> >Sorry for this out of forum question. But i want to check thru http
protocol
> >whether the a.txt file exists on the specified Location or not...
> >
> >e.g. http://1.1.1.1/test/poll/SimpleHTML.html
> >
> >i want to check whether "SimpleHTML.html" file  exist at the
> >1.1.1.1/test/coll  location or not ?
> >
> >I tried URL URLClassloader, File etc URL classes but i am not able to
find
> >the solution for this.
> >Is there anybody who had such requirement previously and can GUIDE me for
> >the same.
> >
> >thankx in advance..
> >
> >abhijeet
> >
> >
> >----- Original Message -----
> >From: "Mohd Fadhly" <fa...@xybase.com>
> >To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> >Sent: Wednesday, November 19, 2003 1:01 PM
> >Subject: Re: Typical edit page
> >
> >
> >
> >
> >>hi again,
> >>
> >>lets say im going to use JSTL, how to change this into JSTL?
> >><input type="radio" name="name" value="<bean:write name="mpd"
> >>property="name" />">
> >>
> >>so izzit like this?
> >><html:radio property="name" value="${mpd.name}" />
> >>
> >>& do i need to include the tlds (c.tld etc) libraries (jstl.jar &
> >>standard.jar)
> >>please help im a JSTL newbie. im trying my best not to use ant
> >>scriptlets inside the app.
> >>
> >>thanks
> >>
> >>Richard Yee wrote:
> >>
> >>
> >>
> >>>Mohd,
> >>>No. Struts does not do anything with any of the static parts of your
> >>>page. Why can't you use the html:text tag? You can put a JSP or JSTL
> >>>expression as the value of the 'value' attribute too.
> >>>
> >>>
> >>>
> >>>-Richard
> >>>
> >>>
> >>>At 01:37 AM 11/15/2003, you wrote:
> >>>
> >>>
> >>>
> >>>>Thanks for your help
> >>>>
> >>>>there is a situation where i cant use <html:text> to render a text
> >>>>input, i use normal html tag <input>, is struts will know to display
> >>>>the values inside a normal <input> tag?
> >>>>
> >>>>Richard Yee wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Mohd,
> >>>>>You need to retrieve the user's current settings and set the
> >>>>>appropriate fields in your ActionForm from your Action class. If you
> >>>>>do that, the fields will be populated when you display the form. Are
> >>>>>you using  html:select  with html:options ? You might want to look
> >>>>>at the html:optionsCollection tag too.
> >>>>>
> >>>>>-Richard
> >>>>>
> >>>>>At 06:56 PM 11/14/2003, you wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>>hi
> >>>>>>
> >>>>>>is there any automatic way that i can polulate all the fields
> >>>>>>(including html:select with html:options) in a typical edit/update
> >>>>>>page? coz right now im doing it manually. & im basically stuck when
> >>>>>>try to select the option saved previously. im using html:options
> >>>>>>with the labelValueBean
> >>>>>>
> >>>>>>any help is greatly appreciated
> >>>>>>
> >>>>>>
>
>>>>>>---------------------------------------------------------------------
> >>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>---------------------------------------------------------------------
> >>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: One JAVA Question?

Posted by Kwok Peng Tuck <pe...@makmal.net>.
Maybe you can use commons-httpclient to connect to the url, see if you 
get a 404 or 200 for the response ?
If you get a 200, you are good to go, 404, means file not found.


Abhijeet Mahalkar wrote:

>hi All
>Sorry for this out of forum question. But i want to check thru http protocol
>whether the a.txt file exists on the specified Location or not...
>
>e.g. http://1.1.1.1/test/poll/SimpleHTML.html
>
>i want to check whether "SimpleHTML.html" file  exist at the
>1.1.1.1/test/coll  location or not ?
>
>I tried URL URLClassloader, File etc URL classes but i am not able to find
>the solution for this.
>Is there anybody who had such requirement previously and can GUIDE me for
>the same.
>
>thankx in advance..
>
>abhijeet
>
>
>----- Original Message -----
>From: "Mohd Fadhly" <fa...@xybase.com>
>To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>Sent: Wednesday, November 19, 2003 1:01 PM
>Subject: Re: Typical edit page
>
>
>  
>
>>hi again,
>>
>>lets say im going to use JSTL, how to change this into JSTL?
>><input type="radio" name="name" value="<bean:write name="mpd"
>>property="name" />">
>>
>>so izzit like this?
>><html:radio property="name" value="${mpd.name}" />
>>
>>& do i need to include the tlds (c.tld etc) libraries (jstl.jar &
>>standard.jar)
>>please help im a JSTL newbie. im trying my best not to use ant
>>scriptlets inside the app.
>>
>>thanks
>>
>>Richard Yee wrote:
>>
>>    
>>
>>>Mohd,
>>>No. Struts does not do anything with any of the static parts of your
>>>page. Why can't you use the html:text tag? You can put a JSP or JSTL
>>>expression as the value of the 'value' attribute too.
>>>
>>>
>>>
>>>-Richard
>>>
>>>
>>>At 01:37 AM 11/15/2003, you wrote:
>>>
>>>      
>>>
>>>>Thanks for your help
>>>>
>>>>there is a situation where i cant use <html:text> to render a text
>>>>input, i use normal html tag <input>, is struts will know to display
>>>>the values inside a normal <input> tag?
>>>>
>>>>Richard Yee wrote:
>>>>
>>>>        
>>>>
>>>>>Mohd,
>>>>>You need to retrieve the user's current settings and set the
>>>>>appropriate fields in your ActionForm from your Action class. If you
>>>>>do that, the fields will be populated when you display the form. Are
>>>>>you using  html:select  with html:options ? You might want to look
>>>>>at the html:optionsCollection tag too.
>>>>>
>>>>>-Richard
>>>>>
>>>>>At 06:56 PM 11/14/2003, you wrote:
>>>>>
>>>>>          
>>>>>
>>>>>>hi
>>>>>>
>>>>>>is there any automatic way that i can polulate all the fields
>>>>>>(including html:select with html:options) in a typical edit/update
>>>>>>page? coz right now im doing it manually. & im basically stuck when
>>>>>>try to select the option saved previously. im using html:options
>>>>>>with the labelValueBean
>>>>>>
>>>>>>any help is greatly appreciated
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>>            
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>>
>>>>>          
>>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>>        
>>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org