Frage zu Struts - html:link

dg87

Erfahrenes Mitglied
Moin,

ich versuche gerade genau rauszufinden, wo bei dem <html:link der Unterschied zwischen paramId und paramProperty ist? Ist für mich beide das gleiche irgendwie - beide brauchen auch paramName...

Hier die offizielle Aussage, die aber für mich gleich klingt:

paramId false true java.lang.String
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

paramName false true java.lang.String
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.

paramProperty false true java.lang.String
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.

Kann mir da jemand helfen? Oder versteht da jemand den Unterschied? Ich mein ich weiß, dass man hier dynamisch Werte mit einem Link verschicken kann (quasi wie a href). Aber der Unterschied zwischen den beiden paramProperty und paramId ist nicht klar.
 

Neue Beiträge

Zurück