Hi Venkat,
I would encourage you to consider (if you haven't already) keeping your
actions in separate classes and possibly using inheritance or other
means to extract the common portions. This is more in line with the
design intent of struts, and makes cleaner, more maintainable code.
For exam
If the user disables cookies, the servlet container should revert to using
URL rewriting to maintain the session. You shouldn't have to worry about a
new session being created on each request.
--
Martin.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursd
Hi,
U can use the link some like this.
click here <
/html:link>
to replace the html form.
enjoy
bala
u gotr to specify the bean tag in form tag like
type="com.transplace.struts.bean.StakeholderForm"
action="createStakeholder.do" >
where html is the prefix for the tld
nnjoy
bala
Informative error messages and docs generally hasten developer time
investment (and hoperfully adoption) of a new technology. So I would say
yes! :)
On Fri, 31 Aug 2001, Remy Maucherat wrote:
> > leaving them in jasper. Can someone point me to where I can discern the
> > differences between t
It goes in the JSP page directive:
<%@ page session="false" %>
--
Martin Cooper
- Original Message -
From: "Shamdasani Nimmi-ANS004" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 7:33 AM
Subject: RE: STRANGE: session.invalidate() is not invalidating the sess
Kent:
> I think it really depends on your requirements and the skill level of your
> developers. I personally would be careful about trying to learn
> and combine
> two frameworks, even if they serve two different purposes.
Actually, the combining is already done - we have Struts 1.0 fully
inte
Hi all
Im trying to invoke a simple hello world style jsp using struts and receive
the error below:
+++
org.apache.jasper.compiler.CompileException:
C:\tomcat\jakarta-tomcat-3.2.3\webapps\hello-world\hello.jsp(2,0) Unable to
open taglibrary /WEB-INF/struts-bean.tld : Parse E
Thanks Robin,
Though we can have hidden fields which sets the action to take place and
branch accordingly, but i was wondering if you could have different methods
which perform save/edit/delete etc., in the action class which can be
defined into the struts-config.xml under the action mappings, so
So the problem was that the Struts example wouldn't load in Tomcat4.0 B7
because it didn't have a parser or the jaxp.jar. Someone suggested putting
a parser and jaxp.jar in the CATALINA_HOME/lib directory. This worked for
me. But a post from the tomcat list suggested putting them in the
web-inf
I have combined the EditRegistrationAction and SaveRegistrationAction into
one class. On my jsp, I have a hidden field called action, which indicates
what type of action, Create, Update, Save coming into the action class. I
branch in the perform method accordingly.
Hope that helps,
Robin
Hi,
i am new to struts and i am going through the struts-example
application. in the struts-config.xml under the action mappings section, for
every action there is a action class, for same domain (lets say for
registration, there is a EditRegistrationAction and SaveRegistrationAction
and s
Hi,
I am currently writing a Struts app that is a wizard like form that is
similar to the flow below:
setup.jsp -> timezone.jsp -> some_other_page.jsp -> finish.jsp
All views store their data in the same ActionForm and post to the same
Action class. The Action class merely sends the user on t
No, you aren't wrong.
That's the right way to work with (any) ODBC you want
You first need to define your Data Source in:
Start => Settings => Control Panel => ODBC Data Sources
then you can use your "pointer" as your dbURL as describe below.
- Original Message -
From: <[EMAIL PROTECTED
I have an additional Net-based DTD I'd like to register (I think). How does
one do it?
David Corbin
> This is more a question for the Tomcat list, but since it came up below,
> what is the best practice for including needed libraries and
> implementations (such as crimson.jar & jaxp.jar) in Catalina? While Ian's
> suggestion below moves these from /jasper to /lib, I found the struts
> example a
Folks
got a question about struts-layout, does it use struts 1.0 or 1.1? cuz I
have a problem that when I use struts-layout in my application, It generates
the following error:
500 Internal Server Error
Error parsing JSP page /commodity_form.jsp line 38
Tag class fr.improve.struts.taglib.layout.
I think that this item qualifies as struts material because affected
code originates in the Struts project. I am reasonably experienced
with Tomcat and Apache and am moving to use Struts.
I have a working Apache (1.3.19) installed by Mandrake 8.0 and a
current version of Tomcat 3.2.3 installed fr
This is more a question for the Tomcat list, but since it came up below,
what is the best practice for including needed libraries and
implementations (such as crimson.jar & jaxp.jar) in Catalina? While Ian's
suggestion below moves these from /jasper to /lib, I found the struts
example also works
Hi Chris,
Reloading depends on your server, not on Struts!
I believe that tomcat 4 reloads automatically, but I know there has been some
problems with it. You might want to check that mailing list.
Cheers,
Dave
Chris Heinemann <[EMAIL PROTECTED]> on 08/31/2001
09:23:14 AM
Please respo
Hi,
I have begun using the new Messages stuff, and thought I'd point out what
appears to be an error in the documentation for it. In the taglib/html
package.html that comes with the nightly build, it gives code snippets to
display a message:
and
However, I had to add 'messa
Hi Manish,
>From what I recall you can specify the type.
See - http://jakarta.apache.org/struts/struts-logic.html#iterate
so you can write the following and it should convert your myelement
to the appropriate type.
Hope this helps,
Ed Milic
>From: "Manish Pandya" <[EMAIL PROTECTED]>
>Re
Thanks Min,
I figured some direct approach.
Thanks anyway for your help.
- Manish
-Original Message-
From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 2:20 PM
To: [EMA
I too have similar problem .If we have getting null beans some times (
business logic) in collection is there any tag to come out of . I am getting Error 500--Internal Server Error at that tag.
here my code snippet
than
Manish,
should work. I then use myid.getValue() in a scriptlet... but you might be
able to use bean operations on it...
--min
> -Original Message-
> From: Manish Pandya [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 2:20 PM
> To: [EMAIL PROTECTED]
> Subject
Hello All,
I am iterating a java.util.Hashtable using the struts iterator tag.
the id="myelement" generates a bean myelement of type:
java.util.Hashtable$Entry.
As this class has private constructors, there is no way for me to cast it
form
Object to java.util.Hashtable$Entry. so I can't access
Title: RE: How to remove global ActionErrors?
Thank you, that works wonderfully :)
kat
-Original Message-
From: Ed Milic [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 11:52 AM
To: [EMAIL PROTECTED]
Subject: Re: How to remove global ActionErrors?
Hi Katherine,
The p
It's
on the tail end of my to-do list for our project, but I haven't had any time to
work on it. Someone else suggested solution a week or two ago but I had no
success with it (and haven't had time to,etc. etc.)
Chris
Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email:
I'm going to the pain process of upgrading Tomcat to Resin and Struts1.0 to
Struts1.1 and making it work with cocoon1.8.2 (different SAX)...
got almost all done, except for a problem on a Struts page that used to work
on the old setup. It is a template page that includes several others (I use
som
As I've been playing around with the HTML form tags, I've
noticed that it would be handy for an additional tag that sets the focus to the
control that has the same name as the first ActionError name. Is there any plans
for this kind of functionality?
Andy
BEGIN:VCARD
VERSION:2.1
N:Nobl
Title: How to remove global ActionErrors?
PageContext can be accessed directly from your
Custom Tags. In fact from there is from where you get your other
'scopes'.
This way you reference the different scopes
from within a Custom Tag:
HttpSession session =
pageContext.getSession();
Actually this is a lot easier than I made it out to be.
Once I remove the username, password, and set my countMin="0", using struts-config.xml
to define my datasource was not an issue.
Heres what need to be done before I made my connection.
GenericDataSource ds = (GenericDataSource)servlet.
Hi Katherine,
The pageContext can be accessed in your tag. It is part of the
Tag interface. All you need to do to access the pageContext is:
request = pageContext.getRequest();
Then you can set the Action.ERROR_KEY to null.
Cheers,
Ed
>From: "Luna, Katherine" <[EMAIL PROTECTED]>
>Reply-
INTERESTING - thanks for the info!
--- [EMAIL PROTECTED] wrote:
> It seemed to be a bug only on NT.
> On Solaris it works.
>
> Regards
> Stefan
>
> -Ursprungliche Nachricht-
> Von: Matt Raible [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 31. August 2001 16:43
> An: [EMAIL PROTECTED]
Title: How to remove global ActionErrors?
Hi again,
I have a CheckLoginTag class that verifies that there is a validUser stored in the session similar to the struts-example. I have placed at the top of search.jsp which contains a searchForm.
If a user tries to access this page without
there is a property filter of the bean:write, which you have to say to false
G.
-Original Message-
From: Bar3omiej Paw3owski [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 6:05 PM
To: struts mail list
Subject: why bean:write converts < > & etc?
Hi
I have a problem
I put in th
It seemed to be a bug only on NT.
On Solaris it works.
Regards
Stefan
-Ursprungliche Nachricht-
Von: Matt Raible [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 31. August 2001 16:43
An: [EMAIL PROTECTED]
Betreff: RE: Can't place JSP beneath WEB-INF in WebLogic 6.0
I found out this morn
there is a flag on bean:write to indicate whether or not to html-encode the
data being written - the default is to encode it. I believe you want to add
filter="false" to your bean:write in order to disable it -
Good luck -
Margaret
-Original Message-
From: Bar³omiej Paw³owski [mailto:[EM
Hi
I have a problem
I put in the vector:
vector.addElement("ble ble");
vector.addElement("ble ble");
request.setAttribute("actList", result);
next in the jsp page:
in page source i revceive
ble ble
ble ble
How can I solve it?
Please help!!!
Bartek
Poland
I can't give to much detail until we are done, but we are in the process of
using Struts to write a real-time web application that will run
approximately 500 users per server, all with approximately 5-8 windows open
refreshing every 5-20 seconds. Not sure if that is what you are looking
for. I c
I found out this morning that this is a bug in iPlanet. I received the
response below from a post to the iPlanet newsgroup. I also found that the
mcom.ias newsgroup is behind iPlanet's firewall, so don't waste your time
looking for it.
Matt
-Original Message-
From: Klaus Stake [mailto:
I'm looking for some feedback on some major applications using struts. I work for a
mid-large corporation and we have implemented struts as our web application framework.
Upon discussing our framework with management, a question was raised as to "who else
is using this framework" and "what t
Martin,
Thanks for your response. I will first try #1 approach in your email. But I have a
question - where would one put session=false (struts-config.xml file or the action)
for logout or logon?
Thanks.
-Nimmi
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent
Hi, Is there a corresponding as on attempting i keep
recieving - Attribute app_code has no value. The following script works
fine and displays a constant planning reference and pass back to the
database. Nevertheless i am trying to extract all the html for standard
tags but can't get my head roun
Can anyone give me some help with this??
I'm using Struts1.0 and decided to download a recent
nightly build version to take advantage of some of the
new tags.
I downloaded the most recent nightly build of struts
(08/30/2001)
Followed the steps on the README file and i have this
exception whe
Title: Message
Hi
there!!!
I need to know if is
possible divide one form in the same page.
For
example:
method="POST">
[...]
[...]
method="POST">
[...]
Thanks to all
Alessio
A couple of questions about Tiles,
When I downloaded the binary distribution I did not see the
tiles-tutorial.war file and was therefore missing some of the files
necessary to go through your tutorial. Am I missing something in the
distribution, or was the tutorial removed.
Secondly, when I att
Title: Message
Here
is an example:
-Original Message-From: yogesh b
[mailto:[EMAIL PROTECTED]]Sent: Sunday, July 01, 2001 2:50
AMTo: [EMAIL PROTECTED]Subject: Re: Urgent
: Any Example which will show
tag
Hi All,
Can any on tell me how to call Action class on
Mike,
I think it really depends on your requirements and the skill level of your
developers. I personally would be careful about trying to learn and combine
two frameworks, even if they serve two different purposes. Even though
frameworks can be helpful, many times they can frustrate the develo
Title: Message
Hi All,
Can any on tell me how to call Action class on
with some parameters
Thanks in advance.
Yogesh
- Original Message -
From:
Jay
Patel
To: '[EMAIL PROTECTED]'
Sent: Tuesday, August 28, 2001 10:13
AM
Subject: RE: Urgent : Any Example whic
Martin (and all):
> > But
> > you would be creaking and struggling if you did not piggy bank
> > Struts with J2EE features.
>
> Sorry, but I disagree completely. Whether or not Struts is an appropriate
> framework for any given project is completely independent of
> whether J2EE is
> or is not us
try localhost:8080/webapp/admin/reload.do ;-)
::
Mikkel Bruun
Senior IT Developer
[EMAIL PROTECTED]
Direct: +45 32 88 22 73
Valtech A/S
Kanonbaadsvej 10
DK-1437 Copenhagen
Tel +45 32 88 20 00
Fax +45 32 88 20 20
> -Oprindelig meddelelse-
> Fra: Chris Heinemann
Ah! The answer of course is starring at me in my face.
public ActionForward perform( ActionMapping,
ActionForm form,
HttpServletRequest request.
HttpServletServlet response )
Ofcourse I can get a reference to `HttpServletRequest' and t
> I have to tell you, in iPlanet app server 6.0 SP2, JSPs under WEB-INF > are
>accessible from the browser
> by typing something like: http://host/NASApp/appname/WEB-INF/some.jsp. > I tought
>the container where supposed to protect JSPs
> placed there?
This has come up too. It would be helpfu
Hello everybody,
I have just started with Struts and must say I am very impressed. I
know I don't have a right to complain because I haven't submitted any
patches yet. However, I do have one grip, when altering config files
(such as struts-config.xml and ApplicationResources.properties) I need
Sorted Myself Cheers if looking at it.
Chuck Amadi wrote:
>
> Hi, I have exstablished a connection and all but app_code values appear
> in my Postgresql Database.
> The app_code is A UNQIUE value that is required thru the process . I
> have a jsp called planningdb that selects the following and
Title: Can't place JSP beneath WEB-INF in WebLogic 6.0
I have
to tell you, in iPlanet app server 6.0 SP2, JSPs under WEB-INF are accessible
from the browser
by
typing something like: http://host/NASApp/appname/WEB-INF/some.jsp.
I tought the container where supposed to protect JSPs placed th
Other people have mentioned this to me. Someone should get a response
from BEA.
> "Luna, Katherine" wrote:
>
> Hi all.
>
> After reading the new Struts Catalogue, I would like to move all my
> jsp's beneath WEB-INF. However, as soon as I do that, WebLogic can't
> seem to find them.
>
> My str
Title: Can't place JSP beneath WEB-INF in WebLogic 6.0
Hi all.
After reading the new Struts Catalogue, I would like to move all my jsp's beneath WEB-INF. However, as soon as I do that, WebLogic can't seem to find them.
My struts-config.xml looks like this:
typ
Hi all i have sorted out the missing value app_code.Cheers if you've
being looking at it.
Planning Application Code
Number:<%=request.getParameter("app_code")%>">
It mat not look good but it works , thus i can go on to using
tag instead of html tags.
Chuck Amadi wrote:
>
> Hi , I have crea
> Subject: AW: ApplicationResources.properties
>
>
> I dont't want save the file under the web-inf/classes directory. I want to
> save it for example in this directory web-inf/config .
> Is that possible
>
> Regards,
> Stefan
>
As far as I understand it your Resources.properties are looked up in
I dont't want save the file under the web-inf/classes directory. I want to
save it for example in this directory web-inf/config .
Is that possible
Regards,
Stefan
> -Ursprüngliche Nachricht-
> Von: Ganendran Kumaraswamy [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 31. August 2001 14:1
this file must be in the classes directory, and it behaves like a regular
java file, that is, you need to put in the respective directory of your
project, for example
com.mycompany.myproject.resources. And then write the same name in the
web.xml
G.
-Original Message-
From: Stefan Faist [
Have your web.xml entry something simlar to the following,
application
messages.ApplicationResources
and place your ApplicationResources.properties file under the
web-inf/classes/messages folder (as per this given xml entry)
Regards,
Gane
-Original Message-
From:
Must this file saved under the /WEB-INF/classes directory or can I save it
direkt under the /WEB-INF directory?
And how is then the entry in the web.xml?
Stefan
--
hmi-Informatik GmbH
Zettachring 6 - D-70567 Stuttgart
E-Mail: [EMAIL PROTECTED]
http://w
Hi , I have created a submitForm.jsp that has a value parameter named
app_code that is a unique value from my PostgreSql Database. from a select from my planningdb.jsp.
The app_code - is required throughout the process.(This is the Planning
Application Reference)
select app_code, app_d
I have been using Expresso for a year or so, mostly because of my twisted view
of an applications as being a database with views attached - Expresso is very
database oriented. For example, getters and setters instead of SQL sequences,
as well as the flexibility of changing databases rather casual
How does do perform "String [] HttpServletRequest.getParameterValues()"
with a Struts Action and Action Form?
If you a html form with a group of html checkbox elements like so
apple
orange
pear
You would get an String array with raw Servlet request parameter.
Which looks like this "orange|ap
You can do something like :
But you certainly have to put some processing before to check if the
clientName is valid.
Also, you can check Tiles contribution for others ideas. For example, you can
adapt the channels example to fit your client names.
Cedric
Tiles sites :
http://
I did not preclude Struts from any J2EE project. Struts does not provide
enterprise level features by default. For those you would have to J2EE
provider(s) or use some entirely different. It provides MVC framework and a layer
above JSP and Servlets. There many ways of skinning a cat, my friend.
Hi,
You can't do forward once you have already write something in output stream. You can
only do include (ex : jsp:include).
Cedric
Bar³omiej Paw³owski wrote:
> Hi all
>
> I have a problem with logic:forward
>
> In my jsp file are the following lines:
>
>
>
>
>
> It causes f
Hi,
This might answer your question(s).
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg14470.html
>From: Aaron O'Hara <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: select list
>Date: Thu, 30 Aug 2001 10:04:54 -0700
>MIME-Version: 1.0
>Re
Hi,
it could be made with the Access Database configured as a
Systemdatasource (ODBC-Administration-Tool in the Control panel), where you define a
name for your datasource.
Then you give the url as jdbc:odbc:yourdatabasename.
I can't imagine that Access is a Databse server which you can access
Hi, I still ahve problem with the struts installation. I can t run
the struts-example application. When I access a .do url, the page
does^'t exists.
the apache error log file says :
[Fri Aug 31 10:43:38 2001] [error] [client 127.0.0.1] File does not
exist:
c:/destin/tomcat/webapps/struts-example
Hi all
I have a problem with logic:forward
In my jsp file are the following lines:
It causes following exception:
javax.servlet.ServletException: Exception forwarding for name
indexClient: java.lang.IllegalStateException: Cannot forward as
OutputStream or Writer has already been obta
Hi
Use instead of
Bartek
Debasish Ghosh wrote:
> Hi all -
>
> This is my second attempt at the problem. I could not
> fix it. Please help !!
>
> I am using Tomcat 3.2.2. When I use an html tag as
> (I am using
> Struts), the first time the page comes, the tag gets a
> sessionId. The cookies
Hi all
I try to access an MSAccess DB out of struts and I work with JBuilder 5.0.
But when running the application I get the following error from JBuilder:
cannot load servlet name: action2001-08-30 09:39:47 - path="/pcd" :action:
Initializing application data source org.apache.struts.action.DAT
I would suggest you use an empty href (href="") and put the URL forwarding
in client-side JavaScript, like
onclick="javascript:window.location='menu9.jsp?msisdn='+document.ofrms[0].ms
isdn.value;"
the other, unnecessary heavy solution would be to submit this menu to a
Struts action, which decide
Hi there,
I have an input field (msisdn) and Lots of links to other jsps. (This is
menu.jsp)
All the other jsps use this input field data on menu.jsp..How can I pass
this data to other jsps by using html:link.
Appreciate any help.
I use ;
.
.
.
Regards.
IT-CS Line
Baris Guzelordu
hi there,
I have a problem with a multipart form in my jsp.
i have a code like this:
[...]
[...]
[...]
I want to submit the saveCurriculum in my second form but infortunately i
lose all the change in the first form. There is anyone that can help me???
There is anyone that can explain
> http://httpunit.sourceforge.net/
> I believe that it is primarily a functional testing tool. I would
imagine
> that you could use it for load-testing...
I wouldn't believe it. Our attempts to load test with HttpUnit spent more
time parsing code on the client than they did generate HTTP reques
Not sure this is a struts problem but it is related to the
struts style of working. I have a page with three frames
and I ask that one frame be reloaded from struts. My Action
may decide that it needs to send back an error message
rather than the requested data. If so, I want to send back
a full p
We have been using struts with expresso for the past 5 months.
Struts1.0 and Expresso version 3-00.
In fact Expresso is being used only for database interaction. The rest of
the app is in struts. We also plan to use the Transaction and MQ support
that Expresso provides in the near future.
Rak
83 matches
Mail list logo