The following comment has been added to this issue:

     Author: Chandra Moulee
    Created: Mon, 11 Aug 2003 11:52 PM
       Body:
Hello,
I had downloaded webwork 2 from the below site

http://sourceforge.net/project/showfiles.php?group_id=9890
Version: 1.3.0 Dated: 2003-04-25 15:44 
webwork-1-3-0.zip 12292640  1015  Platform-Independent .zip

The sample actions.xml (version webwork 2) is available under

\ww\webwork-1.3\webwork-1.3\docs\actions.xml
OR
\ww\webwork-1.3\webwork-1.3\examples\web\WEB-INF\classes\actions.xml

The content-structure of actions.xml file is same as, what is posted above.

WEB-INF/classes contains actions.xml, view.properties and webwork.properties.

User-defined jsp files are placed under root, not under WEB-INF directory.

JSPs supplied by webwork needs to be placed under root as /template/xhtml/*.jsp, if 
not I get an build error for eg. /template/xhtml/text.jsp not found.

Action classes are compiled and kept under WEB-INF/classes dir.

This is my configuration under WebSphere 5.0, for it to work properly.

My concern is
-------------
1. I want my user-defined jsps under WEB-INF directory, for security reasons. If I do 
that, I get that broken-link error of WebSphere, sited in my report.
2. Jsps supplied by webwork should be packed in such a way that I donot need to copy 
it to my project's root directory. 

Hope I am making things clear.
Regards
Chandramoulee
---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-244


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: WW-244
    Summary: WW2 on WAS 5.0
       Type: Bug

     Status: Reopened
   Priority: Major

    Project: WebWork
 Components: 
             Actions
   Fix Fors:
             2.0
   Versions:
             2.0
             2.0-beta1

   Assignee: Patrick Lightbody
   Reporter: Chandra Moulee

    Created: Wed, 6 Aug 2003 4:53 AM
    Updated: Mon, 11 Aug 2003 8:30 AM
Environment: Websphere 5.0, WW2 (Release 1.3) and Studio Developer

Description:
Studio Developer Websphere 5.0 shows the following project-build warning!!!(in Tasks 
View)

Broken Link - /ProjectWeb/WEB-INF/com/project/jsp/login.action - It is invalid to link 
to resources under the WEB-INF directory.


The actions.xml or view.properties was under WEB-INF/classes directory, after the 
project build.

When accessing the page as below,

http://localhost:9080/ProjectWeb/login.action

There is 404 thrown with NO exception in Console->View

It seems Websphere doesNot read (or package) the view.properties or actions.xml file 
to WEB-INF/classes directory.

Dump:login.jsp
--------------
<%@ taglib uri="/WEB-INF/taglib.tld" prefix="webwork" %>
<html>
  <head>
    <title>Login</title>
  </head>
  <body>
  <form action="login.action" method="post">
    <webwork:property>
      <webwork:textfield label="'Name'" name="'userName'"/>
      <webwork:password label="'Password'" name="'password'"/>
    </webwork:property>
    <input type="submit" value="Submit"/>
  </form>
  <webwork:iterator value="errors">
    <br><webwork:property/>
  </webwork:iterator>
  </body>
</html>

Dump:actions.xml
----------------
<actions>
  <action name="LoginAction" alias="login">
    <view name="input">login.jsp</view>
    <view name="success">hello.jsp</view>
  </action>
</actions>

Dump:webwork.properties
-----------------------
# WebWork configuration
# See webwork/default.properties for full list of properties that
# can be configured here
webwork.action.packages=com.project.action

# XML action configurations
webwork.configuration.xml=actions

# a possible extension change
# don't foget that you must change
# web.xml accordingly
webwork.action.extension=action

# if you override the extension, then you should
# fix these three standard alias as well to reflect
# the correct extension
redirect.action=webwork.action.standard.Redirect
referrer.action=webwork.action.standard.Referrer
cardpane.action=webwork.action.standard.CardPane

# Velocity settings
# See the Velocity project (http://jakarta.apache.org/velocity/) for
# more info on what settings are available
# Also see webwork/default.properties in WebWork if you want
# to see what defaults have been set.

# Set this to your own source directory during development.
# This allows you to edit the pages while the server is running without losing
# the changes when you re-deploy the application.
file.resource.loader.path = /

LoginAction.java
----------------
package com.project.action;

import webwork.action.*;

public class LoginAction extends ActionSupport
{
  private String userName;
  private String password; 

  public String getPassword()
  {
    return password;
  }

  public String getUserName()
  {
    return userName;
  }

  public void setPassword(String password)
  {
    this.password = password;
  }

  public void setUserName(String userName)
  {
    this.userName = userName;
  }

  public String doExecute() throws Exception
  {
    return SUCCESS;
  }

  public void doValidation()
  {
    if (userName == null || userName.length() < 1) addError("UserName", "Please enter 
username.");
    if (password == null || password.length() < 1) addError("Password", "Please enter 
password.");
  }
}

Any bright ideas to make this work?.
Regards
Chandra Moulee


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to