nobeltr ozgur

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

Recent posts by nobeltr ozgur

how can i handle unknown namepsace and action in struts2
i have /namesapce/action.action
but theris no define in struts.xml i want to handle this

regards
15 years ago

Is it possible for me to use other names ??


yes you can use any names that what you want in struts.xml files
im not sure if you are using annotion i mean if you are developing without struts.xml
15 years ago
All the form properties is stored on the ValueStack.
Action class contains the form properties and the corresponding getter and setter methods
we set the the values of forms in action
The name attribute of the UI tag is the one which links the property on the ValueStack.
15 years ago
i can remove jsessionid value following on this link
http://randomcoder.com/articles/jsessionid-considered-harmful
15 years ago
http://localhost:8080/<proje name>/<action>/execute_loginprocess.do
i have to path my image tags src attributes relative path is not useful on local
because
site.com/<action>/execute_loginprocess.do

i think i solved my problem but i miss something
1
< image src= using OGNL
<img src="${pageContext.request.contextPath}/layout/images/gore.jpg"" alt="J banner" width="765" height="154">
no problem.
but in struts tags its not working


<s:url namespace="/" value="/layout/images/" var="ab"></s:url>
<s:textfield cssClass="txtf"
cssStyle="background : rgb(233, 248, 255) url(%{ab}username.png) no-repeat scroll left top;" name="userName" id="userName"></s:textfield >

ab parameter coming with when i request the page first time

url(/newproje/layout/images/;jsessionid=4310AB96E11BE618489A6081C2A258BEemail.png)
jssession id is coming wth ab
and i refresh the its fiexed
how can i solve this problem
regards
15 years ago
i m not obversing your code carefully

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
"http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<tiles-definitions>
<definition name="homepage.tiles" template="/layout/standard-layout.jsp">
<put-attribute name="header" value="/toHeader.action" />
<put-attribute name="body" value="/tiles/mainpage/main-body.jsp" />
</definition>

</tiles-definitions>

<put-attribute name="header" value="/toHeader.action" />
i think this line is wrong
you cant call action on tiles
edit:
and delete the one of them
struts-core-1.3.10.jar
struts2-core.2.1.6.jar
15 years ago
thank you
im using mvc and im new on struts
i solved my problem using <s:url tag with ognl im using struts 2.1.x
like that
15 years ago
How can i fix the s:textfield's cssStyle style properties

here is the my aplications name my action is
like that
http://localhost:8080/newozgurclub/User/process/execute_loginprocess.html

how can i reach the png files without writing full path?
maybe
S:url tag
Can anybody help me please?
regards
ozgur
15 years ago

did you add this defintion on jsp page
15 years ago
im working with tutorials of struts 2.1.6
i have error that i cant understand
i have an action class

here is my jsp


i got an error
WARNING: param with value resolved as null cannot be make as iterator, it will be ignored and hence will not appear in the merged iterator

i know the error is about static fields but i there is noting coming of my page when i browse

can anybody help me please?
15 years ago
im an untrained about struts2
im learning
im using a globalMessage.properties and globalMessage_tr.properties to multi language support for my project
i set this file on struts.properties file's like
struts.custom.i18n.resources=globalMessage

here is globalMessage.properties

here is globalMessage_tr.properties


my locale language is turkish
and coming my browser the value of on the globalMessage_tr.properties

but i want set allow a user to select a which language to see on webpage
how can i set struts.locale parameter ?
is it possible to set it using a querysting parameter?
regards
ozgur
15 years ago
hi im a newest of struts
i try to coding my own blog
i want to got a multiple languge support for my blog
its like English Turkish
i dont have an any idea
could you help me about that?
any tip?
15 years ago