Suggestion/Idea for iterate tag: Iterate ResultSets

2001-05-06 Thread Mindaugas Idzelis
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

RE: Suggestion/Idea for iterate tag: Iterate ResultSets

2001-05-07 Thread Mindaugas Idzelis
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

RE: Suggestion/Idea for iterate tag: Iterate ResultSets

2001-05-07 Thread Mindaugas Idzelis
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

MultipartRequestHandler broken in nightly builds

2001-05-08 Thread Mindaugas Idzelis
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 =

What is the current status of Components?

2001-05-15 Thread Mindaugas Idzelis
When will components be integrated with struts? Does anyone have any examples using components? Thanks! --min

General DATABASE programming question

2001-06-15 Thread Mindaugas Idzelis
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

RE: General DATABASE programming question

2001-06-15 Thread Mindaugas Idzelis
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

RE: General DATABASE programming question

2001-06-15 Thread Mindaugas Idzelis
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

RE: General DATABASE programming question

2001-06-16 Thread Mindaugas Idzelis
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

jsp:include limitations?

2001-06-25 Thread Mindaugas Idzelis
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

Help creating a portal page.

2001-06-25 Thread Mindaugas Idzelis
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

RE: Help creating a portal page.

2001-06-25 Thread Mindaugas Idzelis
' / 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

Revision to html:link tag

2001-06-26 Thread Mindaugas Idzelis
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

RE: nesting bean:write inside of html:link

2001-08-27 Thread Mindaugas Idzelis
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

RE: Can BeanUtils support Timestamp datatype? (was: Performance,Reflection, and Object Creation vs. Cacheing)

2001-08-28 Thread Mindaugas Idzelis
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

RE: Performance, Reflection, and Object Creation vs. Cacheing

2001-08-28 Thread Mindaugas Idzelis
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

FormFile.destroy() vs DiskFile.destroy() -- bug?

2001-09-06 Thread Mindaugas Idzelis
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

BeanUtils.populate 'this'

2001-09-25 Thread Mindaugas Idzelis
Just a quick question. Can you use BeanUtils.populate() on the 'this' object? For example: BeanUtils.populate(this, map); Thanks, Mindaugas Idzelis

PROPOSAL: collectionProperty attribute in html:options

2001-10-25 Thread 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

This list NEEDS a FAQ

2001-10-25 Thread Mindaugas Idzelis
FAQ in the subject. Thanks. Mindaugas Idzelis

PROPOSAL: collectionProperty attribute in html:options

2001-10-26 Thread 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

info: what works well when developing struts

2001-03-14 Thread Mindaugas Idzelis
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

Auto-generating form classes from xml file?

2001-03-14 Thread Mindaugas Idzelis
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.

html:form not rendering action attribute properly

2001-03-14 Thread Mindaugas Idzelis
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

RE: html:form not rendering action attribute properly

2001-03-14 Thread Mindaugas Idzelis
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

RE: html:form not rendering action attribute properly

2001-03-14 Thread Mindaugas Idzelis
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

ActionForm for multiple page forms (wizard style)

2001-03-15 Thread Mindaugas Idzelis
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

Whats the point of html:radio and html:hidden

2001-03-28 Thread Mindaugas Idzelis
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"

Need extended functionality of html:radio and html:hidden

2001-03-30 Thread Mindaugas Idzelis
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"

How to let struts handle every request on web site

2001-04-03 Thread Mindaugas Idzelis
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