Manuel Schenkhuizen

Greenhorn
+ Follow
since Apr 20, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Manuel Schenkhuizen

Can anybody tell me what is the difference between this() and target()?
TKS
13 years ago
You can build an ActionSupport class.
The class may have a List attribute.
In the execute method,you can initialize the attribute.
13 years ago
First you need a file name struts.properties in your classpath
Second write struts.ui.theme=css_xhtml.
Third use cssClass attribute in your tag.
13 years ago
Hi Satya / Dave,
I am a beginner to Android.
We all know that android is a great platform.But the version of android ADK changed so often.
Do you think android 3 is version that has competitiveness?
13 years ago
Since you have implementet ModelDriven,you do not need write "aaa.bbb.bid" in your select tag.
"bbb. bid" is enough.
13 years ago
you can has two status property in your user class and <s:if> tag

13 years ago
When you hit the action class, the value stack will push the property of your class on the value stack.
13 years ago

Maybe you should post what you wrote in you Main() method.
13 years ago
The problem has been resolved.
I wrote the user class and the helloworld class in the same class file,maybe this is what struts cann`t allow.
13 years ago
if i wrote a struts.xml like this:
<package name="hello" namespace="/test" extends="struts-default">
<action name="abc" class="struts.HelloWorld">
<result>Hello.jsp</result>
</action>
</package>

must i write /test/Hello.jsp in the result tag?
And having a test file in the classpath???
13 years ago
i think you should show us what you write in your jsp .the <head> tag;
maybe the path of your css and images are not correct
perhaps a <interceptor> is a better solvement.
13 years ago
an easy way to solve your problem.
you can print the elements of your list before return and see what you have got.
i think the problem may be not the nullpoint of you list.
13 years ago
this is the index.jsp

<s:form action="abc" namespace="/test">
<s:textfield name="users[0].name" label="ff"/>
<s:submit />
</s:form>

here is the hello.jsp

<body>
<s:property value="users[0].name" />
</body>

struts.xml

<struts>
<package name="hello" namespace="/test" extends="struts-default">
<action name="abc" class="struts.HelloWorld">
<result>/test/Hello.jsp</result>
</action>
</package>
</struts>

helloworld.class

public class HelloWorld extends ActionSupport {
private String username;
private boolean flag;
private List<User> users;


public List<User> getUsers() {
return users;
}

public void setUsers(List<User> users) {
this.users = users;
}

public boolean isFlag() {
return flag;
}

public void setFlag(boolean flag) {
this.flag = flag;
}

public String getUsername() {
return username;
}

public void setUsername(String username) {
this.username = username;
}

public String execute() {
return "success";
}
}

what`s wrong ?
13 years ago