re: Instantiating a Java Class

2002-01-25 Thread Peter Alfors
If it is a class, you could: 1. add it to the WEB-INF/classes directory (in the appropriate directory structure) 2. Add the class directly to the classpath Also, import the file in your page such as: <%@ page import=org.apache.jsp.tr %> HTH, Pete >>Hi >> >>Iam a novice to Struts and need y

Re: Including results from one action on a different actions jsp page

2002-01-11 Thread Peter Alfors
Here are a couple options: 1. Create your page as a frameset... Then each frame can have it's own action as its source. 2. Use one action that is responsible for retrieving all of the information for one page. The internal code may have to reference helper classes (or maybe even other action(

re: forward to jsp or to do ?

2001-12-13 Thread Peter Alfors
Correct, if you forward to a jsp, it will display the compile jsp servlet. If you forward to a do, then it will look for that action in your actions-config.xml and execute the appropriate action class. This allows you to chain actions together. HTH, Pete >What' s the difference between a f

re: How to return to the page that called the action class?

2001-12-13 Thread Peter Alfors
There are a couple options I can think of: 1. use request.getHeader("Referer") 2. add a property to your generic class that holds the return link. Then have the calling class set it. 3. you could use javascript to back up, but that is ugly... HTH, Pete >Hi, > >I have a generic action class

Re: request

2001-11-27 Thread Peter Alfors
Hello Amit, You do not need Ant in order to use Struts. Ant is a tool for compiling/jarring/installing/etc that can make building/testing/installing much more efficient (and easier - in my opinion). Personally, I think it saves me quite a bit of time during testing, so I would recommend it.

Re: JSP page without form bean ?

2001-11-20 Thread Peter Alfors
Unless this is a new "feature" of struts, you may create an action without specifying a form using the following syntax: We are using Struts: 1.0 beta 3 (release build June 2, 2001) HTH, Pete > You can specify an action without a form bean with this syntax: > >

Re: Refreshing/Reloading MessageResources

2001-10-04 Thread Peter Alfors
You can create an administrator action to peform this for you. I think that the struts-example app might have an example of this. You might want to check the archives, because this question has been asked many times. HTH,     Pete Mitesh Mehta wrote:  Is there a way to refresh/reload messages fro

Re: How to open a new browser window in struts

2001-10-04 Thread Peter Alfors
You can set the target of the form to be a new window. The browser will then be responsible for loading the resulting page into a new window. HTH, Pete [EMAIL PROTECTED] wrote: > Hi, > > I am new to Struts. > > I am having a form where in the user can enter the search criteria and > click

Re: freeing resources

2001-10-03 Thread Peter Alfors
I think you want to look into the HttpSessionBindingListener. Search the archives for this, I believe others have asked pretty much this same question. HTH,     Pete Anish Acharya wrote:  Hello everyone.  Just a quick question for you.  I want to free certain resources and clear certain objects f

Re: multiple resource files in ActionServlet?

2001-10-02 Thread Peter Alfors
> Sent: Tuesday, October 02, 2001 3:48 PM > To: '[EMAIL PROTECTED]' > Subject: RE: multiple resource files in ActionServlet? > > Is there anyway to have Ant merge multipe message resource files > together at build time? > > Brian DeHamer > [EMAIL PROTECTED] > &g

Re: multiple resource files in ActionServlet?

2001-10-02 Thread Peter Alfors
I don't believe that you can do this. However, there are a couple of options available to you... 1.  Make multiple files and merge them when you build your project. 2.  Extend ActionServlet and allow multiple resource bundles to be read in. I believe there was some mention a while back about aut

Re: Html:select question

2001-10-02 Thread Peter Alfors
I haven't actually used the html:select tag, but it looks as though is expects to retrieve data from a bean. The name attribute specifies which bean to use (in the pageContext) and the property attribute specifies which property of the bean to use. HTH, Pete "Kilmer, Erich" wrote: > In the

Re: Dynamically obtaining component definition name

2001-10-02 Thread Peter Alfors
he should send an email to: [EMAIL PROTECTED] to unsubscribe himself. Mark Backstrom wrote: > Please unsubscribe Trevor Lewis from this distribution. He may be > receiving it under [EMAIL PROTECTED] > > Thanks, > > Mark Backstrom > Systems Support Engineer > Loudeye Technologies > > --

