AW: Struts 1.3.8 Globals.TOKEN_KEY always empty -> therefor: isTokenValid() is always false

2007-08-27 Thread Thomas.Zygadlewicz
Thats sadly not quite true... saveToken() is fillig the Globals.TRANSACTION_TOKEN_KEY attribute. You can find the operation in the tokenProcessor.class. And thats why im still stuck with the old problem :( -Ursprüngliche Nachricht- Von: Paul Benedict [mailto:[EMAIL PROTECTED] Im Auftra

Re: [S2] Refresh JSP in Tomcat 5.5

2007-08-27 Thread hezjing
Can you explain what these Struts properties mean (see also http://struts.apache.org/2.0.9/docs/strutsproperties.html) ? struts.serve.static=true struts.serve.static.browserCache=true What does a static content means? In my case, the index.jsp is a static content? Anyway, setting struts.serve.s

Re: Struts 1.3.8 Globals.TOKEN_KEY always empty -> therefor: isTokenValid() is always false

2007-08-27 Thread Paul Benedict
Globals.TOKEN_KEY is the name of the parameter that should be submitted back to your form. This is automatically outputted by if the triggering action called saveToken(). [EMAIL PROTECTED] wrote: Hello, I need to fill the "Globals.TOKEN_KEY" from the session to be able to use saveToken() a

Re: Specify a name for a validate function

2007-08-27 Thread j alex
Struts 1 ; if validate=true, it looks for a method called validate() in ActionForm (ie value_add_form) , Action ( ie MyAction) or if you've configured validation xml, validations are run using that On 8/27/07, Anna Simbirtsev <[EMAIL PROTECTED]> wrote: > > Hello > > type="com.s

S2 / FTL : Getting application params in FTL

2007-08-27 Thread j alex
Hi, How do i access params defined in web.xml in the FTL ? ; In my app, all the images are located at a particular path which is defined as GLOBAL_IMAGES_ROOT www/abc/def/images and i want to show an icon from this directory within the FTL . How would i make GLOBAL_IMAG

Re: [S2] issues w/ url tags

2007-08-27 Thread Musachy Barroso
Even if you pass parameters, it will append the request parameters(unless you change your default), try setting includeParams = "none" musachy On 8/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Musachy, > > Thanks, but I am using the param tags. > > onclick="location.href=' name="ownerOb

RE: [S2] issues w/ url tags

2007-08-27 Thread paul . saumets
Musachy, Thanks, but I am using the param tags. onclick="location.href=''" Or should I declare my url actions and assign an id and then use something like: Onclick="location.href='%{WorkActionUrl}'" ? Would that make a difference? Thanks, Paul -Original Message- From: Musachy Barroso

Re: [S2] issues w/ url tags

2007-08-27 Thread Musachy Barroso
http://struts.apache.org/2.x/docs/why-are-request-parameters-appended-to-our-hyperlinks.html musachy On 8/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi all, > > Been awhile since I've posted. Been running into an issue today and I know > this is going to make me look like a fool but

Re: Insane problems with s:select

2007-08-27 Thread Pavel Sapozhnikov
Hey Musachy here's my page from start to end: agencyRef is defined in the Action class in Java <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page import="java.util.*,com.xfact.struts2login.util.*, com.xfact.struts2login.value.WebAppUserVO"%> <%@ taglib prefix="s" uri="/

struts 2 alternative to propertyset

2007-08-27 Thread Leonidas Papadakis
Hi there, in the past i have used propertyset from opensymphony in order to have a key-value property file for configuration settings. i.e. i had a file my-sets.xml en Is there a built in mechanism in struts 2 i.e. to have a file with values : defaultlanguage=en e.t.c. ? Thank you for your

Specify a name for a validate function

2007-08-27 Thread Anna Simbirtsev
Hello Does it call the validate function in the form class? Can I specify the name of validate the function to call? Thank you

Re: Insane problems with s:select

2007-08-27 Thread Musachy Barroso
I'm using the select tag and it seems to work fine, I'm using Collections, Maps, multiple values, pretty much everything. You are not forced to use a Map, you can use Collection or an Enumeration, and then specify which field is the key, with listKey and which field is the value with listValue. @

Re: Insane problems with s:select

2007-08-27 Thread Session A Mwamufiya
That happened to me once, and it ended up that the s:select tag was improperly written. Make sure that you are returning an appropriate map from the function that is associated to the list attribute in s:select. It expects a map that maps IDs to strings that get displayed. Hope it helps, Sess

Insane problems with s:select

2007-08-27 Thread Pavel Sapozhnikov
Hey guys I am having really crazy problems with s:select. Here's what happens I have a jsp page with a s:form in it. Then I have a Collection defined up top that gets from the session just like this session.getAttribute...Also my page is actually a tile. I started doing this from scratch but whenev

file save popup in javascript window

2007-08-27 Thread dekar
Hi, I dont know the source of this error but its really wierd error I think the source is javascript/apacheconfig/struts. I am getting a save file popup (TopicAction.do as the filename) when I click a button in a javascript window. I am trying to submit a form from a javascript window which invo

[S2] issues w/ url tags

2007-08-27 Thread paul . saumets
Hi all, Been awhile since I've posted. Been running into an issue today and I know this is going to make me look like a fool but better to seek quick advice here rather than bang my head for hours. J When I hit a page my action returns a JSP. The JSP page renders fine but within the JSP page

Re: Session problem

2007-08-27 Thread Dave Newton
I would reduce your problem to a simple class that does nothing but access only the HttpSession and see if the problem still exists, then build up around that until something blows up. I would also consider using Spring's DI/IoC to inject a user service object (generally not the same class as a us

converting to s2

2007-08-27 Thread Pavel Sapozhnikov
Hi I have this code in my jsp in s1 application I want to get the equivalent for s2. I think it has something to do with and s:optgroup. Could anyone help maybe? - Select an Agency - -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]

Re: Session problem

2007-08-27 Thread Mark Rollins
I'm actually using two different browsers, IE and Firefox, as I thought this would guarantee me two separate sessions. How are you starting a new browser from this *same* machine? If you are pressing Ctrl-N New Window, this is your problem! This will appear to be two browsers, when actually i

[S2] Struts Tokens and ParametersInterceptor Question

2007-08-27 Thread Hoying, Ken
I am using the Sruts2 token tag with the token interceptor to restrict double submits of a page. It appears to be working. However, I am getting the following in my log. Do I not have something configured correctly? [2007-08-27 11:27:49,565] [ERROR] [anjone ] [erceptor.ParametersI

radiobutton validation

2007-08-27 Thread Danne1
Hi I would like to validate a textfield next to a radiobutton. My problem is that i have x numbers of radiobuttons and the same numbers of textfields. Only one can and must be selected. If the radiobutton is selected the corresponding textfield must have a value.. Is it possible without writing y

RE: [S2] extending struts.xml

2007-08-27 Thread Phillip Grenier
Was a xworks 2.0.1 issue. Replaced with xworks 2.0.4.jar -Original Message- From: Phillip Grenier [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 9:10 AM To: Struts Users Mailing List Subject: [S2] extending struts.xml When I try to extend any package located in the struts.xml f

Re: Passing variables in url

2007-08-27 Thread Oleg Mikheev
Anna Simbirtsev wrote: I tried first assigning the value to a string and then sending it. <% String value_ = duf1.getValue(); %> Still does not work. You are assigning a value in a JSP class, but you should've assigned one in request, or page, or session context: <% request.setAttr

Re: Passing variables in url

2007-08-27 Thread Anna Simbirtsev
I tried first assigning the value to a string and then sending it. <% String value_ = duf1.getValue(); %> Still does not work. On 8/27/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote: > > Anna Simbirtsev wrote: > > > > > width="80" height="20"border="0"/> > > > > value is a bean i

Re: Passing variables in url

2007-08-27 Thread Oleg Mikheev
Anna Simbirtsev wrote: value is a bean in struts, that has get/set functions. I think that value itself should be a String not a bean. From struts documents: paramName - The name of a JSP bean that is a String containing the value for the request parameter named by paramId They ar

Re: How can I tell Struts 2 to throw/log exceptions for invalid OGNL Expressions

2007-08-27 Thread mraible
Is it possible to use altSyntax to solve this problem? In other words, require %{} around all expressions? Looking through the docs, it doesn't seem like altSyntax is supported in Struts 2. https://issues.apache.org/struts/browse/WW-1819 Thanks, Matt mraible wrote: > > > mraible wrote: >>

logging with Log4J

2007-08-27 Thread Ashish Kulkarni
Hi Does anyone have an exmple of using log4j for logging struts messages, I have an web application where i use log4j for logging, i have a mapslog4j.xml file in WEB-INF folder and load this log file using DOMConfigurator in a servlet. This servlet is loaded before struts servlet, but some how this

Re: Passing variables in url

2007-08-27 Thread Antonio Petrelli
2007/8/27, Anna Simbirtsev <[EMAIL PROTECTED]>: > Hello > I am trying to pass a variable in the url, but I can't seem to get the value > to be passed. > > > width="80" height="20"border="0"/> > > value is a bean in struts, that has get/set functions. > > I tried using paramName="${value_}

Passing variables in url

2007-08-27 Thread Anna Simbirtsev
Hello I am trying to pass a variable in the url, but I can't seem to get the value to be passed. value is a bean in struts, that has get/set functions. I tried using paramName="${value_}" and pass a string, but it did not work. Thank you

Re: [OT] how to process emails automatically??

2007-08-27 Thread Antonio Petrelli
2007/8/27, petchia <[EMAIL PROTECTED]>: > > > I'm having trouble finding a solution to a problem I need to solve and > thought I'd ask the always knowledgeable Struts list. > > I need to setup a system that can process emails and their attachments > automatically. Basically, I need a piece of softw

[OT] how to process emails automatically??

2007-08-27 Thread petchia
I'm having trouble finding a solution to a problem I need to solve and thought I'd ask the always knowledgeable Struts list. I need to setup a system that can process emails and their attachments automatically. Basically, I need a piece of software that will run every time an email is sent to [EM

Re: tabltags

2007-08-27 Thread Toni Lyytikäinen
http://displaytag.sourceforge.net/11/export_filter.html On 8/27/07, Manuel Correa <[EMAIL PROTECTED]> wrote: > > Sorry is display tags: > > > > http://displaytag.sourceforge.net/11/ > > > > > > > > Manuel Correa. > > Application Analyst Specialist. > > ITOS, Carl Vinson Institute of Government. >

tabletags

2007-08-27 Thread Manuel Correa
I use table tags, but when I tried to export with excel or pdf, I get this exception: An exception was thrown: Exception: [.TableTag] Unable to reset response before returning exported data. You are not using an export filter. Be sure that no other jsp tags are used before display:table or refe

[S2] extending struts.xml

2007-08-27 Thread Phillip Grenier
When I try to extend any package located in the struts.xml file from any of my included xml files that contain other packages It kills the parser and gives a 404 error. ex. // struts.xml test/Index // test.s2.xml

Struts 1.3.8 Globals.TOKEN_KEY always empty -> therefor: isTokenValid() is always false

2007-08-27 Thread Thomas.Zygadlewicz
Hello, I need to fill the "Globals.TOKEN_KEY" from the session to be able to use saveToken() and isTokenValid() methods. saveToken is only filling the "Globals.TRANSACTION_TOKEN_KEY"-Variable. can someone help me out? regards, Tom

Struts 2 - lost URL parameters with tag (bug 1938)

2007-08-27 Thread Riccardo Mollame
Does anybody know about any fix or workaround to the mentioned bug? For the record, it's the bug emerging when the contains more than one tag, in which case strange things happen (e.g. only one parameter is actually retrievable in the target action, the others producing the infamous nullPointerE

AW: How to set focus to html:text?

2007-08-27 Thread Altmeier, Christian
Omg ^^ document,getElementById('userId').focus() | v document.getElementById('userId').focus(); + styleId="userId" -> Greetings -Ursprüngliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Cenk Gesendet: Montag, 27. August 2007 13:52 An: user@struts.ap

How to set focus to html:text?

2007-08-27 Thread Cenk
Hi, The previous posting was about HTML only, but this one is struts, and if anybody can help me, i would be so grateful. thanks ... Login: - To unsubscri

Re: Session problem

2007-08-27 Thread stanlick
How are you starting a new browser from this *same* machine? If you are pressing Ctrl-N New Window, this is your problem! This will appear to be two browsers, when actually it is two browser "windows" over the same session! You must start a second (3rd, 4th, ...) browser the way you started the

Re: Broken Link

2007-08-27 Thread stanlick
This seems to be a vanilla JSP file with nothing to do with Struts! Perhaps you should look at the Struts custom tag library form tag. Scott On 8/27/07, Cenk <[EMAIL PROTECTED]> wrote: > > Hi, > I m getting this warning, Broken link - /Login.How can i fix this? > thanks > > > <%@ page language="

Re: How to set focus to a textbox?

2007-08-27 Thread Alvaro Sanchez-Mariscal
... Alvaro. On 8/27/07, Cenk <[EMAIL PROTECTED]> wrote: > Hi, > > i want to set focus to an input field on my index.jsp. But i could not > manage... > > Here is the code segment below: > ... > > > > > Login: > >

How to set focus to a textbox?

2007-08-27 Thread Cenk
Hi, i want to set focus to an input field on my index.jsp. But i could not manage... Here is the code segment below: ... Login: ... - To

Re: [S2] Refresh JSP in Tomcat 5.5

2007-08-27 Thread hezjing
I modified index.jsp directly in Tomcat 5.5\webapps\myapp directory. 1) Restart Tomcat 5.5.23 2) Accessed http://localhost:8080/myapp 3) Modified the title of Tomcat 5.5\webapps\myapp\index.jsp 4) Pressed Ctrl+F5 on IE6 (http://localhost:8080/myapp/welcome.action), BUT it is still showing the old

Re: [S2] Refresh JSP in Tomcat 5.5

2007-08-27 Thread Alvaro Sanchez-Mariscal
If you use Eclipse and WTP (ie, Servers view), a redeploy is not required when changing JSP files. Anothed option is to use jetty, if you use maven. Alvaro. On 8/27/07, hezjing <[EMAIL PROTECTED]> wrote: > Hi > > I have a index.html that will redirect to WelcomeAction, > > = index.html =

RE: [S2] Refresh JSP in Tomcat 5.5

2007-08-27 Thread Andrei Sauchanka
Hi, You can try to replace your index.jsp in tomcat directory where tom cat copies your apps. For example [tom cat dir]/webapps/[Your apps]/ It works without restarting tom cat server, just refresh your page in IE (Ctrl+F5). Andrei Sauchanka, Software Engineer EPAM Systems Gomel office, Belarus

Re: Tiles and struts tags

2007-08-27 Thread Antonio Petrelli
2007/8/11, Jim Reynolds <[EMAIL PROTECTED]>: > > Struts 1.29 app that uses tiles definitions. Question is: I am finding > myself having to call the taglib in the layout, and also in each > tile. If I take the taglib out of any of the jsp pages that is a tile, > then the page fails to display becau

[S2] Refresh JSP in Tomcat 5.5

2007-08-27 Thread hezjing
Hi I have a index.html that will redirect to WelcomeAction, = index.html = Loading ... WelcomeAction does nothing but simply returns success from execute(). = WelcomeAction.java = public class WelcomeAction extends ActionSupport { public String execute() throws Excep

Re: Actions with same name but different packages & namespaces

2007-08-27 Thread Alvaro Sanchez-Mariscal
You're right. I assumed that default namespace was package name. Thank you!. On 8/25/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > Alvaro Sanchez-Mariscal wrote: > > Hi, > > > > Is it possible to have actions with the same name but different > > packages & namespaces? > > > > > > > >

Transaction Token Problem

2007-08-27 Thread Thomas.Zygadlewicz
Hi, Im having some trouble implementing the Transaction Token into my Application. Ive checked the Data that is being written - and it seems one of the session-keys isnt being written. HttpSession session1 = req.getSession(false); String saved1 = (String) session1.getAttribute(G