struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sutiwan Kariya" <Suti...@tisco.co.th>
Subject RE: Relative Path Error-- Pls help!
Date Tue, 10 Sep 2002 03:35:08 GMT

Big big thanx for Joe,Bhaskaran, umberto and ...
html:base
page in img tag
and rewrite

make me more understand in struts and relative path.


Sutiwan W.


                                                                                         
                         
                    "Joe Latty"                                                          
                         
                    <joe@team2medi       To:     "Struts Users Mailing List" <struts-user@jakarta.apache.org>
     
                    a.com>               cc:                                          
                            
                                         Subject:     RE: Relative Path Error-- Pls help!
                         
                    09/10/2002                                                           
                         
                    10:07 AM                                                             
                         
                    Please respond                                                       
                         
                    to "Struts                                                           
                         
                    Users Mailing                                                        
                         
                    List"                                                                
                         
                                                                                         
                         
                                                                                         
                         




Try using the html:rewrite tag...

<html:button property="add" onclick="window.location='<html:rewrite
page
="/institutionGeneralInfo.do"/>/institutionGeneralInfo.do?action=create'
">

Joe

-----Original Message-----
From: Sutiwan Kariya [mailto:Sutiwan@tisco.co.th]
Sent: Tuesday, 10 September 2002 12:18 PM
To: Struts Users Mailing List
Subject: RE: Relative Path Error-- Pls help!



Yes.
the "/" means the server root NOT the context root.

Did I do the wrong thing?
umberto suggested me to try 'page' property in 'img' tab
It works ! But there are still the problems when I tried
 <html:button property="add" onclick="window.location
= '/institutionGeneralInfo.do?action=create'">
It's still get an error! the 'page' property couldn't help me.

but
 <html:button property="add" onclick="window.location
 = '/td/institutionGeneralInfo.do?action=create'">
works well.




Sutiwan W.




                    "Sri Sankaran"
                    <Sri.Sankaran@       To:     "Struts Users Mailing
List"
<struts-user@jakarta.apache.org>
                    sas.com>             cc:
                                         Subject:     RE: Relative Path
Error-- Pls help!
                    09/10/2002
                    12:07 AM
                    Please respond
                    to "Struts
                    Users Mailing
                    List"






I hope you meant
<head>
  <html:base/>
</head>

A leading slash ( / ) refers to the *server* root and not the context root.

Sri

> -----Original Message-----
> From: Sutiwan Kariya [mailto:Sutiwan@tisco.co.th]
> Sent: Monday, September 09, 2002 6:06 AM
> To: Struts Users Mailing List
> Subject: RE: Relative Path Error-- Pls help!
>
>
>
> Dear Bhaskaran,
> It doesn't work...
> I tried
> <html:html>
> <head>
> <html:base/>
> </head>
> .......
>
> but it still got an error.
>
>
>
>
>                     "C.Bhaskaran"
>
>                     <chandrasekharan.bhaskaran@       To:
> "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
>                     wipro.com>                        cc:
>
>
> Subject:     RE: Relative Path Error-- Pls help!
>
>                     09/09/2002 04:59 PM
>
>                     Please respond to "Struts
>
>                     Users Mailing List"
>
>
>
>
>
>
>
>
>
> Use <html:base/> tag before using any relative paths
> Rgds
> C.Bhaskaran
>
> -----Original Message-----
> From: Sutiwan Kariya [mailto:Sutiwan@tisco.co.th]
> Sent: Monday, September 09, 2002 3:26 PM
> To: struts-user@jakarta.apache.org
> Cc: sutiwan@tisco.co.th
> Subject: Relative Path Error-- Pls help!
>
>
> I am using struts runs on IBM WebSphere 4.0
> my web site 's name (context root) is  'td'
> I got an image location error when use
> <img src = "/images/general_active_tab.gif" >
> or
> <html:image src = "/images/address_passive_tab.gif"   border= "0"/>
>
> But, if I tried
> <img src = "/td/images/general_active_tab.gif" >
> or
> <html:image src = "/td/images/address_passive_tab.gif"   border= "0"/>
>
> The image was displayed correctly
> Why??????
> I feel like the "/" doesn't relate to the context root. but
> it relate to the root of context root.
>
> This symptom didn't occur with the image tag only BUT It
> occur when I tried to use  <html:button property="add"
> onclick="window.location = '/institutionGeneralInfo.do?action=create'"
>
> It got an error also.
> but, If I tried
>  <html:button property="add" onclick="window.location
> = '/td/institutionGeneralInfo.do?action=create'"
> It's OK!
>
>
> Please help me...
> Sutiwan W.
>
>
>
>
>
> ********************************************************************
> This E-mail and any files transmitted with it are
> confidential and intended for the sole use of the individual
> or entity to whom they are addressed. If you have received
> this E-mail in error please notify the system manager.  This
> E-mail message has been swept for the presence of computer viruses.
> ********************************************************************
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands,
> e-mail: <mailto:struts-user-help@jakarta.apache.org>
>
> (See attached file: InterScan_Disclaimer.txt)--
> To unsubscribe, e-mail:   <
> mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:struts-user-help@jakarta.apache.org>
>
>
>
>
> ********************************************************************
> This E-mail and any files transmitted with it are
> confidential and intended for the sole use of the individual
> or entity to whom they are addressed. If you have received this
> E-mail in error please notify the system manager.  This
> E-mail message has been swept for the presence of computer viruses.
> ********************************************************************
>
>

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







********************************************************************
This E-mail and any files transmitted with it are confidential
and intended for the sole use of the individual or entity
to whom they are addressed. If you have received this
E-mail in error please notify the system manager.  This E-mail
message has been swept for the presence of computer
viruses.
********************************************************************


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


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







********************************************************************
This E-mail and any files transmitted with it are confidential
and intended for the sole use of the individual or entity
to whom they are addressed. If you have received this 
E-mail in error please notify the system manager.  This E-mail
message has been swept for the presence of computer
viruses.
********************************************************************


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


Mime
View raw message