Re: Can an action be cancelled once the submit button is clicked.

2001-10-02 Thread Peter Alfors
Mike Bungay wrote: > This question is to anyone that can possibly help me. I have a jsp form > that is running 3 actions, these actions are managed by JavaScript (i.e. if > delete is pressed the action is changed to delete.do, etc.). > > My question:Is there anyway to stop an action from r

Re: getting the servlet context

2001-10-01 Thread Peter Alfors
try pageContext.getServletContext() HTH, Pete "Johnson, Nathaniel" wrote: > Does anyone know how to get the servletContext from within a custom tag > (public class MyTag extends SupportTag...) > > Thanks! > Nate begin:vcard n:; x-mozilla-html:FALSE org:http://www.irista.com/images/com

Re: New window with the current session.....

2001-08-27 Thread Peter Alfors
Check out the window.open() javascript method. HTH,     Pete Jean-Francois Brassard wrote: Hello, I need some help for create a new window with no status bar and a specific size, and with the current session. Thank you in advance Jeff begin:vcard n:; x-mozilla-html:FALSE org:http://www.iri

Re: Why is it so difficult to make Struts working in JBuilder 5?

2001-08-27 Thread Peter Alfors
"Liu, Xin" wrote: > Why can't we treat struts.jar the same as other struts, i.e., why cannot we > put struts.jar into classpath? You can place the struts.jar in the classpath. However, then you must make sure you do not have another copy of it in the lib directory. begin:vcard n:; x-mozil

Re: pre-populate and request scope problem in struts.

2001-08-21 Thread Peter Alfors
I assume that your select tag is expecting to get data from your form object that you had previously placed into the request? When you return to the 'toJsp' page, you will need to place the form object back into the request, or place the form object in the session in the first place. When you s

Re: forward problem with frames

2001-07-31 Thread Peter Alfors
There is a target attribute in the Have you tried setting the target to "_top" ? HTH, Pete Stefan Faist wrote: > Hi all, > why have a frameset and open a link without this framset. Then I want to go > back to the frameset with this forward. > the main.jsp is the > page with the frameset.

Re: Retrieving browser locale

2001-07-30 Thread Peter Alfors
Andreas Leitner wrote: > Hi, > > (Not sure if this belongs to struts or tomcat). How do I find out what > language the user (resp. html-browser) preferes? > request.getLocale() > > Second, I read at various places about users and roles in tomcat and > struts, where can i find out more about th

Re: forward an _parent Frame

2001-07-26 Thread Peter Alfors
One solution would be to have your action point to a frameset. If you do not know which pages you want in the frameset until after the original action has been completed, you could have your frameset point to other actions. This way, each frame may decide which final page to access. HTH, Pe

Re: Struts and Frames

2001-07-26 Thread Peter Alfors
The struts tags have a target attribute that you may set to point to the desired frame. Since the target is actually handled by the browser (as where to display the results), there isn't really much "handling" to be done by struts. Our site has 3 frames within a frameset. We have not experienced

Re: newbie question

2001-07-26 Thread Peter Alfors
In your web.xml, there should be a section that maps the *.do extension to the action servlet, for example:           action   *.do     However, if you are running the example, It should be in there. Pete   Jonathan Yang wrote: The appserver is  tomcat3.2.3. can sucessfully show the

Re: Baisc q 2 Cannot find message resources u/key -

2001-07-24 Thread Peter Alfors
The name of your web app is bbnpa? Then shouldn't your WEB-INF directory be located here? /bbnpa/WEB-INF Pete Chuck Amadi wrote: > Hi i still get the following error message. > > My path is > /bbnpa/helloworld/WEB-INF/classes/helloworld/HelloWorldResources.properties > Any more pointers Ch

Re: Baisc q 2 Cannot find message resources u/key -

2001-07-23 Thread Peter Alfors
elloWorldResources > > 1 > > > Tried the second option previously and again no joy. > The first option can i drag & drop into the classes .jar the property > file as all my jar's are in my WEB-INF/lib dir. > >

