RE: Display Only Version

2001-12-20 Thread Scott Walter
requirement. While displaying your page, check for the value of the session variable allowEdit. Set the value of session variable in Action class of your page. Pritika -Original Message- From: Scott Walter [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 9:19 AM

Display Only Version

2001-12-19 Thread Scott Walter
Hi, I have a page using Struts tags that I want to be able to make the page editable in certain cases and display only in others. Is there an easy way to be able to have a display only version of a struts-powered page without having to write a second page? =

Re: Pictures store in a data base

2001-12-18 Thread Scott Walter
Basically you will want to call getInputStream or getFileData off of the FileForm class. On your PreparedStatement you can call setBlob or setBytes depending on the datatype in the database to hold the binary data. scott. --- Fischer, Thomas [EMAIL PROTECTED] wrote: Hello! Can anybody help

RE: Dynamically Developing HTML forms

2001-11-30 Thread Scott Walter
Hi, I have created a dynamic html form using struts. Bascially I have a user preference page and want to dynamically show text input fields based on preference names (i.e. favorite color, age, etc.) stored inside a database table. Since my page would have both dynamic and non dynamic input

Re: Servlet Error 500, Missing message for key index.title

2001-06-26 Thread Scott Walter
remove struts.jar from your claspath. --- Maik Mrazovic [EMAIL PROTECTED] wrote: Hi Klaus, thanks for your help, but as I already wrote it´s always the first key of the propertiesfile, in my case the index.title - key. I assume Struts don´t find any keys, and I dont know why. And in

Re: dynamic button names

2001-05-24 Thread Scott Walter
just set the property attribute on the struts submit tag. scott. --- Neil Blue [EMAIL PROTECTED] wrote: Hello, I am planning a struts app and I would like to know please if there is a way to set the text of a submit button, based on a key from the ApplicationResources.properties file.

Re: three submit buttons error

2001-05-21 Thread Scott Walter
In regards to your first problem. I believe the button that was pressed would be in the request header so you can use getParameter() (passing th name of the button) from the request object in the Action class to determine which button was pressed. If the call to getParameter() does not return

Re: Hidding .jsp files

2001-05-15 Thread Scott Walter
Look into the web.xml file. Since a JSP page is a servlet, you can setup a servlet tag for the JSP page (instead of specifiying servlet-class, use jsp-file). You will then create a servlet-mapping to specify the url to listen on. scott. --- Mikkel Bruun [EMAIL PROTECTED] wrote: Hi Guys, Is

Re: relative urls

2001-05-10 Thread Scott Walter
I ran into this same issue. I accomplished this by creating a custom tag (in my case called, PageLoader). The PageLoader tag will expose a scripting variable called contextRoot, which is basically pageContext.getRequest()).getContextPath() scott. --- Nathan Coast [EMAIL PROTECTED] wrote: Hi,

Re: NEED HELP

2001-05-04 Thread Scott Walter
With the checkboxes only the checkboxes that are checked will be sent to the http header. In other words only checked checkboxes will have values from a request.getParameter() call. To pass a value onto the next page you could either store in a hidden field on the first page or pass it on the

Re: How to check if an array is null

2001-05-03 Thread Scott Walter
if(classinstance.Columns()==null) //do something else //do something NOTE: There is a difference between checking if an array is null and checking if the elements within the array are null. The above example checks the array itself. scott. --- Alex Colic [EMAIL PROTECTED] wrote: Hi, I

Re: locating .properties files

2001-05-03 Thread Scott Walter
You should just have to put it somewhere in the classpath (i.e. web-inf/classes) scott. --- Matthew O'Haire [EMAIL PROTECTED] wrote: Where should I put .properties file(s) in my WAR ? Should they be in the application .jar (where I put the classes that use the properties files, ie. the

Re: Does strut support dynamically generated form?

2001-04-27 Thread Scott Walter
I have implemented a dynamic generated form. In my case I wanted to have a user profile page, where the questions were stored in the database and could be updated at any time. The way I did this was when I dynamically generated the form field elements I had a consistent name always starting

Re: Thread error....WHY?

2001-04-24 Thread Scott Walter
You aren't having thread errors, Java just can't find your class. If the SimpleTransform class is in current directory make sure . is in your classpath. scott. --- TODD HARNEY [EMAIL PROTECTED] wrote: Also, do you need the package information on the SimpleTransform class? Does it have a

RE: How to display odd/even rows using iterator

2001-04-18 Thread Scott Walter
Although I don't like to place Java code in my JSP pages, this is how I accomplished this: strutlogic:iterate id="row" name="list" % if(index%2==0) { % TR class="rowoff" % } else { % TR class="rowon" % } % index++; /strutlogic:iterate --- Anthony Martin [EMAIL PROTECTED] wrote: I'm sure

Re: Connection Pooling, GenericDataSource, JNDI, CachedRowSet

2001-04-05 Thread Scott Walter
I have used the CacheRowSet however I get the connection from GenericDataSource manually and associate it with the CachedRowSet. You might want to do a search at JavaWorld, there was an article within the last 5 months that talks all about the CachedRowSet. --- Christophe Thiébaud [EMAIL

Connection Pool

2001-03-25 Thread Scott Walter
Hi, I am trying to setup a connection pool using the GenericDataSource, however I am getting a class not found on javax.sql.DataSource? I know this is part of the jdbc 2.0 optional package, but do not know where to get it? Any clues thanks, scott. =

Re: Connection Pool

2001-03-25 Thread Scott Walter
Never mind, I found it at: http://javasoft.com/products/jdbc/download.html --- Scott Walter [EMAIL PROTECTED] wrote: Hi, I am trying to setup a connection pool using the GenericDataSource, however I am getting a class not found on javax.sql.DataSource? I know this is part of the jdbc

Re: nested tags again - Q

2001-03-19 Thread Scott Walter
I have never been able to get that to work, I think it's an issue with either tomcat of the java spec. The way I have been able to get around this is to write my own tag and have the tag set page context attributes via a tag extra info class. scott. --- Maya Muchnik [EMAIL PROTECTED] wrote:

Re: Performance of struts

2001-03-19 Thread Scott Walter
In my opinion the performance of Tomcat is pretty good. However most j2ee apps servers have very good performance including weblogic, iplanet, silverstream, etc. scott. --- James Howe [EMAIL PROTECTED] wrote: If Tomcat's performance is pretty awful, what are some JSP implementations

error header and footer

2001-03-12 Thread Scott Walter
Is it possible to use the html:errors without having it use the errors.header and errors.footer in certain circumstances? thanks. = ~~~ Scott __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at

Re: Where to put code to populate SELECT / OPTION lists?

2001-03-12 Thread Scott Walter
I have created a servlet where I do not code the doGet() or doPost(), only the init() method. This allows me to get around the fact that the 2.2 servlet api doesn't have a server startup event. Then within the init() method I setup my arraylist of values where each object in the arraylist is of