You could read the global properties from a file or DB when the
application first loads into an object of your choice (A Map for
Key,Value) . Then put this object in session.
On 7/19/07, SimonK <[EMAIL PROTECTED]> wrote:
Thanx for you reply.
The 'problem' with this solution is that I then hav
Look at the walking tour of the mail reader application.
http://planetstruts.org/struts2-mailreader/Welcome.do
It uses a loading page to redirect to an action. The loading page is
just a plain html page the has a tag.
I made a similar page with "Loading..." and I used an animated
loading gif
I am implemnting ParameterAware to get my request parameters:
http://cwiki.apache.org/WW/how-can-we-access-request-parameters-passed-into-an-action.html
I have a parameter called customerId.
I tried this
Integer.parseInt(parameters.get("customerId"));
Which did not work because .get returns an
I am validating a form using the XML validate file. The built in
validators are great for very basic validation but I need to write a
validation too see if a value already exists in the database. I am
not sure how to go about doing this. All the validation examples I
found only show how to use
I added an Interceptor locally to one of my Actions. This Interceptor
implements SessionAware and has a setSession(Map session) method to
get the session. The problem is when my interceptor runs session is
null. I am assuming this is because the interceptor that populates
the session aware obje
The is the tag your looking for.
Check the Doc here. http://struts.apache.org/2.x/docs/select.html
On 7/8/07, Hubert Hers <[EMAIL PROTECTED]> wrote:
Hi,
According to the Struts2 (2.0.8) documentation a combo box is an HTML INPUT
of type text and HTML SELECT grouped together to give you a com
On 7/4/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Richard Sayre <[EMAIL PROTECTED]> wrote:
> http://struts.apache.org/2.0.8/docs/select.html
>
> I was wondering what:
>
> list="petDao.pets"
> listKey="id"
> listValue="name"
&
There is a example for populating a select using alist on this page:
http://struts.apache.org/2.0.8/docs/select.html
I was wondering what:
list="petDao.pets"
listKey="id"
listValue="name"
are referring to?
Is petDao a java bean? Is it an action? How do you set it up on the
page? What is pe
I am new to struts and I am trying to write an interceptor.
I have the interceptor set up so it runs on every action (except one).
The interceptor checks the users session to make sure it has not
timed out.
If the session is after timing out I want to create a new session and
add some values to
I am trying to populate a s:select using a Hashtable.
<% customer.getCustomersForUser(sessionObject.getUserName()); %>
The customer.getCustomersForUser() method populates a Hashtable called
customerList which has the appropiate get and set.
I assumed that calling customer.custome
On 7/3/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Richard Sayre <[EMAIL PROTECTED]> wrote:
> How will it know which name space I am referring to?
AFAIR it uses the current namespace unless you supply
a "namespace" attribute.
d.
Thank you. I should have triple
I have a package defined as follows:
/JSP/Design/selectCustomer.jsp
/JSP/Design/location.jsp
I am using the name space to encapsulate the JSP from the user.
When I create a form using struts tags like this:
The 'action' is rendered
101 - 112 of 112 matches
Mail list logo