How do I populate the href attribute in the html:link tag?
I have the following code with a bean 'score' that contains
the url I want to put in the hyperlink tag.
html:link href=xxx target=_new
bean:write name=score property=url/
/html:link
where xxx should be the same as the body of this
I am wondering how you best architect the flow of the connection object:
It is suggested in Struts to obtain a Connection object in the ActionServlet
and that is the place where you close or free up the connection after
the request.
But how do you pass that object down to your middletier where
I have a bean - called ABean - that has a get method and retrieves a
Vector where each Vector
element has a new Object - say DetailBean.
How do I get access to that bean in
bean:write name=question property=weight scope=request
filter=true/
if that Vector were another bean I could just use
How does struts envision to send files (images, documents) to the web
user back?
I could not find documentation about it? Is that done in the Action class?
How do I set the contents-type, such as image/gif or others
and how do I set the default name that appears for the user when he is
asked to
it from an action class?
Bichiko, Dmitri wrote:
you can set the content type from within the JSP page:
response.setContentType(application/vnd.ms-excel)
for the file name:
response.setHeader(Content-Disposition,attachment; filename=myfile.xls;)
Dmitri
-Original Message-
From: Christian
How do specify additional parameters in the forwarding, e.g.
for one of my actions I have
forward name=success path=/Admin/main.jsp/
but I would like to add parameters.
I can add them in the Action Servlet manually by retrieving
the path of the mapping (mapping.findForward(success).getPath())
6 matches
Mail list logo