Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

(SOLVED) i need include .jsp file in .tpl file

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-17-2003, 03:12 PM
 
maki maki is offline
 

Advanced Member
  
Join Date: May 2003
Location: Spain
Posts: 46
 

Default (SOLVED) i need include .jsp file in .tpl file

Hi all !!! i am newbie member, & my english is very poor sorry :P

i have one question:

i need call .jsp file from .tpl file ... is possible ???

i create a new link embedded in home.php page with the metod of editing home_main.tpl:

{elseif $smarty.get.mode eq "revelar"}
{include file="customer/main/revelar.tpl"}


& creating revelar.tpl:

{ include file="location.tpl" last_location="Revelar On-Line"}
{capture name=dialog}
{include file="jsp/login.jsp"} -----> is correct?
{/capture}
{ include file="dialog.tpl" title="Revelado On-Line" content=$smarty.capture.dialog extra="width=100%"}


& add new link in corresponding whit necessary file:

Revelar

but the .jsp file is no ready

i attempt to incorporate one independent module in jsp and to integrate it in x-cart

any idea ??
Reply With Quote
  #2  
Old 06-17-2003, 06:11 PM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default what is .jsp?

is .jsp a javascript? if so you'll need to use the literal smarty tags like below with the include statement in between the literal tags, try it and see if it works, anythings worth a shot, let us know if it works

{literal}
include("http://www.yourwebsite.com/path/to/jsp/login.jsp");
{/literal}
Reply With Quote
  #3  
Old 06-17-2003, 06:13 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

see http://smarty.php.net for more info on using smarty templates
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 06-18-2003, 12:45 AM
 
maki maki is offline
 

Advanced Member
  
Join Date: May 2003
Location: Spain
Posts: 46
 

Default Re: what is .jsp?

Quote:
Originally Posted by snorocket
is .jsp a javascript? if so you'll need to use the literal smarty tags like below with the include statement in between the literal tags, try it and see if it works, anythings worth a shot, let us know if it works

{literal}
include("http://www.yourwebsite.com/path/to/jsp/login.jsp");
{/literal}

hi !!!

i have changed in .tpl file:

{ include file="location.tpl" last_location="Revelar On-Line"}
{capture name=dialog}
{literal}
include("http://xxx.xxx.xxx.xxx/jsp/login.jsp");
{/literal}

{/capture}
{ include file="dialog.tpl" title="Revelado On-Line" content=$smarty.capture.dialog extra="width=100%"}

but what appears it is the text chain: include("http://xxx.xxx.xxx.xxx/jsp/login.jsp");

where i am mistaken?
Reply With Quote
  #5  
Old 06-19-2003, 06:56 AM
 
maki maki is offline
 

Advanced Member
  
Join Date: May 2003
Location: Spain
Posts: 46
 

Default Solved

{ include file="location.tpl" last_location="Revelar On-Line"}
{capture name=dialog}
{fetch file="jsp/login.jsp"} -----> fetch is the command
{/capture}
{ include file="dialog.tpl" title="Revelado On-Line" content=$smarty.capture.dialog extra="width=100%"}


:P
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:13 AM.

   

 
X-Cart forums © 2001-2020