Why would I want to use the ActionForm validate() method

2003-08-19 Thread Madhu Nair
Hi, Why would I want to use the Struts ActionForm validate() method when I can achieve the same functionality using Javascript? Regards , Madhu - Madhu Nair Member of Technical Staff, Persistent Systems Private Limited, Pune 411016 INDIA. Tel:

Re: Why would I want to use the ActionForm validate() method

2003-08-19 Thread vellosa
What happens of the user disables javascript in their browser? from:Madhu Nair [EMAIL PROTECTED] date:Tue, 19 Aug 2003 07:05:01 to: [EMAIL PROTECTED] subject: Re: Why would I want to use the ActionForm validate() method Hi, Why would I want to use the Struts

RE: bean:message , reads only once the message from MessageResource, is it caching messages for later use?

2003-08-19 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
thanks James, is it cause a performance problem calling formats.clear() for each message , caching feature seems good, I must use this caching feature also , it seems to me meaningfull to call formats.clear() when the my cache reloaded ,, my DAO code inside getMessage only reads messages from

Re: log4j configuration and usage

2003-08-19 Thread Vikram Goyal
Hi Viral, This is not the log4 list. Try the log4j list or read the several articles on how to use it. http://jakarta.apache.org/log4j/docs/documentation.html PS: Which PU are you in at Infy? Regards, Vikram - Original Message - From: Viral_Thakkar [EMAIL PROTECTED] To: Struts Users

Re: A JSP based JDBC query client?

2003-08-19 Thread Vikram Goyal
You could also use the DB Tag library from Jakarta for trivial applications: http://jakarta.apache.org/taglibs/doc/dbtags-doc/intro.html Regards, Vikram - Original Message - From: David Friedman [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Martin Naskovski [EMAIL

RE: Why would I want to use the ActionForm validate() method

2003-08-19 Thread Madhu Nair
Hi, Why would I want to use the Struts ActionForm validate() method when I can achieve the same functionality using Javascript? I assume that the user would never disable javascript. Regards , Madhu - To unsubscribe,

Re: A JSP based JDBC query client?

