File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes Change theming by looking at URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Change theming by looking at URL" Watch "Change theming by looking at URL" New topic

Change theming by looking at URL

robert crowther
Ranch Hand

Joined: Oct 19, 2013
Posts: 41
I'm currently using JForum as downloaded from site (not JForum2).

Well, I was going to ask, can I get at the URL in a template? So I can change theming on some pages? However, give me a quiet 10 mins and I trace back, read documentation, and here's the base activity in a line (placed in a template),

Onwards I go, lurching into the unknown (2 days with Java)...

Comments welcome.
robert crowther
Ranch Hand

Joined: Oct 19, 2013
Posts: 41
A little expanded. Probably not a good idea to include URL data directly (not looked at the class documentation yet),

(not convinced about these code tags yet. Maybe not using it right...)
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30136

I think you are looking for ${JForumContext.encodeURL('/forumUrl')}. It will make the path of that URL appropriate for your instance of JForum.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Change theming by looking at URL
Similar Threads
tag handling
problem designing jsp using struts 2.0 tags
Struts2 form tags
Struts2 - Need to change the value of style element of s:textfield dynamically using local variable
Where does /struts/ in the url come from? and where does it resolve to?