Manuel Schenkhuizen

Greenhorn
+ Follow
since Apr 20, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Manuel Schenkhuizen

Can anybody tell me what is the difference between this() and target()?
TKS
9 years ago
You can build an ActionSupport class.
The class may have a List attribute.
In the execute method,you can initialize the attribute.
9 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.
9 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?
9 years ago
Since you have implementet ModelDriven,you do not need write "aaa.bbb.bid" in your select tag.
"bbb. bid" is enough.
9 years ago
you can has two status property in your user class and <s:if> tag

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

Maybe you should post what you wrote in you Main() method.
9 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.
9 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???
9 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.
9 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.
9 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 ?
9 years ago