powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Java [игнор отключен] [закрыт для гостей] / struts
3 сообщений из 3, страница 1 из 1
struts
    #33036432
кхыкхы
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Код: plaintext
1.
2.
3.
4.
5.
6.
  
<logic:iterate id="list" name="sections" >
   <html:link action="/EnterSection.do?section=BLABLABLA">
      <bean:write name="list"  />
   </html:link>
</logic:iterate>

хочу вместо BLABLABLA подставить тоже значение что и в <bean:write name="list" />
...
Рейтинг: 0 / 0
struts
    #33036491
Фотография Denis Popov
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Попробуй:
Код: plaintext
1.
2.
3.
4.
5.
<logic:iterate id="list" name="sections" >
   <html:link action="/EnterSection.do?section=<%=list%>">
      <bean:write name="list"  />
   </html:link>
</logic:iterate>
...
Рейтинг: 0 / 0
struts
    #33036605
concat
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
можно через аттрибуты,
у link-tag есть аттрибуты
struts userGuide

...
paramId

The name of the request parameter that will be dynamically added to the generated hyperlink. The corresponding value is defined by the paramName and (optional) paramProperty attributes, optionally scoped by the paramScope attribute
[RT Expr]

paramName

The name of a JSP bean that is a String containing the value for the request parameter named by paramId (if paramProperty is not specified), or a JSP bean whose property getter is called to return a String (if paramProperty is specified). The JSP bean is constrained to the bean scope specified by the paramScope property, if it is specified.
[RT Expr]

paramProperty


The name of a property of the bean specified by the paramName attribute, whose return value must be a String containing the value of the request parameter (named by the paramId attribute) that will be dynamically added to this hyperlink.
...

например:
Код: plaintext
1.
<html:link action="/somedirectory/action/UserEdit" paramId="id" 
paramName="user" paramProperty="id">${user.lastname}</html:link>
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Java [игнор отключен] [закрыт для гостей] / struts
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]