Re: Baisc q 2 Cannot find message resources u/key -

2001-07-23 Thread Peter Alfors
In your web.xml, what do you have defined for the application init-param? where is your properties file located? You have a couple of options: You could place the properties file in your classes jar (in the appropriate directory structure) or you can place it in the WEB-INF/classes directory (wit

Re: How to get the entire URL of referring page

2001-07-20 Thread Peter Alfors
You could use: request.getHeader("Referer") Which class has the getReferrer() method? HTH, Pete Web Programmer wrote: > Hi All! > > I am trying to capture of the entire URL of where the > user has come from - i.e., the URL of the previous > page. I am getting null value when I invoke the

Re: Getting session objects in an Action Form

2001-07-19 Thread Peter Alfors
You can access the session through the HttpServletRequest: Object myObject = request.getSession().getAttribute("myKey"); HTH, Pete Melissa Rabin wrote: > I need to access a session object within an ActionForm class - is this > possible, & how? > > Melissa Rabin > Web Developer begin:vcar

Re: question about html:text tag

2001-07-19 Thread Peter Alfors
try disabled instead of disable You can check the TLD for which attributes are valid for a given tag. HTH, Pete D M wrote: > Hi, I don't know if this question has been already submitted. Heck, I > don't even know if this list is active. > > Anyways how do you use the html:text tag

Re: Is there a way to localize error-messages produced by the system?

2001-07-19 Thread Peter Alfors
One option: When you trap an error, look up the i18n text for that specific error. Then place the translated text in your error bean. Your page can then use the format: For example, when you trap the exception that you were unable to connect to the database, lookup "login.error.label.noserverco

Re: Tutorial for beginers

2001-07-19 Thread Peter Alfors
maybe try: http://www.husted.com/about/struts/resources.htm#tutorials HTH,     Pete   Adriano de Pinho Tavares wrote: Hi All! Does Anybody knows a strut tutorial for beginers? Thanks in advanceAdriano 

Re: Basic ant's q regarding unexpected element "copy"

2001-07-19 Thread Peter Alfors
You are ending your target prematurely. should be: HTH, Pete Chuck Amadi wrote: > Hi there folks, I have taken the second plunge into my buildfile > experience the first was fine nevertheless i have a question my second > buildfile states an error ie Unexpected element "copy" > \bui

Re: getting an action mapping into a servlet

2001-07-18 Thread Peter Alfors
check out: org.apache.struts.taglib.html.FormTag.getActionMappingURL() HTH, Pete Matt Raible wrote: > Here's the entry for this mapping in the struts-config.xml > > path="/signIn" > > type="us.co.douglas.application.timetracker.presentationlogic.SignInAction" >name="sig

Re: Length Restrictions??

2001-07-13 Thread Peter Alfors
Is your page possibly timing out? I have experienced large pages timing out when trying to compile them. Although, I have a page that has over 14000 chars, and it compiles. just a thought, Pete Christine Eckstein wrote: > Are there length restrictions on how many characters can be > in a JS

Re: Bean property getting vanished from scope

2001-07-13 Thread Peter Alfors
Are you storing the collection in the session as an attribute or are you attempting to retrieve it from a bean that is stored in the session? Either way, when you retrieve the attribute (collection or bean), it is returning as a null? Pete Vaibhav Patil wrote: > Hello, > I have a bean hav

Re: Unknown error

2001-07-13 Thread Peter Alfors
There are some messages in the archives about this: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10266.html HTH, Pete Stefan Faist wrote: > Hi all, > I get this Error: > 2001-07-13 11:41:58 - Ctx( /zeiterfassung-struts ): IOException in: > ( /zeiterfassung-struts + /hmisty

Re: Ant problem - build.xml file does not exist

2001-07-12 Thread Peter Alfors
how are you executing ant.bat? In your dos prompt, move to the ant/bin directory, then execute it. Pete Chuck Amadi wrote: Hi all i have just downloaded a exampl from netbeans of a sample build.xml Thus i have installed in the ant's dir at the same level as bin,doc,&lib is this correct as when i

Re: SV: just d/l & installed ANT'S need some guidance!!

2001-07-11 Thread Peter Alfors
ctory. Check which environment variable it is appending them to. (Ant 1.2 uses LOCALCLASSPATH) Maybe add an echo to show the contents of the variable and make sure that you are getting the ant.jar file?? Chuck Amadi wrote: > Is this ok > > Peter Alfors wrote: > > > print out yo

Re: ant's Classpath just(ANT'S need some guidance!!)

2001-07-11 Thread Peter Alfors
that this was inclusive for all jar's set classpath=C:\jakarta-ant\bin\ant.jar (is this correct) Cheers Chuck Peter Alfors wrote:    Part 1.1.1    Type: Plain Text (text/plain) Encoding: 8bit   Name: peter.alfors.vcf    peter.alfors.vcf   Type: VCar

Re: just d/l & installed ANT'S need some guidance!!

2001-07-11 Thread Peter Alfors
Is the ant.jar in your classpath? Pete   Chuck Amadi wrote: Hi again i have set my classpath within AutoExec.bat as follows set TOMCAT_HOME=C:\jakarta-tomcat-3.2.2 set ANT_HOME=C:\jakarta-ant-1.2 set JAVA_HOME=C:\JDK1.3 set PATH=%PATH%;%ANT_HOME%\bin Thus on checking the ant's bin dir the ant.bat

Re: Page is not cached

2001-07-10 Thread Peter Alfors
Do you have the ActionServlet init-param "nocache" set to true? >From ActionServlet.java: "nocache - If set to true, add HTTP headers to every response intended to defeat browser caching of any response we generate or forward to" HTH, Pete "Zeltser, Mark" wrote: > Hello, > > I have strut

Re: Any more suggestions (Action Classes) WON'T COMPILE.

2001-07-10 Thread Peter Alfors
It looks as though you named the file ActionMapping.java when it should be ApplicationMapping.java. The file name must be the same as the class name. HTH, Pete Chuck Amadi wrote: > Hi all , well i have tried everthing in the book/doc's to no avail, I > would like to know that say for instan

Re: Retaining values for the page.....

2001-07-09 Thread Peter Alfors
Here is one option: When you retrieve the data from the database in Test2Action, place it in the session. Then the next time Test2Action is executed, check for its existence in the session. If it exists, use it, otherwise, refresh from the database. When Test1Action is executed, remove the sess

Re: Newbie: Difference between FORWARD and REDIRECT

2001-07-09 Thread Peter Alfors
Basically: A forward will use the same request. A redirect will create a new request. HTH, Pete Holger Wiechert wrote: > Hi, > I know, this is a totally newbie question, but the struts manuals handle this issue >quite marginal. > So, what's the difference between a forward and a re

Re: Struts and Javascript

2001-07-06 Thread Peter Alfors
I don't believe that this will work. To my understanding, JavaScript does not have access to objects within a request or session. By the time the javascript is run, the request is dead. There may be a better solution than this... One solution would be to have your JSP page generate a javascript a

Re: Action forward to Action losing request objects ??

2001-07-05 Thread Peter Alfors
my action perform() I am doing the following: String query = request.getSession().getId(); String action = "/postsecure_jump.do?sessionid="; System.out.println(action+query); return new ActionForward( action+query, true);  Can someone tell me how to add query strings properly -

Re: Action forward to Action losing request objects ??

2001-07-05 Thread Peter Alfors
Is it possible that you are redirecting instead of forwarding?   Jonathan wrote: I am submitting to an Action which when successful places an object in the request and forwards to a second Action, which looks for the item in the request, and forwards yet again to a third Action which gets the i

Re: the build process !! found servlet & others

2001-07-05 Thread Peter Alfors
Oops, I was not answering the right question You will need the Servlet.jar when running your app, but at the moment, you need it to compile. Therefore, make sure that it is included in your classpath in your IDE, or in the ant script (if you are using ant), etc... Pete Peter Alfors wrote

Re: the build process !! found servlet & others

2001-07-05 Thread Peter Alfors
also parser,ant,jasper,webserver,jaxp and servlet.jar thus i have c&p to my C:\jt-3.2.2\webapps/bbnpa/WEB-INF/lib.  I assume that is the correct . Cheers Chuck Peter Alfors wrote: Do you have the servlet.jar in your classpath? Pete Chuck Amadi wrote: > On attempting to creat the joinst

Re: SV: pls Help Invalid Package Declartions .java File Wont compile

2001-07-03 Thread Peter Alfors
Ahh... I think I see what you are trying to do. You have your own modified version of the AcitonMappings class. If you want to add classes to the web-inf/classes directory, then you will need to add the appropriate directory structure that corresponds to the package. Therefore, make an web-inf/cl

Re: SV: pls Help Invalid Package Declartions .java File Wont compile

2001-07-03 Thread Peter Alfors
Are you looking for the ActionMapping class file or java file? either way, it should be in your download of struts??? Pete Chuck Amadi wrote: > Hi yes all my jar files are in WEB-INf\lib.Could you post a snippet of > ActionMappings.class. > As i have located a copy in the struts-example in anot

Re: SV: pls Help Invalid Package Declartions .java File Wont compile

2001-07-03 Thread Peter Alfors
That is the correct package... Where do you have your struts jar? Pete Chuck Amadi wrote: > Hi, pls can some one confirm the package name for ActionMappings as i > recieve the following error. > > I am aware that i have the incorrect package thus were does ActionMappings > reside. > Cheers Chu

Re: proposal: splitting struts mailing list

2001-07-02 Thread Peter Alfors
The problem with splitting into two lists is that the "advanced" users will not be around to answer the "beginner" questions. I agree that there is a lot of traffic on this list, both beginner and advanced. I see it as a benefit though. The beginners get to learn from the advanced, and the advanc

Re: Custom tag question

2001-06-29 Thread Peter Alfors
If your question is just - "Is it possible"? Then the answer is Yes. However, if you are asking for the current tags to implement this, that is a totally separate question. That would take some re-work. Pete Aapo Laakkonen wrote: > Is it possible to have custom tags that can have both child e

Re: Strange Problem using JavaScript and HTML:Submit Tag

2001-06-29 Thread Peter Alfors
The html:submit tag sets the submit name to "submit". JavaScript gets confused when an object (your submit button) has the same name as a javascript method you are trying to call. If you set the submit name to something else, like btnSubmit", it will work fine. HTH, Pete [EMAIL PROTECTE

Re: multiple form fields

2001-06-28 Thread Peter Alfors
Your page: ... ... In your class: String[] qtys = request.getParameterValues("qty"); HTH, Pete Paul Beer wrote: > could someone please send some sample code of sending multiple text fields > of the same name to a form bean ? i looked through the mail archives

Re: Generic handling of properties

2001-06-28 Thread Peter Alfors
try: http://www.mail-archive.com/ "Gangadharappa, Kiran" wrote: > Hi Niall, > I am kind of new to this mailing list. Any idea where I can find the > archives? > regards > Kiran > > -Original Message- > From: Niall Pemberton [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 28, 2001 4:

Re: relaying attribute in request objects

2001-06-28 Thread Peter Alfors
A request's life cycle is over when the page is created. Therefore, you cannot pass information using the request (back to the server) You could do this: The action class sets the date in the request for the page to retrieve. The page turns around and places it in either a hidden field, or as a

Re: Is struts really loading the resources?

2001-06-27 Thread Peter Alfors
You could subclass the ActionServlet and over-ride the initApplication() method. This is the method that loads the file. You could then display the file, and its contents if you wanted. (maybe use a debug setting to specify if you want this to happen?) Or, you could write a simple class that pull

Re: How can I pass extra information on Submit button?

2001-06-26 Thread Peter Alfors
onclick="document.form[0].action="registration.do?id=12"/> > > > > > > The action will be processed correctly, but since it > > can't automatically look the corresponding form bean > > you need to specify it with the name attribute. I > >

Re: Internationalization

2001-06-26 Thread Peter Alfors
The ActionServlet class stores the users locale (retrieved from the browser) during the first request. (see ProcessLocale() method) It is stored in the user's session under the key: Action.LOCALE_KEY <-- member variable of Action class. Therefore, to change the locale, you need to change the val

Re: How to submit a form using usemap

2001-06-26 Thread Peter Alfors
Clicking a hyperlink does not submit a form. Fields within a form are only passed through the request when the form is submitted. Therefore, you need to have your image hyperlink submit the form. You can do this using javascript. Check the archives, there are many messages about this. Pete E

Re: Dynamic Value (Scriptlet) in ApplicationResources.properties

2001-06-26 Thread Peter Alfors
try: As for the "alt" attribute, it looks at though the html:img taglib will only accept either a string or a resource bundle key. Since you cannot nest taglibs (use a taglib as an attribute for another) you would need to retrieve the alt message from your bean, place it in a scriptlet variabl

Re: How can I pass extra information on Submit button?

2001-06-25 Thread Peter Alfors
can see it already in my piece of code, the first > > - Original Message - > From: "Peter Alfors" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, June 25, 2001 3:24 PM > Subject: Re: How can I pass extra information on Submit button? &g

Re: How can I pass extra information on Submit button?

2001-06-25 Thread Peter Alfors
Are you going to place a button next to each record in the list? Jerzy Kalat wrote: > Thanks, > > Well, I know about this solution, but they insist on button. > > - Original Message - > From: "Peter Alfors" <[EMAIL PROTECTED]> > To: <[EMAIL PRO

Re: How can I pass extra information on Submit button?

2001-06-25 Thread Peter Alfors
You could use a link rather than the submit button. Then when you iterate through your result-set, you just add the 'id' to the link. Pete Jerzy Kalat wrote: > Hi, I list many records on the form. Each record has 'Details' submit > button, which suppose to flip form from 'List'mode to 'Details

Re: Formless actions?

2001-06-25 Thread Peter Alfors
The name attribute is not required. You can leave it out, however, if you are using the html:form taglib on your page, then it will want an actionform. So in that case, you will either need to have an empty bean, or use the standard HTML tag --> without a bean. HTH, Pete Kief Morris wrote

Re: Dynamic label

2001-06-22 Thread Peter Alfors
try HTH, Pete "Pal, Gaurav" wrote: > Hi, > > I am trying to create a dynamic label HTML form through the bean:message > tag. What I want to do is as follows: > > > > It gives a compilation error that the key string is unenclosed, anybody have > any ideas how to do this? > > Thanks in ad

Re: Are socket write errors normal?

2001-06-21 Thread Peter Alfors
are you using tomcat as your webserver? I think I recall someone explained this a while back. It was something along the lines of: The tomcat webserver starts to load an image then realizes it has it in cache, so stops in the middle and uses the cached copy, which throws a socket exception. If

Re: unable to programmatically perform a submit

2001-06-21 Thread Peter Alfors
Bill, Did you name your submit button "submit" ? I came across this problem as well. It appears that you cannot name an object on your screen the same thing as a javascript action, for example, submit(). When I renamed by submit button to "btnSubmit" it worked fine. Pete Bill Pfeiffer wro

Re: apostrophe in an application resource properties file does disappear in the JSP file compiled!!!!!!!!!!!

2001-06-19 Thread Peter Alfors
see mail archive: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg06172.html (use two apostrophes) Pete Matteo Di Giovinazzo wrote: > THE ESCAPING \' DOESN'T WORK > > Matteo > > >- Original Message - > >From: Mikkel Bruun > >To: '[EMAIL PROTECTED]' > >Sent: Tuesday,

Re: No ActionForm Bean Required

2001-06-19 Thread Peter Alfors
>> > >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) >> > >> > at >> > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) >> > >> > at >> > org.apache.tomcat.util

