A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Mongo DB Applied Patterns
this week in the
MongoDB
forum
or a resume review from
Five Year Itch
in the
Jobs Discussion
forum!
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
How can i fix the s:textfield's cssStyle style prop.
nobeltr ozgur
Greenhorn
Joined: Sep 20, 2009
Posts: 14
posted
Oct 05, 2009 11:06:33
0
How can i fix the s:textfield's cssStyle style properties
<tr> <td align="right" width="40%"> <s:text name="userName" name="com.jsp.cms.user.loginsave.password"></s:text></td> <td width="60%"> <s:password cssClass="txtf" cssStyle="background : rgb(233, 248, 255) url(http://localhost:8080/newozgurclub/layout/images/password.png) no-repeat scroll left top;" name="passWord"></s:password> </td> </tr>
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
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Oct 05, 2009 11:20:49
0
Use a relative path?
nobeltr ozgur
Greenhorn
Joined: Sep 20, 2009
Posts: 14
posted
Oct 05, 2009 11:52:26
0
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
<tr> <td align="right" width="40%"> <s:text name="com.jsp.cms.user.loginsave.username"></s:text></td> [b]<s:url namespace="/" value="/layout/images/" var="ab"></s:url>[/b] <td width="60%"> <s:textfield cssClass="txtf" cssStyle="background : rgb(233, 248, 255) url([b]%{ab}[/b]username.png) no-repeat scroll left top;" name="userName"></s:textfield > </td> </tr>
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How can i fix the s:textfield's cssStyle style prop.
Similar Threads
s:radio and display tag
label and style sheet in struts 2
Client side validation not working
Struts 2.1 javascript field validate
Struts 2.1 error message breaks page html formatting
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter