JavaScript / struts submit problems

2003-01-28 Thread tbachta
Hello All, I am having a little problem that hopefully someone can help me with. I have a form that has a hidden field in it, I am not populating this hidden field on the page load but rather I am populating the value in a JavaScript function and then using the form.submit() in JavaScript to

RE: JavaScript / struts submit problems

2003-01-28 Thread tbachta
Ok, so if the name is not the problem then what is? What do I need to do, or look at to fix this? Tim Bachta Information Technology MC 48

RE: JavaScript / struts submit problems

2003-01-28 Thread tbachta
Sorry forgot to add this code to the fray, here is the ActionForm class where I have the get and set methods private void setXMLQueryString(String sXML) { this.XMLQueryString = sXML; } public String getXMLQueryString() { return XMLQueryString; } Tim Bachta Information

RE: JavaScript / struts submit problems

2003-01-28 Thread tbachta
I dont think that the capitalization is the problem, I have tried to do it with the get and sets like XmlQueryString() and the property =xmlQueryString, and I still get a zero length string when I try to getXmlQueryString() in my action class. Tim Bachta Information Technology MC 48

Re: Multiple DataSource Problem

2002-12-06 Thread tbachta
Ok , I thought I have already changed the key value's to MRA and PHONE_DB in both of my data-sources, what I am having trouble with is how do I refrence these values in the form and action classes? Tim Bachta Information Technology MC 48

Re: Multiple DataSource Problem

2002-12-06 Thread tbachta
Ok I have tried that and I am getting a null pointer exception caused by the DataSource, here is my code ServletContext context = servlet.getServletContext(); DataSource dataSource = (DataSource) context.getAttribute(MRA); conn = dataSource.getConnection(); stmt =

Re: Multiple DataSource Problem

2002-12-06 Thread tbachta
That gives me a xml parse error: -INF/struts-config.xmlLine 17, Column 34: XML-0138: (Error) REQUIRED attribute 'property' is not pecified. org.xml.sax.SAXParseException: file:/C:/oracle/j2ee/home/applications/MRA/WEB-INF/struts config.xmlLine 17, Column 34: XML-0138: (Error) REQUIRED attribute

Re: Multiple DataSource Problem

2002-12-06 Thread tbachta
data-sources data-source key=MRA set-property property=driverClass value =oracle.jdbc.driver.OracleDriver/ set-property property=url value=jdbc:oracle:thin: @147.101.104.63:1524:common/ set-property property=user value=MRA/

Multiple DataSource Problem

2002-12-05 Thread tbachta
I am having trouble getting multiple datasources to work in my application. I have searched the archives and found inofrmation on how to do it but the solutions given are depricated. Can anyone help me? data-sources data-source set-property property=key value=MRA/

Re: Multiple DataSource Problem

2002-12-05 Thread tbachta
Did I not give each data-source element its own key? Tim Bachta Information Technology MC 48 David Graham

Multiple Data-Source Problem

2002-12-05 Thread tbachta
How do access multiple data-sources' in an application. Here are may data-source's data-sources data-source set-property property=key value=MRA/ set-property property=driverClass value =oracle.jdbc.driver.OracleDriver/

Re: Multiple DataSource Problem

2002-12-05 Thread tbachta
Can you show me a code snip of how to use this? Tim Bachta Information Technology MC 48 David Graham

Re: select and option tag issues

2002-11-08 Thread tbachta
I posted this question a couple of days ago and received an answer. Unfortunately the answer does not work for me. The problem I am having is on the initial page of my web application I have drop-down boxes that I want to be populated with information from a database. I have no problem getting

RE: select and option tag issues

2002-11-08 Thread tbachta
Ok I am still getting an error, the error is: javax.servlet.jsp.JspException: No getter method available for property getLocationValues for bean under name null here is the code form the class that extends ActionForm private ArrayList getDataValues(String sql, String varaible) {

select and option tag issues

2002-11-06 Thread tbachta
Hi all, I am very new to struts and I am trying to create combo boxes using the html:selecthtml:options tags. I have been able to create and populate them with string arrays placed on the JSP page similar to the examples in the documentation. What I really need to do is populate them based on

Re: html tags

2002-11-06 Thread tbachta
I did something similar with hiding and showing using JavaScript and a style sheet script function checkUnique(lookupForm) { var x= document.getElementById(unique_select); x.style.visibility = visible; } /script html:form tr tdhtml:select onchange=checkUnique(this.form)