2003-08-19 Thread Kwok Peng Tuck
DBTag some times will print out the entire sql statement in the browser output :( . Not good in this case. jstl might be better in this case . Vikram Goyal wrote: You could also use the DB Tag library from Jakarta for trivial applications:

RE: get data source in servlet

2003-08-19 Thread Navjot Singh
if your servlet is extending ActionServlet, you can retreive the DataSource from ServletContext.getAttribute(Globals.DATA_SOURCE_KEY). You may have to append module key to DATA_SOURCE_KE if you are using modules. If your servlet is NOT extending ActionServlet, better move( or copy?) your Data

Re: Suggestions for Calendar Popup taglib?

2003-08-19 Thread Adam Hardy
On 08/19/2003 12:29 AM Edgar Dollin wrote: One of the problems I had with some struts tags, i.e. html:options, is that there is a repetitive download of the same text. In large pages, especially nested pages, the size of the html becomes excessive, which of course is aggravated by the tendency of

Re: Why would I want to use the ActionForm validate() method

2003-08-19 Thread Vipin Bhatia
because malicious code can be executed if u r using only java script for validation by not using the browser to submit forms, many companies totally do not use Java script because it only creates problems and solves few things when you want your application to run on all platforms and all

Re: [OT] Question about Servlets Threads

2003-08-19 Thread Jan Zimmek
Hi, I think you're right, but let me ask a last question please ;-) here are some source snippets of my classes: MyServlet (which handles all incoming requests like ActionServlet in struts and populates Request/Response and the action to execute to the new created WebThread):

[Q] How do I use logic:equals for 2 iterates?

2003-08-19 Thread Riaan Oberholzer
How would I do this in Struts 1.0.2? A request/session/page has two beans, both an array of objects with bean properties. now I do: logic:iterate id=var1 name=bean1 logic:iterate id=var2 name=bean2 * Here I want to compare a property of var1 with a property of var 2 - what is the

Re: list Map iby c:forEach

2003-08-19 Thread Mark Lowe
Can I see where you add this object with the properties id and name? And what you wrap it in? You haven't just populated a map.. On Tuesday, August 19, 2003, at 05:34 AM, Jiri Chaloupka wrote: Little yes, thanks ... first for second way: c:forEach var=map items=${myMap} Key: c:out

Re: list Map iby c:forEach

2003-08-19 Thread Jiri Chaloupka
I have it in anotrer comp, not here, so I try as i remember. Is there ane better way to return object such a this than HashMap? I have java class with method: public HashMap getMenu() { ... (some logic which looking at cache if there is hashmap which i need) if(notChached) { res =

RE: commons-fileupload.jar

2003-08-19 Thread Filip Polsakiewicz
Thanks alot. This worked out fine. Greetz, Filip -Original Message- From: Reinhard Nagele [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 8:59 AM To: Struts Users Mailing List Subject: Re: commons-fileupload.jar Download Struts 1.1 again. I think they packaged a wrong

Session expired

2003-08-19 Thread Filip Polsakiewicz
Hi, is there any way to redirect y user to a jsp if the session is expired without checking for an expired session within each single jsp? Thanks, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Please Guide : STRUTS Versions

2003-08-19 Thread Riaan Oberholzer
I think your documentation is old... Struts 1.1 was officially released on June 30 (I think) and is now also an official and stable release, no more beta You can do a lot more with 1.1 tags than in 1.0.2... --- [EMAIL PROTECTED] wrote: Hi All, I need to make a decision whether to use

Re: Session expired

2003-08-19 Thread Riaan Oberholzer
Use a realm. --- Filip Polsakiewicz [EMAIL PROTECTED] wrote: Hi, is there any way to redirect y user to a jsp if the session is expired without checking for an expired session within each single jsp? Thanks, Filip

Re: Please Guide : STRUTS Versions

2003-08-19 Thread Yann Cébron
Hi All, I need to make a decision whether to use STRUTS 1.0 or STRUTS 1.1 for the application that I am going to develop. The application is fairly a large sized application. I would like to know which would be a better choice out of your experience. I have gone through the documentation @

exception in actionfrom class.

2003-08-19 Thread deepaksawdekar
I am using the containment design patter for the ActionForm. My action form will look like this. public final class ContactForm extends ActionForm { private ContactInfo contactInfo; public int getContactid() { return contactInfo.getContactId(); } public

RE: Building Struts 1.1 against servlet 2.2/2.3

2003-08-19 Thread kosh.podder
Thanks Craig - I'll build against 2.3, and follow-up if I hit any issues. Kosh -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: 18 August 2003 16:54 To: Struts Users Mailing List Subject: RE: Building Struts 1.1 against servlet 2.2/2.3 On Mon, 18 Aug 2003

staticjavascript.jsp caching?

2003-08-19 Thread Adolfo Miguelez
Pertaining to the staticJavascript.jsp page in the validator, I have to defend with my boss the position that it is actually cached by the browser so it is not downloaded for every request. However we have made some tests and it is actually not cached. How could I convince my boss? What am I

Re: staticjavascript.jsp caching?

2003-08-19 Thread Frat TRYAK
The browser you are dealing with is important here, and also last modified date of the js file is important (not sure about the second one). To get rid of these kind of problems you should change the js file name and the src artribute where you call the js file, to have it updated everywhere. F.

Re: Session expired

2003-08-19 Thread Kwok Peng Tuck
What if you check from your action before redirecting to a jsp ? Filip Polsakiewicz wrote: Hi, is there any way to redirect y user to a jsp if the session is expired without checking for an expired session within each single jsp? Thanks, Filip

Re: list Map iby c:forEach

2003-08-19 Thread Mark Lowe
Lets ditch the map and define a menu Bean, this might provide more clarity: public class MenuBean { private int id; private String name; public int getId() { return id; } public String getName() { return name;

Re: list Map iby c:forEach

2003-08-19 Thread Jiri Chaloupka
Aha, MenuBean such this I tried to use at begin of trying to do this, it did not work but centrainly for another reason, after it did not flash me to try it again, thaks. I will try it in the evening again. About db id: menu will create links as: a href=/Category.do?id=db.id db.name/a it is

Security and Roles related

2003-08-19 Thread sreekant_gottimukkala
Does STRUTS provide integration with any security framework independent of the underlying application server. Basically I am looking at services like isUserInRole(), getRole() and the sort. Regards Sreekant G @ 98404-65630 This mail was scanned by Interscan Virus Wall of Mailserver at Cathedral

Re: list Map iby c:forEach

2003-08-19 Thread Firat TIRYAKI
You should use ligic:iterate if you have the menu data in your database make a list in your action by using your data object and iterate it. F. - Original Message - From: Jiri Chaloupka [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 2:03

RE: TILES ERROR when using more than one directory

2003-08-19 Thread Holman, Cal
Cameron Did you figure this out? I use a base tag in my template to anchor all tiles jsp files to the single spot in the webapp. You should not have any problems having a more complex directory structure - it is simplified if all the paths are from the same point in the webapp. Cal

Changing application path

2003-08-19 Thread java-dude
Hi, I need to change the base path of my struts application so that there is no prefix on the form actions. For example if my application is deployed in the application server as app.war and I view the source for a jsp with a form on it, say example.jsp, in internet explorer, I see that the

RE: Changing application path

2003-08-19 Thread Alex Shneyderman
The way container works is to deploy an application to its own content. The way your container knows which application a user request refers to is by looking at the prefix of the request. So unless you mount your application onto the ROOT content (prefix /) I can not imagine what you are asking

Re: Changing application path

2003-08-19 Thread Riaan Oberholzer
If it is purely from a coding point of view, then you should (should anyway) use the struts html tags: html:form action=myAction.do The struts tag implementation will take care of inserting the proper prefix. --- java-dude [EMAIL PROTECTED] wrote: Hi, I need to change the base path of my

test

2003-08-19 Thread Frat TRYAK
sorry about this message but i got a mail from ezmlm warning, checking out myself only. F.

RE: Session expired

2003-08-19 Thread Navjot Singh
yes. If you are using servlet 2.3 container, write a filter that can check the session status, if expired will redirect the control to the standard expired.jsp page otherwise the control is passed to thr requested jsp. hth navjot singh |-Original Message- |From: Kwok Peng Tuck

RE: Security and Roles related

2003-08-19 Thread Navjot Singh
struts provide support for JAAS and JAAS further supports the security roles and accesses independent of mechanisms. will that do? hth -navjot |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] |Sent: Tuesday, August 19, 2003 4:38 PM |To: [EMAIL PROTECTED] |Subject:

RE: bean:message , reads only once the message from MessageResource, is it caching messages for later use?

2003-08-19 Thread James Mitchell
-Original Message- From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi) thanks James, is it cause a performance problem calling formats.clear() for each message , I'm not sure how much of a performance hit you would take. The bottleneck in most applications is typically

RE: Session expired

2003-08-19 Thread Filip Polsakiewicz
My problem is, that I already have something around 60 jsps. Now it would be nice to have a workaround so that i don't have to adapt all my jsps and actions. -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 12:58 PM To: Struts Users

RE: Suggestions for Calendar Popup taglib?

2003-08-19 Thread Edgar Dollin
There are ways around it, but why would you go to the trouble of splitting the logic for validation into three pieces (business logic, jsp and struts and then have to work around the issues it creates. Edgar -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday,

[OT] get abs path to my web application root context

2003-08-19 Thread Alen Ribic
Hi All This may be a bit of a silly and of topic question but this is driving me up the wall. ;) I would like to save uploaded files to my application's %app_root%/images/items/ path. How do I get the absolute path to my web application's root directory? e.g. c:/tomcat/webapps/myapp_root/ Thanks

adding a parameter to html:link with a map

2003-08-19 Thread Mike Whittaker
I want to be able to add a literal parameter to a link but I already successfully use html:link page/myPage.do name=myMap / this adds a Map of parameters, but I'd like to be able to add further parameters literally (ie not from a bean). Is there any way I can achieve this, by struts or jstl or

mesage message account

2003-08-19 Thread object worlds
Did you take my message message account off the list ? Is that because that white shit Mark Galbreath said so and that shit Craig Mclanahan agreed. _ Express yourself with cool emoticons - download MSN Messenger today!

Re: Changing application path

2003-08-19 Thread java-dude
The business requires to put their own URL on the application such as :- www.somecompany.com/example NOT as is currently happening :- www.somecompany.com/app/example where the app part of the URL is coming from app.war used to deploy the app. If I can tweak the config of the application so

Re : Changing application path

2003-08-19 Thread java-dude
The business requires to put their own URL on the application such as :- www.somecompany.com/example NOT as is currently happening :- www.somecompany.com/app/example where the app part of the URL is coming from app.war used to deploy the app. If I can tweak the config of the application so

No getter method for property lastName of bean

2003-08-19 Thread Mehran Zonouzi
I kep getting a javax.servlet.ServletException: No getter method for property lastName of bean org.apache.struts.taglib.html.BEAN error message when I try to call the below .jsp page. I am sure I am using the gettter and setter methods with the correct names. I have also tried calling the jsp

RE: Session expired

2003-08-19 Thread David Graham
--- Filip Polsakiewicz [EMAIL PROTECTED] wrote: My problem is, that I already have something around 60 jsps. Now it would be nice to have a workaround so that i don't have to adapt all my jsps and actions. You could add a method to some BaseAction class that performs this check. If all your

NoSuchMethodException?

2003-08-19 Thread Steven Leija
I'm using the ActionMessages object to display a confirmation of an uploaded file. Everything works just fine in my WebSphere Application Developer IDE. When it's deployed to our dev box, i get this message: org.apache.struts.util.RequestUtils - Could not find Java 1.4 encode method. Using

test

2003-08-19 Thread object worlds
_ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Modules explaination...

2003-08-19 Thread Keith Pemberton
I was wondering if someone could provide a website that would explain the module feature of v1.1. Thanks! --- Everything's changing when I turn around all out of my control I'm a mobile... Mobile off the cd Let Go by Avril Lavigne.

RE: TILES ERROR when using more than one directory

2003-08-19 Thread Cameron Hickey
I did not solve this problem, and since I had not gotten any responses, decided to just give up and keep all the templates in the same folder. Your suggested methodology confuses me somewhat... an html:base / tag is supposed to set the references of all files called from a particular JSP to the

RE: Please Guide : STRUTS Versions

2003-08-19 Thread Mainguy, Mike
1.1 is no longer beta. It has been released since the end of July. I haven't heard of any show stopping problems with it and am fairly confident it is a good choice for any projects going forward. I think the document you are referring to is a bit dated. -Original Message- From: [EMAIL

Re: Security and Roles related

2003-08-19 Thread Dan Tran
You can assign a role attribute with multiple role names in the action configuration. Underneath, struts uses isUserInRole to check against the list you provided. However, checking security is better off to let container do it for you. -D - Original Message - From: [EMAIL PROTECTED]

[OT] ssl connection

2003-08-19 Thread Nagendra Kumar O V S
hi, help me... i have configured SSL on weblogic 7.0 using the demo cert and its working fine. now i need to make a connection to 3rd party credit card validator URL from my session bean and get the response. how do i do this. i have tried

[OT] RE: HTTP 404 Not Found on Actions - SOLVED

2003-08-19 Thread Stephen Brown
You'll need to add a JkMount to your httpd.conf file. You probably have JkMount /*.jsp ajp13 so that your jsps work (this maps *.jsp to the Tomcat ajp13 link). You'll need to add something like JkMount /*.do ajp13 so that your Struts actions work too. Steve -Original Message-

RE: [OT] Question about Servlets Threads

2003-08-19 Thread Yee, Richard K,,DMDCWEST
Jan, How long does your thread take to run? Since you are waiting for the thread to finish anyway in your servlet, I'm not sure it is very necessary to start a new thread to process the request. It adds a bit of overhead to process each request since an extra thread is created for every request

Struts to EJB interface strategies

2003-08-19 Thread yan
Hi, Firstly, can anyone recommend a good resource that deals with how you integrate a Web Tier implemented using Struts with the EJB Tier. And also a resource that has an excellent example of how the Struts framework interacts with J2EE. I am looking for more than the basic examples you normally

Re: Changing application path

2003-08-19 Thread java-dude
You are right and I am already using the struts html tag but the action is still being remapped. My jsp form declaration is as follows :- html:form action=example When the application is deployed in app.war it becomes :- html:form action=/app/example This would not ordinarily be a problem

no getter method found

2003-08-19 Thread Mehran Zonouzi
I have the below in my jsp page Last Name: html:text property=lastname/br and this in my ActionForm subclass private String lastName = null; public String getlastname(){ return this.lastName; } public void setlastname( String lastName){ this.lastName =

Globals forwards with LookupDispatchAction

2003-08-19 Thread Matt Raible
I'm using lookup LookupDispatchAction and to ease development, I've defined each of my CRUD methods as a global-forward. For example: forward name=editProfile path=/editUser.do?action=Edit/ However, the problem is that this doesn't work with i18n. What I'd like to do is to have it dynamically

RE: no getter method found

2003-08-19 Thread Yee, Richard K,,DMDCWEST
Actually, my last email was wrong, they should be: public String getLastName() and public void setLastName(); -Richard -Original Message- From: Mehran Zonouzi [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 6:55 AM To: [EMAIL PROTECTED] Subject: no getter method found I have

RE: [OT] RE: J2EE certified

2003-08-19 Thread Micael
Are you interested in getting yourself or an application certified? Do you mean, for example, that you want to get certified as a knowledgeable person or that you have coded an application which for some reason you want to be certified as J2EE compliant? If either is the case, go to

radio buttons in dynamic forms

2003-08-19 Thread Claire Suttle
Hi, I am dynamically creating a form, by preopulating a DynaActionForm. The form is made from an ArrayList, and each object in the array contains the data for one row of a table. I need the user, looking at this page, to be able to select one and only one row in the table - which I am trying

AW: Suggestions for Calendar Popup taglib?

2003-08-19 Thread Ralf E. Stranzenbach
Hi, this calendar popup looks really great. It would be neat, to integrate this directly into some form pages. (not as a pop up) -Ursprüngliche Nachricht- Von: Kruse, Matt [mailto:[EMAIL PROTECTED] Gesendet: Montag, 18. August 2003 16:56 An: Struts Users Mailing List (E-mail) Betreff:

Dealing with images...

2003-08-19 Thread Keith Pemberton
I would like to get some input from you guys as to how best to deal with a group of images. I want to put up a photo album of sorts but I am unsure as to how best to access the directory that they are contained in. I could put an initial parameter in the web.xml file that points to the

RE: mesage message account

2003-08-19 Thread James Childers
Hi! You are not special. There is not a conspiracy to get you because of your skin color, religion, or political beliefs. Your paranoid is unjustified, because you just aren't that important. You are simply a rude person, and most mailing lists have a low tolerance for rudeness. This one is no

RE: Why would I want to use the ActionForm validate() method

2003-08-19 Thread Mainguy, Mike
The short answer is, you cannot always depend on javascript. There is a small percentage (Probably less than 1% I would expect) of users who either disable javascript or don't have it in their browser (e.g. lynx). In these cases you will have no validation. Also there are differences between

Re: staticjavascript.jsp caching?

2003-08-19 Thread Adam Hardy
I think you should also check whether struts is appending no-cache headers to the response. In your struts-config.xml, this is set for the whole website so: controller !-- all pages get HTTP headers to defeat browser caching -- set-property property=nocache value=true/ /controller On

Re: Session expired

2003-08-19 Thread Sloan Seaman
How about a filter? That is what I use. Anything within a certain path first gets checked by my filter and if the user doesn't have a valid session object it redirects them to the login page... This way the code doesn't even know it is happening... You define one in your web.xml like so:

Re: radio buttons in dynamic forms

2003-08-19 Thread Hary
I had a similar problem and this is how I fixed it. Define a new variable somedata in your parent form because you want to tie this to one of the values from your child e.g OrderForm private String selected; private ArrayList orderList; OrderLine OID, price, c:set

RE: no getter method found

2003-08-19 Thread Ditlinger, Steve
public String getLastname(){} Note the capital L -Original Message- From: Mehran Zonouzi [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 6:55 AM To: [EMAIL PROTECTED] Subject: no getter method found I have the below in my jsp page Last Name: html:text

Re: [OT] get abs path to my web application root context

2003-08-19 Thread Emerson Cargnin
Servlet method : getServletContext().getRealPath(/) request has getRealPath, but is depracated. Don't know how to get this inside an action (besides using the depracated method).maybe getting it at init servlet method and saving it under application context. Any other ideas... Alen Ribic

Adding to a Tiles Definition at runtime?

2003-08-19 Thread David Erickson
Is there any possible way to add additional variables to a tiles definition at runtime or to modify them? IE here is a definition: definition name=.menu.Software path=/tiles/menu.jsp putList name=menus add value=Home/ add value=SW1/ add value=SW2/ add value=SW3/ add value=SW4/ add

Re: Session expired

2003-08-19 Thread Mike Deegan
Sloan, Can you provide example code from com.symbol.mc.oms.servlet.SessionFilter Or is that asking too much ?? TIA, Mike - Original Message - From: Sloan Seaman [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 12:17 PM Subject: Re:

RE: Changing application path

2003-08-19 Thread Alex Shneyderman
You are right and I am already using the struts html tag but the action is still being remapped. My jsp form declaration is as follows :- html:form action=example When the application is deployed in app.war it becomes :- html:form action=/app/example This would not ordinarily be a

RE: Dealing with images...

2003-08-19 Thread Mark Galbreath
Keith, I'm not sure, but it seems I remember a photo album example in one of the Java tutorials at java.sun.com. If not, I know there are some at www.gamelan.com. Mark -Original Message- From: Keith Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 11:09 AM To: [EMAIL

RE: mesage message account

2003-08-19 Thread Hue Holleran
How can we miss you if you won't go away? -Original Message- From: object worlds [mailto:[EMAIL PROTECTED] Sent: 19 August 2003 14:42 To: [EMAIL PROTECTED] Subject: mesage message account Did you take my message message account off the list ? Is that because that white shit

[OT] RE: mesage message account

2003-08-19 Thread Mark Galbreath
Actually, I'm an African-American pro-Islamic militant revolutionary who is on this list only to monitor the secret Zionist elitists disguised as Struts developers and gather intelligence for the coming .NET holocaust and world domination. Mark (is only my code name) -Original Message-

RE: Struts to EJB interface strategies

2003-08-19 Thread Mark Galbreath
Last year I was on a team that developed a complex ecommerce for T-Mobile that used Struts 1.0.1 and EJB 1.1. We had the Action classes interfaced with DAOs, which in turn went through a session façade (a single session EJB) which in turn called some 40 different entity beans that, depending on

RE: no getter method found

2003-08-19 Thread Mark Galbreath
getLastname() and setLastname() -Original Message- From: Mehran Zonouzi [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 9:55 AM To: [EMAIL PROTECTED] Subject: no getter method found I have the below in my jsp page Last Name: html:text property=lastname/br and this in my

RE: no getter method found

2003-08-19 Thread Mark Galbreath
see my response to your last email -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 2:34 PM To: 'Struts Users Mailing List' Subject: RE: no getter method found Actually, my last email was wrong, they should be: public String

RE: [OT] get abs path to my web application root context

2003-08-19 Thread Alex Shneyderman
request.getSession ().getServletContext ().getRealPath (/); -Original Message- From: Alen Ribic [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 9:10 AM To: Struts Users Mailing List Subject: [OT] get abs path to my web application root context Hi All This may be a bit

Adding to a tiles definition at runtime?

2003-08-19 Thread David Erickson
Is there any possible way to add additional variables to a tiles definition at runtime or to modify them? IE here is a definition: definition name=.menu.Software path=/tiles/menu.jsp putList name=menus add value=Home/ add value=SW1/ add value=SW2/ add value=SW3/ add value=SW4/ add

Re: Dealing with images...

2003-08-19 Thread Adam Levine
My personal preference has been to store the images in a specific directory, which is defined in an application-specific location, with the image name being set to the unique ID (primary key) in the image table.. that's where I store the mime type, the size, the dimensions, keywords, title,

RE: mesage message account

2003-08-19 Thread Mainguy, Mike
I will put money on the fact that nobody on this list wants to read about your idiotic conspiracy theories. Please amuse yourself by trolling on Slashdot or usenet and stop wasting our time. -Original Message- From: object worlds [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19,

Re: exception in actionfrom class.

2003-08-19 Thread Jing Zhou
The current Struts 1.1 allows you to design form beans (instances of ActionForm) using only String properties. This because the common-beanutils package is not able to cache conversion exceptions and re-display original user's inputs. You are responsible to validate the string properties (using

Re: Session expired

2003-08-19 Thread Yann Cébron
With Struts 1.1 you can also write your own RequestProcessor and overwrite the desired processXYZ()-methods to perform checks like these before executing anything further (e.g. before showing the JSP, before populating a Form etc.). I've successfully used processPreprocess() to check whether a

Re: No getter method for property lastName of bean

2003-08-19 Thread Yann Cébron
2 common pitfalls to try out: 1) did you reload your webapp, in other words: was the struts-config.xml reparsed and your (modified) ActionForm-class reloaded? 2) check your settings for the formbean in the struts-config.xml, is it attached to the action you're using in your form? HTH, Yann

comparators

2003-08-19 Thread Jagannayakam
Hi all , In a action class i have List of FormBeans. I want to have this formbean sorted on one of its parameter say String name . I have a java comparator say NameComparator which implements comparator interface so i implemented method compare(Object o1 , Object o2 ) to compare the name

Re: Session expired

2003-08-19 Thread Adam Levine
I'm betting it would look something like, depending on your business needs: if ( [destination checking, these destionations require a valid session or logged in session] ) { if ( httpRequest.getSession(false) == null || ( [get the session, check for logged in status] == false) ) {

Re: [OT] Question about Servlets Threads

2003-08-19 Thread Jan Zimmek
- Original Message - From: Jan Zimmek [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 9:02 PM Subject: Re: [OT] Question about Servlets Threads Hi, - How long does your thread take to run? the thread will internally invoke a

RE: no getter method found

2003-08-19 Thread Ditlinger, Steve
This question comes up often enough that it probably warrants a short lesson in JavaBeans. If a property is named lastname, the corresponding getter should be named getLastname() and the setter should be named setLastname(). What's more the parameter type for the setter must match the return

Re: Changing application path

2003-08-19 Thread Jeff Kyser
I know you can map the 'default' context ( '/' ) to a particular context in Tomcat, as we did that on an app I worked on. Hence, we could access the app as: http://www.somecompany.com/ and http://www.somecompany.com/OrderEntry -jeff On Tuesday, August 19, 2003, at 09:08 AM, java-dude wrote:

Re: [OT] get abs path to my web application root context

2003-08-19 Thread Claire Suttle
If you want to get the absolute path from within a Form or Action class, use: ServletContext serv = servlet.getServletContext(); String realPath = serv.getRealPath(filepath); filepath is the relative path from the root i.e. /images/items/path or /images/items/path/filename.gif You have

RE: mesage message account

2003-08-19 Thread Bill Chmura
I've been off the list for awhile, and just wanted to double check that conspiracy theorys were still tolerated on fridays... -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 2:19 PM To: 'Struts Users Mailing List'

[OT] RE: mesage message account

2003-08-19 Thread Mark Galbreath
yes, but you have to let the conspiracy build a bit! it takes a few days to get the anthrax to him through the mail. -Original Message- From: Bill Chmura [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 4:15 PM To: 'Struts Users Mailing List' Subject: RE: mesage message account

RE: no getter method found

2003-08-19 Thread Paananen, Tero
Last Name: html:text property=lastname/br and this in my ActionForm subclass private String lastName = null; public String getlastname(){ return this.lastName; } public void setlastname( String lastName){ this.lastName = lastName; }

Re: [OT] Question about Servlets Threads

2003-08-19 Thread Joseph Fifield
Given this statement: The Thread is simply needed, so that the Globals class can return the current Request/Response-Object at any time and anywhere within the rest of my source, without passing them as parameter. The ThreadLocal solution mentioned in an earlier post should work fine.

RE: mesage message account

2003-08-19 Thread Mainguy, Mike
Only if they involve Microsoft, the CIA, and/or the Oil Cartels... -Original Message- From: Bill Chmura [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 4:15 PM To: 'Struts Users Mailing List' Subject: RE: mesage message account I've been off the list for awhile, and just

Re: NoSuchMethodException?

2003-08-19 Thread David Graham
--- Steven Leija [EMAIL PROTECTED] wrote: I'm using the ActionMessages object to display a confirmation of an uploaded file. Everything works just fine in my WebSphere Application Developer IDE. When it's deployed to our dev box, i get this message: org.apache.struts.util.RequestUtils

Re: Session expired

2003-08-19 Thread Sloan Seaman
First off let me state that mine is a bit complicated since it gets some config info from a static object I stripped out what I could to make it more simple...but the whole version of mine gets the redirect url and if it is enabled or not from a static configuration object that is created

RE: no getter method found

2003-08-19 Thread Yee, Richard K,,DMDCWEST
Mark, I'm not sure which response you are referring to, but getLastname() and setLastname() is wrong if the member variable is called lastName. Mehran, basically, the property value of your html:text tag needs to match the name of the member variable in your form bean. If you have: private String

  1   2   >