Title: Status 500
Hello friends
I am getting following exception when I call a particular action. My all other actions are running fine.
But for calling this particular action, I am getting exception given below.
The action is derived from DispatchAction class but before the method is
First please HTML formatted email really get on my wick, i know you
whizz-band outlook power users like this sort of jazz, but the jakarta
mailing list rules do clearly state that this isn't cricket.
If your problem has a request scope form, as a diagnostic measure scope
the form to session
Jackie, auth-constraint lists the roles that are allowed access. If you
have no roles, that means you need just one role for all. And you must
enter it there. Having no roles listed means no-one has permission. Or
you could try * for all roles (haven't tried it myself).
Re: JAAS, how did you get
Experts,
We are planning to build an application, for which expected concurrent users
are ~100. Total usrs being 2000.
Does Struts provide any facilities to manage Sessions on such scale?
Some of the functionality is very data intensive, and would need transaction
management. What is the
there's some mismatch happening while struts try to populate the form
associated with your action.
please check there.
-Original Message-
From: Dixit, Shashank (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 1:48 PM
To: [EMAIL PROTECTED]
Subject: Status 500
Hello
Same question : JAAS, how did you get hold of the user's session? It's
the last think I can't do.
Carl
Adam Hardy wrote:
Jackie, auth-constraint lists the roles that are allowed access. If you
have no roles, that means you need just one role for all. And you must
enter it there. Having no
struts has nothing to do with managing sessions. we should better
talk about servlet containers that handles sessions.
btw, 100 sessions are nothing to worry about :-)
leave the txn mgmt to db layer. use any of the persistence frameworks
that can handles this for you.
-Original
Hi Navjot
That is what I couldn't point it out.
When I debugged, the it initializes Form bean and before giving call to action class,
it is throwing that exception.
No idea how to trace it.
Shashank S. Dixit
Cognizant Technology Solutions Pvt. Ltd.
Hinjewadi,
Pune
Mobile : 98904 25400
An
that's exactly what i am saying.
Form bean is created. so far so good. the constructor is there to be
accessible.
Now, it's turn to populate form and there we have a problem. That leads to a
thought that
One the members or it's corresponding method seems to have problem
it would be great help if
For the sake of a clean design, restrict your transaction management to
your model layer (in MVC). That means, like Navjot says, keep it clear
of your struts action classes.
On 02/24/2004 10:19 AM Navjot Singh wrote:
struts has nothing to do with managing sessions. we should better
talk about
Struts places mapping name in the request before redirecting to the JSP
We extended FormTag and allows action not to be mandatory. If no action
is defined in the tag, we have the following code to get action name:
ActionMapping mapping =
Hi list,
I am having a form which contains a single property, an array with
RawRecord, a simple java bean which simply contains 4 strings,
including getters, setters and a constructor.
In my jsp, it works fine when i make a call like this:
html:text name=dateForm property=rawRecord[1].time
the name of the form will be whatever you called it in struts config.
There was a name attribute in 1.0 but this became deprecated and now
must have been removed.
I imagine that something will be done in newer releases (perhaps
already) to support strict xhtml and thus do away with rendering
styleId will give you a hook if you need have a way of drilling to
something. But i'm guessing what your needs are.
On 24 Feb 2004, at 13:38, Mark Lowe wrote:
the name of the form will be whatever you called it in struts config.
There was a name attribute in 1.0 but this became deprecated and
This is really winding me up...
why does html:form method=post action=/scopeAction work
but html:form method=post action=/scopeAction
name=deleteForm
type=org.apache.struts.action.DynaActionForm
doesn't?
Why
Hi
I'm new to struts and am having some difficulties understanding how it
all links together.
I was hoping that someone could post some links which give a visual
representation of how struts work and link together
Many thanks
Andrew
On 02/24/2004 01:56 PM A.White wrote:
Hi
I'm new to struts and am having some difficulties understanding how it
all links together.
I was hoping that someone could post some links which give a visual
representation of how struts work and link together
There's a bunch of links to resources
http://www-106.ibm.com/developerworks/webservices/library/ws-arcstruts/
https://www.bris.ac.uk/is/projects/portal/team/mark/struts/
http://www.jspolympus.com/Struts/StrutsModel.jsp (no pic, but the menu at
your right is interesting)
http://rollerjm.free.fr/pro/Struts11.html
Hello All.
Long ago I have one question about Struts Menu: it's support highlight
of menu items (example if user in news page then news menu item
selected)?
I know about using struts-menu since it seems to be the only menu system
talked about on this forum. Before I start down a path, I was
Are the UI components of Struts internationalized for me, or do I need
to do that myself?
For example, the html:submit / and html:cancel / tags create buttons
with the text Submit and Cancel on them. When I'm in a different
locale, do these buttons get created with text based on that locale's
Hi folks,
I have a problem which I have a kludgy solution for, and have to believe
there is a more elegant way of doing it... Here's the scenario.
The page displays a non-editable list of records in a database, with a
checkbox at the beginning of each row. The list is indeterminate length,
A couple of options:
1) Use a key for the checkbox that is a combination of the two keys,
combined with a character that cannot be in the keys themselves (e.g.
key1::key2). They just separate them in the action, or better yet, have the
form separate them.
2) Use JavasSript on the check of a row
Is it mandatory to create ActionForm class for each JSP if we want to
send the form data to action class?
Does it not make the ActionForm class dependent on the UI and liable to
change as an when modifications is done in JSP page?
Is there a way of dynamically creating the ActionForm class
No, you can use
(String) request.getHeader(referer);
To get the refering URL, but personal firewalls and even browser settings
allow it to be turned off, so you will always need to have a backup
mechanism for loading from the referer in the case where it's null.
Brian
-Original
I think you are searching for DynaActionForm.
Take a look at http://www.reumann.net/do/struts/lesson3/step4
I personally don't like them because of debug difficulties.
Regards,
Guido.
Pradeep, PK wrote:
Is it mandatory to create ActionForm class for each JSP if we want to
send the form data to
Hi,
I
do not want to validate my form when the user clicks the Cancel button.
For your information im not using _javascript_
validation [i.e my doesnt've html:_javascript_ formname=someform]
how to do this?
Subramaniam Olaganthan
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website:
Have the submit button has a form property. Then when validating only valid
if submit button was hit.
e.g. if ((this.getSubmitButton() != null) (!(
this.getSubmitButton().equals({
... validation code
}
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
Hello..
I am in need of a struts Best Practice... Here is a brief description of
the scenario:
1. Display a list of items on a page in table format. Default to show the
first 50 items. This master list of items has 1000+ entries. These
'items' are basically just columns from a relational
Don't submit the form when user clicks on cancel button. This will avoid
calling validate method off the form bean.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 11:21 AM
To: [EMAIL PROTECTED]
Subject: Validation doubt?
How can I pass a query string when I click on a link.
I am using org.apache.struts.actions.DispatchAction as my action class(inherited).
When I click on the link some text must be added dynamically to the request.
I would be happy if I have a simple example.
Thanks in advance
Dixit,
Yes this looks like an mismatch on your types., check the values being
passed to the beanutils, usually dates can give you this exceptions
Marcos
-Original Message-
From: Dixit, Shashank (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 12:18 AM
To:
Hi,
Thank you for the information.
on click of the cancel btn i want to
show the home page. how do i do that?
Subramaniam Olaganthan
Tata Consultancy Services
Plot No. 21
Industrial Estate,, Ambattur
Chennai - 600 058,Tamil Nadu
India
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Either just use javascript to send to home page, or add a path in
struts-config to go to home page if cancel button was selected.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 24 February 2004 16:40
To: Struts Users Mailing List
Subject: RE:
Hi,
Thanks for the information
but, all my forms extends ValidatorActionForm and Im Using Validation.xml
for
validating the form. how do i do that?
Please help me fix this one. Thanks
in advance.
Subramaniam Olaganthan
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website:
TJ,
Take a look at the displaytag library
(http://www.displaytag.org/index.jsp)
or
the Pager Tag library at
http://jsptags.com/tags/navigation/pager/index.jsp
If you search the archives, you will also find lots of
discussions about this topic too.
Regards,
Richard
--- [EMAIL PROTECTED]
Just getting caught up w/ the list, but another option to explore is to
use a custom taglib, in our case, we had documents located under a
folder tree, and wanted a breadcrumb back up to the top of the folder
tree, so what I did was write a custom tag that looked like this:
foo:writeBreadcrumb
Use link
html:link page=/homepage.do
. Cancel ..
/html:link
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 11:40 AM
To: Struts Users Mailing List
Subject: RE: Validation doubt?
Hi,
Thank you for the
Hello Gurus,
I'm in a bit of a predicament, and my lack of expertise in Javascript and
Struts isn't helping... :(
I have a jsp page which I need to retrieve some values at onLoad time, i.e.:
body onload=javascript:getValues();
all getValues() does is submit the form on this page which sets a
Hi Leticia:
You're right, I don't understand your question completely (must be because I'm
no guru..;)).. But may be you can use this thought anyways: you can use a
session variable when you paint your jsp. What i mean is you can test for the
existence of this session variable and if it does not
I've tried
window.open(editUrl, scope,
width=380px,height=300px).document.forms[0].submit();
but that doesn't behave very well...
-Original Message-
From: Leticia Golubov [mailto:[EMAIL PROTECTED]
Sent: 24 February 2004 17:09
To: Struts User Mailing List
Subject: ActionForward and
body onload=javascript:getValues();
function getValues{
// sample code
// I would pass a hidden param
%
String param= request.getParameter(myHidden);
String load= param==null?first_time:next_time;
%
var pass= document.forms[0].myHidden;
if(pass.value=='first_time')
Newbie here wanting to generate xhtml. I am looking at
http://www.w3.org/TR/xhtml1#normative
I believe I need to output something like the following
to be conforming. I can handle the xml and DOCTYPE tags
just fine, but how do I generate the stuff in the html
tag (which is apparently required)
Hi
I didn't get any reply.. so sorry... I am resending my previous mail
With Regards
Partha
-Original Message-
From: Parthasarathy Kesavaraj
Sent: Tuesday, February 24, 2004 10:36 AM
To: 'Struts Users Mailing List'
Subject: RE: Problem in population of VO
Hi
Sorry for the
SOY...
var pass= '%=load%';
if(pass=='first_time')
SOY...
--- Domingo A. Rodriguez S. [EMAIL PROTECTED] escribió:
body onload=javascript:getValues();
function getValues{
// sample code
// I would pass a hidden param
%
String param=
Tired of waiting? Is the email delay getting you down? Want an answer
now!?
Well, here at #struts_users we are providing a limited time offer to
all who join. Visit #struts_users at irc.darkmyst.org to get your admin
for a day pass. So, you to can feel as though you have power over the
little
Put ALL the values in an arraylist and manipulate the arraylist values uppon return to
the action. All the values are available in the same row together. The trick is
getting the values from the arrayList back to the action when the form is submitted.
I'm a genuine newbie and I have managed
I'm a bit confused by what you are trying to do.
I have a jsp page which I need to retrieve some values at
onLoad time, i.e.:
body onload=javascript:getValues();
If you need to retrieve values then do that in the Action and put them
somewhere (e.g. a request scope attribute) so that you can
From: Leticia Golubov [mailto:[EMAIL PROTECTED]
I have a jsp page which I need to retrieve some values at
onLoad time, i.e.:
body onload=javascript:getValues();
all getValues() does is submit the form on this page which
sets a bunch of bean values for me to retrieve further down this
maybe you are right...
What I'm trying to do is:
I have some data which I'm displaying on a jsp page.
This particular bit of work relates to editing a value being displayed on a
table. When I click on the html:link i retrieve the row number which I'm
trying to edit, pass it to the EditAction
Has anyone got such a thing?
Thanks
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yep, that's exactly what I'm trying to do. However, when user clicks on the
html link I want some values to be set via an Action class. Once they are
set I want to then retrieve them... I was initially accessing the data
directly in the jsp but that was getting ugly (even though it worked).
I
Hello,
I am wondering what is the best method for loading a variable passed
to a page as an attribute into a tag's attribute?
For Example:
I have a String stored in a request attribute and it's called startDate.
In the JSP, I do the following:
bean:define id=startDate name=startDate/
Mike,
Use this link to get to the struts-user archives:
http://marc.theaimsgroup.com/?l=struts-user
-Richard
--- Mike Zatko [EMAIL PROTECTED] wrote:
Hello,
I am wondering what is the best method for
loading a variable passed
to a page as an attribute into a tag's attribute?
For
Pass the values back by returning a body tag from a servlet with an
onload function, I've done this by generating an iframe in javascript,
and the servlet when its done its stuff returns
if(isDone()) {
response.write(body onload=\myfunction()\);
}
But passing back anything more than a boolean
Sounds like a job for nested beans (not that I've ever used them!):
http://jakarta.apache.org/struts/userGuide/dev_nested.html
http://www.keyboardmonkey.com/index.jsp
Niall
- Original Message -
From: Parthasarathy Kesavaraj [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL
All of this worked, until I decided to use attributes to send
the data 'the
other way'. Does the data only flow one way? I've been
experiment with
I'm not with you. The data flow is always only one way - the user makes a
request (possibly including data as either request parameters,
Ah you got me going now, i think this is what you;re trying to do..
Here's some pseudo code to illustrate what i mean.
script language=javascript type=text/javascript
!--
function myfunction(form) {
//getElementById may work. but drill to sneakyFrame. could be
sneakyWindow
sneakyFrame =
Hi Sebastien,
thanks a lot for all info about struts and MVC framework!
Could you please send me some links with examples about three tier (stand alone app.)
based on MVC2 model?
Merci beaucoup!
Liana
[EMAIL PROTECTED] 02/24/04 08:26AM
Hi Gang,
I've been doing things badly... putting everything in session scope. The
good news is that everything works beautifully :) But now that I've got
100+ actions I've decided to go put stuff into request scope. The bad news
is that everything grinds to a halt.
Here's an example of where
On 02/24/2004 06:38 PM Dean A. Hoover wrote:
Newbie here wanting to generate xhtml. I am looking at
http://www.w3.org/TR/xhtml1#normative
I believe I need to output something like the following
to be conforming. I can handle the xml and DOCTYPE tags
just fine, but how do I generate the stuff in
Firstly I'd ask what is wrong with using session scope - has load testing
your applcation shown that session scope is too memory intensive?
It looks like the 'years' list was stored in the form bean. You will need to
recreate all of your lists etc (e.g. years) in every action if you are going
to
I'm just here to give my opinion on your this one looks important item.
Let's say you have ActionA to setup your form with lots of Strings and
ArrayLists as you said, and ActionB to which the form you're setting up
eventually gets submitted to.
In your ActionA, you're calling
A question on Struts taglib.
Can someone tell me how to reference the index of each element so I can
pass it as a parameter with the a href path string?
For example I have the following code, I want to print out 'partNumber' and
'partDescription' and a a href' with index of each element'.
Leticia Golubov wrote:
when user clicks on the html link I want some values
to be set via an Action class. Once they are
set I want to then retrieve them.
Then make that link go to the Action class, not the JSP. Set the
values, then forward to the JSP and retrieve them. Sorry if I'm
You can use the indexId attribute of logic:iterate
tag...
http://jakarta.apache.org/struts/doc-1.0.2/struts-logic.html#iterate
HTH,
Shyam
--- Au-Yeung, Stella H [EMAIL PROTECTED]
wrote:
A question on Struts taglib.
Can someone tell me how to reference the index of
each element so I can
pass
add index attribute in your logic iterate and append that index to your host string.
e.g
logic:iterate id=xyzID name=xyzForm property=xyz indexId=index
yourhoststring+%=indexId %
/logic:iterate
-R
-Original Message-
From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
Sent: Tuesday,
Hi,
I tried that one, but i couldnt bypass
the validation..
i've an Update page, some of the attributes
are mandatory.
onlick of the cancel btn im forwarding
it to the home page,
onclick of the cancel btn it validates
the form and gives error.
how do i bypass that one.
Note:-
Im using
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
I tried that one, but i couldnt bypass the validation..
i've an Update page, some of the attributes are mandatory.
onlick of the cancel btn im forwarding it to the home page,
onclick of the cancel btn it validates the form and gives
Okay, I'll add a bit more since nobody else is.
From what I understand, some of your scenarios are like this. You have
ActionA to set up your Strings and ArrayLists etc to display FormA, and FormA
gets submitted to ActionB. So, your config for these look something like:
action path=/showForm
The question is when the user 'cancels' do you want to do anything before you forward
to the home page.
If you don't need to do any processing before forwarding to the home page then just
have a html:link to the home page.
If you do ...
The html:cancel tag generates an input type=submit
Thanks for the responses, Paul and Hubert!
(I wanted to send this off sooner, but my boss called and wouldn't let me
off the phone for an hour! The joy of telecommuting...)
In response to Paul: I would like to start storing things in the request so
that I don't have to worry about cleaning up
off the phone for an hour! The joy of telecommuting...)
-- And I'm in an office, and it's nearing the end of the day, so we may
have to continue this later...
the action mapping
where I set up the scope=request is the same action mapping that does both
ActionA (showForm) and ActionB
Me again,
I just had some kind of breakthrough... I think.
Because my .jsp form was specifying the name and type of the form, it wasn't picking
up on the scope. If I add scope into the form declaration, I'm ok. Also if I take
the name and type out of form I'm ok (but that was causing a
--- Janice [EMAIL PROTECTED] wrote:
The only glitch is when validation fails, since my drop-downs come back
empty. So I'm thinking that I can get around this, but it'll mean extra
database calls and be a performance problem that way instead of just
hogging the session memory. I guess this
Hi I was wondering if there are any easy to use Java classes or otherwise
that could be used to encrypt or encode url parameters? Basically what I
want to do is this:
Action (encodes the url parameters, puts them into the request object) -
forwards to jsp containing a link that grabs those
I changed my code to use indexId and got the following error:
symbol : variable indexId
location: class jsp_servlet._app._fdd._shopworkorder.__createshopworkorder
out.print(weblogic.utils.StringUtils.valueOf(indexId )); //[
/app/fdd/shopWorkOrder/CreateShopWorkOrder.jsp; Line: 136]
Hi,
I am trying to use global forwards as suggested in the struts patterns on
husted dot com but I am not seeing the request parameter (type) in the
Action class. Here are the relevant pieces from different files.
JSP Code
html:link page=/display.doHW/html:link
struts-config
I have a LoginAction which calls my class UserAuthorisation which implements Authorise.
Heres what I do within LoginAction:
auth = new UserAuthorisation(username,password);
if (auth.authenticate()) {
//save Subject in session
Subject user =
In the JSP below, %=p1% will expand the way I expect.
But %=p2 does not. Does anyone know why and how to
fix it? Using HTML-EL is not a good option because my
real case uses custom tags that extend the HTML taglib.
%@ taglib uri=struts-html prefix=html %
html:form action=/TransactionListLoad
%
Hi,
I am trying to compare the current path of a .jsp file to the link to make
sure I display the correct button image active vs. inactive, so I would like
to do request.getServletPath() but with logicEqual something like this
logic:equal value=/useradmin/contentChange.jsp scope=request
You can't mix static text and a %= % in the same attribute value.
Here is the solution:
property=%= popupSrc + p2 %
-Max
- Original Message -
From: Daniel Lipofsky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 4:24 PM
Subject: expanding %=...%
In the JSP
Try
...
html:text property=%= popupSrc + p2% value=%=foobar%/
...
regards,
kris.
-Oorspronkelijk bericht-
Van: Daniel Lipofsky [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 25 februari 2004 1:24
Aan: [EMAIL PROTECTED]
Onderwerp: expanding %=...%
In the JSP below, %=p1% will expand
David:
It's been a real long day and my brain's fuzzing over.. but I'm assuming you
know all about java.net.URLDecoder and java.net.URLEncoder..?
geeta
David Erickson wrote:
Hi I was wondering if there are any easy to use Java classes or otherwise
that could be used to encrypt or encode url
I think you really mean encrypt.. Not just code and decode..
Look at this: http://javaalmanac.com/egs/javax.crypto/DesFile.html
URLDecoder is and URLEncoder is put put those %20 instead of space in the
URL I think.. Doesn't really add any security to what is URLEncoded.
I guess you can get the
Aye Encrypt is exactly what I'm needing to do. Thanks!
-David
- Original Message -
From: Dhaliwal, Pritpal (HQP) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 6:04 PM
Subject: RE: Encode/Encrypt url parameters?
I think you really
Try this:
logic:iterate id=parts indexId=index
collection=%=ShopWorkOrderFormBean.getShopWorkOrder().getPartList()%
type=com.cat.sdl.fdd.dataBean.shopWorkOrder.PartBean/td
tr
td class=formCellbean:write name=parts
property=partNumber/nbsp;/td
td class=formCellbean:write name=parts
Can you discuss your ideas further ?
TIA,
Kunal
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Craig Laverty
Sent: Tuesday, 24 February 2004 09:56
To: [EMAIL PROTECTED]
Subject: Re: url pattern /do/* and modules
Hubert Rabago jakartauser at yahoo.com writes:
Hello :
Please suggest any 'Ant tool' which automatically generates class
diagrams from source code.
Thnx
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Tired of waiting? Is the email delay getting you down? Want an answer now!?
Well, here at #struts_users we are providing a limited time offer to all who
join. Visit #struts_users at irc.darkmyst.org to get your admin for a day
pass. So, you to can feel as though you have power over the little
You can use the bean:page tag to expose the application, config, request,
response or session objects as a scripting variable.
So something like...
bean:page id=requestId property=request/
logic:equal name=requestId property=servletPath
value=/useradmin/contentChange.jsp
Niall
You are confusing your forward called display and your action /display
Clicking on the link in your jsp goes to your action - not your forward. The
process goes along the lines:
RequestAction-Forward
As far as I can see, your global forward is not being used (unless you are
Thanks Robert, that works.
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 8:52 PM
To: Struts Users Mailing List
Subject: RE: A question on Struts taglib.
Try this:
logic:iterate id=parts indexId=index
hi,
I have almost completed an application using Struts 1.1 and Websphere Studio
5.1.x. Everything has worked to date until I try to pop open a new window
and click on Submit. The pop-up window is populating fine (I have one email
address field) but when I click on Submit absolutely nothing
Hi,
I have a requirement where i need to populate the values of a form
from another object, and then again transform the contents of the form
back to the object once the form is submitted. i.e Say, when i click a
button, i do some functionalities and have a Properties object as an
Hi,
It first seemed that link you sent (DynaActionForm) is what I was looking for.
But for DynaAction Form also we need to maintain the info in config file...I think
this too is redundant task. The JSP page itself has also the info what is required for
ActionForm then why should there be
95 matches
Mail list logo