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 6727523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:03:34+00:00 2026-05-26T10:03:34+00:00

<s:iterator value=categoryList> <s:url id=category action=/editProduct.action/> <s:a href=%{category}> <s:property value=name/> </s:a> <s:hidden name = categoryId

  • 0
<s:iterator value="categoryList">
  <s:url id="category" action="/editProduct.action"/>
  <s:a href="%{category}">
    <s:property value="name"/>
  </s:a>
  <s:hidden name = "categoryId"  id = "categoryId" value = "<s:property value='name'/" />
</s:iterator

Problem:

I have a list of categories which are click able. Every category has a unique ID. Problem is that when user click on the category from list then categoryId will pass in editProduct action class
I am searching its solution from two days please help me and define the complete solution

  • 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-26T10:03:34+00:00Added an answer on May 26, 2026 at 10:03 am

    You can’t nest JSP tags like that.

    <s:hidden name="categoryId"  id="categoryId" value="%{name}"/>
    

    This, however, makes no sense–if it’s not a form, why would you put the categoryId into a hidden form field? You’re not submitting a form, you’re clicking a link.

    Put the categoryId into the URL as a parameter.

    <s:url id="category" action="/editProduct.action">
        <s:param name="categoryId" value="%{name}"/>
    </s:url>
    

    Note that unless “name” is actually something very ID-like, it’s probably a bad idea to use it as a primary key.

    You may want to go over some HTML and web app basics before proceeding too much further; it will save you time in the long run.

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

Sidebar

Related Questions

i have a std::map and i am using iterator to find a certain key,value
I have a class template <typename Iterator, typename Value> class Foo { public: Foo(const
I'd like get far next value for STL list iterator but it doesn't implement
I used iterator in my strut application like s:iterator value=resultList id=resultData status=stat > s:hidden
If I have an iterator and I want to check the last value, how
I have ArrayProxy filled with different values, and after tossing it in iterator and
I'm defining an iterator type that does not store its current value explicitly. Instead,
I have a function that returns map value (String) as a generic Object. How
I have a problem where I need to detect whether a given type is
Is decltype(*it) the value type of the iterator, or an lvalue reference to that,

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.