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
logic:iterate id=file name=fileList
bean:write name=file property=name /
/logic:iterate
java.io.File provides a method length()
Hi all
i have this jsp page with a form
html:form action=admin-console/engine-path/EditEnginePathAction
and the corresponding mapping in the struts config is
action path=/admin-console/engine-path/EditEnginePathAction
type=adminconsole.editconfig.EditEnginePathAction
On 12/7/06, chuanjiang lo [EMAIL PROTECTED] wrote:
Hi all
i have this jsp page with a form
html:form action=admin-console/engine-path/EditEnginePathAction
and the corresponding mapping in the struts config is
action path=/admin-console/engine-path/EditEnginePathAction
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);
you
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
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.
!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
[EMAIL PROTECTED] wrote:
On 6/14/06, Dave Newton [EMAIL PROTECTED] wrote:
chuanjiang lo wrote:
bean:define id=biz_link type=String name=Biz_Bean
property=business_id/
html:link
action=/viewBiz/ViewBusinessDetail?business_id=${biz_link}
You need to use the EL-enabled tag libs (struts-el
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 present
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
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
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.
*ponder*
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,
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: Cannot
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:numbersType: ArrayList
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
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
is this the best way to handle this?
as my project is rather small scale..there isnt a need for me to use ORM..
On 2/20/06, Vijaya S [EMAIL PROTECTED] wrote:
You have to copy the resultset to an arraylist and return the arraylist.
Vijaya
-Original Message-
From: chuanjiang lo
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-userm=110624445418289w=2
Im looking at
20 matches
Mail list logo