Struts and Jsessionid control

2006-08-16 Thread Aladin Alaily
Hello, My understanding is that when the users turn off cookies, struts automatically encodes the session id and saves it in the URL, using encodeURL. Now, I'd like to know if there is a way to prevent this (encoding the session) so that when the users disable cookies sessions simply don't work.

Re: check box should behaves as radio button

2006-08-16 Thread Aladin Alaily
The problem with checkboxes doesn't rest with struts but with the http protocol. See, when a checkbox is checked, data is sent to the application. When the checkbox is unchecked, nothing is sent to the app... but the original value is retained (since it was checked earlier). A possible solution,

Retrieving the from web.xml

2006-08-09 Thread Aladin Alaily
Hello, I have a filter in which I check that the users are properly authenticated. When the user needs to be redirected, I am able to retrieve the following: 1) context path (using the request) 2) action path (using the ActionConfig) ... but I cannot retrieve the url-pattern from web.xml! I ha

Re: Doofus tiles question - problem nesting

2006-04-15 Thread Aladin Alaily
Rick Reumann wrote: Rick Reumann wrote: mainLayout... -- ??? I'm probably doing this wrong I needed to do it this way and it works!: After I do that, my header.jsp that is included as a tile in my mainLayout can just do: (I must say the docs on this Tiles st

Re: Doofus tiles question - problem nesting

2006-04-15 Thread Aladin Alaily
Rick Reumann wrote: I know I'm doing something stupid here, but would appreciate the help. All I want to do is be able to insert dynamic content (like for example a submenu list of links) into my header.jsp that is part to my mainLayout.jsp. What I have been trying is (html stripped out)...

Re: Tiles headaches - should be simple - driving me nuts here...

2006-04-14 Thread Aladin Alaily
Rick Reumann wrote: Aladin Alaily wrote: Did you revert back to 1.2.7 or is this message appearing with 1.2.9? I'm getting the same error with 1.2.7 or 1.2.9. It's so frustrating because I'm comparing the jars between an app where I have things working and this current on

Re: Tiles headaches - should be simple - driving me nuts here...

2006-04-14 Thread Aladin Alaily
Rick Reumann wrote: Aladin Alaily wrote: Hi Rick, Your configuration looks okay to me (for a 1.2.7 struts app - I don't know about 1.2.9 because I haven't made the jump yet). What kind of errors did you get when you put: http://struts.apache.org/dtds/tiles-config_1_3.dtd&q

Re: Tiles headaches - should be simple - driving me nuts here...

2006-04-14 Thread Aladin Alaily
Hi Rick, Your configuration looks okay to me (for a 1.2.7 struts app - I don't know about 1.2.9 because I haven't made the jump yet). What kind of errors did you get when you put: http://struts.apache.org/dtds/tiles-config_1_3.dtd";> in your tiles-definitions.xml? The errors may be indicati

Re: Custom tag question

2006-04-10 Thread Aladin Alaily
... with tag files ... Aladin Alaily wrote: Hi Dave, I'm also wary of doing such a thing (hence why I'm posting here) because I would essentially be mimicking the servlet container's job. Now if it's possible to do what I'm trying to with files then I'll give

Re: Custom tag question

2006-04-10 Thread Aladin Alaily
Hi Dave, I'm also wary of doing such a thing (hence why I'm posting here) because I would essentially be mimicking the servlet container's job. Now if it's possible to do what I'm trying to with files then I'll give that a shot instead. Thanks. Aladin Dave

Custom tag question

2006-04-10 Thread Aladin Alaily
Hi, I have a question pertaining intregrating a custom tags with a struts tag. I want to know if there exists a "best practise" when trying to do what I'm doing (other than not doing it). I am trying to write a custom tag which wraps another tag in the following way: HTML Written: Desir

Re: Tags for Pagination

2006-01-23 Thread Aladin Alaily
That was my first reaction too. As a matter of fact, I am using version 1.1 and it works quite nicely. You should most definetly revisit it, the flexibility of external sorting & sublists are major improvements. Aladin Rick Reumann wrote: Aladin Alaily wrote: After compile displa

Re: Tags for Pagination

2006-01-23 Thread Aladin Alaily
Hi Srini, I have a table that contains 32000 records and was in the same predicament as you. I wanted to subsets of the records rather than the whole thing at once. Also the current release version of displaytag doesn't allow you to paginate (or sort) sublists, you might be surprised to kno

Re: Tiles question

2006-01-22 Thread Aladin Alaily
Thanks Paul. Aladin Paul Benedict wrote: Aladin, You cannot nest JSP tags inside JSP tag attributes. Split them up: JSP 1.2: JSP 2.0: Paul __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://m

Tiles question

