Hi all,
I have an ArrayList (fileList) that stores the type java.io.File
Im trying to iterate through the list to get the name and size of the file
java.io.File provides a method length() that return us the size of the file.
So how i can get the size of the file?
i tried and
On 12/7/06, chuanjiang lo <[EMAIL PROTECTED]> wrote:
Hi all
i have this jsp page with a form
and the corresponding mapping in the struts config is
When i view the source code of the jsp
it shows
Why is the action mapping to my context path?
Appr
Hi all
i have this jsp page with a form
and the corresponding mapping in the struts config is
When i view the source code of the jsp
it shows
Why is the action mapping to my context path?
Appreciate any advice
On 12/6/06, Venkata Phani Kumar <[EMAIL PROTECTED]> wrote:
Hi,
You can get any resource path wich is under context path using
ServeletContext.getRealPath().
The usage of this method is here,
String iniFilePath =
request.getSession().getServletContext().getRealPath("test.ini");
y
Hi all,
I have this web app that allows user to change the config (.ini) file via a
form. When the user submits the form, it goes into the action class and the
action class is supposed to update the ini file accordingly.
The ini file is lumped together with my action class.
FileInputStream in =
olkar <[EMAIL PROTECTED]> wrote:
On 6/14/06, Dave Newton <[EMAIL PROTECTED]> wrote:
> chuanjiang lo wrote:
> > > property="business_id"/>
> >
>
> You need to use the EL-enabled tag libs (struts-el or something like
> that) when you don't have
Hi all,
I need some advice here.
I have developed my application using 2.4 specifications but the deployment
server is only up to 2.3 specifications.
So i have to make some changes in web.xml as the following.
http://java.sun.com/dtd/web-app_2_3.dtd";>
...
When i run the web application,
Hi all,
I have a module (/module) with three functions
For e.g.
Function a -> module/functiona.do
Function b - > module/functionb.do
Function c -> module/functionc.do, module/functionc1.do
I have two roles, say Role A can access the whole module. Role B can onl
access Function C
For Role A, the
go take a look at http://javawebparts.sourceforge.net
they have a ajax dynamic double select servlet..
On 4/6/06, Madhav Bhargava <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have 2 drop downs in my JSP. One drop down gets populated based on the
> value selected in the other drop down. At prese
Hi all,
I've recently developed a struts web application and with all the mappings
here and there..i think it would be good for me to have some visual
documentation on how the web application flows from a page to another.
Is there any good open source tool or plugins to netbeans or eclipse i can
Hi all,
I have this list of students display on a table.
Every record would have a checkbox beside it.
If the checkbox is checked and user press delete, the action form is suppose
to collect all the checkbox values and delete the records in the database.
Can anyone enlighten me on getting the lis
Hi all,
I have form bean prepopulated in the SetUp class before return to the view..
Employee form is set before returning to the view.
empForm.setName("Alice");
How can i check whether the form bean property "name" exist in the view
section?
Appreciate any help.
i'm also rather new here and im interested to know how to apply filters to
the web application...
is there any useful guides around too?
thanks
On 3/26/06, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Dakota Jack wrote:
> > If you are smart, go elsewhere where things are not this nuts.
> >
>
> *po
Is it necessary for me to store numbers as another POJO in the ArrayList
rather than storing in as String?
On 3/14/06, chuanjiang lo <[EMAIL PROTECTED]> wrote:
>
> I have a ArrayList of CustomerBean.
> CustomerBean
> Property:customer_name Type: String
> Property:nu
did you include the mysql jdbc jar in your classpath?
On 3/14/06, Zheng Wen Zhe <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Why I got this error when initialize web server
>
>
>
> ERROR <14-Mar-2006 13:52:17> Initializing application data source userDB
>
> org.apache.commons.dbcp.SQLNestedException
I have a ArrayList of CustomerBean.
CustomerBean
Property:customer_name Type: String
Property:numbersType: ArrayList that stores Strings
In my Action class, i return the ArrayList through request scope.
request.setAttribute("CustomerList", customerList);
In my view, i have something,
In the DAO class
import javax.servlet.jsp.jstl.sql.Result;
Statement stmt = conn.createStatement ();
String query = "select * from business";
rs = stmt.executeQuery(query);
Result result = ResultSupport.toResult(rs);
...
...
in the action class
Result result = BusinessDAO.getBusinessList();
its
riginal Message-
> From: chuanjiang lo [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 20, 2006 6:22 PM
> To: user@struts.apache.org
> Subject: Returning ResultSet
>
>
> Hi guys,
>
> I have this DBConnectionManager class that manages the connection pooling.
> It has thi
Hi guys,
I have this DBConnectionManager class that manages the connection pooling.
It has this method to get some results from the database.
So my action form make use of the method to get the resultset and tries to
display on the jsp page.
But the method would close the connection after i query
Hi,
Just a few question.
Is it the correct way to implement session management using filters?
I'm rather new to structs and i would like to know is there any good sites
or tutorials i can refer on writing filters?
http://marc.theaimsgroup.com/?l=struts-user&m=110624445418289&w=2
Im looking at t
20 matches
Mail list logo