Link in iterate

2002-04-11 Thread Johannes Wolfgang Woger

Hello,
can anyone show me how to manage that
I can do the following: under out_put there is an 
ArrayList of OutDataForms that take the records of
a ResultSet.

logic:interate id=myForm
name=out_put
scope=request
type=org.apache.struts.example.OutDataForm
bean:write name=myForm property=spec/

html:link page=/select.do?species=bean:write name=myForm property=spec/

bean:write name=myForm property=name/
/html:link
/logic:interate


In my SelectAction (/select.do) I would like to access the species String:
request.getParameter(species);
and query the database again to edit or delete this row.

Everything works fine except that the ?species=.. parameter to the 
link-Tag seems to be forbidden.
But I need the link to expedite the value to the action.
What can I do?

Thanks
Wolfgang



Re: Link in iterate

2002-04-11 Thread Victor Hadianto


You can not nest tags in Struts. What you can do is do something like this:

html:link page=/select.do paramId=species paramName=myForm 
paramProperty=spec/

Another note, using page is not recomended, it is better to define a forward 
in your Struts-config.xml and use forward instead of page.

Cheers,

Victor


On Thu, 11 Apr 2002 17:52, you wrote:
 Hello,
 can anyone show me how to manage that
 I can do the following: under out_put there is an
 ArrayList of OutDataForms that take the records of
 a ResultSet.

 logic:interate id=myForm
 name=out_put
 scope=request
 type=org.apache.struts.example.OutDataForm
 bean:write name=myForm property=spec/

 html:link page=/select.do?species=bean:write name=myForm
 property=spec/

 bean:write name=myForm property=name/
 /html:link
 /logic:interate


 In my SelectAction (/select.do) I would like to access the species String:
 request.getParameter(species);
 and query the database again to edit or delete this row.

 Everything works fine except that the ?species=.. parameter to the
 link-Tag seems to be forbidden.
 But I need the link to expedite the value to the action.
 What can I do?

 Thanks
 Wolfgang


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Link in iterate

2002-04-11 Thread Ian Tomey


this is a JSP limitation, not a struts limitation.

Hopefully Struts will soon be integrated with the upcoming standard tag
library which will give us a powerful expression evaluator to use in tag
properties

 [EMAIL PROTECTED] 04/11/02 09:14am 

You can not nest tags in Struts. What you can do is do something like
this:

html:link page=/select.do paramId=species paramName=myForm 
paramProperty=spec/

Another note, using page is not recomended, it is better to define a
forward 
in your Struts-config.xml and use forward instead of page.

Cheers,

Victor


On Thu, 11 Apr 2002 17:52, you wrote:
 Hello,
 can anyone show me how to manage that
 I can do the following: under out_put there is an
 ArrayList of OutDataForms that take the records of
 a ResultSet.

 logic:interate id=myForm
 name=out_put
 scope=request
 type=org.apache.struts.example.OutDataForm
 bean:write name=myForm property=spec/

 html:link page=/select.do?species=bean:write name=myForm
 property=spec/

 bean:write name=myForm property=name/
 /html:link
 /logic:interate


 In my SelectAction (/select.do) I would like to access the species
String:
 request.getParameter(species);
 and query the database again to edit or delete this row.

 Everything works fine except that the ?species=.. parameter to the
 link-Tag seems to be forbidden.
 But I need the link to expedite the value to the action.
 What can I do?

 Thanks
 Wolfgang


--
To unsubscribe, e-mail:  
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Link in iterate

2002-04-11 Thread Johannes Wolfgang Woger


Thank you,
I tried it but an ServletException told me:
Cannot find bean myFrom in scope null
Everything was put into request scope, so
at the moment it is displayed, myForm should
still be alive.
Any idea?

Wolfgang




 this is a JSP limitation, not a struts limitation.

 Hopefully Struts will soon be integrated with the upcoming standard tag
 library which will give us a powerful expression evaluator to use in tag
 properties

  [EMAIL PROTECTED] 04/11/02 09:14am 

 You can not nest tags in Struts. What you can do is do something like
 this:

 html:link page=/select.do paramId=species paramName=myForm
 paramProperty=spec/

 Another note, using page is not recomended, it is better to define a
 forward
 in your Struts-config.xml and use forward instead of page.

 Cheers,

 Victor


 On Thu, 11 Apr 2002 17:52, you wrote:
  Hello,
  can anyone show me how to manage that
  I can do the following: under out_put there is an
  ArrayList of OutDataForms that take the records of
  a ResultSet.
 
  logic:interate id=myForm
  name=out_put
  scope=request
  type=org.apache.struts.example.OutDataForm
  bean:write name=myForm property=spec/
 
  html:link page=/select.do?species=bean:write name=myForm
  property=spec/
 
  bean:write name=myForm property=name/
  /html:link
  /logic:interate
 
 
  In my SelectAction (/select.do) I would like to access the species
 String:
  request.getParameter(species);
  and query the database again to edit or delete this row.
 
  Everything works fine except that the ?species=.. parameter to the
  link-Tag seems to be forbidden.
  But I need the link to expedite the value to the action.
  What can I do?
 
  Thanks
  Wolfgang


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]