Re: No ActionForm Bean Required

2001-06-18 Thread Peter Alfors
AM 6/18/2001 -0700, Craig R. McClanahan wrote:     On Mon, 18 Jun 2001, Peter Alfors wrote: > You do not need an ActionForm.  You can read straight from the form > parameters in your action class as you mentioned. > Yes, you can definitely do this.  Of course, you give up the automatic s

Re: Struts Mailing list Archive

2001-06-18 Thread Peter Alfors
check out: http://jakarta.apache.org/site/mail2.html or to get there, click 'Mailing Lists', then 'here' at the bottom of the page. "Shaikh, Mehmood" wrote: > Can you post the link to Struts Mailing list archive on struts homepage. > > Thanks

Re: No ActionForm Bean Required

2001-06-18 Thread Peter Alfors
You do not need an ActionForm. You can read straight from the form parameters in your action class as you mentioned. Pete Bill Firestone wrote: > I have hit upon the same problem as this thread, but I didn't see a resolution. > > It seems that in Struts 1.0, there must be an ActionForm for e

Re: Unsubscribe me...............

2001-06-18 Thread Peter Alfors
goto: http://jakarta.apache.org/site/mail2.html     Sachin Mapara wrote:   Please unsubscribe me from this list. Sachin Mapara. Trigyn Technologies Ltd. Tel  :- 518 86 86 (O)  Ext.- 537     95251 - 44 10 39 (R) begin:vcard n:; x-mozilla-html:FALSE org:http://www.irista.com/logo/iri

