RE: [Shale] Clay - Links not working

2005-12-06 Thread hermod.opstvedt
Hi The nullpointer occurs because there is no check on the Inputstream in ClayAmalgam: InputStream in = null; try { in = context.getExternalContext().getResourceAsStream(url); < This could return null int c = 0; done: while (true) {

problem with struts-config and web.xml

2005-12-06 Thread Deepa Khetan
Hi, I have faced some problems during deployment. If i have multiple struts-config.xml in my application, i map them in my web.xml. So far, so good!! But the problem is when i deploy the code on producion, some of the struts-configs might be missing from the server(for the simple reason, that they

problem with "mask" of validation

2005-12-06 Thread Deepa Khetan
Hi, Have a problem with validation framework. In the "mask" attribute we specify which characters are allowed as input. Is there any way in which we can specify which characters are not allowed as input? Regards, Deepa

Help!

2005-12-06 Thread Shailesh Barde
  Hello Friends, I want to make application in which i have to make changes at Runtime in Resource Bundle.This is possible by Reading & Writing the .properties file using java.io.* API.However everytime you make change in it,the Context get Reloaded.Hence i have made all my changes in Tempor

Re: A forward problem

2005-12-06 Thread Frank W. Zammetti
Allen Charlton wrote: You can use a wildcard mapping for this Okay, I'll try that out. Actually I just don't know where to set wildcard mappings. They get set in struts-config.xml. It's just an action mapping. Yes, here "???" is the query string, and the directory "/search/???", obviously,

Re: A forward problem

2005-12-06 Thread Allen Charlton
>You can use a wildcard mapping for this Okay, I'll try that out. Actually I just don't know where to set wildcard mappings. >Also, I'm not entirely sure what you mean when you say "where ??? is the >keywords for the search". Do you mean they will be in the form of a >query string, or literally p

Re: A forward problem

2005-12-06 Thread Frank W. Zammetti
You can use a wildcard mapping for this: http://struts.apache.org/struts-doc-1.2.8/userGuide/building_controller.html#action_mapping_wildcards In your case, something like this should work: Note that the servlet mapping remains whatever it is now, I'm guessing something like /* in your case.

A forward problem

2005-12-06 Thread Allen Charlton
Hi all! I wonder how to manage this. Suppose a local site called testsystem, whose index page can be visited as http://localhost:8080/testsystem. Now I want an Action (named SearchAction) to process all search requests presented by this uri-pattern: http://localhost:8080/testsystem/search/???, whe

RE: Re: checkbox for nested collection

2005-12-06 Thread Neil Meyer
Thanks I will try that. Regards Neil Meyer -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: 07 December 2005 12:30 AM To: user@struts.apache.org Subject: Re: checkbox for nested collection Neil Meyer wrote: > Good day, > > I read all the topics on

Re: Session problem

2005-12-06 Thread Yujun Liang
The session is not created by Struts, it is the behaviour of web (servlet) container. http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSession.html http://e-docs.bea.com/wls/docs81/servlet/progtasks.html#159622 However, you can configure Session Persistence with WebLogic Server

Re: accessing request attributes

2005-12-06 Thread atta-ur rehman
Chris, I'm sure you'd know scriplet way of doing it, which I'm not going to recommend: <%=request.getAttribute("toDate") %>. Struts' bean:write should do it: Better still if you're using Servlet 2.4 compliant app server/servlet container you could use JSTL expressions: ${toDate} and it will sea

accessing request attributes

2005-12-06 Thread Christopher Becker
I am setting request attributes in an Action class such as in the following example: request.setAttribute("toDate", toDate); request.setAttribute("acctNum", acctNum); Both variables toDate and acctNum are Strings. I then process the action by returning a mapping.findForwa

Re: where to put struts element

2005-12-06 Thread Jim Reynolds
You are correct. That is what was needed. I was overlooking the obvious. Thanks for the clarification. On 12/6/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Are you sure it doesn't say to add an *action-mappings*, rather than > just action-mapping? Assuming that's the case, you need to simply >

Re: Session problem

2005-12-06 Thread Ross Gibb
Your second post seems to contradict your first post. The users are going to more mad at losing their session or the application entirely? Do you mean you want the sessions to persist through server restart? I have no idea if Weblogic supports that. A hacky solution off the top of my head w

RE: Re: Session problem

2005-12-06 Thread Baker, Russ A
It is Weblogic. I am using a "graceful" shutdown so that if people still have open sessions, they can complete what they are doing. The other alternative is to force shutdown, but I am afraid I will make enemies if I do that... -Original Message- From: news [mailto:[EMAIL PROTECTED] On Beh

Re: Session problem

2005-12-06 Thread Laurie Harper
Baker, Russ A wrote: Hello, I am trying to figure out how to stop Struts from creating a session. What seems to happen is that once I call an action, a session is created. This is a problem because when I want to gracefully shut down my server, it complains that I still have an active session. I

Re: nested c:forEach tag question

2005-12-06 Thread Laurie Harper
Scott Vickery wrote: I am having a tough time getting my head around using tags in some situations. This works (the forms tag is part of common controls, and is not part of the problem):

Re: where to put struts element

2005-12-06 Thread Laurie Harper
Are you sure it doesn't say to add an *action-mappings*, rather than just action-mapping? Assuming that's the case, you need to simply replace the action-mappings element in struts-config.xml with the one from the sslext documentation. L. Jim Reynolds wrote: Hello, I am following the sslex

Re: No getter method it sayes

2005-12-06 Thread Laurie Harper
Faisal Shoukat wrote: I get the following error when trying to load a jsp page: No getter method for property action of bean org.apache.struts.taglib.html.BEAN After looking through various postings it seems that this is to do with the getter method in the form bean however my form bean does ha

sslext

2005-12-06 Thread Jim Reynolds
I configured a test site using sslext, and using the SecureRequestProcessor as my processorClass, not using tags I ran into some bad results. If I put a object into the request, and switched protocols, the request object was no longer found? Since most struts work has something to do with passing

Re: nested c:forEach tag question

2005-12-06 Thread Yujun Liang
The problem is The logic tag doesn't support JSTL ${ftr.value} as a property. Regards On 12/7/05, Scott Vickery <[EMAIL PROTECTED]> wrote: > > I am having a tough time getting my head around using tags in some > situations. > > > > This works (the forms tag is part of common controls, and is not

Re: Preventing struts Page Caching

2005-12-06 Thread Laurie Harper
Well, those are really two separate issues, though if you achieve the second you would no longer need to worry about the first. What you probably want, though, is for the user to be taken to the login page only if they've logged out (or their session has expired), in which case the first proble

Re: checkbox for nested collection

2005-12-06 Thread Laurie Harper
Neil Meyer wrote: Good day, I read all the topics on checkboxes in this list but couldn't find a solution for my problem. I hope there is somebody that can shed some light on this to me. I have a dynamic list of menu items that is retrieved from a database into an array property. I have to arr

where to put struts element

2005-12-06 Thread Jim Reynolds
Hello, I am following the sslext configuration, and it is asking to add a element to my struts-config.xml file. I am not sure how this fits in because most of my knowledge in this is configuring action-mapping elements. How is this one put in? Any ideas. Here is a raw "struts-blank" struts-co

Re: Session problem

2005-12-06 Thread Ross Gibb
What server are you using? Baker, Russ A wrote: Hello, I am trying to figure out how to stop Struts from creating a session. What seems to happen is that once I call an action, a session is created. This is a problem because when I want to gracefully shut down my server, it complains that I

Session problem

2005-12-06 Thread Baker, Russ A
Hello, I am trying to figure out how to stop Struts from creating a session. What seems to happen is that once I call an action, a session is created. This is a problem because when I want to gracefully shut down my server, it complains that I still have an active session. Is there a way to con

Re: [OT] Open source reporting tool in java

2005-12-06 Thread Frank W. Zammetti
Take a look at Datavision: http://datavision.sourceforge.net/ It's not *quite* as powerful as Jasper and some others, but it is about as simple as can be to integrate and work with, and does have some nice capabilities others may not (for instance, formulas use the BSF, so any BSF-supported langu

[OT] Open source reporting tool in java

2005-12-06 Thread Ashish Kulkarni
Hi I need a open source reporting tool to generate reports in web application, basically create PDF reports and also pie charts and graphs etc. It should be able to create promts, and can be integrated in web appication I have looked into jasper and ireports, which looks cool Also itext and FOP bu

Re: forcing relative urls from struts instead of the absolute urls!

2005-12-06 Thread Michael Jouravlev
On 12/6/05, Michael P. Soulier <[EMAIL PROTECTED]> wrote: > Hello, > > I didn't find this in the archives, so I'll ask. > > I have a tomcat app deployed via proxypass from apache (2 in fact, a > double-proxy through 2 servers). It needs to use relative paths in its > links to ensure that the compos

forcing relative urls from struts instead of the absolute urls!

2005-12-06 Thread Michael P. Soulier
Hello, I didn't find this in the archives, so I'll ask. I have a tomcat app deployed via proxypass from apache (2 in fact, a double-proxy through 2 servers). It needs to use relative paths in its links to ensure that the composed path is correct. Unfortunately struts doesn't seem to want to u

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-06 Thread Dakota Jack
Ted says "Yes" but I say "No". Listen to everyone. Make the "we" more than the people that have committing "power". Most people that correspond on this list are not committers. I personally will listen to anyone on this list and make up my own mind. But, thanks for the rejected advice. People

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-06 Thread Dakota Jack
There are, of course, different web application frameworks. This idea of having "one frameworks", however, is a bit disingenuous and a bit more than a stretch, don't you think? On 12/6/05, Pilgrim, Peter <[EMAIL PROTECTED]> wrote: > > > -Original Message- > > From: Paul Benedict [mailto

Struts BOF at ApacheCon, Tuesday 21:30 @ East 411

2005-12-06 Thread Don Brown
[reposting to Struts users] I've tentatively scheduled a Struts Birds of a Feather (BOF) at ApacheCon for Tuesday at 21:30 (9:30 PM) in East-411 [1]. We have a lot to talk about including Shale, Struts Ti, and Struts Action 1.3.0, so I look forward to seeing everyone there. Don [1] - http://wik

Re: [shale] Clay - Logic components?

2005-12-06 Thread Alexandre Poitras
I have no idea sincerely. It is a very good point indeed. I was just throwing this idea because autogenerated content sometimes is a pain in the a** and writting a class to output content doesn't seem right to me. On 12/6/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > > On 12/6/05, Alexandre Po

Re: [shale] Clay - Logic components?

2005-12-06 Thread Craig McClanahan
On 12/6/05, Alexandre Poitras <[EMAIL PROTECTED]> wrote: > > I found out a menu component was already available in Tomahawk. It would > be > great if it was possible using Clay to build a new Renderer in case the > html > generated is not alright for any reason (here for example we have to > respec

RE: No getter method it sayes

2005-12-06 Thread Scott Purcell
Does the jsp page use the in the form in question? -Original Message- From: Faisal Shoukat [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 06, 2005 11:12 AM To: Struts Users Mailing List Subject: RE: No getter method it sayes >From looking at my config it seems ok:

RE: sslext

2005-12-06 Thread Scott Purcell
HummmI did not try that. I will play with that tongiht. But in regards to this, I found in my O'Reilly Struts Cookbook the example pp373 on how the sslext works. It is funny, because I was reading an article last night from here:

RE: No getter method it sayes

2005-12-06 Thread Faisal Shoukat
>From looking at my config it seems ok: I think the config is ok because it works in another JSP which uses the same form and the same field it complains about. -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 06 December 2005 17:06 To: S

RE: sslext

2005-12-06 Thread Daniel Perry
> If I use the action mapping and forward to a full url specifying the > type [http, https], then I have to do a redirect, and then the jsp > page shows up in the url, and that is not good. So I hate that idea. Why does the jsp have to show up in the url? Why not redirect to a full struts url, eg

RE: No getter method it sayes

2005-12-06 Thread Scott Purcell
In the mapping for this jsp page, is the form configured properly under "name" and also referred to as an element under the element. I have seen that error before and it usually has something to do with the fact that it is not picking up your form from either request or session. If you do not

nested c:forEach tag question

2005-12-06 Thread Scott Vickery
I am having a tough time getting my head around using tags in some situations. This works (the forms tag is part of common controls, and is not part of the problem):

No getter method it sayes

2005-12-06 Thread Faisal Shoukat
I get the following error when trying to load a jsp page: No getter method for property action of bean org.apache.struts.taglib.html.BEAN After looking through various postings it seems that this is to do with the getter method in the form bean however my form bean does have the getter meth

Re: How to accress property set to action element

2005-12-06 Thread David Durham
nitin mandolkar wrote: I want to access property that i set in action element. Here is the action element in strust-config file. ^ How can i access 'authenticated'

RE: Preventing struts Page Caching

2005-12-06 Thread Scott Purcell
Sometimes, I will add a redirect="true" on pages where I do not want the users to hit the -back button, or hit submit again. I use this and a combination of keeping my data in requests (not session) and even if they fight their way back to a page, the page is empty. That is because the data is n

Re: [shale] Clay - Logic components?

2005-12-06 Thread Alexandre Poitras
I found out a menu component was already available in Tomahawk. It would be great if it was possible using Clay to build a new Renderer in case the html generated is not alright for any reason (here for example we have to respect XHTML strict so it's always a concern) but I guess it's not possible

Re: sslext

2005-12-06 Thread Dave Newton
Jim Reynolds wrote: Then I found the sslext at sourceforge ... but cannot find any information on how this works, how to configure, etc. And the mailing lists look like a ghost town. http://struts.apache.org/struts-doc-1.2.x/faqs/ssl.html --

sslext

2005-12-06 Thread Jim Reynolds
Having the need to switch between http and https in a project I am working on with struts as the framework, I have run into some issues in regards to accomplishing this task. If I use the action mapping and forward to a full url specifying the type [http, https], then I have to do a redirect, and

Re: Preventing struts Page Caching

2005-12-06 Thread sma3har
I am using IE 6.0 and firefox 5.0. --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 12/5/05, sma3har <[EMAIL PROTECTED]> wrote: > > When i submit the page and hit the back button i > can > > submit the page again. The browser is caching the > jsp > > page. I have tried adding this code : > >

Re: Preventing struts Page Caching

2005-12-06 Thread sma3har
I would like to prevent submitting the page twice as well as when back button is pressed user should be taken to login page. Thanks --- Laurie Harper <[EMAIL PROTECTED]> wrote: > sma3har wrote: > > When i submit the page and hit the back button i > can > > submit the page again. The browser is

Re: can anyone clarify my doubt please

2005-12-06 Thread Niall Pemberton
On 12/6/05, Sony Thomas <[EMAIL PROTECTED]> wrote: > Hi all, > > ActionErrors is deprecated in struts. Is there is any replacement for > ActionError. Can anyone give an idea of substitute of ActionErrors. Theres some info on the wiki: http://wiki.apache.org/struts/StrutsDeprecatedActionErrors http

Re: Tiles: Inserting tiles recursively

2005-12-06 Thread brenmcguire
Simple answer: You have to put a definition inside another definition. You can see a definition as a "filled layout page". Since your main.jsp is not complete by itself (you have to "put" pages inside its attributes), you cannot use it as a simple tile (well you can but you get an error ;-)

Re: Addressformat For Different Countries

2005-12-06 Thread Keith Sader
If it were me, I'd use tiles to swap out body content at runtime based on the country code. A couple logic tags and a decent tile layout should work. On 12/6/05, Shiva Narayana <[EMAIL PROTECTED]> wrote: > Hi All, > > I have to implement address format depending on country in JSP. Like > > For Au

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-06 Thread Ted Husted
On 12/5/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Again, these two things are not mutually exclusive. The problem is > that people got used to thinking that Struts is a rusty action > framework, that is, front controller, usually stateless, and a lot of > handwork. My feeling is that commi

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-06 Thread Ted Husted
On 12/5/05, Craig McClanahan <[EMAIL PROTECTED]> wrote: > Note -- in order to avoid confusion, though, please listen to what the > Struts *committers* are saying, and doing. There are lots of off the wall > comments on this thread (and others like it) that represent personal > opinions about what

How to accress property set to action element

2005-12-06 Thread nitin mandolkar
I want to access property that i set in action element. Here is the action element in strust-config file. How can i access 'authenticated' property element autheticated in action call process() method. Is there any method in

Tiles: Inserting tiles recursively

2005-12-06 Thread blob
I want to use Tiles to insert parts of pages into parts of a webpage: Example: TOP holds all the parts of the page. Within that a MAIN part should display the main part that again can have different appearances (tiles) depending on the type of the page. So on TOP.jsp main.jsp is inserted that ag

RE: checkbox for nested collection

2005-12-06 Thread Neil Meyer
Good day, I read all the topics on checkboxes in this list but couldn't find a solution for my problem. I hope there is somebody that can shed some light on this to me. I have a dynamic list of menu items that is retrieved from a database into an array property. I have to array properties one wi

Addressformat For Different Countries

2005-12-06 Thread Shiva Narayana
Hi All, I have to implement address format depending on country in JSP. Like For Australia Line1, line2 ,Street,Code For UK Code,Street,Line1,COuntry For IndiaStreet,City,line1,country Likewise i have do display the label and text

RE: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-06 Thread Pilgrim, Peter
> -Original Message- > From: Paul Benedict [mailto:[EMAIL PROTECTED] ==== > > Now I hope this opinion doesn't make me unlikeable on this > forum ;-) Maybe I am not holding the > party line, but I can't figure out why the Struts label is > suddenly becoming a multi-framework > brandi

RE: can anyone clarify my doubt please

2005-12-06 Thread Chris McCormack
http://struts.apache.org/struts-doc-1.2.7/api/org/apache/struts/action/Actio nMessage.html Use the ActionMessage class which ActionError is a deprecated subclass of (Deprecated. Please use ActionMessage instead, deprecated since 1.2.0.) -Original Message- From: Sony Thomas [mailto:[EMAIL

can anyone clarify my doubt please

2005-12-06 Thread Sony Thomas
Hi all, ActionErrors is deprecated in struts. Is there is any replacement for ActionError. Can anyone give an idea of substitute of ActionErrors. Thanks, Sony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman