I am trying this simple struts application here, that uses following:
global-forwards
forward name=welcome path=/Welcome.do/
/global-forwards
and under action-mappings :
action path=/Welcome forward=/pages/Welcome.jsp/
However, I am getting following exceptions.I
-I have an html:select element which has several option items.
-This is kind of unusual situation where I have to select multiple
option items instead of only one and submit that array of option items
to the struts action.
-The select element contains a lot of option items so using check
boxes
JDOM: http://www.jdom.org/.
If you are new to xml-java parsing, then this is the way to go. When
I started learning about xml parsing with java a while ago, I
researched various methods and found that JDOM provides the easiest
route to get things done. A quote from JDOM mission: It behaves like
I have a struts plugin that works wellbut I realized that it was not
executing the destroy() method when the tomcat-server was shutdown. I have a
timer that needs to run timertask at a certain interval and have implemented
timer.cancel() method inside the destroy() methodBut there seems no
Is it possible to display an intermediate page while struts action is doing
work...e.g. uploading a large file to a ftp serverand at the end of the
action will show the verfication/success page as usual.
I have a struts action that downloads binary files from the database: e.g.:
/actions/download.do?fileId=xxx, etc
So, whenever users download any type of file with any id, the name of the
file displayed on any browser is download.do,
is it possible to set something in the response, so that I
I use struts dispatch actionwonder if this 'parameter' parameter will
affect my method 'parameter'
On 11/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
sudip shrestha [EMAIL PROTECTED] wrote on 11/03/2005 09:49:18 AM:
Is it possible to display an intermediate page while struts
I have a struts app that uses a Daemon thread (implements TimerTask) to run
at a periodic interval to do some background work. I am wondering if it is
possible to access application context from that daemon as I don't have
access to request/session variable from that daemon.
Also, is it possible
Doing ftp file uploads in a struts webapp with jakarta-commons-net...did
bulk of google searchs...they all seem to go towards use of an applet
If anybody has any other ideas, I would be glad to hear.
I have situation here where one action method need to do a POST to another
method of a DispatchAction implementing class. I need to know if this is
possible.
I have a struts webapp that uploads file to a ftp web server and so one of
the POST variables is a Struts FormFile object. If it were just
Is there some sort of setting that I am missing here?
I would appreciate any kind of help.
--- Pat Slater [EMAIL PROTECTED] wrote:
I have an method in a class that extends
DispatchAction that throws Exception such as:
public ActionForward saveMethod(ActionMapping
mapping, ActionForm form,
Can you post your struts-config file here as well
--- sudip shrestha [EMAIL PROTECTED] wrote:
Is there some sort of setting that I am missing
here?
I would appreciate any kind of help.
--- Pat Slater [EMAIL PROTECTED] wrote:
I have an method in a class that extends
Using JDBC- JTOpen 4.6 for AS/400 DB2
I have a PreparedStatement that inserts 25 values into a table with 25
attributes...
When I supply 23 or less attributes with values, the insert operation
works normally.
However, if I supply 24 or 25 attributes it throws an exception:
java.sql.SQLException:
It seems that it is a bug with OS/400 R 5.1.
It has been documented before:
http://www-124.ibm.com/developerworks/bugs/?func=detailbugbug_id=3160group_id=29
On Mon, 31 Jan 2005 12:48:55 -0600, sudip shrestha [EMAIL PROTECTED] wrote:
Using JDBC- JTOpen 4.6 for AS/400 DB2
I have
I have certain situations when I have to forward the web page upon
success to a certaion action or to a page with url such that it has a
query string with it: e.g.:
/actions/myActionxx.do?wId=123 or /pages/myPagexx.do?wId=123
Now, I can't provide the query strings with ids in struts-config.xml
On Mon, 14 Mar 2005 08:17:02 -0600, sudip shrestha [EMAIL PROTECTED] wrote:
I have certain situations when I have to forward the web page upon
success to a certaion action or to a page with url such that it has a
query string with it: e.g.:
/actions/myActionxx.do?wId=123 or /pages
I changed the dialect to DB2400 from DB2, and it solved the problem.
On Thu, 24 Mar 2005 13:36:50 -0600, sudip shrestha [EMAIL PROTECTED] wrote:
Working on: Fedora Core2, Sun jdk 1.5, Tomcat 5.5.7, Hibernate 2.1.6,
AS/400-DB2
Take a look at the following two Queries:
#Hibernate generated
Working on: Fedora Core2, Sun jdk 1.5, Tomcat 5.5.7, Hibernate 2.1.6, AS/400-DB2
Take a look at the following two Queries:
#Hibernate generated query with Session.createQuery on SYS_CAT table:
select * from (
select rownumber() over() as row_, syscat0_.SYS_CAT_ID as SYS_CAT_ID
from SYS_CAT
Using: Tomcat 5.5.7, Sun JDK 1.5, Struts 1.2.4
--
I have few layout.jsp templates where I have following chuck of code
which should redirect the browser to login page if session expires:
% String loginCheck = notLoggedIn;
if(
for the
verification. This auth piece is at the top of the page, so I don't
see the page already outputting to the HTTP connection before this
script executes.
On Apr 8, 2005 11:55 AM, Dave Newton [EMAIL PROTECTED] wrote:
sudip shrestha wrote
in the browser and if that particular page does not have the
authority-check not built into it, that user may be able to do stuff
on the page..I hope you know what I am saying.
On Apr 8, 2005 3:56 PM, Dave Newton [EMAIL PROTECTED] wrote:
sudip shrestha wrote:
I have user types with varying level
, Dave Newton [EMAIL PROTECTED] wrote:
sudip shrestha wrote:
I can understand presenting different menu options based on user
privileges and having the same layout pages. But my concern is there
may be some pages which a user with less privileges may not be allowed
to see at all, and what if he
Hi : I have following code for automatic ssl-forwarding filter:
public void doFilter(ServletRequest servletrequest, ServletResponse
servletresponse, FilterChain filterchain)
throws IOException, ServletException
{
String s = servletrequest.getScheme();
if(
);
response.setHeader(Cache-Control, max-age=0);
- Jim
-Original Message-
From: sudip shrestha [mailto:[EMAIL PROTECTED]
Sent: Friday, April 15, 2005 9:54 PM
To: Struts Users Mailing List; Tomcat Users List
Subject: ssl-forwarding filter not working in IE 6
Hi : I have
Just curious if there are any struts based content managment tools out there!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Any suggestions on showing a preview of the image stored in the database?
I found one which is: storing the file in a temporary folder and
display from there...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
26 matches
Mail list logo