2006-01-22 Thread Aladin Alaily
Hello All, I am trying to pass a string (defined in tiles-defs.xml) to my main layout, to be used as a key in a tag. My Setup: In main-layout.jsp === ... " link="<%=(String)request.getAttribute("page") %>"/> ... In tiles-defs.xml == ... page 1 ... ...

Proper way of doing internationalization

2005-12-01 Thread Aladin Alaily
Hello, In internationalizing a struts-tiles application, in your opinion, is it better to internationalize the properties file or the tiles configuration file? and why? Thanks for you thoughts. Aladin - To unsubscribe, e-mail:

Re: [again] SSL switching: why isn't it part of struts?

2005-11-25 Thread Aladin Alaily
Hi Paul, That's a very interesting point. I didn't think about that. But isn't it a bad idea to hard-code your path(s) that require SSL. What happens if a decision is made to change the action servlet's mapping from, say *.do to /servlet/*. You would have to remember to change the path(s) in t

[again] SSL switching: why isn't it part of struts?

2005-11-25 Thread Aladin Alaily
Hello, It seems as though my last post got mixed up in another thread. Thanks for pointing this out Danny. As a result, here is a repost... Does anyone know why SSL & non-SSL switching is not included in struts? After having configured the main web server to support SSL, isn't switching as sim

SSL switching: why isn't it part of struts?

2005-11-25 Thread Aladin Alaily
Hello, Does anyone have any idea as to why SSL protocol switching isn't part of struts? After having configured the main web server to support SSL, isn't switching as simple as adding an "s" to http? Are there any considerations (for exclusion) that I am missing here? Thanks Aladin -

Re: Has anybody experienced this weirdness with taglibs?

2005-11-18 Thread Aladin Alaily
self should always resolve to the image, the question is whether something is stopping it (eg: a filter). Gluck. My knowledge ends about here I'm afraid. --- Aladin Alaily <[EMAIL PROTECTED]> wrote: Hmmm... that's interesting. It looks as though I have no control on whether or not

Re: Is there an easy way to print error messages

2005-11-18 Thread Aladin Alaily
Problem solved... must be Friday. Aladin > Hello, > > I am using struts 1.2.7 and am having trouble outputing error messages for > specific fields. > > If I have the following (in a form): > > > > and in my action I do something like: > > messages.add("name", new ActionMessage("error.name.requi

Is there an easy way to print error messages

2005-11-18 Thread Aladin Alaily
Hello, I am using struts 1.2.7 and am having trouble outputing error messages for specific fields. If I have the following (in a form): and in my action I do something like: messages.add("name", new ActionMessage("error.name.required")); super.saveErrors(request.getSession(), messages); Now

RE: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Aladin Alaily
-> Tomcat's > jsp-api.jar -> Tomcat's > > Can somebody help me? Are they different in jboss for some reason? > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Aladin Alaily > Sent: Thursday, November 17, 2005

Re: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Aladin Alaily
checking for example. I thought that the > requests for images are exactly the same as a request > for any other resource, ie, a standard HTTP request > and therefore the SID is appended unless you > explicitly turn it off. Your web server should > resoplve the path of the url whet

Re: Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Aladin Alaily
That's not normal... If you add the semi-colon and the jsessionid to an image src, then the image is not going to resolve properly. That's the behaviour that I'm noticing - with the jsessionid, the links & images don't resolve. Aladin > That's normal. What&#

Has anybody experienced this weirdness with taglibs?

2005-11-17 Thread Aladin Alaily
Hi, I am using and tags but when they are evaluated a jsessionid is appended: Image Example: -- GIVES height="10" width="1"> Link Example: - " rel="stylesheet" type="text/css"> GIVES rel="stylesheet" type="text/css"> Has anyone experienced this before? If

Re: PATH

2005-10-29 Thread Aladin Alaily
Hi Jim, You said that you have a struts application in $TOMCAT_HOME/webapps/STRUTS_APP and you want it to access content in the $TOMCAT_HOME/webapps/EMAIL_APP. The following may be helpful for what you are trying to do. Tomcat as a policy file which dictate what an application can and cannot

Re: Handling invalid sessions

2005-10-17 Thread Aladin Alaily
Hi Jadeler, In response to your question about managing session objects, I would propose two methods: 1) Write a CustomRequestProcessor (which extends the struts RequestProcessor), and put your management code in there. As a struts programmer, you know that all requests *should* go through

Re: How to remove the unwanted ???en_US string from ActionMessages

2005-09-27 Thread Aladin Alaily
Hi Amin, Writting this: >ActionMessage message = new ActionMessage("Username/Password cannot > be empty"); will not solve the problem. What you need to do to get rid of the following: > ???en_US.Username/Password cannot be empty??? is: 1) Add a key/value pair to your application.propertie

Re: configure DTD version to use for validation of struts-config

2005-06-25 Thread Aladin Alaily
Hi Nicole, You have a typo. You don't want global-exceptionS but rather global-exception. Remove the S and everything should work. Aladin nicole.wollgast wrote: Hi, I am using struts and have a struts-config.xml that is valid against struts-config_1_1.dtd (I checked it with xmlstarlet, th

Re: How to convert line breaks to using bean:write

2005-05-26 Thread Aladin Alaily
Hi Nils, I don't know if this is what you mean (or why you would want to do this instead of just writing )... but you could have something like this: and in your properties file, you have the following: line.break= Good Luck! Aladin --

Re: html:img question

2005-05-26 Thread Aladin Alaily
Dakota Jack wrote: Just out of curiosity, when you don't seem to have internationalized the image, why would you want to do that with the alt? The application that I'm building is multilingual. As such, the "alt" property of my images should be converted to the client's locale. Having said t

Re: html:img question

2005-05-25 Thread Aladin Alaily
Thanks Chris. I must be going blind ;) Aladin Chris Loschen wrote: Hope that helps! Chris Loschen -Original Message- From: Aladin Alaily [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 6:39 PM To: Struts Users Mailing List Subject: html:img question Hi Guys, Maybe

html:img question

2005-05-25 Thread Aladin Alaily
Hi Guys, Maybe I've been working too long... but I can't seem to figure out the following. I am trying to create an tag and dynamically set the alt attribute with the application properties file... but it doesn't seem to work. Here is what I'm doing: and in my application.properties fi

Re: Security in Struts

2005-05-25 Thread Aladin Alaily
Hi Tarek, If you want action level security, just write a base action that authenticates the user, and which all other actions extend. In the base action, if the user is valid, then processing continues. Otherwise, the user is redirected to the logged-out page. I would put this logic in th

RE: Struts, xhtml & bad tag syntax ... maybe nice in 1.7

2005-05-24 Thread Aladin Alaily
Struts, xhtml & bad tag syntax ... maybe nice in 1.7 >>> >>> >>> Also note that adding the attribite: >>> >>> xhtml="true" >>> >>> ...to the usual tag has the same effect. I don't know if >>> one >>> i

RE: Struts, xhtml & bad tag syntax ... maybe nice in 1.7

2005-05-24 Thread Aladin Alaily
se. If you were to > use > Tiles or other dynamic inclusions, this would not be applied to the > internal > pages. > > Thanks, > Paul > > -Original Message- > From: Aladin Alaily [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 24, 2005 1:01 PM > To: Struts User

RE: Struts, xhtml & bad tag syntax ... maybe nice in 1.7

2005-05-24 Thread Aladin Alaily
personally go with the attribute > because to me it seems slightly more obvious, but I don't know if it > matters either way. > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > On Tue, May 24, 2005

RE: Struts, xhtml & bad tag syntax ... maybe nice in 1.7

2005-05-24 Thread Aladin Alaily
> >> Cheers >> >> Christopher Marsh-Bourdon >> www.marsh-bourdon.com >> >> >> >> -Original Message- >> From: Aladin Alaily [mailto:[EMAIL PROTECTED] >> Sent: 24 May 2005 16:13 >> To: Struts Users Mailing List >> Cc: user@struts.apache.o

Re: Struts, xhtml & bad tag syntax ... maybe nice in 1.7

2005-05-24 Thread Aladin Alaily
nal Message - > From: "Aladin Alaily" <[EMAIL PROTECTED]> > Sent: Tuesday, May 24, 2005 4:12 PM > > >> Hello, >> >> Has anyone tried to make the struts tags xhtml compliant? Here is what >> I >> mean. >> >> I have noticed tha

RE: Struts, xhtml & bad tag syntax ... maybe nice in 1.7

2005-05-24 Thread Aladin Alaily
ource in your browser). Aladin > > Cheers > > Christopher Marsh-Bourdon > www.marsh-bourdon.com > > > > -Original Message- > From: Aladin Alaily [mailto:[EMAIL PROTECTED] > Sent: 24 May 2005 16:13 > To: Struts Users Mailing List > Cc: user@strut

Struts, xhtml & bad tag syntax ... maybe nice in 1.7

2005-05-24 Thread Aladin Alaily
Hello, Has anyone tried to make the struts tags xhtml compliant? Here is what I mean. I have noticed that whenever an html component is generated using the html tags (or any other tag from the libraries), they are usually not closed. For example, when generating a form input field using: the

Re: Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-18 Thread Aladin Alaily
Hi Pham, I think this was mentioned earlier. There are two things you can do: 1) Use a filter with a url-map to your action 2) Use security constraints Aladin Pham Anh Tuan wrote: Hi all, This is the second time I post this message for help :(. I don't know how to restrict access to certain mappi

Re: Subclassing ActionForward

2005-05-18 Thread Aladin Alaily
> I do not recommend using a filter. You are much better off using what > you've already invested your time in (Struts). I disagree. I think that a filter is best suited for what you are trying to accomplish. Whenever a request is submitted to your application, you should verify that the user i

Re: Struts 1.2.7

2005-05-18 Thread Aladin Alaily
Hello, For those of you who want to try out 1.2.7 and are having trouble finding a link to it (or are just lazy ;)) here is where I found it: http://cvs.apache.org/dist/struts/v1.2.7/ Feel free to make corrections to the link above. Aladin > At 10:54 AM -0400 5/18/05, Aladin Alaily wr

Re: need struts source code.

2005-05-18 Thread Aladin Alaily
I will assume you are looking for the struts source code for the current release. In any case, I think what you are looking for is here: http://struts.apache.org/download.cgi Aladin ps. A google search of "struts download" (without the quotes) will yield the link above. > Can any body pleas

RE: Struts 1.2.7

2005-05-18 Thread Aladin Alaily
ginal Message----- > From: Aladin Alaily [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 18, 2005 10:54 AM > To: Struts Users Mailing List > Subject: Struts 1.2.7 > > > Hi Everyone, > > I was just curious if anyone has been using struts v. 1.2.7? > > If so, what d

Struts 1.2.7

2005-05-18 Thread Aladin Alaily
Hi Everyone, I was just curious if anyone has been using struts v. 1.2.7? If so, what do you think of the new features? Personally, I think that being able to save the errors in the session is a great addition (I wrote a hack for v. 1.2.4 to do exactly that). Thanks, Aladin -

Re: How to get the ActionErrors object from the request

2005-05-12 Thread Aladin Alaily
Hi Néstor, You can do that with the following code: ActionErrors errors = (ActionErrors) request.getAttribute(Globals.ERROR_KEY); Aladin > Hi > > Does somebody know how I can get the ActionErrors object from the > request??? > > Regards, > > Néstor Boscán > -

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread Aladin Alaily
Hi >> 1) Maintainability: if you want to change the timeout to 30 minutes (and >> you have 50 jsp pages), then you have to make the change 50 times. > Umm..ya...that's why I explicity said "preferrably via an include or let a > filter do it for you". Missed the filter part :) >> 2) Business Logi

Re: Opening a NEW browser for a 2nd content type from an action

2005-05-12 Thread Aladin Alaily
Hi Dave, This is pretty straightforward. In browser "a", you have a button that says: "Export to PDF" The code would look like this: When the user clicks on the button, the action "exportToPdf.do" opens an ServletOutputStream and writes whatever you want. The headers are also set to the

Re: Best practice for redirecting on session timeout?

2005-05-12 Thread Aladin Alaily
Hi Adam, One possibility is to have the timing out of the session be managed by your container and have the redirection issued by a filter. If you are using Tomcat 4+ this is very straightforward to implement. In the web.xml, you declare your session-timeout value and your filter class. After

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Aladin Alaily
Dave Newton wrote: Isn't that where ActionForms are? In any case, nobody said it couldn't be encapsulated in some nice, tidy object. You're absolutely right. This is exactly what I do. It's just that when Paul said the following: > I put my output data > exclusively in request or session attri

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Aladin Alaily
Hi Paul, Doesn't putting all of the output data in the session or even in the request add even more clutter and confusion? When the data is nicely packaged in an object you can manipulate it more easily and you can keep track of where the information came from. Although using an ActionForm fo

Re: is there a better way of creating SQL queries from form objects ?

2005-05-09 Thread Aladin Alaily
Hi Sean, iBatis works like a charm for what you're describing. You don't have to learn a new language. Just use SQLMaps and you're done. Good Luck. Aladin Sean Burlington wrote: Hi all, this is such a common problem that I'm sure there must be loads of advice on how to deal with it - I j

Re: Session Scope-Form Bean Reset Method Executing Every Request

2005-05-08 Thread Aladin Alaily
Hi Mehmet, The reset method of your form bean will be executed every time it passes through the controller on a redirect, which is handled as a new request. As such, if you do not want to have the reset method called you should forward your pages rather than redirecting them (I don't think this

Re: Integrating reports in Struts Framework

2005-05-08 Thread Aladin Alaily
Hi Shajee, You might want to look into iText for generating PDF reports. In addition, there is also the POI library for generating excel workbooks. Both can be easily integrated into your struts application. Good luck. Aladin alec wrote: try jasperreport. I used it to generate pdf for browser