Hi
I have an application where the users have a number of messages in a
database. Each user can only look at their own messages. What is the
best way about ensuring a user cannot have access
to anothers email. Ie, if I have a scheme like
Hello, I know that this question is not related to Struts but I want to know how
to precompile all my jsps before hitting them with a Request, so that they doesn't
have to
be compiled when I hit them for the first time
Thanks in advance.
Viet Kévin - ActiVia Networks
--
To unsubscribe,
Use RowTag :
http://husted.com/struts/resources/rowtag.zip
- Original Message -
From: [EMAIL PROTECTED]
Date: Thursday, December 6, 2001 5:55 am
Subject: Producing alternating background colours in struts in a table
Hi
I have a list I am printing out and would like to alternate the
If weblogic server then use:
C:java weblogic.jspc jsp_name
-Original Message-
From: Viet Kevin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 2:00 PM
To: [EMAIL PROTECTED]
Subject: Precompiling JSPs
Hello, I know that this question is not related to Struts but I want
Thanx, but ...
I want to know if possible under tomcat4.0, and if it possible to
specify in the web.xml ...
If weblogic server then use:
C:java weblogic.jspc jsp_name
-Original Message-
From: Viet Kevin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 2:00 PM
If you can using Tomcat 4, you may want to use the filter mechanism. I have
not used it myself but there are a few good sample examples in the Tomcat 4
distribution.
It may not address your security issue but may be effective in stopping
authorised access to certain areas of the web site.
given the below struts config which is part of a war file named 'wizard.war',
i am trying to have a url that appears in the client web-browser address bar
of the sort:
http://localhost:8080/wizard/logon
but the only thing i can get to work is:
http://localhost:8080/wizard/logon.jsp
how can i
Hi Edward
You will need to add a mapping into your web.xml.
Jon.
-Original Message-
From: Edward Q. Bridges [mailto:[EMAIL PROTECTED]]
Sent: 06 December 2001 09:36
To: [EMAIL PROTECTED]
Subject: struts-config.xml question
given the below struts config which is part of a war file
Hi,
It looks like a versioning error. Do you use the same struts.jar on both platform ?
Cedric
iT meDic wrote:
Hi,
I have come across a very peculiar error.
I have built an application on my computer using Struts/Tiles and it works
like a charm , however when i move it to another
Proabably a red herring, but we had some very strange java errors here and
it turned out the path didn't include java\bin\java.exe and we were running
a java.exe from windows\system (microsofts I presume)
What do you get for 'java -version'?
:-)
Regards
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
ahh, yes. i have that too:
servlet-mapping
servlet-nameaction/servlet-name
url-pattern/wizard/*/url-pattern
/servlet-mapping
where 'action' is the name of org.apache.struts.action.ActionServlet
besides, isn't the name of the warfile taken as the default context
for the web
Hi All,
The best way to check if a user is logged in, is to use what's provided for
free by your web container. If you are using Tomcat you can use FORM based
auth. Check the sun specs for details.
Depending on your web container and your needs you may also have to manually
check that the user
Hello,
Have you check Tiles library ?
It allows to specify definitions in a centralized xml file. Combine it with
Struts actions, and you will avoid the second jsp file.
Cedric
Kenny Grimm wrote:
Hi,
I'm currently working on a site in which I'd like every page accessed to
follow
Hi Tony,
If the user has logged in then you must have their principal (ie log in
name) stored. So you don't need to have it as a request parameter visible to
all. Have the Display Messages Action lookit up and just pass in
messageStart and messageEnd.
I think there are ways to hide the URL,
The setting of the properties is done by BeanUtils, and that is
maintained by the commons project.
However, if you get its source, you'll see a lot of commented-out if
(debug=1) statements (I wonder why...). Un-comment-out them, do
somewhere in your code BeanUtils.setDebug(1);, and you'll see the
Hi,
i know this should be very easy, and i looked at the list and i found
questions like this. I copied the answer but i can not make it to work.
when i use a multibox tag, inside a form and a iterate, i get always the
following error :
No getter method available for property test for bean
Subject: Dynamic parameter attachment to html:link tag
From: Nutshell [EMAIL PROTECTED]
===
Hi
Does anybody knows how to attach parameter to the html:link tag
dinamically?
I have a link html:link
page=/goThere.do?action=someValueLink/html:link.
What I want to do is to set
The best solution here is to use add a switch to your bean to make its
properties immutable.
private boolean immutable = false;
public void setImmutable(boolean immutable) {
this.immutable = immutable;
}
// ...
public setProperty(String property) {
if (immutable) exit;
Hi
This example, set's a URL field in a list of URL entries as a link parameter
logic:iterate id=element name=listForm property=entries
type=com.JJ.forms.EntryForm
row:row oddColor=#99ccff evenColor=#09c0f0
td
html:link href=%= element.getURL()% target=viewFrame
Dave,
thanks for your help on this. 'iterate will be the death of me'.. and me
also !!
I've progressed further on this problem so that I am getting data to be
passed to the Form. One big thing tho:
Each of the beans in the Arraylist that I am iterating thru has a field
which is a boolean. I
this is very interesting.But is this checking wether the iteration bean is present
for an iteration
greets
Alvin
alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München
Leopoldstr .3
80802 München
Germany
Office Tel + 49.89.21025979
Office Fax +
Hi,
For the nightly build, I've suggested that we add two new methods so
that one Action can invoke another, but need some people to test the
idea for me. (Since I don't do this sort of thing myself.)
If anyone is interested, I can post a patched JAR. But then they really,
really need to
Yep,
You just need to change the servlet-mapping in web.xml and any
global-forwards in struts-config.xml. If you look at the documentation (see
link below) you can see what I changed to facilitate the /do/* mapping - just
follow the same path and change /do/ to /controller/.
If you doing this
Any pointers as where to find this row taglib?
thx,
tomK
-Original Message-
From: Tom Lister [mailto:[EMAIL PROTECTED]]
Sent: donderdag 6 december 2001 14:11
To: 'Struts Users Mailing List'
Subject: RE: Producing alternating background colours in
struts in atable
Hi
This
http://husted.com/struts/resources/rowtag.zip
http://husted.com/struts/resources/rowtag.zip
:-)
Regards
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Advanced Banking Solutions Limited
+44 (0)20 7448 9146
º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤º°'°º¤ø,¸¸,ø¤ºº¤ø,
¸¸,ø¤º°'°º¤ø,¸¸,
I generally dont use TOMCAT but I think you should look for a class
jspc in tomcat server lib, you may use it for precompiling it. JSPC
means JSP Compiler.
Gud luk,
-Original Message-
From: Viet Kevin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 2:00 PM
To: [EMAIL
Hi,
your right that's what I want to do. I just have to figure out how to submit
the form to a vector.
Alex
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 4:11 PM
To: Struts Users Mailing List
Subject: RE: Can a form submit to a
The form passed in is a null because that Action is
called the first time I type in the URL (.do), not
after a form has been submited.
In other words, I would like to pre-populate the
form before displaying it.
If you have associated the action with a form in your struts-config.xml, then
Hi,
How to set a relative path for the log4j log file ?
I would like to set its location to : webapps\myapp\logs
With an absolute path it works but the development (Tomcat) and production
(Jrun) machines don't have the same directory structure and I have to change
the file location before each
That makes sense. This is such a common occurence that I figured there
would be a better way.
Thanks for the help!
Dave
-Original Message-
From: Alexander Jesse [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 2:26 AM
To: struts-user
Subject: RE: JSPs past WEB-INF ---
Not entirely struts related, but here it goes:
The basedir for log4j seems to be $TOMCAT_HOME/logs. I guess it's
something similar for jrun.
So if you declare
log4j.appender.RFA.File=../webapps/regbl/logs/regbl.log
it should work (on Tomcat, at least).
Not entirely sure, but my feeling is
Hi Adriano,
Not sure if you can set a 'relative path'. If you are manually using the
PropertyConfigurator consider putting the absolute path to the config file
into a .properties file and access the properties file using the
ResourceBundle.
If you are not manually using the
When the browser has cache on (Never check for new version of the store
page), the follow code does not submit the form. I think it is because it
is a link.
html:link href=javascript:cancelOrSubmit('workOrderSubmitOrder.do','Your
order will be submitted for broadcast distribution. Do you want
Cedric / Kenny,
Tiles is a bit of overkill to do simple header / footer / menu templates.
I use the following which works quite well and avoids the need for 2 JSP
files for each page.
%@ taglib uri=/WEB-INF/tlds/struts-template.tld prefix=template %
%@ taglib uri=/WEB-INF/tlds/struts-bean.tld
My way may be no better!
I have a hidden variable called formName on every
form, set to a literal value. I code the same name in
that forms action class.
Then at top of the perform method in the action class,
if the 2 values are equal I know I was started from my
form being submitted so I
Hi,
I strongly recommend using Tomcat 3.3. It is excellent (better then the somewhat beta
Tomcat 4.01). I used the -jkonf option and then had nothing else to do then to start
Tomcat. Struts-example/ was running perfectly. There is no more JKMount in the
mod_jk.conf file, only these lines:
Can you not just do this?
return new ActionForward( mapping.getInput() );
-Jonathan
- Original Message -
From: Robert Parker [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 7:54 PM
Subject: Re: forwarding question
I can think of
Hi Tom,
I tried your solution and I got the following error:
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: ../webapps/regbl/logs/regbl.log (The system
cannot find the path specified)
Then searching on the log4j maling list archive, I got two ways to deal with
The form is 'submitted' to you action class.
In your perform method you get the values out of the
form bean (passed into the perform method) add them
to you vector (or to them to an object representing 1
row that you add to your vector)
Keith.
--- Alex Colic [EMAIL PROTECTED] wrote:
Hi,
Greetings, all. This is my first post to the list, and
am just looking for some simple information.
First, a little background. I finally looked into
Struts last week after hearing it mentioned on plenty
of other Java sites. I read the install guides, the
dev guides, selected pieces of the
Greetings all,
I am in the same situation and have the same questin as Ron Eisele and I am
looking forward to the responses on that question.
Kind regards,
Bernardus Bol
-Ursprüngliche Nachricht-
Von: Ron Eisele [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 6. Dezember 2001 16:27
It seems to me that a fix to this problem would be a simple and good
enhancement to struts. Perhaps struts could provide another option for
the validate property in action mappings: true, false, afterInit. Or
something similiar. The base Action class could then use tokens
to check if it was the
Hi All,
1) Once Struts is installed a Struts based app will run on all platforms
mentioned without change. Just deploy the war file and away you go...
2) To avoid an 'gotchas' read the stuff on Ted Husted's site
(www.husted.com)
Regards,
Jon Ridgway.
-Original Message-
From: Bol,
Hi,
you should use a url like:
http://server_name/context_name/web_xml_mapping/struts-config_mapping
assuming your app is under webapps/myApp/..., your server is called myServer
then the url is:
http://myServer/myApp/wizard/logon
at least that's how it works...
Alexander Jesse
-Original
Can I have the following hierchy :
WEB-INF/images
(rather than have the images folder in the same level as the WEB-INF)
If yes, how can I access those images in my JSP,src=
WEB-INF/images/any.gif doesn't work !!!
Thanks
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
Hi,
getting an image is a new request to the webserver...which is not allowed
to let anybody access something below WEB-INF...therefor the image-requests
should fail...
regards
Alexander Jesse
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
According with the specification , it is not possible.
In fact, all the files you put into /WEB-INF will not be served by the
HTTP Server. So, when the browser make the request for image, the server
refuse to serve it.
Maybe you can find a way to make it work , but it doesn't go in the way it
Richard,
You can have a servlet return the image to the browser rather than have the
web server return the image directly. To get the images, you would use the
servlet path and put a query parameter with the file name. Otherwise, the
images are in a protected area and aren't visible to
I am confused.
If anyone can clear this up for me, I would appreciate it.
I have a global forward to an action that will load my form before
displaying the jps.
If I put the following in another jsp:
html:form action=/customerMaintenance/search
or in the url type:
1) Once Struts is installed a Struts based app will run on
all platforms
mentioned without change. Just deploy the war file and away you go...
Unfortunately, this sort of thing is rarely non-trivial in my
experience.There will usually be some amount of coding effort in
porting from one
Hi All.
I have jakarta-tomcat-4.0.1 on Suse Linux 7.3 and JDK1.4. Struts examples work
when catalina starts as standalone.
When i link it with Apache using mod_webapp.so i get the following error
recorded in log files for each struts sample application.
Tomcat examples work fine. The same
Interesting. I'm getting the same error when I use Tomcat standalone.
(Tomcat 4.0.1, RedHat 7.2, JDK 1.4.0beta3)
I find that I can make the error go away by striping out all of my
action entries out of the action-mappings. Of course, that leaves me
with an app that doesn't do anything. :-(
Ron Eisele wrote:
Also, for anyone else who've just started up, anyone
have any gotchas as it's related to new Struts-based
development?
There are plenty of gotchas, since many containers are still not
fully-compliant, or offer features that developers do not realize and
proprietary. Most
Data Missing
This document resulted from a POST operation and has expired from the cache. If you
wish you can repost the form data to
recreate the document by pressing the reload button.
Any one know of a way of getting the browser to it the reload button automatically
when there is
I get an exception with
bean:write name=xxx property=yyy(kkk).zzz /
Something like No getter method for yyy(kkk).zzz property of bean xxx
The method in my class is Object getYyy(String key).
I use dev distribution that I think have mapped properties support.
--
To unsubscribe, e-mail:
I put the jndi.properties in \WEB-INF\classes and that seems to work with
JBoss. Is your ArticleMngr.jar in your classpath?
-- Original Message --
Where do I have to put the jndi.properties or what could be else the problem
for the following exception?
[Service Control] Started 47 services
All you have to do is to put the jndi.properties available for the Server's
classpath. But you have this right - He could find the Initial context
factory...
Make sure that your bean is available and well deployed! It seems that jBoss
couldn't deploy your bean... that's why the home int. is not
Do I have an environment issue when an app will run only if it is the
only app in the webapp directory?
The moment I copy in a WAR file, even a well behaived one like
struts-blank or struts-example, then it stops working with a Cannot
find ActionMappings or ActionFormBeans collection error.
All,
For me (with Tomcat4), this doesn't seem to help... I was thinking that this
was because the _ActionServlet_ wasn't new... just my _Action_ classes.
Is there a way to get the ActionServlet to reset without restarting
Tomcat?
+= Jeff Knee
-Original Message-
From: Robert Parker
I need to create a website that has menus in the header and sidebar.
I see the following challenges in implementing menuing:
1) Maintaining correct menu state when user hits Back, Forward, or jumps in
History.
2) Keeping the JSPs menu ignorant.
Any best practices on menuing which solve the
pardon my naivete...
but couldn't the presentation of the table be a JavaScript based
table with buttons (or whatever) on the column headers that handles
the data sorting on the client side?
that would allow you to dump the data down to the client in whatever
initial order is deemed appropriate
I've noticed that if the ActionForm's validate method returns ActionErrors
then the Action's perform() won't get called, and the user gets sent to the
JSP automagically.
(You can get around this... I've been trying to decide the best way... )
Seems like a great FAQ question since I've seen
In my code I had accidentally typed:
return mapping.findForward(succcess);
(note the 3 c's)
Instead of getting a runtime error my app just went
nowhere?
1) why doesn't findForward() throw an exception
rather than returning null?
2) more generally, I am concerned about errors
that you
Hi, I'm trying to get resin to work with an existing
struts application and I'm getting the following
exception, it works fine with tomcat 4.0. Any help
would be appreciated
500 Servlet Exception
javax.servlet.jsp.JspException:
/careersite-admin/apps/employer/register/confirm/content.jsp:5:
Hi,
I have an action class that could get called after a users session has
expired. When the action class is called I have the following code:
if(session == null || session.isNew())
{
return mapping.findForward(logon);
}
I have a global forward defined for logon.
Hi
Everything was going so well but now I've hit a problem which affects my
whole project. I really would appreciate some help.
Here's the situation:
I have a form and I want to submit it using links and not buttons. I have a
JavaScript function to do this:
function subForm(iform, act) {
Hi, we would like to upgrade our weblogic server from
sp8 to sp10. We are using wlssp8-struts.jar in our
sp8 environmet to get our struts stuff working.
However, it does not work for sp10. Is there any
struts service packs that we need to install for sp10
to work with struts?
Thanks
John
Please respond to [EMAIL PROTECTED] if possible due to problems with my
ATT Cable Internet. Thanks..
I am trying to get my struts webapp to transition in/out of https for
sending sensitive info. I want to be in https only when needed and in http
the rest of the time. I have seen many web
Just a quick addition to the message below (sorrysorrysorry): I realize that
I can simply call the validate(mapping, request) directly in the Action, but
this is what I'd like to avoid as it would somehow create a link between the
Action and the validation process.
I'd like to keep the
Frank Lawlor wrote:
1) why doesn't findForward() throw an exception
rather than returning null?
Conceptually, not finding something in response to what could be a
dynamic query is not an exceptional event. A SQL query returns an empty
set all the time. Its up to the application to decide what
You either would need to define at least one action
with validate=true and another with validate=false
or perform the call to the ActionForm validates method
yourself in the action. There is an example of using
one action this way in the jdbc example web app that
comes with the Validator.
If you can use a servlet engine that supports v2.3
(tomcat 4.0), you could use a Filter to parse out the
url that was entered and extract any parameters that
you encoded differently. Then you could forward the
request to the actual page or servlet it should go to.
David
--- Phase Communcations
I have search.jsp which uses a SearchForm and a SearchAction.
Once the user enters the search criteria, the SearchAction class takes
the entered data from the SearchForm. The SearchAction then performs
my DB query.
Once I get the query results I'd like to display the results in a
I'm interested (I think) in action-chaining. I'd like to use struts for
development in a project just ramping up. However, I plan to _completely_
abandon JSP and use XMLC to generate the presentation. To do this I intended
to split processing between a request-Action and a response-Action. The
When you forward to a JSP, the original ActionForm and ActionMapping are
left alone.
As it stands, when you forward to another Action, the ActionServlet uses
the same processing cycle it used for the first Action. If an ActionForm
is specified by the mapping, the ActionServlet will try to
Volker Krebs wrote:
I'm intrested, can you please post a patched JAR.
We are doing some Action chaning in our application.
OK, see
http://husted.com/struts/resources/invoke.zip
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
--
As I understand it, this works because a Web server actually tries each
part of the path component, to see if it is a file. So, given
/dir/dir/file/parm/parm
it chants
is /dir a file? (no, it's a folder)
is /dir/dir a file? (no it's a folder)
is /dir/dir/file a file? (why, yes, it is)
and
Hi
I have a very simple question, I want pass a variable to a page, I have
html:link forward=bbs paramId=page paramPropery=next -(1)
and want this to expand to
http://localhost:8180/testproject/bbs.do;jsessionid=EB98798BC98658698989879878page=next
-(2)
I do not want this value to be
Have anyone tried to get the struts running under sp
10?
Thanks
John
--- John Ng [EMAIL PROTECTED] wrote:
Hi, we would like to upgrade our weblogic server
from
sp8 to sp10. We are using wlssp8-struts.jar in our
sp8 environmet to get our struts stuff working.
However, it does not work
I am having trouble with the bean:define tag, specifically the toScope
parameter.
Here is the situation:
I set up some collections in an action class to use as select options in a
form and set them as attributes on the request object. These collections
contain information pulled from a
Does anyone out there know of an opensource shopping cart example using struts???
John McClain
7604 Muschetto Ct.
Citrus Heights, CA. 95621
[EMAIL PROTECTED]
(916)728-5223
Does anyone out there know of an opensource shopping cart example using struts???
The sonic example app from Bluestone (HP) is the largest I have seen:
http://gallery.bluestone.com/Scripts/SaIsapi.dll/Gallery.class/demos/i18n/index.jsp
It's big enough to give you a basic idea of how to do
Where do I have to put the jndi.properties or what could be else the problem
for the following exception?
[Service Control] Started 47 services
[Default] JBoss 2.4.3 Started in 0m:18s
[Default] javax.naming.CommunicationException. Root exception is
[Default] java.lang.ClassNotFoundException:
Hello All,
I'm trying to use the Struts validator but it doesn't seem to be working in
my - relatively common - case.
I have a modify.jsp page that is displayed upon calling
/modifyAction?command=init (using the DispatchAction). No validation must be
performed at this point. The user then
84 matches
Mail list logo