Do you think this framework is stable and good?
I have tested it and my first impression is not bad.
Is there someone who uses it for its purposes?
Ciao Christian
Libero Flat, sempre a 4 Mega a 19,95 euro al mese!
Abbonati subito su
Hi,
I am including the response of an action in to the same page that
has triggered the action and getting an exception saying:
ERROR - Servlet.service() for servlet action threw exception
java.lang.IllegalStateException: Cannot forward after response has
been committed
at
this usually occurs when ur response has already been redirected and again u r
calling REquestDispatcher to forward to next page..
check if action forward is set only once..
or if accidently u have called response.sendRedirect();,somewhere on ur jsp or
Action class
hope this helps u out
On
-Original Message-
From: Paul Benedict [mailto:[EMAIL PROTECTED]
====
Frank,
I am fond of these two ideas (see following). Heck, I
would be willing to even write them if I think there
would be a chance of someone actually commiting them
into the Trunk!!
There are four
Hello,
I would like to make a redirect (code 302) and include in the URL a HTML label
name - something like someAction.do#someLabel. Unfortunately I'm getting an
error saying that action someAction.do#someLabel is unknown.
How would you handle this problem?
Best regards,
Konrad Billewicz
Hi Frank and Rick,
I've just subscribed to the JWP mailing list.
If it's ok with you I will post messages related to this filters there...
Tamas
Frank W. Zammetti wrote:
On Fri, July 29, 2005 12:34 am, Tamas Szabo said:
Did you made the modification I suggested?
I mean not continuing
2005/7/29, Jim Kennedy [EMAIL PROTECTED]:
I had to do this to make it work.
sorry, but it doesn't work, or better, it doesn't work for me . The
problem is that when I try to access a protected resource the
browser's request is redirected to the root of the app:
http://localhost:8080/myapp/
so
Hello,
Here is what I am trying to do. Could you please help me?
I have one search form 'searchForm'
forward name=searchForm path=/searchform.do redirect=true/
action path=/searchform type=com.waves.v5.SearchformAction
parameter=.frontpage /
this form is customised for Holidays and
Peter writes:
(2) Stubbing of abstract attributes for framework
implementation like Tapestry.
Are you talking abouting the ``jwcid'' attribute?
No.
When you create a Tapestry page, you don't have to
implement the getters - or even write the setter
methods for attributes (unless you want to
Hi,
I have a message defined like this in .properties file
2001={0} is required
I am passing for eg status for the {0}
Errors tag is printing it like this
[status] is required
Why its printing [] in the actual message ?
Thanks
Ashwani
This message contains information that may be
I think I'm missing the point of the TilesRequestProcessor
I have a few simple tiles in a project with to
modules (default crud). Actually the default
uses tiles and the other one doesn't.
Now, the tiles in the default module seem to
work just fine, but a friend told me, that I would
Hi!
I use a pattern of PrepareAction- view.jsp- SubmitAction and also
combine those parts to chains like this OnePrepareAction- oneView.jsp-
OneSubmitAction- TwoPrepareAction- twoView.jsp- TwoSubmitAction. All
actions and views of this chain uses one FormBean which lives in the
session
Hi Pham,
If your host is able to support java, then you should be able to install a
struts application which uses iBatis. This is because Struts iBatis are
frameworks.
Anyhow, several java hosts have been recommended on this list (thread 'OT:
Good Java host'). Personally, I use
Hi,
I've been trying to use bean:include .../ in a similar way to
jsp:include ... but am unsuccessful.
I am trying to include a footer on my page by writting the following:
bean:include id=footerId page=/includes/footer.jsp /
Unfortunately, I don't get any errors and the page is not included.
Hi friends
I would like to know if there is a way of forwarding a request to a new
explorer window.
For example, in the current window I have a list of books and a link to
a book details page for each book in the list - how do I open the book
details in a new window using Struts?
Thanks
-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Monday, August 01, 2005 6:13 PM
To: user@struts.apache.org
Subject: html:errors tag
Hi,
I have a message defined like this in .properties file
2001={0} is required
I am passing for eg status for the {0}
Errors
Hi Rivka,
Try the following:
a href=/youraction target=new_window_namelink/a
This will open your action in a new window.
Vic
Hi friends
I would like to know if there is a way of forwarding a request to a new
explorer window.
For example, in the current window I have a list of books
when writing a link the target attribute can be set with _new or _blank or
even the name of a child window. When youclick on the link it will open in
said new window.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Thanks guys
2 related questions:
1. What are the relations between the new window and the original one?
Do they share the same session attributes?
2. How do you define a child window in JSP - can you please attach an
example?
Rivka
-Original Message-
From: Mark Benussi [mailto:[EMAIL
shalom rivka,
there is no whatsoever relation between html-controled browser windows
and the backend struts-java-code.
besides, you can access the new window from the old window using its
name, and you can access the old window from the new window by
window.opener or window.parent (depends on
The only way is to include JS code in your response, to open a new
windows for that resource. Questions like this one usually come from
designs that can be improoved though.
hth,
Manos
Rivka Shisman wrote:
Hi friends
I would like to know if there is a way of forwarding a request to a
Sorry, i only read the first paragraph :-/
Manos
Emmanouil Batsis wrote:
The only way is to include JS code in your response, to open a new
windows for that resource. Questions like this one usually come from
designs that can be improoved though.
hth,
Manos
Rivka Shisman wrote:
Hi
1. What are the relations between the new window and the original one?
Do they share the same session attributes?
Typically, the parent child window will share the same session attributes.
2. How do you define a child window in JSP - can you please attach an
example?
You would have to use
No problem at all, that's what the list is for :)
Woo-hoo, first subscriber (besides me)! :)
Too bad there's no prize :)
Oh wait, now that's embarassing... I wasn't subscribed to my own list! D'oh!
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
Frank W. Zammetti wrote:
No problem at all, that's what the list is for :)
Woo-hoo, first subscriber (besides me)! :)
Too bad there's no prize :)
Oh wait, now that's embarassing... I wasn't subscribed to my own list! D'oh!
To tell you the true I was afraid of this... :-DDD
I thougth
Hello everybody,
I just tested the date validation in Struts 1.1 and it seems to me that
12/31/2004 is valid but 12-31-2004 is invalid. Do you know what I should
change so that 12-31-2004, Dec 31 2004 are valid? And are the date
validation rules in version 1.1 and 1.2 the same?
This is probably ripe for a Wiki entry :)
As you found out, Struts can't find an Action mapping with an anchor added
to it... it's trying to find, literally, an ActionMapping named
someAction.do#someLabel. You might, I suppose, be able to make that
literally your mapping path, I've never tried
Fortunately, that's what list archives are for :) I see your post, I'll
reply on the list shortly.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Mon, August 1, 2005 10:03 am, Tamas Szabo said:
Frank W. Zammetti wrote:
No problem at
This you do this is your struts config:
plug-in className=org.apache.struts.action.SecurePlugIn
set-property property=httpPort value=80/
set-property property=httpsPort value=443/
set-property property=enable value=true/
To expand on Vic's comments.
Yes the share the same session id but they also have a JavaScript
relationship. The opener parent can be accesses from the child window from
referencing the window.opener API. If the new window is assigned to a
windows variable then the parent can reference that child
Vic wrote:
I've been trying to use bean:include .../ in a similar way to
jsp:include ... but am unsuccessful.
http://struts.apache.org/userGuide/struts-bean.html#include
This tag has a function similar to that of the standard |jsp:include|
tag, except that the response data is stored in a
2005/8/1, Jim Kennedy [EMAIL PROTECTED]:
This you do this is your struts config:
plug-in className=org.apache.struts.action.SecurePlugIn
set-property property=httpPort value=80/
set-property property=httpsPort value=443/
set-property property=enable
Hi All,
We are trying to use struts but the approach we are taking is an incremental
migration to struts. What is the best way to integrate a struts project with an
existing web project that does not use struts. Any information will be helpful.
thanks,
Djeneba Traore
Software Engineer
Mellon
Hello, I'm trying to capture exceptions generated inside my jsp pages.
I wrote a piece of code like this into my jsp:
%
..
DatabaseException de = new DatabaseException(Test Exception for the
error page);
throw de;
...
%
I added these pieces in my web.xml and struts-config.xml
I would start by installing Struts within your application alongside your
existing servlets [I assume you are using servlets]. If you use something
like my eclipse it will install the resources you need with an empty
configuration. You can then start the app and it will run like it always
did.
Hi Yaroslav,
On my side, I'm using an other method than your. I use the
oneSubmitAction to prepare the form of the next page. So, it look like this
:
OnePrepareAction-oneView.jsp-OneSubmitAction/TwoPrepareAction-twoView.jsp
. The subtility in the OneSubmitAction/TwoPrepareAction is
On 8/1/05, Yaroslav Novytskyy [EMAIL PROTECTED] wrote:
Hi!
I use a pattern of PrepareAction- view.jsp- SubmitAction and also
combine those parts to chains like this OnePrepareAction- oneView.jsp-
OneSubmitAction- TwoPrepareAction- twoView.jsp- TwoSubmitAction. All
actions and views of this
On 7/31/05, Nick Heudecker [EMAIL PROTECTED] wrote:
I think there are a lot of people out there who feel as you do, but
backwards-compatibility has always been a major theme for those
While backwards compatibility is nice, I would rather see a better
framework for the 2.x release. My
what's I'm doing wrong?
Struts can't catch exceptions thrown by the JSP. This is one reason
(among many) why I would design something like this to do the
database work in an action and deliver only data to the JSP.
Joe
At 4:40 PM +0100 8/1/05, Tremal Nailk wrote:
Hello, I'm trying to
2005/8/1, Joe Germuska [EMAIL PROTECTED]:
what's I'm doing wrong?
Struts can't catch exceptions thrown by the JSP. This is one reason
ok, anyway I'm looking for a way to catch all the exception thrown by
may app. So throwing a dbexception was just an example. There is
always something that
Tremal Nailk wrote:
2005/8/1, Joe Germuska [EMAIL PROTECTED]:
what's I'm doing wrong?
Struts can't catch exceptions thrown by the JSP. This is one reason
ok, anyway I'm looking for a way to catch all the exception thrown by
may app. So throwing a dbexception was just an
2005/8/1, Dave Newton [EMAIL PROTECTED]:
Probably want to use the web.xml exception stuff, then (error-page
element, maybe?)
well, I'm using it (see my original posting), but the exception is not
caught, simply ignored. Anyway you are right when you say that the
exception should always be
Doesn't look like you are using it to me . . .
http://www.imagescript.com/atg/articles/jsp_j2ee/error_page_basics.htm
Erik
-Original Message-
From: Tremal Nailk [EMAIL PROTECTED]
Sent: Aug 1, 2005 12:26 PM
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: Exception
I'm not clear from yoor description what it is you're doing, but I can tell
you what the exception means. You're requesting or triggering a browser
redirect after part of the response has already been generated, which wont
work. If you need to redirect the request somewhere else, you need to do
What version of Struts are you using? ActionRedirect from Struts 1.2.7
makes it easy to do what you want. On prior Struts releases, I think you
can do something like:
ActionForward fwd = new ActionForward(mapping.findForward(searchForm));
fwd.setPath(fwd.getPath() +
Kalra, Ashwani wrote:
I have a message defined like this in .properties file
2001={0} is required
I am passing for eg status for the {0}
Errors tag is printing it like this
[status] is required
Why its printing [] in the actual message ?
Because that's what you've told it to ;-) Check
Hi,
my problem is the following. I get this error in my
application:
Servlet action is currently unavailable,
I would like to know if you need to do something
special when you are using in your applicacion a
database that is NOT in your host but in a different
machine
here is the strut config
you got to specify the target in the href or form action
or whatever method you are using it
From: Rivka Shisman [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: forward to a new window
Date: Mon, 1
I have an attribute in my ActionForm (called myForm) called text, this text
have a value of
a href=http://www.yahoo.com;Click here to Yahoo.com/a, now I want this
attribute to be displayed on web page as a hyper link. I used bean:write
name=myForm property=text/, which prints a
try one of the attribute in the bean:write which is
filter=true
From: Carl Smith [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Form bean's attribute displays as Html
Date: Mon, 1 Aug 2005 13:07:47 -0700
In this (and only this case) you can use bean:write with filter=false
This will work
-Ursprüngliche Nachricht-
Von: Carl Smith [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 1. August 2005 22:08
An: Struts Users Mailing List
Betreff: Form bean's attribute displays as Html
I
Thank you Leon Rosenberg and Raj Tilak, this works perfect by turning
filter=false.
Leon Rosenberg [EMAIL PROTECTED] wrote:
In this (and only this case) you can use bean:write with filter=false
This will work
-Ursprüngliche Nachricht-
Von: Carl Smith [mailto:[EMAIL PROTECTED]
Paul Benedict on 01/08/05 12:54, wrote:
Peter writes:
(2) Stubbing of abstract attributes for framework
implementation like Tapestry.
Are you talking abouting the ``jwcid'' attribute?
No.
When you create a Tapestry page, you don't have to
implement the getters - or even write the setter
Pilgrim, Peter on 01/08/05 09:30, wrote:
Struts 2 should force an Action or ActionForm to be interface or
subclass of an abstract type, hence dependency injection.
If the former is the case, then it follows that calling the action
method should be flexible
public void bluegrass(ActionContext
I am posting this message using roomity!
Features now and future, we started on version1.5 features this weekend:
http://roomity.com/news.jsp - yada, yada.
We process arround 45K messages per day.
* http://roomity.com to launch!
bugs(release early and often!):
Thanks Vic,
I will try it :)
again, thank you very much :)
Pham
- Original Message -
From: Vic [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Cc: Struts Users Mailing List user@struts.apache.org
Sent: Monday, August 01, 2005 7:52 PM
Subject: Re: [HELP] Web
Pham,
If you decide to go with them... can you specify me as a referrer? This
way, I can get 3 months of free hosting ;)
Thanks.
Vic
Thanks Vic,
I will try it :)
again, thank you very much :)
Pham
- Original Message -
From: Vic [EMAIL PROTECTED]
To: Struts Users Mailing
Hi All!
I am using Tomcat 4.0.6, Java 1.4, Struts 1.1 for my initial struts set up
application.
I configured the required libraries to run Struts application.
But the problem is when i try to run the application using struts i am getting
the following exception in my jsp
Servlet action is
Hi Jeevan,
Can you please list the names of the jars that you've included in your lib
folder.
People typically forget to include the 'standard.jar' jar.
In addition, are you sure that your action class extends the
org.apache.struts.action.Action class. Forgetting to extend the class
(something
Jeevan,
What do your Tomcat logs show regarding your particular struts webapp? The
$CATALINA_HOME/logs directory.
Regards,
David
-Original Message-
From: Kade Jeevan Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, August 01, 2005 11:40 PM
To: user@struts.apache.org
Subject: Problem with
oh, my god, I TIE MY HANDS BY YOU :D
Pham
- Original Message -
From: Vic [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Cc: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, August 02, 2005 9:46 AM
Subject: Re: [HELP] Web hosting for JSP
Hi all :)
I use Tomcat and Struts framework to build my web app.
I lay jsp document file at web app root.Such as cart and user.
something like:
/cart
/user
/WEB-INF/
When I run my web app, I could access /webapp/cart folder and /webapp/user
folder from browser. All files in 2 folders
Hi,
Pham Anh Tuan wrote:
Hi all :)
I use Tomcat and Struts framework to build my web app.
I lay jsp document file at web app root.Such as cart and user.
something like:
/cart
/user
/WEB-INF/
When I run my web app, I could access /webapp/cart folder and /webapp/user
folder from
Pham,
Go into your Tomcat/conf directory and edit the
default web.xml. You want to turn directory listings
off from the default servlet:
servlet
servlet-namedefault/servlet-name
servlet-class
org.apache.catalina.servlets.DefaultServlet
/servlet-class
Thanks to Tamas, if do like what you instruct me, what about Image
resources? I couldn't access to view them if I use code in jsp file. Such
as: img src=/ :(
The solution of Paul solved my problem :)
HTTP Status 404 - /auctionsystem/images/
Did you set load-on-startup for ActionServlet in web.xml?
Erik
-Original Message-
From: Kade Jeevan Kumar [EMAIL PROTECTED]
Sent: Aug 1, 2005 11:40 PM
To: user@struts.apache.org
Subject: Problem with Installing the Struts
Hi All!
I am using Tomcat 4.0.6, Java 1.4, Struts 1.1 for my
hi Pham ,
If u r clear with the concepts of Srevlets..u can use Servlet-Filters to
ristrict access to perticular folders on ur application.
Another way is to Use Tomcat configuration to whether show user the Directory
list.
See if this helps u out.
Best Luck
On Tue, 02 Aug 2005 Pham Anh Tuan
67 matches
Mail list logo