Re: struts-config.xml - How do I open a "success" path as a new window???

2001-06-15 Thread Peter Alfors
- Original Message - > From: "Craig R. McClanahan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 14, 2001 7:33 PM > Subject: Re: struts-config.xml - How do I open a "success" path as a new > window??? > > On Thu, 14 Jun 20

Re: Servlet log

2001-06-14 Thread Peter Alfors
In the tomcat/conf/server.xml file, search for: Hi, > > I have a question regarding servlet log mechanism. > > Where does the servlet.log(String msg, int level) write the message to? Can > I set the destination in some configuration file? In Tomcat, there is a > directory users\www\logs. Ho

Re: struts-config.xml - How do I open a "success" path as a new window???

2001-06-14 Thread Peter Alfors
Your javascript code looks correct. :) However, if at all possible, I would avoid using javascript. Basically, because the user may have javascript turned off in their browser. Pete Abraham Kang wrote: > Hi Linnea, I think it would be easier to use href="javascript:window.open('yourAction.d

Re: struts-config.xml - How do I open a "success" path as a new window???

2001-06-14 Thread Peter Alfors
What happens when you execute this? I would think that this should do what you want?? Pete > -Original Message- > From: Linnea Ahlbeck [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 13, 2001 1:52 AM > To: [EMAIL PROTECTED] > Subject: struts-config.xml -

Re: javascript validation

2001-06-14 Thread Peter Alfors
Adding javascript validation to a JSP file is done the same way you would in an HTML file. Pete rajiv mulay wrote: > Hi, How to do javascript validations in the jsp pages. rajiv begin:vcard n:; x-mozilla-html:FALSE org:http://www.irista.com/logo/irista.gif";>Bringing Vision to Your Supply Ch

Re: Please confirm css ok from client-side & jscript validation

2001-06-14 Thread Peter Alfors
The source (src) attribute should work. This can be very helpful if you have common methods that you want to share across multiple pages. notice the leading '/' and also, do you have the ending tag, this is required as well. As for the js extension... here is an snippet from "HTML: The Def

Re: How do make sure that the ActionForward will be on the whole screen

2001-06-13 Thread Peter Alfors
In an anchor: link text or in a button (parent frame): or in a button, uppermost frame (in cases of multiple framesets): -- you will want to check the syntax for the javascript. HTH, Pete Abraham Kang wrote: > Joyce,I do not think there is a struts way of doing this but yo

Re: javascript multiple submit

2001-06-13 Thread Peter Alfors
Looks like javascript does not know the name of your form. I have not used the html:form tag before, but from looking at the code, it does not look like having the form named in your xml document is going to set the form name. The html:form tag takes an attribute 'name' that you could set: or

Re: Please confirm css ok from client-side & jscript validation

2001-06-13 Thread Peter Alfors
You can either link to a javascript file: Or include the javascript code directly: function myFunct() {} and call methods from whichever event you want: onLoad, onClick, etc HTH, Pete Chuck Amadi wrote: > I have placed the CSS file in my struts-bbnpa( named web app) and >

security design question

2001-06-12 Thread Peter Alfors
Hello all, I have a design question for the web gurus out there. Initialy, our security only determined if the current user could access the desired page. However, now, we are taking it one step farther. Depending on the user, fields must either be displayed or not. Since our pages currently

Re: Generating frameset with PDF

2001-06-12 Thread Peter Alfors
Im not sure if I understand the question fully... Do you need to create the PDF on the fly? or just point to existing PDF files? Do you have a question on framesets? If you already have the PDF file, you can display it in your frameset the same as you would any other HTML, JSP file. However, the

Re: Can anyone help with solving the "BACK" button problem, in th e browser?

2001-06-07 Thread Peter Alfors
his as a META tag only as a header. > > I added the following to one of my action classes and the perform() > method was called when I pressed 'Back': > > response.addHeader("Pragma","no-cache"); > response.addHeader("Cache-control","

Re: problem with invoking struts-template!!

2001-06-07 Thread Peter Alfors
I haven't done anything with templates, so this may not be correct. However, if you are referencing a style sheet in your header (on a regular page), the link: /struts-bbnpa/css/bbnpa.css is a reference from the context, not the WEB-INF directory. Therefore, you would want to change your link

Re: How to add .props files to web.xml

2001-06-07 Thread Peter Alfors
ge - > From: "Peter Alfors" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 07, 2001 9:56 AM > Subject: Re: How to add .props files to web.xml > > > You do not need to specify the style sheet in the web.xml file. You can > ju

Re: Can anyone help with solving the "BACK" button problem, in th e browser?

2001-06-07 Thread Peter Alfors
mbed in your page which will force the page to reload (not > just display a snapshot). This should enable handling the situation in > scriptlets or your action class. > > -Original Message----- > From: Peter Alfors [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 07, 2001

Re: Can you do this with internationalisation.

2001-06-07 Thread Peter Alfors
The users locale is stored in the session key: Action.LOCALE_KEY. The ActionServlet class defines this key during the first request (but only once). Therefore, you can redefine this after the user selects the flag of his choice. The message taglib uses this locale when choosing the appropriate res

Re: How to add .props files to web.xml

2001-06-07 Thread Peter Alfors
You do not need to specify the style sheet in the web.xml file. You can just point to it in each of your pages. However, if you wanted it configurable, you could over-ride ActionServlet.init() to take in the location of the style sheet and save it as an attribute of the session. Then, each of yo

Re: Can anyone help with solving the "BACK" button problem, in the browser?

2001-06-07 Thread Peter Alfors
Depending on which browser you use, and the data on the page, the back button may cause (or ask) the page to reload. However, some browsers (like IE) only display a snapshot of what the last page rendered to. Therefore, you cannot use scriptlets or the action class. However, you are able to kick-

Re: Q: How to add .props files to web.xml

2001-06-06 Thread Peter Alfors
To specify the application resources, you add the following to your web.xml file... ... application com.myResources.ApplicationResources ... Pete Wes Bramhall wrote: > Sorry for being a complete newbie, but what is the XML for adding this

Re: Action before loading a page

2001-06-05 Thread Peter Alfors
I don't think that you have control of when the frames are loading. The browser attempts to load both frames simultaneously. (Please correct me if I am wrong) Therefore, you would have to do something kinda funky (javascript) to instruct another frame to 'reload' after the current frame finishes.

Re: Resources clarification - is there a work around

2001-05-31 Thread Peter Alfors
One additional thought. If you find it easier to have a bundle for each page, then you could combine both ideas. Use a more defined naming convention, and combine them into one bundle during your build. Peter Alfors wrote: > We are currently using two different resource bundles. One for

Re: Resources clarification - is there a work around

2001-05-31 Thread Peter Alfors
duplicates; and you probably want to use > the same resource names anyway to keep a consistency. Anyone else have any > ideas? > > - Original Message - > From: "Peter Alfors" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, May 30, 20

Re: Resources clarification :^)

2001-05-30 Thread Peter Alfors
You could combine all of your property files during your build. This would allow you to have as many different property files as you want. However, you need to be careful that you do not have duplicate names across multiple files. HTH, Pete Jonathan wrote: > Hello all. It appears that the

Re: struts framework without its TAG LIBRARIES in jsp pages how?

2001-05-24 Thread Peter Alfors
when you submit a form, you just need to set the action to the action class that you want in invoke. If you have your web.xml set up to use the Struts ActionServlet whenever the desired mapping is encountered, then you should be fine. Check out the Struts example application to make sure that y

  1   2   >