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
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
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
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
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
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 =
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
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/
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/
Did I not give each data-source element its own key?
Tim Bachta
Information Technology
MC 48
David Graham
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/
Can you show me a code snip of how to use this?
Tim Bachta
Information Technology
MC 48
David Graham
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
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)
{
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
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)
16 matches
Mail list logo