Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7062437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:35:38+00:00 2026-05-28T04:35:38+00:00

I set up a template directory through struts.ui.templateDir in my struts.xml. Now, when I

  • 0

I set up a template directory through struts.ui.templateDir in my struts.xml. Now, when I access my page, a java.io.FileNotFoundException comes up looking for a bunch of files that I can only guess Freemarker is looking for by default.

Here is one such file:

java.io.FileNotFoundException: Template /WEB-INF/templates/simple/form-close.ftl not found.

I do not want this file or any other file other than the templates I create to be looked for. Is there some way to prevent Freemarker from doing this? Also, where is there documentation for this library? I cannot seem to find anything other than blog sites…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:35:38+00:00Added an answer on May 28, 2026 at 4:35 am

    Basicly any struts-tag uses one or more *.ftl to render a specific tag to the page (they are required).

    You cant ‘just remove’ some of the templates. If you want to write your own templates, copy all ftls from the struts jar (templates.simple) to your template dir. Then replace the ftls you want to change.

    Overriding struts.xml is not nessecary most of the time, you can also set your template path and standard theme via struts.properties.

    ### Standard UI theme
    struts.ui.theme=xhtml
    struts.ui.templateDir=template
    

    Update to your comment: I thought, you want to provide your own templates. But you can also specify the ‘theme’ property for the struts tags to change a single ftl for any tag.

    <s:select name="myName" theme="myTheme" />
    

    Then create your select.ftl and add it under src/main/resources/template/myTheme.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking at using a custom template for a set of categories. Is
I have a template set up that I'm making ajax calls to via jQuery.
I have an array set inside a velocity template that contains some paths. The
i have template base.html and some children templates. I don't know how to set
I want to be able to set variables in a template to string values.
I am using the SplitViewController template. How do I set the title on the
Can someone suggest me a way to map a template classes with a set
My object looks like: public class Template { public string Title {get;set;} public string
if i set, CommandArgument=<%#((GridViewRow)Container).RowIndex %> to linkbutton(inside gridview's template field) will it return (i)
I've set up a WordPress navigation for my single.php template that gets the previous

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.