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

  • Home
  • SEARCH
  • 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 4626708
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:27:36+00:00 2026-05-22T03:27:36+00:00

I have implemented some component. I used jsp custom tags. But I’ve implemented 2

  • 0

I have implemented some component. I used jsp custom tags. But I’ve implemented 2 tags which make hard to use this in the future by others programmers. How can I improve my code to use only one tag. My tags are .tag files.

Below is what I need:

<c:foreach...
   <u:myTag1/>

<u:myTag2/>

I want to display repeatable myTag1 and only once myTag2

It would be nice to have such things (without myTag2):

<c:foreach....
   <u:myTag1>
  • 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-22T03:27:37+00:00Added an answer on May 22, 2026 at 3:27 am

    If you want to use only one tag then you’re in the realms of creating a new tag in the TLD and implementing another Tag. Hopefully you should be able to refactor Tag1 and Tag2 to put common functionality somewhere e.g. Helper class or abstract class, so the duplication between Tag1, Tag2 and Tag1AndTag2 is minimal.

    Alternatively you may want to look at JSP fragments or some other templating system, so pages can include the common JSP in. However, the tag solution sounds better – if you’re sure that offering a third flavour of tag (combing two of them) is the way to go. You may make the decision to stay with just Tag1 and Tag2.

    I’m assuming you’re using just standard JSP tags here. If you were using JSF 2 you could look at composite components or something, which may save some pain.

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

Sidebar

Related Questions

I have some REST web services implemented in WCF. I wish to make these
I have implemented some utility classes in Flex that I want to use in
foreword: I have a component, lets call it IView. This component is implemented by
I have a WPF page. Page has some content, but the last child component
I have some COM component which I call from some c# dll. I also
I have some form, and one column have Entity type, but this entity have
I have already implemented some AJAX pagination in my Rails app by using the
What are some of the ways you have implemented models in the Zend Framework?
I have implemented a simple linux shell in c. Now, I am adding some
I have some .NET remoting code where a factory method, implemented in some server

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.