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

2005-05-19 Thread Steve Bosman
the second is I mean that, I don't want User do my action by typing my action path directly on address bar, such as http://www.myweb/user/useraction.do, but I allow User do my action by clicking on certain link on webpage, such as html:link page=/user/useraction.dodo/html:link any solution

LookupDispatchAction and struts-faces

2005-05-19 Thread Markus Koivisto
Hi! I've been trying to migrate part of a web-application from struts to struts-faces. However, I'm having trouble converting those jsp pages that are mapped to a LookupDispatchAction. I did not find any similar questions in the mailing-list archive, so I decided to post this. In struts, the

Re: How to populate / validate dynaform?

2005-05-19 Thread Jeff Beal
I never use DynaForm myself, but it looks like there's no way to know which type of object should be going into the ArrayList. Maybe somebody else can figure out where to go from there. -- Jeff On 5/17/05, Shirish [EMAIL PROTECTED] wrote: Dyna form

Re: Way of reading this mailing list as a heirachy

2005-05-19 Thread Jeff Beal
GMail also has a Basic HTML version that doesn't rely on JavaScript. Both versions use what they call a Conversation View to group messages. It's not really a hierarchy, but it does group all of the messages on a particular subject together. They're strictly in sequence, though, rather than

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

2005-05-19 Thread Catalin Croitoru
Steve, the solution you provide doesn't solve the problem with typing the link in the adress bar. user can copy from the html source of the page the hidden atribute org.apache.struts.taglib.html.TOKEN and provide to the adres with the value. somethig like this:

Re: bean:include doesn't work but jsp:include does[Scanned]

2005-05-19 Thread Martin Gainty
Raj- do a netstat -a to see if the connection is being used if not telnet to the IP:Ajp13Port and let us know the results Regards, Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official

Re: bean:include doesn't work but jsp:include does[Scanned]

2005-05-19 Thread Raj Tilak
here is the bean include % String xxxUrl = codeTypeToolbar.jsp?action=codeTypeListcodeTypeIdParam=+codeTypeIdParam; % bean:include id=xxx page=%=xxxUrl%/ bean:write name=xxx/ which gives me java.net.UnknownHostException, the port number is messed up as servername, servername seems to be

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

2005-05-19 Thread Wendy Smoak
From: Pham Anh Tuan [EMAIL PROTECTED] the second is I mean that, I don't want User do my action by typing my action path directly on address bar, such as http://www.myweb/user/useraction.do, but I allow User do my action by clicking on certain link on webpage, such as html:link

Where does ValidatorForm saves its errors?

2005-05-19 Thread Vinicius Caldeira Carvalho
Hello there! Which one is the name of the property that validator form saves its errors? I tried everthing. I can't use html:errors/ cause diferent parts of screen show diferent errrors types. Here's what I've tried: logic:messagesPresent message=false property=org.apache.struts.action.ERROR

Opening a Form in a New Window - Help!

2005-05-19 Thread David Johnson
Hi there I'm trying to open up a new window from my struts application which will contain help information. The link opening the window looks like this so far html:link action=help.do http://help.do target=_helpHelp/html:link What I'd like to do is specify the following options

Re: Opening a Form in a New Window - Help!

2005-05-19 Thread Frank W. Zammetti
Hello, In order to set those options you will have to use Javascript. The target attribute is a fairly dumb animal in that it just opens said target with the location you specify. Anything more requires scripting. I wasn't clear on what you meant by: Does anyone know how I might specify these

Running Tomcat from Eclipse

