Hello,
I have the same problem some days ago. I found two solutions: using
https(SSL) in the web server (if SSL really fits to your application
security requirements), since SSL web pages are not cached, or telling
the browser to don't cache the JSP page, so when the user clicks the
back but
Hello Guys,
I got this action mapping...
Is it possible to access the exact "*" wildcard value inside
LoadCustomPropertiesAction?
Regards and TIA!
Richard
-
To
Hi All,
I have problem in my application.In My application I have login and log
out functionality.When user clicks log-out I am removing the session and I
am redirectiong to Login page.So far it is working fine.But problem starts
here.If user clicks the back button of browser window.He is abl
Okay, Michael. If this is what you like, good luck. I am stopping
the conversation from my side if it is staying at this level.
On 5/23/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > > JSPs "fetch" data indeed is putting application logic in the JSPs.
> > > This does not give you flexibili
I believe the point was nothing like this at all, Dave. Don't know
why you thought it was. Seems like you just thought this stuff up
separate to me. However, certainly I don't think that the issue
whether or not you are writing a CMS is relevant to the issues
discussed. I also have no idea why
Normally, Camilo, when you have a question you start your own thread.
On 5/23/05, Camilo Quevedo <[EMAIL PROTECTED]> wrote:
> Hi, I'm trying to create a struts application, but it seams that when i
> ask for a user input (html:form) it doesn't,t recognize the special
> characters. How can I config
Try ModuleUtils.getInstance().findActionConfig("actionB");
Hubert
On 5/23/05, Jorge Chacón Souto <[EMAIL PROTECTED]> wrote:
> Hi.
>
> Anybodoy knows how can I access the action B's ActionMapping from the
> Action A (a preprocessing filter that is executed before every action) ?
> I have to do th
From: "Titus Barik" <[EMAIL PROTECTED]>
>
> Let's say I have two collections, A, and B. Is there a way to iterate
> over multiple collections with something like logic:iterate?
>
If you know they're the same size and in the same order, (should be the case
with List,) how about iterating over one w
From: "Brent Vaughn" <[EMAIL PROTECTED]>
> I am trying to print out the size of an ArrayList.
>
> Here is the code I am using. BC is a bean container. infusion is a bean.
> The variable prepopUserList is an ArrayList.
>
>
>
There is no 'getSize' method on ArrayList, I don't see how this could w
Sorry I didn't respond sooner Marco,
Fantastic work! I haven't had a chance to look at what you sent me yet,
but I definitely look forward to doing so. Would you have any objection
to me putting your code out on SF in CVS, maybe as a separate branch?
That way others can benefit from your eff
i saw a doc which had
wondering if multiple forms could be declared like this? sorry but am
t tired to test right no :)
riyaz
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
I am trying to print out the size of an ArrayList.
Here is the code I am using. BC is a bean container. infusion is a bean.
The variable prepopUserList is an ArrayList.
This is the error it gives me.
MonitorFilter::javax.servlet.ServletException: An error occurred while
eval
Hi all,
Let's say I have two collections, A, and B. Is there a way to iterate
over multiple collections with something like logic:iterate?
i.e
${rowA.name}
${rowB.value}
--
Titus Barik ([EMAIL PROTECTED])
http://www.barik.net
---
> > JSPs "fetch" data indeed is putting application logic in the JSPs.
> > This does not give you flexibility. Quite the opposite, it ties your
> > model and you view down by coupling them. Rather than give you
> > flexibility it hamstrings you.
So what? These two will always be related unless y
I have a JSP like this:
-
Dakota Jack wrote:
Just use some framework, like Struts. Write your actions and your
model to take are of this business and feed the data to the
appropriate scopes and objects.
I believe the point was that this isn't an option. It seems to me, in
this case, that the client wants more contro
On 5/23/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Dakota Jack wrote:
> > You cannot talk about request objects and ignore the client. The
> > requests come from the client.
>
> Sure, but I'm not talking about request objects. A request to
> http://host/myapp/something.jsp (with no query para
andy wix wrote:
I am working at a place that doesn't use session state for their web apps.
The reason given is that they have 2 physical servers and 2 Oracle
Application Servers running on each of these machines for failover.
From the little I know about clustering, I thought that if everythi
Rather than pollute the view (if one chooses to perceive it that way...
I'm staying away from that debate!), why not introduce some sort of
scripting engine into the mix? I'm not really sure precisely where
because I don't know your project, but I say this based on your comment:
"True, at develop
I'm installed Shale Framework, because I need use the Strut's validator
under JSF...
I having some troubbles with javascript generation... like "javascript
errors"...
Somebody know what happen?...
(I'm practicing my english... sorry :S)
--
Mariano G. Petrakovsky
Programmer · Software Factory
AXG
Hi, I'm trying to create a struts application, but it seams that when i
ask for a user input (html:form) it doesn't,t recognize the special
characters. How can I configure my application so that it accepts
special character??
So far I've done this:
i my jsp I put <%@ page contentType="text/ht
Dakota Jack wrote:
If you want to discuss this, I have a number of things to say. If you
So I see on your other reply ;-)
find that "argumentative", then I won't offer anything more. Having
No, I'm happy to discuss; it's always worth hearing another person's
perspective.
JSPs "fetch"
Hi.
Anybodoy knows how can I access the action B's ActionMapping from the
Action A (a preprocessing filter that is executed before every action) ?
I have to do that because I need to read the properties of many actions
in the filter, to check if the user can execute those actions.
I've tried th
Dakota Jack wrote:
You cannot talk about request objects and ignore the client. The
requests come from the client.
Sure, but I'm not talking about request objects. A request to
http://host/myapp/something.jsp (with no query parameters) contains no
request data, but the JSP still has to displ
Frank Ratzlow wrote the following on 5/23/2005 6:54 AM:
some of the actions) serve authorized and unauthorized users the same.
Afaik if a user sends his first request a session will be created for him
(default behaviour). Additionally we invalidate a session when a user
authorizes and store his
If I'm not mistaken, Struts has some mechanisms for dynamic fields in
ActionForms. Regardless, can't you use request.getParameterNames in your
Action's execute method?
Erik
-Original Message-
From: Andrew Thorell <[EMAIL PROTECTED]>
Sent: May 23, 2005 11:07 AM
To: Struts Mailing List
okay, but handling sessions is nothing special for a certain framework. I
tend to place it some where in the container area itself, how to react on
this condition. All the feedback I got so far (thanx ;-)) leads to an own
implementation of session tracking, whatever it looks like. I was
convinc
minhnguyet wrote the following on 5/20/2005 11:47 PM:
Hi all,
I want to send parameter 's value to javascript function . When
I use ,
You should use the html-el tags (if not using JSP2.0 container,
otherwise the standard html tags will support this)...
(You won't need to cast to
I am of the opinion that this is too specific a situation for a
framework to take over. I really get irritated when frameworks plug
in stuff that should be taken care of at the application level. I do
think that making code available for people that want a prepackaged
solution in a "plugin" or "a
In part you are correct. You can try doing this:
in web.xml
404
/pages/error.jsp
This goes after and before any declarations.
The 404 can be replaced with any html error code you wish (as far as I know).
I'm getting an NPE error right now and the error code is 500. So you
can prob
Greetings all,
I'm trying to write an application that will collect form data from a
webpage when it is directed at an Action. Is there any way to do this
without using an ActionForm (which is pretty useless because in some
cases I won't know what variable names will be pointed at me)?
Any though
You can't mix <%= %> and struts form elements (eg, ). Your
best bet is to change the javascript to "whichAuctionType(this)"--send
the input element--then inside your JS function, get the value by doing
a .value on the element passed in.
-Original Message-
From: minhnguyet [mailto:[EMAI
Hi,
okay, but this leads to a solution where I do have to ensure a manuell
redirect to the appropriate site by tracking session attributes. I thought
that the container is maintaining a list of expired sessions (or at least
valid sessions to figure out invalid sessions), so that I can _configur
Para inscribirse en la lista de struts deben enviar un correo vacío a:
[EMAIL PROTECTED]
Para eliminar la subscripción:
[EMAIL PROTECTED]
Si quieren mandar un email a la lista lo mandan a:
user@struts.apache.org
Saludos
If you keep a user object in session, just check at the beginning of
the Action whether it is still with you. If not, forward to a log on
page. I assume that will work for you. If you don't have a user
object in session, whether authorized or not, then you can put a
simple String iin session say
Probably not a good idea to be populating session scope unnecessarily.
On 5/23/05, Nils Liebelt <[EMAIL PROTECTED]> wrote:
> What a bummer. I got the wrong scope!?! If I put the Form in session scope
> it works fine. Gonna borrow a tie from my boss so I can hang myself...
>
>
> Cheers,
>
> Nils
This is what I use...
-- main body here --
Now if you're talking about the person filled out the form (or
whatever) and then let the session expire.. The first thing I would
check in the Validate Method would be to see if the session attribute
I put there when logging in was actually th
The solution, we later adopted was have a class extending ArrayList, some
thing like this..
class MyList extends ArrayList{
public Object set(int index, Object element)
{
if(index > size())
{
add(new Object()); // Add objects of appropriate type
to a
The reason this isn't working lies in how Commons BeanUtils works. What you
read in the wiki works for setting the properties of nested "indexed beans"-
not straight forward indexed properties. In this circumstance it will just
call the indexed setter so for it to work you need your lazy code there
On the surface it looks like the code is wrong. Index 0 represents a
size of 1 (zero-based array). Once you account for that, your array
should grow as you desire.
Regards...djsuarez
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 6:50 AM
To:
Hi, I am writing my first Struts application, and have some problems with
it.
Some part of my app, gets data from database, fills appropriate form,
displays it and, if user changed the form, writes data back to database.
Another functionality is: get whole webpage (including form)from database,
Marco wrote:
Does Shale use chain? Could you integrate chain in Shale?
Shale does use chain, but to be honest, I don't know much more about
it than that.
I am looking forward to add more complexity for 'testing' the chain..
If you have anything to suggest me, go ahead :-) ..
Just keep doi
The only problem is that you have no choice. I don't like polluting the
session context. But if you have growing stuff mentioned before and you
don't want a LazyList.
-Original Message-
From: Nitish Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 2:14 PM
To: 'Struts Users Maili
The only problem is that you have no choice. I don't like polluting the
session context. But if you have growing stuff mentioned before and you
don't want a LazyList.
-Original Message-
From: Nitish Kumar [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 2:14 PM
To: 'Struts Users Maili
Even I had to do the same in quite a few of my application, personally I
would have loved to have a standard solution for this problem from apache
group in future releases of struts.
Thanks and Regards,
Nitish Kumar
-Original Message-
From: Sachin Bhutada [mailto:[EMAIL PROTECTED]
Sent
If your form bean is being used in multiple page, you can put the form in
session and clear the collection in reset method if required. That will
serve the purpose. In my application we are using the same apporach and our
application has not yet crashed at least bcoz of form bean :)
sachin
--
dont think its a great idea, If I start putting beans in session , every
time I have a collection in form bean, I am not sure how long my application
is going to run.
Thanks and Regards,
Nitish Kumar
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23,
What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself...
Cheers,
Nils
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 1:50 PM
To: 'Struts Users Mailing L
What a bummer. I got the wrong scope!?! If I put the Form in session scope
it works fine. Gonna borrow a tie from my boss so I can hang myself...
Cheers,
Nils
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 1:50 PM
To: 'Struts Users Mailing L
Hi all,
I know that common issue with indexed properties as mentioned in the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList.
So I wrote a little handcranked lazy list but I still get an
indexoutofbounce exception. I really don't know whats going on here:
private ArrayList deleteSe
Hi all,
I know that common issue with indexed properties as mentioned in the wiki
http://wiki.apache.org/struts/StrutsCatalogLazyList.
So I wrote a little handcranked lazy list but I still get an
indexoutofbounce exception. I really don't know whats going on here:
private ArrayList deleteSe
Hi,
I am working at a place that doesn't use session state for their web apps.
The reason given is that they have 2 physical servers and 2 Oracle
Application Servers running on each of these machines for failover. From
the little I know about clustering, I thought that if everything in the
se
Hello,
>container. I just want to say, if your session expired, go to page xyz.
>BTW: how can I determine via the API if a session expired? Is it
possible
>at all?
I m not 100% sure, but will an HttpSessionListener help here?
Regards
Frank
"Marco Mistroni" <[EMAIL PROTECTED]>
Hi,
unfortunately this is not an good option because the application (exactly
some of the actions) serve authorized and unauthorized users the same.
Afaik if a user sends his first request a session will be created for him
(default behaviour). Additionally we invalidate a session when a user
a
Hello,
Can't you use a ServletFilter that checks if user is in the
session?
If it is not you will redirect the request to your loginpage.
Regards
marco
-Original Message-
From: Frank Ratzlow [mailto:[EMAIL PROTECTED]
Sent: 23 May 2005 11:18
To: user@struts.apache.org
Subj
Hallo folks,
I encountered a strange behaviour regarding the population mechanics of my
forms.
Following situation: I have my app running, the browser stays open with a
html form to be filled. The http-session expires and the user submits the
form to the server. The result is a http 500 error
I should apologise to those ppl being helpful to me because I made a really
stupid mistake. I choose the J2EE server instead of the Tomcat server. After I
choose the Tomcat server to run this examples, it works flawlessly. Thanks
everyone!!
-
想即時收到新 email 通知?
I should apologise to those ppl being helpful to me because I made a really
stupid mistake. I choose the J2EE server instead of the Tomcat server. After I
choose the Tomcat server to run this examples, it works flawlessly. Thanks
everyone!!
-
想即時收到新 email 通知?
I should apologise to those ppl being helpful to me because I made a really
stupid mistake. I choose the J2EE server instead of the Tomcat server. After I
choose the Tomcat server to run this examples, it works flawlessly. Thanks
everyone!!
-
想即時收到新 email 通知?
下
Metal KoRn wrote:
Hey guys I need to validate two fields for password and confirmation but I
can get the jakarta example work can anybody tell me how to do taht with
struts?
Here is a snippit of validation rule from our live application
test
(passwo
Is there any trace or reason given?
Also I have an observation about the Path pls see this clearly
/s truts-example//org/apache/jsp\welcome_jsp.java
-Original Message-
From: Nitin Mandolkar [mailto:[EMAIL PROTECTED]
Sent: Monday, May 23, 2005 2:13 PM
To: Struts Users Mailing List
Subje
10.5.1 500 Internal Server Error
The server encountered an unexpected condition which prevented it from
fulfilling the request.
There is some thing wrong with Application server. Application server Is not
able to compile that file. Please check application server configuration.
-ni3
-Ori
Hello all,
>It's interesting to have some more complex use cases to test the
>chain model against...
I would offer my app as 'guinea pig' for complex cases :-)
Currently it's a small app that manage my own 'expenses' (I have a mysql
as backend and jboss 3.2.5/tomcat 5.5 as app server)to see
Wha
Hi,
if you use Java Servlet specification version 2.3 (at least) you can
use a Filter. make your filter intercept the jsp and in that filter
you can change the buffer. for a more information about Filter take a
look at this:
http://java.sun.com/products/servlet/Filters.html
Catalin
On 5/22/05,
Hello,
Looks like I found a way to make it work! :-)
I have submitted the code to Frank..surely he'll find way to optimize
it..
For now, I had to extend few commands (SelectAction, ValidateActionForm,
PopulateActionForm & SelectForward) and I had to rewrite struts
chain-config.xml to use my
If you are using Servlet 2.4, then you can use the to
specifiy a page that is included at the beginning of every jsp page.
You can put page directives there.
http://java.sun.com/webservices/docs/1.3/tutorial/doc/JSPIntro13.html
eg
/template/prelude.jspf
tarek.nabil wrote:
Thanks Martin
66 matches
Mail list logo