I just thought up of an excellent idea (although, I wasn't the only one).
Use the iterate tag to iterate over the rows of a resultset. The column meta
data could be exposed as beans named as the column name. A bean:write
operation would display the data in the column.
I did a search about this
was that we had to convert the stream into another object (String in
our case) and close the connection just to manipulate the data.
- Original Message -
From: Mindaugas Idzelis [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Sunday, May 06, 2001 9:33 PM
Subject: Suggestion/Idea
to
an output parameter in a stored proc while the connection was open. The
result was that we had to convert the stream into another object (String in
our case) and close the connection just to manipulate the data.
- Original Message -
From: Mindaugas Idzelis [EMAIL PROTECTED]
To: struts [EMAIL
Given the following code snippet:
String operation = request.getParameter(op);
if (operation==null) {
// Maybe it's multipart
java.util.Hashtable multipart =
form.getMultipartRequestHandler().getTextElements();
operation =
When will components be integrated with struts?
Does anyone have any examples using components? Thanks!
--min
This may be a little off topic, please forgive me. One of my webapplications
displays a group of results from a database query. These can be hundreds of
rows long. I would like to break these up into smaller sections to fit on a
page.
My problem is, I don't want to run the entire query at once
I've tried using the rownum before, but this is the error i get from sql
server 2000
rownum is not a valid column name
Thanks for all your answers. This has been very nerve wrecking. I think I've
come up with a solution that may work in a DB independent way. I'll use a
scrollable resultset. I won't iterate through all of it, only portions at a
time. I think most underlying JDBC drivers use cursors to implement
Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
Mindaugas Idzelis wrote:
Thanks for all your answers. This has been very nerve wrecking.
I think I've
come up with a solution that may work in a DB independent way.
I'll use a
scrollable resultset. I won't iterate
Are there any limitations when using jsp:include to include content
generated by an ActionServlet? For instance, is it possible to set cookies
in an action that is included from another page? Specifically, when
jsp:include is called the response is already commited, correct? Thank
you.
--min
Hi. I am trying to create a portal page through struts. I am not sure how to
go about it. I would like to use templates, but they seem somewhat limiting
in that you must insert your templates using taglibs from a JSP page --
unless I am mistaken here.
Ideally, the templates should be able to be
' /
template:put name='sidebar' content='/sidebar2.jsp' /
template:put name='content' content='%= msg %' /
template:put name='footer' content='/footer.html' /
/table
-Original Message-
From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 5:48 PM
To: struts
Someone posted a while back a revision to the link tag
(http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01185.html)
I was wondering the same thing myself about the link tag. Why create a Map
just to use it in the url. This also adds pain since you need to use a
scriptlet to create
I wrote a param taglib that also works around this.
You use it like this:
param:map id=param scope=request
param:entry key=view value=artist/
param:entry key=id
bean:write name=artist property=artistid/
/param:entry
/param:map
html:link page=somepage.jsp
to BeanUtils to support
different datatypes?
I guess if I can't figure out how to set Timestamp datatypes in my beans,
I'll just change it to a string.
Mindaugas Idzelis
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 9:46 AM
to BeanUtils to support
different datatypes?
I guess if I can't figure out how to set Timestamp datatypes in my beans,
I'll just change it to a string.
Mindaugas Idzelis
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 9:46 AM
Struts,
It seems to me that there is a problem in either FormFile or DiskFile. In
order for me to get the path information about the file stored on disk, I
have to cast FormFile to DiskFile and call getFilePath(). It would be
convenient if DiskFile.destroy() would actually get rid of the
Just a quick question. Can you use BeanUtils.populate() on the 'this'
object?
For example:
BeanUtils.populate(this, map);
Thanks,
Mindaugas Idzelis
to this data. The above
proposal would make this
design a lot more convenient.
I would like to hear comments as well as votes for this change. Thanks
Mindaugas Idzelis
Application Developer
Rochester, NY 14623
FAQ in the subject. Thanks.
Mindaugas Idzelis
inherit from CommonForm so
they also have access to this data. The above proposal would make this design a
lot more convenient.
I would like to hear comments as well as votes for this change. Thanks
Mindaugas Idzelis
Application Developer
Rochester, NY 14623
I found this configuration VERY good at developing struts.
Resin (www.caucho.com)
The struts.jar file should be in your WEB-INF/lib directory.
(if struts is in /resin/lib your classes will not be found when using struts
taglibs -- this is because struts.jar comes before the WEB-INF/classes in
Does anyone know of a way to automatically generate java source for forms
from the form jsp file, or from the struts-config.xml file (like the
documentation aludes to?)
This would be most helpful.
In my JSP page, I have the following tag:
html:form action="/logon" method="post"
when I open this page up in a browser, I get the following html
(if the first time visitin the page)
form name="logonForm" method="post"
action=";jsessionid=aaagnMM1qx2htSNg-9Xqb9oVdkN8R"
(after a reload)
form
properly as a result).
jeff
- Original Message -----
From: "Mindaugas Idzelis" [EMAIL PROTECTED]
To: "struts" [EMAIL PROTECTED]
Sent: Wednesday, March 14, 2001 3:31 PM
Subject: html:form not rendering action attribute properly
In my JSP page, I have the following tag:
html:f
any errors. There
are no exceptions.
Yes, the struts example works for me. I'm currently trying to compare as
much of my code to its code as possible.
--min
On Wed, 14 Mar 2001, Mindaugas Idzelis wrote:
Well... yes, I know why the sessionid was there the first time and not the
next. It tried
I'm doing a multi-page form (like the user's guide suggests)
When the the action servlet populates the form bean, it calls reset before
it calls all the getter/setter properties. Thus, I'm losing all the data
from the previous page. Is the only way around this using html:hidden to
put all the
Am I just not seeing it or what? Currently, this is what i'm doing:
input type="radio" name="answerid" value="bean:write name="poll"
property="currentanswer.answerid"/"
It would be great to do something like this:
html:radio name="answer" property="answerid" valueName="poll"
I need some extra functionality of these two tags. These tags limit what you
can use for the "value" attribute to a static value. It would be nice to use
the value of a bean or a dynamic property for this. For example:
Currently:
input type="radio" name="answerid" value="bean:write name="poll"
I found out a nice way for struts to handle every request on the website.
Just set
servlet-mapping
servlet-nameaction/servlet-name
url-pattern/*/url-pattern
/servlet-mapping
in web.xml.
In struts-config.xml I have a default handler. What this does is handle the
cookies, and set up some generic
30 matches
Mail list logo