Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 21st, 2002, 03:48 PM
aiusadc aiusadc is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 3 aiusadc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Passing a paramter in Struts-Tiles framework

Hi Guys, I'm using Struts-Tiles frame work and trying to pass a variable to the header. For example i want to send a color parameter value to header dynamically in different pages. Means one page header has blue text, second page header has green text and the third page header has red color. That means i want to set a variable with colors and want pass the variable to the header based on the condition. Please suggest me any one of you passed paramters to any part of the page using Struts-Tiles framework.

Thanks,
Krishna.

Reply With Quote
  #2  
Old October 21st, 2002, 04:01 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
http://jakarta.apache.org/struts/us...les.html#insert

Each <put> tag is an attribute. As for how you access them, read the docs . I've never used struts before, so I can't help you much beyond that.

Reply With Quote
  #3  
Old October 21st, 2002, 04:07 PM
aiusadc aiusadc is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 3 aiusadc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I read through the documents available on struts-tiles framework. I'm working on struts for a while but this is little complicated as I was using Put tag and insert tags already for page and content loading. Problem is passing parameter inside the navigation.

Thanks,
Krishna.

Reply With Quote
  #4  
Old October 21st, 2002, 06:46 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Can you post some code? Like what you're using now .

Reply With Quote
  #5  
Old October 22nd, 2002, 09:55 AM
aiusadc aiusadc is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 3 aiusadc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm using struts template right now and the template file includes
content,header,footer and left navigation. I put several conditions
in my template to get the relevent header, footer and for the
relevent content. I have so many sections of pages for the content
and based on the content selected I change the color of the header
and footer. ince this is the tidious proces I would like to use the
Struts-tiles frame work instead of plain strus template framework.
I'm able to design the template and put the header,footer and content
successfully.The problem is now i don't know how to pass the parameter
value tothe header and footer. Please advise me or give me your contact
number so that I can explain the problem in detail.

Reply With Quote
  #6  
Old October 22nd, 2002, 10:44 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
It looks like you have to use <put> tags to send a value to your tile, and <get> tags to get the value back out (in your tile).

http://jakarta.apache.org/struts/us...-tiles.html#get

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Passing a paramter in Struts-Tiles framework


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway