RES: [JSF] Is it possible to submit to different URL/page?

2005-10-06 Thread Eduardo Ribeiro da Silva
Try outputLink

-Mensagem original-
De: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 6 de outubro de 2005 15:10
Para: Struts Users Mailing List
Assunto: [JSF] Is it possible to submit to different URL/page?


I looked up for an attribute of h:commandButton which would allow to
submit to another URL, and I could not find it. All I found was
"action" and "actionListener", which should evaluate to methods, not
to URLs:
http://java.sun.com/j2ee/javaserverfaces/1.1/docs/tlddocs/h/commandButton.html

ASP.NET 1.x does not allow posting to another page. MS fixed this
issue in ASP.NET 2.0

Michael J.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts with XSLT

2005-08-18 Thread Eduardo Ribeiro da Silva
Anybody knows how I can generate JSP with struts tags with XSLT and pass JSP to 
JSPProcessor, for compile them? Because I have tags that client browse simple 
don't known.

-Original Message- 
From: John Martyniak [mailto:[EMAIL PROTECTED] 
Sent: Thu 8/18/2005 7:08 AM 
To: Struts Users Mailing List 
Cc: 
Subject: Re: Struts with XSLT



I have also successfully used Struts and XSLT,  Haven't had an issue.

I currently use JSP to generate the dynamic top component,  and then 
include the XSLT generated HTML in the main content area.

I think that it is easier to manipulate XML with XSLT then it is to 
do it with JSP/Tags.

-John

On Aug 18, 2005, at 12:36 PM, Mark Benussi wrote:

> I used XSLT for all my applications to generate content as html 
> files which
> Struts includes in a page template using tiles.
>
> It also allows me to search the pages as pure html content.
>
> If you are putting logic in your page you could... don't shudder, 
> use XSLT
> to generate JSP's.
>
> -Original Message-
> From: Graham Smith [mailto:[EMAIL PROTECTED]
> Sent: 18 August 2005 15:13
> To: user@struts.apache.org
> Subject: Struts with XSLT
>
> Hi folks,
>
> This isn't your usual "How do I do X?" type question so get ready. 
> Hopefully
>
> it will fuel a good discussion. I'm fairly new to struts but have a 
> solid
> grasp of Model 2 design ideas. The problem, I suppose, is that I am 
> a lone
> developer (for my own company) which makes it hard to get the 
> balanced view
> of the technology arena that is aquired through working with other
> developers. Therefore I have a couple of high level architecture 
> questions
> that I am interested to hear your views on.
>
> The current application that I am working on uses XSLT to generate web
> pages.
> As you wold expect a bunch of beans (and some other objects) get 
> converted
> into XML, run against a stylesheet and out pops a page. This is 
> fine and the
>
> application uses a good dose of Model 2 goodness so it's easy to 
> manage and
> extend. Unfortunately, it has been developed with it's own MVC 
> framework. I
> would like to convert it to use Struts but I don't want to throw 
> away the
> flexibility given by using XSLT.
>
> Whoa. Before you all shout "But Struts can use any technology for 
> the view
> look at stxx" I have had a look at it and stxx has the smell of 
> death around
>
> it. As far as I can tell it has been abandoned and doesn't support 
> Struts
> 1.2.x (the front page hasn't been updated in well over a year). 
> Further more
>
> it is fairly obvious that Struts was designed with JSP in mind and 
> while it
> may work with XSLT my experience of other technologies is that this 
> type of
> usage with not be easy or pleasant.
>
> You are probably wondering by now why I even want to use XSLT 
> rather than
> JSP.
> The reason is simple. XSLT provides a huge amount of flexibility 
> and the
> cleanest separation of the view that I have found. I admit that it 
> is a
> little more work to create a stylesheet rather than a JSP but I 
> feel that is
>
> worth it. I'm not 100% dead set on using XSLT. I have learnt that 
> it is
> generally not a good idea to go against the grain and if the 
> arguments are
> compelling enough I will switch to JSP. The problem I have with JSP 
> is that
> with every release it feels like it gets closer to XSLT. A site I 
> recently
> developed using JSF + JSP 2.0 (jspx) felt like the pages were 
> nothing more
> than dumbed down stylesheets.
>
> My other concern is that Struts 2.x seems to be heading towards total
> integration with JSF. While I love the simplicity of JSF and the 
> speed with
> which one can create a web application it is unsuitable for use on an
> ecommerce site where the users are expected to be able to bookmark 
> pages
> (using a refresh is a poor hack IMHO) and, more importantly, robots 
> can't
> navigate JSF sites. A combination of technologies could be used but 
> that
> then
> multiplies the cost of development and maintenance.
>
> Finally then the

RES: Using multiple resource bundles

2005-06-02 Thread Eduardo Ribeiro da Silva
This bug exist really and is documented: look in 
http://struts.apache.org/userGuide/dev_validator.html






mask
^[a-zA-Z]*$



By default the arg0-arg3 elements will try to look up the key attribute in the 
message resources. If the resource attribute is set to false, it will pass in 
the value directly without retrieving the value from the message resources.

Note that since Struts 1.1, you must explicitly define your message resource in 
any module that is going to use the Validator, due to a problem accessing the 
top-level resource. This only effects applications which are using modules. 

-Mensagem original-
De: Duggirala, Satyavati [mailto:[EMAIL PROTECTED]
Enviada em: Tuesday, 31 May 2005 8:20 PM
Para: Struts Users Mailing List
Assunto: RE: Using multiple resource bundles


Yes, I am doing that and "bean:message " works fine.
I am having problem only with arg element in validation.xml

Is arg element supported in struts1.1 or do we have to use arg0,arg1..


-Original Message-
From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 31, 2005 4:12 PM
To: Struts Users Mailing List
Subject: Re: Using multiple resource bundles


seems fine.

you should declare your message resource in struts-config with the name
"mybundle" and it should contain the key "myField.displayname"

r u doing that?


Duggirala, Satyavati wrote:
> I am working on a field whose value is an int in the range 0- My 
> code looks in validation.xml looks like this-
> 
> 
> 
>   
>   
>   
>   min0
>   max
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RES: Problem with struts in Sun One 8.1 integrated with NetBeans 4.1

2005-06-01 Thread Eduardo Ribeiro da Silva
The problem was resolved. 
The ActionServlet was trying validate tiles-defs.xml and tiles point to a 
public dtd and time-out ocurred.
Then we put tiles-config_1_1.dtd in a specific folder in Sun1 
(C:\Sun\AppServer\lib\dtds).

But unfortunatelly we have other problem: bean:message tag is not working. 
Follow stacktrace:

javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
org.apache.jsp.pages.login.login_jsp._jspService(login_jsp.java:132)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

root cause

javax.servlet.jsp.JspException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE

org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1233)
org.apache.struts.taglib.TagUtils.message(TagUtils.java:1082)
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:226)

org.apache.jsp.pages.login.login_jsp._jspx_meth_bean_message_0(login_jsp.java:235)

org.apache.jsp.pages.login.login_jsp._jspx_meth_html_form_0(login_jsp.java:159)
org.apache.jsp.pages.login.login_jsp._jspService(login_jsp.java:117)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:251)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)