2005-05-19 Thread m Komma
Hi, I am using Eclipse 3.0.1, Sysdeo 3.0.0 (tomcat plugin for eclpse) and Tomcat 5.5.7 I was able to start tomcat from Eclipse until couple of days back. but now, when ever I start tomcat from Eclipse I get the followoing error message (I can start Tomcat if I check the box Don't run Tomcat in

Re: DynaActionForm and the 'pull' model

2005-05-19 Thread Laurie Harper
Adam Hardy wrote: Laurie, my chosen option would be to use your view objects as form objects, where you modify the view object by adding string-typed getters and setters for every property. I'm not really keen to 'pollute' the view objects with String-type derived properties just for the HTML

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

2005-05-19 Thread Grzegorz Stasica
Aladin Alaily wrote: 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

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

2005-05-19 Thread Catalin Croitoru
hi, you can do like this: String myReferer = request.getHeader(Referer); if myReferer is nul this means the request was by tiping the addres in the addres bar. if it's not null mean the user click on a link on last page in the browser and myReferer is the url of this page. for a full

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

2005-05-19 Thread Leon Rosenberg
Aehm... Be careful with this advice, First: you will get no referer in any kind of popups. Second: most proxies, anonymizer and anti-spy software removes referer attribute from the header. Maybe I'm a little late, but i had similar requirement some time ago - protect pages from being refered by

How to set character encoding of the incoming request in Struts 1.2.4

2005-05-19 Thread souravm
Hi All, I want to set the chracter encoding of incoming http request by using HttpServletRequest.setCharacterEncoding() api. How do I do it using Struts 1.2.4 ? Does it provide any configuration parameter to do the same ? Or one has to subclass the RequestProcessor class to do the same ?

Re: How to set character encoding of the incoming request in Struts 1.2.4

2005-05-19 Thread Jason Lea
I use a servlet filter to set the encoding before it reaches struts souravm wrote: Hi All, I want to set the chracter encoding of incoming http request by using HttpServletRequest.setCharacterEncoding() api. How do I do it using Struts 1.2.4 ? Does it provide any configuration parameter to do

Re: jstl - define bean

2005-05-19 Thread Laurie Harper
Grzegorz Stasica wrote: I thought c:set ... defines a new bean in page scope. If this is true No, c:set sets a property on a bean that is already defined. I do not understand why attached code keeps throwing exception that no getB() is not defined. c:set property=b value=kicha var=d/c:set This

Re: jstl - define bean

2005-05-19 Thread Martin Gainty
Grzegorz- Yes - Unless otherwise specified you are correct in stating the default scope for the bean is 'page' Martin- - Original Message - From: Laurie Harper [EMAIL PROTECTED] To: user@struts.apache.org Sent: Thursday, May 19, 2005 11:22 PM Subject: Re: jstl - define bean Grzegorz

Re: Running Tomcat from Eclipse

2005-05-19 Thread Yan Hu
Are we on a STRUTS mailing list? --- m Komma [EMAIL PROTECTED] wrote: Hi, I am using Eclipse 3.0.1, Sysdeo 3.0.0 (tomcat plugin for eclpse) and Tomcat 5.5.7 I was able to start tomcat from Eclipse until couple of days back. but now, when ever I start tomcat from Eclipse I get the

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

2005-05-19 Thread Pham Anh Tuan
Hi all, First thanks for all ur replies, Second, the solution here is we will have a dynamic parameter which will automatically be created when 1 Session start and will be appended of the URL. Is this right :)? We could hide above parameter in session scope? Again, we found the solution! Thank

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

2005-05-19 Thread Pham Anh Tuan
Hi Leon, Would you like to give me any example of ur solution? Anh Tuan - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, May 20, 2005 9:37 AM Subject: Re: Fw: [HELP] How to restrict access to certain mapping

[HELP] Couldn't include bean:write tag in onClick in html:radio

2005-05-19 Thread Pham Anh Tuan
Hi all, I couldn't include bean:write tag in onclick attribute of html:radio like below: html:radio name=exhibit_item_request property=auctionTypeId value=%= (String)rId% onclick='javascript:whichAuctionType(#34;bean:write name=rule property=auctionTypeId/#34;);'/ and the result: html source

Can't Undeploy Struts Applications

2005-05-19 Thread Harry Hartley
Is this a bug? So, I deploy the struts-blank webapp to my webapps directory under tomcat. Everything works fine. Then I try to undeploy it under the manager, and it responds the a message, context undeployed. But when I do a list under the tomcat manager it is still there. If I

JSTL and Struts together

2005-05-19 Thread Suresh Khatri
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c/ %@ taglib uri=/tags/struts-html prefix=html/ html:form action=dynaadd.do html:text property=name value=c:out value=${param.x}// /html:form would display the whole thing. Is there a way of making it evaluate c:out

Re: JSTL and Struts together

2005-05-19 Thread Shey Rab Pawo
html-el:form etc. On 5/19/05, Suresh Khatri [EMAIL PROTECTED] wrote: %@ taglib uri=http://java.sun.com/jstl/core; prefix=c/ %@ taglib uri=/tags/struts-html prefix=html/ html:form action=dynaadd.do html:text property=name value=c:out value=${param.x}// /html:form