Our login.jsp:



 

:


 


.
.
.

And our struts-config.xml part:



Thanks for any help

-Mensagem original-
De: Martin Gainty [mailto:[EMAIL PROTECTED]
Enviada em: Wednesday, 1 June 2005 11:18 AM
Para: Eduardo Ribeiro da Silva
Cc: Struts Users Mailing List
Assunto: Re: Problem with struts in Sun One 8.1 integrated with NetBeans
4.1


Eduardo-

It looks as if you never closed down the Tomcat instance that is using that 
socket so make sure tomcat is shutdown 'properly'

The second is that your struts-config.xml has an action-mapping action 
type="FormBeanPackage.FormBeanClass"
Make sure you have FormBeanPackage.FormBeanClass compiled and deployed in 
web-inf/classes or jar'ed and placed in web-inf/lib folder(s)
In the case of DynaActionForm use the ClassName specifier to identify the 
FormBeanPackage.FormBeanClass and compiled and deployed in web-inf/classes 
or jar'ed and placed in web-inf/lib folder(s)

HTH-
Martin-

 Original Message ----- 
From: "Eduardo Ribeiro da Silva" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 01, 2005 9:17 AM
Subject: Problem with struts in Sun One 8.1 integrated w

Problem with struts in Sun One 8.1 integrated with NetBeans 4.1

2005-06-01 Thread Eduardo Ribeiro da Silva
e.java:473) 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:767) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at 
sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585) at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)   at 
java.security.AccessController.doPrivileged(Native Method)   at 
javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)  
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
   at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
   at java.security.AccessController.doPrivileged(Native Method)   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)  at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
  at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)  at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)   
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)  at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:184)  at 
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
   at 
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
   at 
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
at 
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)

Thanks for any help



Att,
______
Eduardo Ribeiro da Silva
Apoio Java - BsB CMM 3
POLITEC
[EMAIL PROTECTED]
(061) 9231-5973 // 3038-6852 

"Dedica tu, em pensamento, todas as tuas ações a Mim,
e perseverando nesta atitude, estarás sempre com tua
mente fixa em Mim".  Bhagavad Gítá


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]